uniname/uniname: Fix -Wshorten-64-to-32 warnings.
[gnulib.git] / ChangeLog
blob205d98ab133d196da0748dbe1564a2f9906f90e7
1 2020-09-05  Bruno Haible  <bruno@clisp.org>
3         uniname/uniname: Fix -Wshorten-64-to-32 warnings.
4         * lib/uniname/uniname.c (unicode_name_word_lookup): Change type of last
5         argument to size_t.
6         (unicode_name_character): Change type of len, n1, n2, n3, words_length,
7         n to size_t.
9 2020-09-05  Bruno Haible  <bruno@clisp.org>
11         unistr/u{8,16,32}-uctomb: Avoid possible trouble with huge strings.
12         * lib/unistr.in.h (u8_uctomb_aux, u8_uctomb, u16_uctomb_aux, u16_uctomb,
13         u32_uctomb): Change type of last argument to ptrdiff_t.
14         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
15         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
16         * lib/unistr/u16-uctomb.c (u16_uctomb): Likewise.
17         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise.
18         * lib/unistr/u32-uctomb.c (u32_uctomb): Likewise.
20 2020-09-01  Paul Eggert  <eggert@cs.ucla.edu>
22         manywarnings: remove -Wchkp and -Wabi from C++ too
23         Suggested by Reuben Thomas in:
24         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00001.html
25         At some point somebody should merge the many other manywarnings-c.m4
26         changes into manywarnings-c++.m4 too, e.g.,
27         2020-07-02T00:00:51Z!eggert@cs.ucla.edu.
28         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
29         Remove -Wchkp, -Wabi.
31 2020-08-30  Bruno Haible  <bruno@clisp.org>
33         strerrorname_np: Add tests.
34         * tests/test-strerrorname_np.c: New file.
35         * modules/strerrorname_np-tests: New file.
37         strerrorname_np: New module.
38         * lib/string.in.h (strerrorname_np): New declaration.
39         * lib/strerrorname_np.c: New file.
40         * m4/strerrorname_np.m4: New file.
41         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether strerrorname_np
42         is declared.
43         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERRORNAME_NP,
44         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
45         * modules/string (Makefile.am): Substitute GNULIB_STRERRORNAME_NP,
46         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
47         * modules/strerrorname_np: New file.
48         * tests/test-string-c++.cc: Verify the signature of strerrorname_np.
49         * doc/glibc-functions/strerrorname_np.texi: Mention the new module and
50         the glibc 2.32 bug.
52 2020-08-27  Paul Eggert  <eggert@cs.ucla.edu>
54         perror, strerror_r: remove unportable tests
55         Problem reported by Florian Weimer in:
56         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00220.html
57         * tests/test-perror2.c (main):
58         * tests/test-strerror_r.c (main): Omit unportable tests.
60 2020-08-26  Bruno Haible  <bruno@clisp.org>
62         stdint, wchar, wctype-h: Change configure message.
63         * m4/wint_t.m4 (gt_TYPE_WINT_T): Say "checking whether wint_t is large
64         enough..." instead of "checking whether wint_t is too small...".
66 2020-08-26  Bruno Haible  <bruno@clisp.org>
68         time_rz: Change configure message.
69         * m4/time_rz.m4 (gl_TIME_RZ): Say "checking whether localtime works even
70         near extrema..." instead of "checking whether localtime loops forever
71         near extrema...".
73 2020-08-26  Bruno Haible  <bruno@clisp.org>
75         stdint: Change configure message.
76         * m4/stdint.m4 (gl_STDINT_H): Say "checking whether stdint.h works
77         without ISO C predefines..." instead of "checking whether stdint.h
78         predates C++11...".
80 2020-08-26  Bruno Haible  <bruno@clisp.org>
82         socketlib: Change configure message.
83         * m4/socketlib.m4 (gl_SOCKETLIB): Say "checking for WSAStartup..."
84         instead of "checking if we need to call WSAStartup in winsock2.h and
85         -lws2_32...".
87 2020-08-26  Bruno Haible  <bruno@clisp.org>
89         include_next: Change configure message.
90         * m4/include_next.m4 (gl_INCLUDE_NEXT): Say "checking whether source
91         code line length is unlimited..." instead of "checking whether system
92         header files limit the line length...".
94 2020-08-26  Bruno Haible  <bruno@clisp.org>
96         getcwd: Change configure message.
97         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Say "checking
98         whether getcwd succeeds when 4k < cwd_length < 16k..." instead of
99         "checking whether getcwd aborts when 4k < cwd_length < 16k...".
101 2020-08-26  Bruno Haible  <bruno@clisp.org>
103         chdir-long: Change configure message.
104         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Say "checking whether this
105         system supports file names of any length..." instead of "checking
106         whether this system has an arbitrary file name length limit...".
107         Set gl_cv_have_unlimited_file_name_length instead of
108         gl_cv_have_arbitrary_file_name_length_limit.
109         * modules/chdir-long (Depends-on, configure.ac): Update accordingly.
111 2020-08-26  Bruno Haible  <bruno@clisp.org>
113         ceill: Change configure message.
114         * m4/ceill.m4 (gl_FUNC_CEILL): Say "checking whether ceill() works..."
115         instead of "checking whether ceill() breaks with small values...".
117 2020-08-26  Bruno Haible  <bruno@clisp.org>
119         iconv: Change configure message.
120         * m4/iconv.m4 (AM_ICONV): Say "checking whether iconv is compatible
121         with its POSIX signature..." instead of "checking for iconv
122         declaration...". Remove K&R C support.
124 2020-08-26  Paul Eggert  <eggert@cs.ucla.edu>
126         getcwd: help the merge back into glibc
127         This patch was inspired by Adhemerval Zanella’s proposed glibc patches:
128         https://sourceware.org/pipermail/libc-alpha/2020-August/117294.html
129         The idea is to make it easier for Gnulib lib/getcwd.c to match
130         glibc io/getcwd-generic.c.
131         * lib/getcwd.c [_LIBC]: Do not include pathmax.h.
132         Include not-cancel.h.
133         (HAVE_OPENAT, D_INO_IN_DIRENT, HAVE_MSVC_INVALID_PARAMETER_HANDLER)
134         (HAVE_MINIMALLY_WORKING_GETCWD): Define for the _LIBC case.
135         (__getcwd, __lstat, __readdir) [!_LIBC]: Remove these macros.
136         (__close_nocancel_nostatus, __getcwd_generic, stat64, __fstat64)
137         (__fstatat64, __lstat64, __readdir64, __fdopendir, __openat)
138         (__rewinddir, __openat64, dirent64) [_LIBC]: New macros.
139         (__getcwd_generic): Rename from __getcwd.
140         Use the abovementioned macros for consistency with glibc.
141         (weak_alias): Remove.
143 2020-08-25  Bruno Haible  <bruno@clisp.org>
145         verify: Avoid warnings when assume(0) is used.
146         Reported by Mattias Engdegård <mattiase@acm.org> via Paul Eggert in
147         <https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg00838.html>.
148         * lib/verify.h (assume): Use __builtin_unreachable if the argument is
149         the constant 0.
150         * tests/test-verify.c (f): New function.
151         (state): New type.
152         (test_assume_expressions, test_assume_optimization,
153         test_assume_noreturn): New functions.
155 2020-08-25  Bruno Haible  <bruno@clisp.org>
157         fstrcmp: Clarification regarding NOTE_ORDERED.
158         * lib/fstrcmp.c (NOTE_ORDERED): Define to false.
160 2020-08-24  Paul Eggert  <eggert@cs.ucla.edu>
162         diffseq: new option NOTE_ORDERED
163         Problem reported by Phil Sainty <https://bugs.gnu.org/42931>.
164         * NEWS: Mention this.
165         * lib/diffseq.h (NOTE_ORDERED): New macro.
166         (IF_LINT2): Remove; no longer needed.
167         (compareseq): If (!NOTE_ORDERED), recurse on the smaller
168         subproblem and iterate to do the larger.
170 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
172         sys_types: let Autoconf 2.70 do pid_t
173         * m4/pid_t.m4 (AC_TYPE_PID_T): Redefine this Autoconf macro
174         only for Autoconf versions 2.69 and earlier, since 2.70
175         will be fixed.
177 2020-08-23  Bruno Haible  <bruno@clisp.org>
179         tests: Don't assume that pid_t fits in an 'int'.
180         * tests/test-nonblocking-pipe-main.c (main): Use type 'pid_t' instead
181         of 'int'.
182         * tests/test-nonblocking-socket-main.c (main): Likewise.
184         sys_types: Fix definition of pid_t on 64-bit MSVC.
185         * m4/pid_t.m4: New file.
186         * modules/sys_types (Files): Add it.
187         * modules/dirent (Files): Likewise.
188         * modules/fcntl-h (Files): Likewise.
189         * modules/sched (Files): Likewise.
190         * modules/signal-h (Files): Likewise.
191         * modules/spawn (Files): Likewise.
192         * modules/sys_stat (Files): Likewise.
193         * modules/sys_wait (Files): Likewise.
194         * modules/termios (Files): Likewise.
195         * modules/unistd (Files): Likewise.
197 2020-08-23  Bruno Haible  <bruno@clisp.org>
199         inttypes: Fix {PRI,SCN}*PTR on 32-bit native Windows (regr. 2020-07-21).
200         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Fix syntax error in test
201         program.
203 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
205         intprops: be consistent about +X vs X+0
206         * lib/intprops.h (_GL_SIGNED_INT_MAXIMUM): Simplify.
208         intprops: fix INT_MULTIPLY_WRAPV bit-field bug
209         The bug occurs when using INT_MULTIPLY_WRAPV (a, b, c) where B
210         is a bit-field, on older GCC or non-GCC compilers where we do
211         things ourselves instead of using __builtin_mul_overflow.
212         Without this fix, INT_MULTIPLY_WRAPV would not compile, due
213         to applying sizeof to a bit-field.
214         * lib/intprops.h (_GL_INT_MULTIPLY_RANGE_OVERFLOW):
215         Promote B before giving it to TYPE_WIDTH, in case B is a bit-field.
217 2020-08-23  Bruno Haible  <bruno@clisp.org>
219         supersede: Avoid a failure when writing to /dev/null in Solaris zones.
220         Reported by Jörg Sonnenberger <joerg@netbsd.org>
221         via Thomas Klausner <tk@giga.or.at> in
222         <https://pkgsrc.se/files.php?messageId=20200812233110.30230FB28@cvs.NetBSD.org>.
223         * lib/supersede.c (open_supersede): When opening an existing non-regular
224         file on Solaris, use O_CREAT although it should not be necessary.
226 2020-08-23  Bruno Haible  <bruno@clisp.org>
228         verify: Make assume work on bit field expressions (regr. 2020-08-22).
229         Reported by Benno Schulenberg <bensberg@telfort.nl> in
230         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00202.html>.
231         * lib/verify.h (assume): Use '_Bool' or 'bool' as type of the temporary
232         variable.
234 2020-08-23  Bruno Haible  <bruno@clisp.org>
236         libc-config: Improve comments.
237         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Explain why we
238         cannot use clang's __diagnose_if__ here.
240 2020-08-22  Bruno Haible  <bruno@clisp.org>
242         verify: Do use __builtin_assume on clang.
243         * lib/verify.h (assume): Use clang’s __builtin_assume, with a temporary
244         variable in a statement expression.
246 2020-08-22  Bruno Haible  <bruno@clisp.org>
248         sig2str: Add more signals.
249         * lib/sig2str.c (numname_table): Add SIGCPUFAIL, SIGTHR, SIGBREAK.
251 2020-08-22  Bruno Haible  <bruno@clisp.org>
253         doc: Update for OpenBSD 6.0, 6.7.
254         * doc/*/*.texi: Update.
255         * m4/printf.m4: Update comments and cross-compilation guesses.
256         * m4/ceill.m4: Update comments.
257         * m4/getcwd-abort-bug.m4: Likewise.
258         * m4/ilogb.m4: Likewise.
259         * m4/ilogbf.m4: Likewise.
260         * m4/langinfo_h.m4: Likewise.
261         * m4/modf.m4: Likewise.
262         * m4/modff.m4: Likewise.
264 2020-08-22  Bruno Haible  <bruno@clisp.org>
266         doc: Mention sig2str module.
267         * doc/glibc-functions/sigabbrev_np.texi: Mention the sig2str module.
269 2020-08-21  Bruno Haible  <bruno@clisp.org>
271         sigdescr_np: Add tests.
272         * tests/test-sigdescr_np.c: New file.
273         * modules/sigdescr_np-tests: New file.
275         sigdescr_np: New module.
276         * lib/string.in.h (sigdescr_np): New declaration.
277         * lib/sigdescr_np.c: New file.
278         * m4/sigdescr_np.m4: New file.
279         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigdescr_np is
280         declared.
281         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGDESCR_NP,
282         HAVE_SIGDESCR_NP.
283         * modules/string (Makefile.am): Substitute GNULIB_SIGDESCR_NP,
284         HAVE_SIGDESCR_NP.
285         * modules/sigdescr_np: New file.
286         * tests/test-string-c++.cc: Verify the signature of sigdescr_np.
287         * doc/glibc-functions/sigdescr_np.texi: Mention the new module.
289 2020-08-20  Bruno Haible  <bruno@clisp.org>
291         sigabbrev_np: Add tests.
292         * tests/test-sigabbrev_np.c: New file.
293         * modules/sigabbrev_np-tests: New file.
295         sigabbrev_np: New module.
296         * lib/string.in.h (sigabbrev_np): New declaration.
297         * lib/sigabbrev_np.c: New file.
298         * m4/sigabbrev_np.m4: New file.
299         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigabbrev_np is
300         declared.
301         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGABBREV_NP,
302         HAVE_SIGABBREV_NP.
303         * modules/string (Makefile.am): Substitute GNULIB_SIGABBREV_NP,
304         HAVE_SIGABBREV_NP.
305         * modules/sigabbrev_np: New file.
306         * tests/test-string-c++.cc: Verify the signature of sigabbrev_np.
307         * doc/glibc-functions/sigabbrev_np.texi: Mention the new module.
309 2020-08-20  Bruno Haible  <bruno@clisp.org>
311         stdalign tests: Skip test with AIX xlclang.
312         * tests/test-stdalign.c (main): Skip alignas tests with AIX xlclang.
314 2020-08-20  Bruno Haible  <bruno@clisp.org>
316         stdalign: Fix test failures on 32-bit platforms with clang versions < 8.
317         * lib/stdalign.in.h (_Alignof): For clang versions < 8, use the same
318         workaround as for GCC versions < 4.9.
320 2020-08-20  Siddhesh Poyarekar  <siddhesh@gotplt.org>
322         Sync up ProjectQuirks comments and documentation
323         Transform the ProjectQuirks comments into a docstring so that it can
324         be accessed from python as ProjectQuirks.__doc__ and harmonize
325         descriptions with the documentation.
326         * build-aux/vcstocl/projectquirks.py (ProjectQuirks):
327         Transform comments into a docstring.
328         * doc/vcs-to-changelog.texi: Sync up description with comments.
330         Split ProjectQuirks out into its own file
331         ProjectQuirks is used by external quirks files and importing it from
332         vcs-to-changelog.py is broken since it was renamed to use hyphens.  It
333         is cleaner to put it in its own file anyway.
334         * build-aux/vcstocl/projectquirks.py: A new file...
335         * build-aux/vcs-to-changelog.py (ProjectQuirks): ...to which
336         we move ProjectQuirks and import the file.
338 2020-08-19  Bruno Haible  <bruno@clisp.org>
340         uchar: Fix compilation errors in C++ mode on macOS.
341         * m4/uchar.m4 (gl_UCHAR_H): Require gl_ANSI_CXX if present. Include some
342         system header file before attempting to use 'char16_t' and 'char32_t'.
344 2020-08-19  Bruno Haible  <bruno@clisp.org>
346         ansi-c++-opt: Work around an autoconf macro reordering problem.
347         * modules/ansi-c++-opt: Require gl_ANSI_CXX already in the early
348         section.
350 2020-08-19  Bruno Haible  <bruno@clisp.org>
352         math C++ tests: Fix compilation error in with GCC 10.
353         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
354         hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder, rint,
355         round, trunc): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
357 2020-08-19  Bruno Haible  <bruno@clisp.org>
359         uchar: Fix compilation errors in C++ mode on OpenBSD.
360         * lib/uchar.in.h (char16_t, char32_t): Don't define in C++ mode if
361         CXX_HAS_UCHAR_TYPES is 1.
362         * m4/uchar.m4 (gl_UCHAR_H): Determine whether the C++ compiler
363         predefines char16_t and char32_t. Substitute CXX_HAS_UCHAR_TYPES.
364         * modules/uchar (Makefile.am): Substitute CXX_HAS_UCHAR_TYPES.
366 2020-08-19  Bruno Haible  <bruno@clisp.org>
368         Fix compilation errors in C++ mode on OpenBSD.
369         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on
370         OpenBSD with clang, use the approach without C preprocessor macro.
372 2020-08-18  Bruno Haible  <bruno@clisp.org>
374         uchar C++ tests: Fix side effect on math modules (regr. 2020-08-17).
375         * modules/uchar-c++-tests (configure.ac): Don't use AC_LANG_PUSH and
376         AC_LANG_POP.
378 2020-08-17  Paul Eggert  <eggert@cs.ucla.edu>
380         verify: avoid __built_assume on Clang
381         * lib/verify.h (assume): Do not use Clang’s __builtin_assume, as
382         Clang 9 incorrectly diagnoses arguments as having side effects
383         even when they do not.  I guess Clang 9 considers any function
384         call as if it had a side effect here.
386         libc-config: avoid Clang’s __diagnose_if__
387         * lib/cdefs.h (__warndecl, __warnattr, __errordecl):
388         For now, do not use __diagnose_if__ here, as this fails
389         on Fedora 31 with Clang 9.0.1, with diagnostic
390         "/usr/include/bits/stdio2.h:263:9: error: fgets called with bigger
391         size than length of destination buffer
392         [-Werror,-Wuser-defined-warnings]".  I guess Clang 9 warns even
393         for functions that are not called?
395         careadlinkat: speedup for GCC 10 with GCC_LINT
396         Inspired by a suggestion by Bruno Haible in:
397         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00155.html
398         * lib/careadlinkat.c (STACK_BUF_SIZE): New constant.
399         (readlink_stk): New function, with most of the old careadlinkat
400         contents and with a new STACK_BUF arg.  Inline it in GCC 10
401         if GCC_LINT.
402         (careadlinkat): Use the new function for everything but the
403         stack buffer.
405         * build-aux/gcc-warning.spec: Update comments.
407 2020-08-17  Bruno Haible  <bruno@clisp.org>
409         Assume autoconf >= 2.64.
410         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO_LIMIT always.
412 2020-08-17  Bruno Haible  <bruno@clisp.org>
414         Revert autoupdate's revert.
415         * config/srclist.txt: Mark regcomp.c as needing sync with glibc.
417 2020-08-17  Bruno Haible  <bruno@clisp.org>
419         uchar C++ tests: Fix build error on FreeBSD 12.
420         * modules/uchar-c++-tests (configure.ac): Test whether <cuchar> exists.
421         (Makefile.am): Don't include test-uchar-c++2.cc in the compilation if
422         <cuchar> does not exist.
424 2020-08-16  Paul Eggert  <eggert@cs.ucla.edu>
426         time_rz: remove unused functions
427         * lib/time_rz.c (isdst_differ, equal_tm): Remove; no longer used.
429         time_rz: fix issues with mktime_z failures
430         * lib/time_rz.c (mktime_z): Do not update *TM if revert_tz fails.
431         Use a cheaper tm_yday test for failed mktime.
433 2020-08-16  Bruno Haible  <bruno@clisp.org>
435         intprops test: Strengthen on clang.
436         * tests/test-intprops.c (VERIFY): Use verify_stmt.
438 2020-08-16  Bruno Haible  <bruno@clisp.org>
440         nstrftime: Guide inlining also on clang.
441         * lib/nstrftime.c (iso_week_days): Inline also on clang.
443 2020-08-16  Bruno Haible  <bruno@clisp.org>
445         intprops: Avoid bogus "warning: division by zero is undefined" on clang.
446         * lib/intprops.h (_GL__GENERIC_BOGUS): Define to 1 on clang.
448 2020-08-16  Bruno Haible  <bruno@clisp.org>
450         log2l: Disable MSVC workaround on clang.
451         * lib/log2l.c (log2l): On clang, use the expression 0.0L/0.0L.
453 2020-08-16  Bruno Haible  <bruno@clisp.org>
455         argp: Emit a warning also with clang.
456         * lib/argp-help.c (__argp_short_program_name): Use #warning also on
457         clang.
459 2020-08-16  Bruno Haible  <bruno@clisp.org>
461         libc-config: Enable __REDIRECT macro also on clang.
462         * lib/cdefs.h (__REDIRECT, __REDIRECT_NTH, __REDIRECT_NTHNL, __ASMNAME,
463         __ASMNAME2): Define on clang like on GCC.
465 2020-08-16  Bruno Haible  <bruno@clisp.org>
467         regex: Use initializer shorthand syntax also with clang.
468         * lib/regcomp.c (utf8_sb_map): Use the initializer shorthand syntax also
469         with clang.
471 2020-08-16  Bruno Haible  <bruno@clisp.org>
473         regex: Use space optimization also with clang.
474         * lib/regex_internal.h (re_token_t): Use a single byte for the type also
475         with clang.
477 2020-08-16  Bruno Haible  <bruno@clisp.org>
479         Use _Static_assert and static_assert primitives when present on clang.
480         * lib/cdefs.h (_Static_assert): Don't define as a macro on clang.
481         * lib/verify.h (_GL_HAVE__STATIC_ASSERT, _GL_HAVE__STATIC_ASSERT1,
482         _GL_HAVE_STATIC_ASSERT1): Define as appropriate on clang.
484 2020-08-16  Bruno Haible  <bruno@clisp.org>
486         Use 'throw ()' for optimization in C++ mode also on clang.
487         * lib/cdefs.h (__THROW): Define to 'throw ()' also on clang.
488         * lib/getopt-cdefs.in.h (__THROW): Likewise.
489         * lib/md5.h (__THROW): Likewise.
491 2020-08-16  Bruno Haible  <bruno@clisp.org>
493         absolute-header: Add support for clang.
494         * modules/absolute-header (Makefile.am): Include '__clang__' in the
495         HAVE_INCLUDE_NEXT expression.
497 2020-08-16  Bruno Haible  <bruno@clisp.org>
499         Fix "warning: implicitly declaring library function 'strcasecmp'".
500         * lib/argp-help.c: Include <strings.h>.
502 2020-08-16  Bruno Haible  <bruno@clisp.org>
504         stdio: Don't break attribute 'scanf' on clang.
505         * lib/stdio.in.h (scanf): Treat clang like GCC.
507 2020-08-16  Bruno Haible  <bruno@clisp.org>
509         Use __restrict also on clang.
510         * lib/argp.h (__restrict): Don't define as a macro on clang >= 3.
511         * lib/glob.in.h (_Restrict_): Use __restrict on clang >= 3.
512         * lib/unitypes.in.h (_UC_RESTRICT): Likewise.
514 2020-08-16  Bruno Haible  <bruno@clisp.org>
516         pthread-spin: Use GCC built-ins also on clang.
517         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
518         pthread_spin_trylock, pthread_spin_unlock): Use the newer GCC built-ins
519         also on clang.
521 2020-08-16  Bruno Haible  <bruno@clisp.org>
523         asyncsafe-spin tests: Update.
524         * tests/test-asyncsafe-spin2.c: Update to match the change in
525         lib/asyncsafe-spin.c from 2020-08-11.
527 2020-08-16  Bruno Haible  <bruno@clisp.org>
529         setenv: Use tree code also with clang.
530         * lib/setenv.c (USE_TSEARCH): Treat clang like GCC.
532 2020-08-16  Bruno Haible  <bruno@clisp.org>
534         math: Optimize signbit also on clang.
535         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Optimize also
536         on clang.
538 2020-08-16  Bruno Haible  <bruno@clisp.org>
540         avltreehash-list, rbtreehash-list: Optimize also on clang.
541         * lib/gl_anytreehash_list1.h (add_nodes_to_buckets): Use
542         __builtin_expect also on clang.
544 2020-08-16  Bruno Haible  <bruno@clisp.org>
546         Fix "warning: 'WSASocketA' is deprecated: Use WSASocketW() instead".
547         * lib/socket.c: Use WSASocketW, not WSASocketA.
549         Fix "warning: format specifies type 'unsigned long'".
550         * tests/test-nonblocking-writer.h (main_writer_loop): Cast dbgfprintf
551         argument to match the format directive.
553         Fix "warning: no case matching constant switch condition '0'".
554         * tests/test-fcntl.c (check_flags): Add a 'default' case.
556         Fix "warning: integer overflow in expression".
557         * tests/test-strtol.c (main): Use an 'unsigned long' expression to
558         remove a 'long' overflow.
560         Fix "warning: "getpagesize" redefined".
561         * tests/test-getcwd.c (getpagesize): Don't redefine if defined as a
562         macro.
564         Fix "warning: implicitly declaring library function 'strncasecmp'".
565         * lib/strptime.c: Include <strings.h>.
567         Fix "warning: 'snprintf' macro redefined".
568         * lib/strerror_r.c (snprintf): Undefine before redefining.
570         Fix "warning: address of array 'locale' will always evaluate to 'true'".
571         * lib/nl_langinfo.c (ctype_codeset): Remove redundant NULL test.
573         Fix "warning: '__stat64' macro redefined".
574         * lib/glob.c (__stat64): Undefine also on MSVC/clang.
576         Fix "warning: 'format' attribute argument not supported: rpl_printf".
577         * lib/stdio.in.h (printf): Treat clang like GCC.
579         Fix "warning: attribute declaration must precede definition" with clang.
580         * lib/math.in.h (acosl, asinl, atanl, ceill, cosl, expl, fabsf, fabsl,
581         floorl, fmodl, frexpf, frexpl, hypotf, hypotl, ldexpf, ldexpl, logl,
582         log10l, modfl, sinl, sqrtl, tanl): Disable _GL_CXXALIASWARN invocation
583         on non-glibc systems.
584         * lib/netdb.in.h (gai_strerror): Likewise.
585         * lib/stdio.in.h (snprintf, vfscanf, vscanf, vsnprintf): Likewise.
586         * lib/sys_stat.in.h (fstat): Likewise.
587         * lib/utime.in.h (utime): Likewise.
589         Fix undesired warnings.
590         * lib/sys_select.in.h: Disable all _GL_WARN_ON_USE invocations with
591         clang.
593 2020-08-16  Bruno Haible  <bruno@clisp.org>
595         C++ tests: Fix link errors on MSVC (regression from 2020-05-31).
596         * modules/stdio-c++-tests (Makefile.am): Link test-stdio-c++ with
597         $(LIB_GETRANDOM), needed for the rpl_tmpfile symbol.
598         * modules/stdlib-c++-tests (Makefile.am): Link test-stdlib-c++ with
599         $(LIB_GETRANDOM), needed for the mkdtemp and mkstemp symbols.
601 2020-08-16  Bruno Haible  <bruno@clisp.org>
603         Don't use Autoconf quadrigraphs.
604         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Use '#' instead of the corresponding
605         Autoconf quadrigraph.
606         * m4/free.m4 (gl_FUNC_FREE): Likewise.
607         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
608         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES,
609         _AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
610         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
611         * m4/math_h.m4 (gl_MATH_H): Likewise.
612         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
614 2020-08-16  Bruno Haible  <bruno@clisp.org>
616         Fix quoting of AC_LANG_PROGRAM arguments.
617         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Quote the AC_LANG_PROGRAM
618         arguments through [[...]].
619         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
620         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
621         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
622         * m4/ld-output-def.m4 (gl_LD_OUTPUT_DEF): Likewise.
623         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Likewise.
624         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
625         * m4/mountlist.m4 (gl_MOUNTLIST): Likewise.
626         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
627         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
628         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
629         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
630         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
631         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
633 2020-08-16  Bruno Haible  <bruno@clisp.org>
635         Assume autoconf >= 2.64.
636         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Set to 2.64.
637         * DEPENDENCIES: Require Autoconf 2.64 or newer.
638         * NEWS: Mention the changed requirement.
639         * m4/00gnulib.m4 (_m4_divert_diversion, AC_DEFUN_ONCE): Remove macros.
640         * m4/gnulib-common.m4 (AS_VAR_IF, AS_VAR_COPY): Remove macros.
641         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Quote pushdef'ed
642         variables.
643         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
644         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
645         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
646         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C), gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++),
647         gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): Define through AC_DEFUN.
648         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C), gl_MANYWARN_ALL_GCC(C++)):
649         Likewise.
650         * m4/iconv.m4 (AM_ICONV): Define through AC_DEFUN_ONCE directly.
651         * m4/libunistring.m4 (gl_LIBUNISTRING): Likewise.
652         * m4/configmake.m4: Update comment.
654 2020-08-16  Bruno Haible  <bruno@clisp.org>
656         sys_ioctl: Simplify.
657         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Remove confusing use of
658         AC_INCLUDES_DEFAULT.
660 2020-08-16  Bruno Haible  <bruno@clisp.org>
662         Fix quoting of AC_LANG_SOURCE arguments.
663         * m4/printf.m4 (gl_PRINTF_ENOMEM): Fix an m4 quoting bug in the
664         GL_NOCRASH expansion.
665         * m4/locale-ar.m4 (gt_LOCALE_AR): Simplify m4 quoting.
666         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
667         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
668         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
669         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
671 2020-08-15  Paul Eggert  <eggert@cs.ucla.edu>
673         nstrftime: be more predictable about errno
674         This aligns nstrftime better with draft POSIX 202x strftime.
675         * lib/nstrftime.c: Include errno.h.
676         (width_add, __strftime_internal): Set errno on failure,
677         and preserve it on success.  Check for mktime_z failure.
678         * modules/nstrftime (Depends-on): Add errno.
679         * modules/nstrftime-tests (Depends-on): Add atoll, intprops.
680         * tests/test-nstrftime.c: Include intprops.h, limits.h.
681         (errno_test): New test function.
682         (main): Call it.
684 2020-08-15  Bruno Haible  <bruno@clisp.org>
686         canonicalize: Fix a problem of the autoconf test on MSVC/clang.
687         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Remove undesired file
688         from dependency analysis first.
690 2020-08-15  Bruno Haible  <bruno@clisp.org>
692         Determine asm output option and filename suffix for MSVC/clang.
693         * m4/asm-underscore.m4 (gl_C_ASM): Distinguish clang from cl and
694         clang-cl.
696 2020-08-15  Bruno Haible  <bruno@clisp.org>
698         doc: Update for MSVC/clang.
699         * doc/*-functions/*printf.texi: Mention that MSVC/clang has two bugs
700         that MSVC 14 does not have.
702 2020-08-15  Bruno Haible  <bruno@clisp.org>
704         Revert autoupdate's revert.
705         * config/srclist.txt: Mark mktime.c as needing sync with glibc.
707 2020-08-15  Bruno Haible  <bruno@clisp.org>
709         frexpl: Fix configuration test result on MSVC.
710         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Avoid a division by a constant
711         zero.
713 2020-08-15  Bruno Haible  <bruno@clisp.org>
715         Support compiling without -loldnames on native Windows.
716         * m4/gnulib-common.m4 (GL_MDA_DEFINES, _GL_MDA_DEFINES): New macros.
717         * m4/chown.m4 (AC_FUNC_CHOWN): In the test programs, use GL_MDA_DEFINES.
718         (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
719         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
720         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
721         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
722         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Likewise.
723         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Likewise.
724         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
725         * m4/fcntl.m4 (gl_FUNC_FCNTL): Likewise.
726         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
727         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
728         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
729         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): Likewise.
730         * m4/freopen.m4 (gl_FUNC_FREOPEN): Likewise.
731         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
732         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
733         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
734         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL, gl_FUNC_GETCWD_SIGNATURE):
735         Likewise.
736         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Likewise.
737         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
738         * m4/lseek.m4 (gl_FUNC_LSEEK): Likewise.
739         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
740         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
741         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
742         * m4/open-slash.m4 (gl_OPEN_TRAILING_SLASH_BUG): Likewise.
743         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
744         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
745         * m4/pread.m4 (gl_FUNC_PREAD): Likewise.
746         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
747         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Likewise.
748         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
749         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
750         * m4/pwrite.m4 (gl_FUNC_PWRITE): Likewise.
751         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
752         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
753         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
754         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
755         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
756         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
757         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
758         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
759         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
760         * m4/utimens.m4 (gl_UTIMENS): Likewise.
761         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
762         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
763         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): On native Windows, don't
764         test for getcwd.
765         * m4/utime.m4 (gl_FUNC_UTIME): On native Windows, don't test for utime.
766         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): To test for wcsdup, use a test program
767         with GL_MDA_DEFINES.
768         * lib/c++defs.h (_GL_CXXALIAS_MDA): New macro.
769         * lib/fcntl.in.h (creat, open):  On native Windows, use the underscore-
770         prefixed symbol.
771         * lib/search.in.h (lfind, lsearch): Likewise.
772         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
773         Likewise.
774         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
775         * lib/string.in.h (memccpy, strdup): Likewise.
776         * lib/sys_stat.in.h (chmod, umask): Likewise.
777         * lib/time.in.h (tzset): Likewise.
778         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
779         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
780         read, rmdir, swab, unlink, write): Likewise.
781         * lib/utime.in.h (utime): Likewise.
782         * lib/wchar.in.h (wcsdup): Likewise.
783         * lib/math.in.h (j0, j1, jn, y0, y1, yn):  Likewise.
784         (isfinite, isinf, isnan, signbit): On native Windows, don't define as an
785         rpl_-prefixed macro.
786         * lib/canonicalize-lgpl.c (__getcwd): On native Windows, use _getcwd.
787         * lib/close.c (close_nothrow): On native Windows, use _close.
788         * lib/creat.c (orig_creat): On native Windows, use _creat.
789         * lib/dup.c (dup_nothrow): On native Windows, use _dup.
790         * lib/dup2.c (dup2_nothrow): Use _dup2.
791         * lib/fdopen.c (fdopen_nothrow): On native Windows, use _fdopen.
792         * lib/getcwd-lgpl.c: On native Windows, use _getcwd.
793         * lib/getcwd.c (getcwd_nothrow): Use _getcwd also on mingw.
794         * lib/open.c (orig_open): On native Windows, use _open.
795         * lib/read.c (read_nothrow): Use _read.
796         * lib/rmdir.c: On native Windows, use _rmdir.
797         * lib/unlink.c: On native Windows, use _unlink.
798         * lib/write.c (write_nothrow): Use _write.
799         * lib/sys_select.in.h (close): With clang, don't attach a warning on an
800         undefined symbol.
801         * lib/sys_socket.in.h (close): Likewise.
802         * lib/sys_time.in.h (close): Likewise.
803         * tests/test-spawn-pipe-child.c: On native Windows, use _fdopen.
805 2020-08-15  Bruno Haible  <bruno@clisp.org>
807         Fix "unknown pragma ignored" warnings with clang on native Windows.
808         * lib/cbrt.c: Don't use '#pragma fenv_access (off)' with clang.
809         * lib/cbrtf.c: Likewise.
810         * lib/ceil.c: Likewise.
811         * lib/floor.c: Likewise.
812         * lib/fma.c: Likewise.
813         * lib/fmod.c: Likewise.
814         * lib/rint.c: Likewise.
815         * lib/round.c: Likewise.
816         * lib/trunc.c: Likewise.
817         * tests/test-ceil2.c: Likewise.
818         * tests/test-ceilf2.c: Likewise.
819         * tests/test-floor2.c: Likewise.
820         * tests/test-floorf2.c: Likewise.
821         * tests/test-trunc2.c: Likewise.
822         * tests/test-truncf2.c: Likewise.
823         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
824         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
826 2020-08-15  Bruno Haible  <bruno@clisp.org>
828         Fix compilation errors in C++ mode with clang on native Windows.
829         * lib/pthread.in.h (pthread_*): Disable _GL_CXXALIASWARN invocation on
830         non-glibc systems.
831         * lib/sched.in.h (sched_yield): Likewise.
833 2020-08-14  Bruno Haible  <bruno@clisp.org>
835         stdnoreturn: Work around problem with MSVC/clang.
836         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On native Windows, include some
837         system header after <stdnoreturn.h>.
838         * doc/posix-headers/stdnoreturn.texi: Mention the issue.
840 2020-08-14  Bruno Haible  <bruno@clisp.org>
842         utime-h: Generate an utime.h file always.
843         * modules/utime-h (Makefile.am): Generate utime.h always.
844         * m4/utime_h.m4 (gl_UTIME_H): Don't set UTIME_H. Don't define
845         GL_GENERATE_UTIME_H.
847 2020-08-14  Bruno Haible  <bruno@clisp.org>
849         mktime, mktime-internal: Remove obsolete code.
850         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't #undef putenv.
852 2020-08-14  Bruno Haible  <bruno@clisp.org>
854         getcwd: Remove obsolete code.
855         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't #undef mkdir.
856         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
858 2020-08-14  Bruno Haible  <bruno@clisp.org>
860         tzset: Assume the function exists.
861         * lib/time.in.h (tzset): Assume HAVE_TZSET is 1.
862         * lib/tzset.c: Define rpl_tzset, not tzset. Assume HAVE_TZSET is 1.
863         * modules/tzset (configure.ac): Don't test HAVE_TZSET.
864         * m4/tzset.m4 (gl_FUNC_TZSET): Don't test for tzset. Don't set
865         HAVE_TZSET.
866         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Don't initialize HAVE_TZSET.
867         * modules/time (Makefile.am): Don't substitute HAVE_TZSET.
869         nstrftime: Assume tzset exists.
870         * lib/nstrftime.c (HAVE_TZSET): Remove macro.
871         (__strftime_internal): Test my_strftime, not HAVE_TZSET.
872         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Don't test for tzset.
874         mktime, mktime-internal: Assume tzset exists.
875         * lib/mktime.c (my_tzset): Assume HAVE_TZSET is 1.
876         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't test for tzset.
878 2020-08-14  Bruno Haible  <bruno@clisp.org>
880         strdup: Assume the function exists.
881         * m4/strdup.m4 (gl_FUNC_STRDUP, gl_FUNC_STRDUP_POSIX): Don't test
882         whether strdup exists.
883         * modules/strdup (Files): Remove lib/strdup.c.
884         (configure.ac): Don't compile strdup.c.
885         * modules/strdup-posix (Depends-on, configure.ac): Don't test
886         ac_cv_func_strdup.
887         * doc/posix-functions/strdup.texi: Update.
888         * lib/unistr/u8-strdup.c: Assume HAVE_STRDUP is 1.
889         * modules/unistr/u8-strdup (Files): Remove lib/unistr/u-strdup.h.
890         (Depends-on): Remove unistr/u8-strlen.
892 2020-08-13  Bruno Haible  <bruno@clisp.org>
894         sys_random: Work around an uClibc bug.
895         Reported by akater <nuclearspace@gmail.com>
896         via Stefan Kangas <stefan@marxist.se>
897         in <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42236>.
898         * lib/sys_random.in.h: On uClibc, include <stddef.h> first.
899         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Update comment.
900         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
901         * doc/glibc-headers/sys_random.texi: Mention the uClibc bug.
903 2020-08-12  Bruno Haible  <bruno@clisp.org>
905         Avoid implicit conversion from 'unsigned int' to 'int' in initializers.
906         Reported by Florian Weimer in
907         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00086.html>.
908         * lib/gen-uni-tables.c (output_predicate): Change the element type of
909         the level3 array to 'unsigned int'.
910         * lib/unictype/bitmap.h (bitmap_lookup): Access an 'unsigned int'.
911         * lib/unictype/categ_*.h: Regenerated.
912         * lib/unictype/ctype_*.h: Regenerated.
913         * lib/unictype/pr_*.h: Regenerated.
914         * lib/unictype/sy_*.h: Regenerated.
915         * lib/unicase/cased.h: Regenerated.
916         * lib/unicase/ignorable.h: Regenerated.
918 2020-08-12  Paul Eggert  <eggert@cs.ucla.edu>
920         stdint: port intptr_t to more-recent MinGW
921         Problem reported by Eli Zaretskii in <https://bugs.gnu.org/36597#106>.
922         * lib/stdint.in.h (intptr_t, uintptr_t): Do not define on MinGW,
923         even if _INTPTR_T_DEFINED and _UINTPTR_T_DEFINED are not defined.
924         Apparently those two macros were removed in mingwrt-3.22
925         dated 2016-07-14.
927 2020-08-12  Bruno Haible  <bruno@clisp.org>
929         thread-optim: Export function-like macros only.
930         Suggested by Paul Eggert.
931         * lib/thread-optim.h (gl_multithreaded): New macro.
932         (IF_MT_DECL, IF_MT): Remove macros.
933         * doc/multithread.texi (Multithreading Optimizations): Add a small
934         example.
935         * lib/fatal-signal.c: Update all uses.
936         * lib/clean-temp.c: Likewise.
937         * lib/localename.c: Likewise.
938         * modules/localename (Depends-on): Add stdbool.
940 2020-08-12  Bruno Haible  <bruno@clisp.org>
942         Revert autoupdate's revert.
943         * config/srclist.txt: Mark regex.h as needing sync with glibc.
945 2020-08-11  Bruno Haible  <bruno@clisp.org>
947         thread-optim: Fix a compiler warning.
948         * lib/thread-optim.h (IF_MT_DECL): Define differently.
950 2020-08-11  Bruno Haible  <bruno@clisp.org>
952         Use __restrict also on clang.
953         * lib/cdefs.h (__restrict): Don't define as a macro on clang.
954         (__restrict_arr): On clang, define like on GCC.
955         * lib/regex.h (_Restrict_): Use '__restrict' also on clang.
956         (_Restrict_arr_): Use _Restrict_ also on clang.
957         * lib/spawn.in.h (_Restrict_): Use '__restrict' also on clang.
958         (_Restrict_arr_): Use _Restrict_ also on clang.
960 2020-08-11  Bruno Haible  <bruno@clisp.org>
962         Use flexible array syntax also on clang.
963         * lib/cdefs.h (__flexarr, __glibc_c99_flexarr_available): For clang,
964         define like for GCC 3.
966 2020-08-11  Bruno Haible  <bruno@clisp.org>
968         fcntl: On native Windows, use _setmode, not setmode.
969         * lib/fcntl.c (dupfd): Use _setmode, not setmode.
970         * lib/binary-io.h: Update comment.
971         * tests/test-cloexec.c: Call set_binary_mode, not setmode.
972         * tests/test-dup2.c: Likewise.
973         * tests/test-dup-safer.c: Likewise.
974         * tests/test-fcntl.c: Likewise.
976 2020-08-11  Bruno Haible  <bruno@clisp.org>
978         execute, spawn-pipe: Use _spawnvpe, not spawnvpe.
979         * lib/execute.c (execute): Use _spawnvpe, not spawnvpe.
980         * lib/spawn-pipe.c (create_pipe): Likewise.
981         * tests/test-nonblocking-pipe-main.c (main): Likewise.
982         * tests/test-nonblocking-socket-main.c (main): Likewise.
983         * lib/wait-process.c: Update comment.
984         * doc/posix-functions/fork.texi: Update.
986 2020-08-11  Bruno Haible  <bruno@clisp.org>
988         asyncsafe-spin: Use GCC built-ins also on clang.
989         * lib/asyncsafe-spin.c (asyncsafe_spin_init, do_lock, do_unlock): Use
990         the newer GCC built-ins also on clang.
992 2020-08-11  Bruno Haible  <bruno@clisp.org>
994         Use expression statements also on clang.
995         * lib/cdefs.h (__extension__): Don't define to empty on clang.
996         * lib/obstack.h (__extension__): Likewise.
997         (obstack_object_size, obstack_room, obstack_make_room, obstack_empty_p,
998         obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
999         obstack_int_grow, obstack_ptr_grow_fast, obstack_int_grow_fast,
1000         obstack_blank, obstack_alloc, obstack_copy, obstack_copy0,
1001         obstack_finish, obstack_free): Enable as optimized macros also on clang.
1002         * lib/fpucw.h (fpucw_t etc.): Enable the definitions also on clang.
1004 2020-08-10  Bruno Haible  <bruno@clisp.org>
1006         Use many __attribute__s with clang.
1007         * m4/gnulib-common.m4 (_Noreturn): Use __attribute__ __noreturn__ also
1008         on clang.
1009         * lib/cdefs.h (__glibc_clang_has_attribute, __glibc_clang_has_builtin):
1010         New macros.
1011         (__THROW, __THROWNL, __NTH, __NTHNL): Use __attribute__ __nothrow__ also
1012         on clang.
1013         (__warndecl, __warnattr, __errordecl): Use __attribute__ __diagnose_if__
1014         also on older clang versions.
1015         (__attribute__): Don't define to empty on clang.
1016         (__attribute_malloc__): Use __attribute__ __malloc__ also on clang.
1017         (__attribute_pure__): Use __attribute__ __pure__ also on clang.
1018         (__attribute_const__): Use __attribute__ __const__ also on clang.
1019         (__attribute_used__): Use __attribute__ __used__ also on clang.
1020         (__attribute_noinline__): Use __attribute__ __noinline__ also on clang.
1021         (__attribute_deprecated__): Use __attribute__ __deprecated__ also on
1022         clang.
1023         (__attribute_format_arg__): Use __attribute__ __format_arg__ also on
1024         clang.
1025         (__attribute_format_strfmon__): Use __attribute__ __format__ __strfmon__
1026         also on clang.
1027         (__nonnull): Use __attribute__ __nonnull__ also on clang.
1028         (__attribute_warn_unused_result__): Use __attribute__
1029         __warn_unused_result__ also on clang.
1030         (__always_inline): Use __attribute__ __always_inline__ also on clang.
1031         (__attribute_artificial__): Use __attribute__ __artificial__ also on
1032         clang >= 7.
1033         (__glibc_unlikely, __glibc_likely): Use __builtin_expect also on older
1034         clang versions.
1035         (_Noreturn): Don't redefine on clang >= 3.5.
1036         * lib/arg-nonnull.h (_GL_ARG_NONNULL): Use __attribute__ __nonnull__
1037         also on clang.
1038         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Use __attribute__ __pure__ also
1039         on clang.
1040         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
1041         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
1042         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
1043         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Use __attribute__ __format__
1044         also on clang.
1045         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
1046         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Likewise.
1047         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST): Use __attribute__ __const__
1048         also on clang.
1049         (_UC_ATTRIBUTE_PURE): Use __attribute__ __pure__ also on clang.
1050         * lib/noreturn.h (_GL_NORETURN_FUNC, _GL_NORETURN_FUNCPTR): Use
1051         __attribute__ __noreturn__ also on clang.
1052         * lib/obstack.h (__attribute_noreturn__): Likewise.
1053         * lib/file-set.h (record_file): Use __attribute__ __nonnull__ also on
1054         clang.
1055         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__
1056         always_inline also on clang.
1057         * tests/test-printf-posix.c (func1, func2, func3, func4): Test also on
1058         clang.
1060 2020-08-10  Bruno Haible  <bruno@clisp.org>
1062         c-ldtoastr tests: Fix test failure.
1063         * tests/test-c-ldtoastr.c (main): Support platforms where 'long double'
1064         is longer than 'double'.
1066 2020-08-10  Bruno Haible  <bruno@clisp.org>
1068         Revert autoupdate's revert.
1069         * config/srclist.txt: Mark intprops.h as needing sync with glibc.
1071 2020-08-09  Bruno Haible  <bruno@clisp.org>
1073         string: Fix build error in C++ mode with clang (regression from today).
1074         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): Expect two rettype
1075         parameters, one for GCC, one for clang.
1076         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Update.
1077         * lib/string.in.h (strchr, strpbrk, strrchr): For clang, pass 'char *'
1078         as return type.
1080 2020-08-09  Bruno Haible  <bruno@clisp.org>
1082         ftruncate: Use _chsize, not chsize.
1083         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Test for _chsize, not chsize.
1084         * lib/ftruncate.c: Test HAVE__CHSIZE.
1085         (chsize_nothrow): Use _chsize, not chsize.
1087 2020-08-09  Bruno Haible  <bruno@clisp.org>
1089         Silence warnings from clang 10 with -Wimplicit-fallthrough.
1090         * lib/dfa.c (FALLTHROUGH): Use __attribute__ __fallthrough__ also on
1091         clang >= 10.
1092         * lib/fnmatch.c (FALLTHROUGH): Likewise.
1093         * lib/fts.c (FALLTHROUGH): Likewise.
1094         * tests/macros.h (FALLTHROUGH): Likewise.
1095         * lib/regex_internal.h (FALLTHROUGH): Likewise.
1096         * config/srclist.txt: Mark it as needing sync with glibc.
1098 2020-08-09  Bruno Haible  <bruno@clisp.org>
1100         stdbool tests: Enable the stricter tests also on clang.
1101         * tests/test-stdbool.c (ADDRESS_CHECK_OKAY): Define also on clang.
1102         (e): Enable the address-to-bool conversion test also on clang.
1104 2020-08-09  Bruno Haible  <bruno@clisp.org>
1106         count-one-bits: Use __builtin_popcount{,l,ll} on clang.
1107         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the GCC built-in.
1109 2020-08-09  Bruno Haible  <bruno@clisp.org>
1111         Use attribute __aligned__ with clang.
1112         * lib/stdalign.in.h (_Alignas): Treat clang like GCC.
1113         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS): Likewise.
1115 2020-08-09  Bruno Haible  <bruno@clisp.org>
1117         Use __alignof__ with clang.
1118         * m4/stddef_h.m4 (gl_STDDEF_H): Test the alignment of max_align_t also
1119         on clang.
1120         * lib/alignof.h (alignof_type): Use __alignof__ also on clang.
1121         * lib/stdalign.in.h (_Alignof): Don't activate the GCC workaround on
1122         clang.
1123         * lib/malloca.h (sa_alignof): Use __alignof__ also on clang.
1124         * lib/bitset/list.c (lbitset_elt_alloc): Use __alignof__ also on clang.
1125         * lib/bitset/table.c (tbitset_elt_alloc): Likewise.
1126         * tests/test-stddef.c: Very the behaviour of __alignof__ also on clang.
1128 2020-08-09  Bruno Haible  <bruno@clisp.org>
1130         ignore-value: Simplify on clang.
1131         * lib/ignore-value.h (ignore_value): With clang, no need to use the GCC
1132         workaround.
1134 2020-08-09  Bruno Haible  <bruno@clisp.org>
1136         Use __typeof__ with clang.
1137         * m4/stdint.m4 (gl_STDINT_H): Check for SIZE_MAX also on
1138         "clang -std=gnu99".
1139         * lib/intprops.h (_GL_HAVE___TYPEOF__): Define to 1 also on clang.
1140         * tests/test-stdint.c (verify_same_types): Enable the check also on
1141         clang.
1143 2020-08-09  Bruno Haible  <bruno@clisp.org>
1145         Add ability to emit user-defined warnings and errors with clang.
1146         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _GL_ATTRIBUTE_ERROR,
1147         _GL_ATTRIBUTE_WARNING using an attribute for clang.
1148         * lib/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_ATTRIBUTE,
1149         _GL_WARN_ON_USE_CXX): Define using an attribute for clang.
1150         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Define using an
1151         attribute for clang.
1153 2020-08-09  Bruno Haible  <bruno@clisp.org>
1155         intprops: Fix typo in comment.
1156         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P): Fix typo in comment.
1158 2020-08-09  Bruno Haible  <bruno@clisp.org>
1160         Use __builtin_signbit* with clang.
1161         * lib/math.in.h (signbit): Use __builtin_signbit{,f,l} also on clang.
1162         * m4/signbit.m4 (gl_SIGNBIT): Use __builtin_signbit{,f,l} also on clang.
1163         Set REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
1164         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
1165         REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
1166         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_BUILTINS,
1167         not REPLACE_SIGNBIT_USING_GCC.
1169 2020-08-09  Bruno Haible  <bruno@clisp.org>
1171         Use __builtin_isnan with clang.
1172         * lib/isnanf-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
1173         not __builtin_isnanf. Also on clang.
1174         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Use the GCC
1175         built-in __builtin_isnan, not __builtin_isnanf. Also on clang.
1176         * lib/isnand-nolibm.h (isnand): With clang, use the GCC built-in.
1177         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): With clang, use the GCC
1178         built-in.
1179         * lib/isnanl-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
1180         not __builtin_isnanl. Also on clang.
1181         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_FUNC_ISNANL_WORKS): Use the
1182         GCC built-in __builtin_isnan, not __builtin_isnanl. Also on clang.
1183         * lib/math.in.h (__has_builtin): Remove macro.
1184         (isnanf, gl_isnan_f): Use the GCC built-in __builtin_isnan, not
1185         __builtin_isnanf. Also on clang.
1186         (isnand, gl_isnan_d): With clang, use the GCC built-in.
1187         (isnanl, gl_isnan_l): Use the GCC built-in __builtin_isnan, not
1188         __builtin_isnanl. Also on clang.
1189         (isnan): Use the GCC built-in __builtin_isnan in all three cases. Also
1190         on clang.
1192 2020-08-09  Bruno Haible  <bruno@clisp.org>
1194         thread-optim: Fix logic error.
1195         Reported by Paul Eggert.
1196         * lib/thread-optim.h (IF_MT): Fix logic error.
1198 2020-08-08  Bruno Haible  <bruno@clisp.org>
1200         localename: Use module 'thread-optim'.
1201         * lib/localename.c: Include thread-optim.h.
1202         (struniq): Use IF_MT macro.
1203         * modules/localename (Depends-on): Add thread-optim.
1205         clean-temp: Use module 'thread-optim'.
1206         * lib/clean-temp.c: Include thread-optim.h.
1207         (register_temporary_file, unregister_temporary_file, create_temp_dir,
1208         register_temp_file, unregister_temp_file, register_temp_subdir,
1209         unregister_temp_subdir, cleanup_temp_dir_contents, register_fd,
1210         close_temp, fclose_variant_temp): Use IF_MT macro.
1211         * modules/clean-temp (Depends-on): Add thread-optim.
1213         fatal-signal: Use module 'thread-optim'.
1214         * lib/fatal-signal.c: Include thread-optim.h.
1215         (at_fatal_signal, block_fatal_signals, unblock_fatal_signals): Use IF_MT
1216         macro.
1217         * modules/fatal-signal (Depends-on): Add thread-optim.
1219 2020-08-08  Bruno Haible  <bruno@clisp.org>
1221         New module 'thread-optim'.
1222         * lib/thread-optim.h: New file.
1223         * modules/thread-optim: New file.
1224         * doc/multithread.texi (Multithreading Optimizations): New section.
1226 2020-08-07  Paul Eggert  <eggert@cs.ucla.edu>
1228         doc: more updates for glibc 2.32
1229         * doc/glibc-functions/lchmod.texi, doc/posix-functions/faccessat.texi:
1230         * doc/posix-functions/fchmodat.texi: Update.
1232 2020-08-07  Bruno Haible  <bruno@clisp.org>
1234         doc: Update for glibc 2.32.
1235         * doc/glibc-functions/__libc_single_threaded.texi: New file.
1236         * doc/glibc-functions/pthread_attr_getsigmask_np.texi: New file.
1237         * doc/glibc-functions/pthread_attr_setsigmask_np.texi: New file.
1238         * doc/glibc-functions/sigabbrev_np.texi: New file.
1239         * doc/glibc-functions/sigdescr_np.texi: New file.
1240         * doc/glibc-functions/strerrordesc_np.texi: New file.
1241         * doc/glibc-functions/strerrorname_np.texi: New file.
1242         * doc/gnulib.texi: Include them.
1243         (Glibc sys/single_threaded.h): New section.
1244         * doc/pastposix-functions/h_errno.texi: Update.
1245         * doc/posix-functions/*.texi: Likewise.
1246         * doc/glibc-functions/*.texi: Likewise.
1248 2020-08-07  Bruno Haible  <bruno@clisp.org>
1250         alloca: No need to compile alloca.c with clang.
1251         * lib/alloca.c: Skip all code with clang.
1253         Use __builtin_alloca with clang.
1254         * lib/alloca.in.h (alloca): Define as __builtin_alloca on clang.
1256 2020-08-06  Bruno Haible  <bruno@clisp.org>
1258         Use __builtin_assume with clang.
1259         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): New macro.
1260         (assume): Use __builtin_assume when available.
1262 2020-08-06  Paul Eggert  <eggert@cs.ucla.edu>
1264         libgmp: add <gmp/gmp.h> support
1265         * m4/libgmp.m4 (gl_LIBGMP):
1266         * modules/libgmp (configure.ac, Makefile.am):
1267         Support platforms requiring ‘#include <gmp/gmp.h>’ instead of
1268         ‘#include <gmp.h>’.
1270 2020-08-06  Bruno Haible  <bruno@clisp.org>
1272         Consider that clang defines __OPTIMIZE__ like GCC does.
1273         * lib/streq.h: Define the inline functions also on clang.
1274         * lib/c-strcaseeq.h: Likewise.
1275         * lib/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't enable
1276         the GCC workaround to clang.
1278 2020-08-06  Bruno Haible  <bruno@clisp.org>
1280         safe-alloc: Remove unused code.
1281         * lib/safe-alloc.h (__GNUC_PREREQ): Remove macro.
1283 2020-08-06  Bruno Haible  <bruno@clisp.org>
1285         Use __builtin_expect with clang everywhere.
1286         * lib/cdefs.h (__glibc_unlikely, __glibc_likely): Use the GCC built-in
1287         also on clang.
1289 2020-08-05  Bruno Haible  <bruno@clisp.org>
1291         Use __builtin_ctz{,l,ll} and __builtin_ffs{,l,ll} with clang everywhere.
1292         * lib/count-trailing-zeros.h (COUNT_TRAILING_ZEROS): Use the GCC
1293         built-in also on clang.
1294         * lib/ffs.c: With clang, use the GCC built-in, not <intrin.h>.
1295         * lib/ffsl.h: Likewise. Assume GCC_BUILTIN is defined.
1297 2020-08-05  Bruno Haible  <bruno@clisp.org>
1299         Use __builtin_clz{,l,ll} with clang, also on Windows.
1300         * lib/integer_length.c: With clang, use the GCC built-in, not
1301         <intrin.h>.
1302         * lib/integer_length_l.c: Likewise.
1303         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS): Use the GCC built-in
1304         also on clang.
1305         * lib/vasnprintf.c (divide): Likewise.
1307 2020-08-04  Paul Eggert  <eggert@cs.ucla.edu>
1309         Update srclist.txt as per recent glibc changes
1310         * config/srclist.txt: Uncomment lines to reflect recent merges
1311         from Gnulib to glibc.
1313 2020-08-03  Bruno Haible  <bruno@clisp.org>
1315         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
1316         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Use m4_if instead of ifelse.
1318 2020-08-03  Bruno Haible  <bruno@clisp.org>
1320         integer_length_ll: Optimize for MSVC in 64-bit mode.
1321         * lib/integer_length_l.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
1322         (FUNC): On MSVC, use MSVC_BUILTIN if defined.
1324 2020-08-03  Bruno Haible  <bruno@clisp.org>
1326         integer_length_ll: Optimize for MSVC in 32-bit mode.
1327         * lib/integer_length_l.c: Include <intrin.h>.
1328         (integer_length): Define as inline function, like in
1329         lib/integer_length.c.
1331 2020-08-03  Bruno Haible  <bruno@clisp.org>
1333         integer_length: Optimize for MSVC.
1334         * lib/integer_length.c: Include <intrin.h>.
1335         (integer_length): With MSVC, use the _BitScanReverse built-in.
1337 2020-08-03  Bruno Haible  <bruno@clisp.org>
1339         ffsll: Optimize for MSVC in 64-bit mode.
1340         * lib/ffsl.h (FUNC): On MSVC, use MSVC_BUILTIN if defined.
1341         * lib/ffsll.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
1342         * lib/ffsl.c (MSVC_BUILTIN): Define for MSVC.
1344 2020-08-03  Bruno Haible  <bruno@clisp.org>
1346         ffsll: Optimize for MSVC in 32-bit mode.
1347         * lib/ffsl.h: Include <intrin.h>.
1348         (ffs): Define as inline function, like in lib/ffs.c.
1350 2020-08-03  Bruno Haible  <bruno@clisp.org>
1352         ffs: Optimize for MSVC.
1353         * lib/ffs.c: Include <intrin.h>.
1354         (ffs): With MSVC, use the _BitScanForward built-in.
1356 2020-08-03  Bruno Haible  <bruno@clisp.org>
1358         sigprocmask: Try to avoid breakage for people who use an Autoconf cache.
1359         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Change the name of the cache
1360         variable.
1362 2020-08-03  Harald van Dijk  <harald@gigawatt.nl>  (tiny change)
1364         fopen: Avoid undesired interactions with glibc headers.
1365         * lib/fopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this instead of
1366         __need_FILE, as the latter does not work with glibc.
1368 2020-08-02  Paul Eggert  <eggert@cs.ucla.edu>
1370         fcntl: document some F_SETLK errno variations
1371         * doc/posix-functions/fcntl.texi (fcntl): Document
1372         OpenIndiana, GNU/Linux, FreeBSD on NFS files.
1374 2020-08-02  Bruno Haible  <bruno@clisp.org>
1376         oset: Add an 'iterator_atleast' operation.
1377         * lib/gl_array_oset.c (gl_array_indexof_atleast): New function,
1378         extracted from gl_array_search_atleast.
1379         (gl_array_search_atleast): Use it.
1380         (gl_array_iterator_atleast): New function.
1381         (gl_array_oset_implementation): Use it.
1382         * lib/gl_anytree_oset.h (gl_tree_iterator_atleast): New function.
1383         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Use it.
1384         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Likewise.
1385         * lib/gl_oset.h (struct gl_oset_implementation): Add 'iterator_atleast'
1386         member.
1387         (gl_oset_iterator_atleast): New function.
1388         * lib/gl_oset.hh (gl_OSet): Add 'begin_atleast' member.
1389         (gl_OSet::iterator): Add another auxiliary constructor.
1390         * tests/test-array_oset.c (is_at_least, gl_sortedlist_indexof_atleast):
1391         New functions.
1392         (main): Test also gl_oset_iterator_atleast.
1393         * tests/test-avltree_oset.c (is_at_least): New function.
1394         (main): Test also gl_oset_iterator_atleast.
1395         * tests/test-rbtree_oset.c (is_at_least): New function.
1396         (main): Test also gl_oset_iterator_atleast.
1397         * tests/test-oset-c++.cc (is_at_most): New function.
1398         (main): Test also gl_OSet::begin_atleast.
1400 2020-08-02  Bruno Haible  <bruno@clisp.org>
1402         oset-c++, omap-c++: Remove restriction for search_atleast method.
1403         * lib/gl_oset.hh (gl_OSet::search_atleast): Allow the threshold to be of
1404         a different type than the element.
1405         * lib/gl_omap.hh (gl_OMap::search_atleast): Allow the threshold to be of
1406         a different type than the key.
1408 2020-08-01  Paul Eggert  <eggert@cs.ucla.edu>
1410         gnumakefile: say ‘$(MAKE)’ not ‘make’
1411         * top/GNUmakefile (abort-due-to-no-makefile):
1412         Prefer ‘$(MAKE)’ to ‘make’ in a diagnostic.
1413         This change is backported from Autoconf.
1415 2020-08-01  Bruno Haible  <bruno@clisp.org>
1417         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
1418         * m4/autobuild.m4 (AB_INIT): Use m4_if instead of ifelse.
1419         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
1420         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
1421         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
1422         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Likewise.
1424 2020-08-01  Bruno Haible  <bruno@clisp.org>
1426         libtextstyle-optional: Update tests.
1427         * modules/libtextstyle-optional-tests (configure.ac): Invoke
1428         gl_LIBTEXTSTYLE_OPTIONAL.
1430 2020-08-01  Bruno Haible  <bruno@clisp.org>
1432         parse-datetime: Fix wrong #line statements.
1433         * modules/parse-datetime (Makefile.am): Correct #line statements also in
1434         parse-datetime-gen.h.
1436 2020-08-01  Bruno Haible  <bruno@clisp.org>
1438         libtextstyle[-optional]: Allow requesting a minimum version.
1439         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Allow an optional argument.
1440         (gl_LIBTEXTSTYLE_NEWEST_VERSION, gl_LIBTEXTSTYLE_INITIALIZE,
1441         gl_LIBTEXTSTYLE_SEARCH): New macros.
1442         * modules/libtextstyle (configure.ac): Don't invoke gl_LIBTEXTSTYLE.
1443         * m4/libtextstyle-optional.m4 (gl_LIBTEXTSTYLE_OPTIONAL): Allow an
1444         optional argument. Invoke, not require, gl_LIBTEXTSTYLE.
1445         * modules/libtextstyle-optional (configure.ac): Don't invoke
1446         gl_LIBTEXTSTYLE_OPTIONAL.
1447         * NEWS: Mention the changes.
1449 2020-07-31  Bruno Haible  <bruno@clisp.org>
1451         _GL_CMP: Improve documentation.
1452         Reported by Paul Eggert in
1453         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00188.html>.
1454         * m4/gnulib-common.m4 (gl_COMMON_BODY): Clarify what arguments can be
1455         passed.
1457 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
1459         largefile: sync with Autoconf master
1460         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
1461         Avoid undefined behavior on platforms where off_t is 32 bits.
1462         See: https://bugs.debian.org/742780
1464         alloca: sync with Autoconf master
1465         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
1466         Do not define if Autoconf 2.70 or later, since Autoconf master
1467         now matches us.
1469 2020-07-30  Bruno Haible  <bruno@clisp.org>
1471         unicodeio: Add comment.
1472         * lib/unicodeio.c (unicode_to_mb): Clarify why the code distinguishes
1473         different iconv behaviours.
1475 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
1477         Work around some Oracle Studio attribute bugs
1478         These were discovered when building bleeding-edge Emacs with
1479         Oracle Studio.
1480         * m4/gnulib-common.m4 (_GL_ATTRIBUTE_COLD, _GL_ATTRIBUTE_MAY_ALIAS):
1481         Port to Oracle Studio 12.6, which mishandles __attribute__
1482         ((__cold__)) and __attribute__ ((__may_alias__)) even though
1483         __has_attribute says they work.
1485 2020-07-29  Bruno Haible  <bruno@clisp.org>
1487         unicodeio: Fix wrong result on musl libc.
1488         Reported by A. Wilcox <awilfox@adelielinux.org> in
1489         <https://www.openwall.com/lists/musl/2020/07/29/2>.
1490         * lib/unicodeio.c (unicode_to_mb): Handle asterisk fallback characters
1491         on musl libc.
1492         * m4/unicodeio.m4 (gl_UNICODEIO): Invoke gl_MUSL_LIBC.
1493         * modules/unicodeio (Files): Add m4/musl.m4.
1495 2020-07-29  Paul Eggert  <eggert@cs.ucla.edu>
1497         fsusage, regex, stat-size: remove Cray support
1498         As near as I can make out this is actually support for UNICOS/mp,
1499         last released 2005, and Cray hasn’t supported that for years.
1500         * config/srclist.txt: Comment out regex.h for now.
1501         * lib/fsusage.c (get_fs_usage):
1502         * lib/regex.h (re_comp, re_exec):
1503         * lib/stat-size.h (ST_NBLOCKSIZE):
1504         Don’t worry about _CRAY.
1506 2020-07-29  Bruno Haible  <bruno@clisp.org>
1508         parse-datetime: Fix compilation error with bison 3.7.
1509         * modules/parse-datetime (Makefile.am): Create a generated header file
1510         parse-datetime-gen.h in the source directory. Correct #include and
1511         #line statements during preprocessing.
1513 2020-07-28  Bruno Haible  <bruno@clisp.org>
1515         fopen-gnu: Create files correctly (regression from 2020-05-24).
1516         * lib/fopen.c (rpl_open): Pass a third argument to open().
1518 2020-07-27  Paul Eggert  <eggert@cs.ucla.edu>
1520         xalloc-die: don’t depend on xalloc
1521         This removes a circular dependency, as xalloc depends on xalloc-die.
1522         * modules/xalloc-die (Files): Add lib/xalloc.h.
1523         (Depends-on): Remove xalloc.
1524         Add extern-inline, stdint, xalloc-oversized (this is for xalloc.h).
1526         dfa-tests: port to MSVC
1527         Problem reported by Gisle Vanem in:
1528         https://lists.gnu.org/r/bug-gnulib/2020-07/msg00159.html
1529         Also, remove an unnecessary dependency on getprogname.
1530         * modules/dfa-tests (Depends-on): Remove getprogname.
1531         * tests/test-dfa-match-aux.c: Do not include getprogname.h.
1532         (exit_status): New static var.
1533         (dfawarn): Set it instead of exiting.
1534         Do not declare as _Noreturn, to pacify MSVC.
1535         (main): Return exit_status.
1537 2020-07-26  Paul Eggert  <eggert@cs.ucla.edu>
1539         argz: pacify MSVC
1540         * lib/argz.in.h: Avoid "*/*" to pacify MSVC.
1541         Problem reported by Gisle Vanem.
1543         libgmp: remove dependency on havelib
1544         * m4/libgmp.m4 (gl_LIBGMP): If gl_HAVE_MODULE_HAVELIB is not defined,
1545         use the more-traditional AC_SEARCH_LIBS approach.
1546         This should work better with GNU Emacs configuration,
1547         which uses pkg-config instead of a havelib-style approach.
1548         * modules/havelib (gl_HAVE_MODULE_HAVELIB): New witness macro.
1549         * modules/libgmp (Depends-on): Remove havelib.
1551         libgmp: remove HAVE_GMP, LIB_GMP
1552         * m4/libgmp.m4 (gl_LIBGMP): Do not define HAVE_GMP and LIB_GMP, as
1553         they’re redundant.  I’ll adjust GNU Coreutils accordingly.
1555 2020-07-26  Bruno Haible  <bruno@clisp.org>
1557         inttypes: Remove support for AIX 4.
1558         * lib/inttypes.in.h: Assume that PRI_MACROS_BROKEN is 0.
1559         * m4/inttypes-pri.m4: Remove file.
1560         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Don't require gt_INTTYPES_PRI.
1561         (gl_INTTYPES_H_DEFAULTS): Don't initialize PRI_MACROS_BROKEN.
1562         * modules/inttypes-incomplete (Makefile.am): Don't substitute
1563         PRI_MACROS_BROKEN.
1564         * modules/inttypes (Files): Remove m4/inttypes-pri.m4.
1566 2020-07-26  Bruno Haible  <bruno@clisp.org>
1568         gettimeofday: Remove workaround for Mac OS X 10.0.
1569         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Remove macro.
1570         (gl_FUNC_GETTIMEOFDAY): Don't invoke it.
1571         * lib/gettimeofday.c: Don't include localtime-buffer.h.
1572         (gettimeofday): Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1573         * lib/localtime.c: Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1574         * modules/gettimeofday (Depends-on): Remove localtime-buffer.
1575         * modules/localtime-buffer: Remove file.
1576         * lib/localtime-buffer.h: Remove file.
1577         * lib/localtime-buffer.c: Remove file.
1578         * m4/localtime-buffer.m4: Remove file.
1579         * MODULES.html.sh (Date and time <time.h>): Remove localtime-buffer.
1581 2020-07-26  Bruno Haible  <bruno@clisp.org>
1583         tzset: Remove workaround for Solaris 2.6.
1584         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Remove macro.
1585         (gl_FUNC_TZSET): Don't invoke it. Don't define TZSET_CLOBBERS_LOCALTIME.
1586         Don't require gl_LOCALTIME_BUFFER_DEFAULTS.
1587         * lib/localtime-buffer.h: Don't test TZSET_CLOBBERS_LOCALTIME.
1588         * lib/localtime-buffer.c: Likewise.
1589         * lib/localtime.c: Likewise.
1590         * lib/tzset.c: Don't include localtime-buffer.h.
1591         (tzset): Don't test TZSET_CLOBBERS_LOCALTIME.
1592         * lib/nstrftime.c (__strftime_internal): Assume HAVE_RUN_TZSET_TEST
1593         is 1.
1594         * modules/tzset (Depends-on): Remove localtime-buffer.
1596 2020-07-26  Bruno Haible  <bruno@clisp.org>
1598         expl: Simplify autoconf test.
1599         * m4/expl.m4 (gl_FUNC_EXPL): Merge the "checking whether expl() breaks
1600         with small values..." test into the "checking whether expl works..."
1601         test.
1603 2020-07-26  Bruno Haible  <bruno@clisp.org>
1605         alloca: Remove Cray-2 and Cray Y-MP support.
1606         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Don't define CRAY_STACKSEG_END.
1607         Enable also on Autoconf >= 2.69.
1608         * lib/alloca.c (ADDRESS_FUNCTION, struct stack_control_header,
1609         struct stack_segment_linkage, struct stk_stat, struct stk_trailer,
1610         i00afunc): Remove.
1612 2020-07-25  Bruno Haible  <bruno@clisp.org>
1614         multiarch: Prepare for x86_64+arm64 universal binaries in macOS 11.
1615         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the ARM architectures.
1617 2020-07-25  Bruno Haible  <bruno@clisp.org>
1619         sigprocmask: Small autoconf macro improvement.
1620         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Make it possible for the
1621         user to override the value of gl_cv_func_sigprocmask.
1622         * m4/gnulib-common.m4 (gl_SILENT): New macro.
1624 2020-07-25  Bruno Haible  <bruno@clisp.org>
1626         Small autoconf macro improvements.
1627         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Make it possible for the user to
1628         override the value of gl_cv_func_working_mktime.
1629         * m4/multiarch.m4 (gl_MULTIARCH): Show a line "checking whether the
1630         compiler produces multi-arch binaries..." in the configure output.
1631         * m4/size_max.m4 (gl_SIZE_MAX): When not found, say "no".
1632         * m4/parse-datetime.m4 (gl_C_COMPOUND_LITERALS): Improve indentation.
1634 2020-07-25  Bruno Haible  <bruno@clisp.org>
1636         doc: Update for NetBSD 7.1, 8.0, 9.0.
1637         * doc/*/*.texi: Update.
1638         * m4/exp2l.m4: Update comments.
1639         * m4/expl.m4: Likewise.
1640         * m4/ilogb.m4: Likewise.
1641         * m4/ilogbf.m4: Likewise.
1642         * m4/log10l.m4: Likewise.
1643         * m4/logl.m4: Likewise.
1644         * m4/printf.m4: Likewise.
1645         * m4/rintl.m4: Likewise.
1646         * m4/wcwidth.m4: Likewise.
1648 2020-07-24  Bruno Haible  <bruno@clisp.org>
1650         doc: Update for Mac OS X 10.13.
1651         * doc/*/*.texi: Update.
1652         * m4/expm1l.m4: Update comments.
1653         * m4/getgroups.m4: Likewise.
1654         * m4/getlogin_r.m4: Likewise.
1655         * m4/linkat.m4: Likewise.
1656         * m4/printf.m4: Likewise.
1658 2020-07-24  Bruno Haible  <bruno@clisp.org>
1660         doc: Update for Cygwin 2.9.0.
1661         * doc/*/*.texi: Update.
1663 2020-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1665         parse-datetime: modernize doc
1666         * doc/parse-datetime.texi: Use more-current examples.
1667         Don’t lead with 32-bit time_t, as it’s on its way out.
1668         Capitalize “Epoch” to be consistent with POSIX.
1670         timespec: remove dependence on ‘verify’
1671         * lib/timespec.h: Do not include verify.h; no longer needed.
1672         * modules/timespec (Depends-on): Remove ‘verify’.
1674         Optimize a few more three-valued comparisons
1675         * lib/timespec.h (timespec_cmp, timespec_sign):
1676         * lib/utimecmp.c (utimecmpat):
1677         Avoid conditional branches by using _GL_CMP.
1679         Fix _GL_CMP parenthesization typo
1680         * m4/gnulib-common.m4 (_GL_CMP): Properly parenthesize.
1682 2020-07-24  Bruno Haible  <bruno@clisp.org>
1684         dfa: Revert breaking gawk.
1685         Reported by Arnold Robbins <arnold@skeeve.com>.
1686         * lib/dfa.c (compare): Don't reference the _GL_CMP macro.
1688 2020-07-23  Bruno Haible  <bruno@clisp.org>
1690         Optimize three-valued comparison between integers.
1691         (a > b ? 1 : a < b ? -1 : 0) is the same as (a > b) - (a < b).
1692         * m4/gnulib-common.m4 (gl_COMMON): Define _GL_CMP.
1693         * lib/c-strcasecmp.c (c_strcasecmp): Use _GL_CMP.
1694         * lib/c-strncasecmp.c (c_strncasecmp): Likewise.
1695         * lib/dfa.c (compare): Likewise.
1696         * lib/fts.c (fts_compare_ino): Likewise.
1697         * lib/mbmemcasecmp.c (mbmemcasecmp): Likewise.
1698         * lib/mbscasecmp.c (mbscasecmp): Likewise.
1699         * lib/mbsncasecmp.c (mbsncasecmp): Likewise.
1700         * lib/memcasecmp.c (memcasecmp): Likewise.
1701         * lib/memcmp2.c (memcmp2): Likewise.
1702         * lib/savedir.c (direntry_cmp_inode): Likewise.
1703         * lib/strcasecmp.c (strcasecmp): Likewise.
1704         * lib/strncasecmp.c (strncasecmp): Likewise.
1705         * lib/unistr/u-cmp2.h (FUNC): Likewise.
1707 2020-07-23  Bruno Haible  <bruno@clisp.org>
1709         lchmod: Use /proc on Cygwin.
1710         * lib/lchmod.c (lchmod): Use /proc on Cygwin.
1712 2020-07-23  Ken Brown  <kbrown@cornell.edu>
1714         fchmodat: Use /proc on Cygwin
1715         * lib/fchmodat.c (fchmodat): Use /proc on Cygwin.
1717 2020-07-21  Bruno Haible  <bruno@clisp.org>
1719         aligned-malloc: Optionally use aligned_alloc.
1720         * lib/aligned-malloc.h: Verify the alignment.
1721         (aligned_malloc): Use aligned_alloc as an alternative.
1722         * modules/aligned-malloc (configure.ac): Test for aligned_alloc.
1723         * doc/posix-functions/aligned_alloc.texi: Mention the modules
1724         'aligned-malloc' and 'pagealign_alloc'.
1726 2020-07-21  Bruno Haible  <bruno@clisp.org>
1728         aligned-malloc: Add tests.
1729         * tests/test-aligned-malloc.c: New file.
1730         * modules/aligned-malloc-tests: New file.
1732         aligned-malloc: New module.
1733         * lib/aligned-malloc.h: New file.
1734         * m4/malloc-align.m4: New file.
1735         * modules/aligned-malloc: New file.
1736         * doc/posix-functions/posix_memalign.texi: Mention the new module.
1737         * doc/glibc-functions/memalign.texi: Likewise.
1739 2020-07-21  Bruno Haible  <bruno@clisp.org>
1741         inttypes: Fix PRI*PTR and SCN*PTR on 64-bit native Windows.
1742         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): On 64-bit native Windows, make
1743         sure PRIPTR_PREFIX is defined to "ll", not "l".
1745 2020-07-21  Bruno Haible  <bruno@clisp.org>
1747         printf-posix: Make an autoconf test more future-proof.
1748         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): Include <inttypes.h> before
1749         using uintptr_t.
1751 2020-07-20  Bruno Haible  <bruno@clisp.org>
1753         list, oset, omap: Relicense some of the container modules under LGPLv2+.
1754         * modules/list (License): Change to LGPLv2+.
1755         * modules/array-list (License): Likewise.
1756         * modules/carray-list (License): Likewise.
1757         * modules/linked-list (License): Likewise.
1758         * modules/avltree-list (License): Likewise.
1759         * modules/rbtree-list (License): Likewise.
1760         * modules/oset (License): Likewise.
1761         * modules/array-oset (License): Likewise.
1762         * modules/avltree-oset (License): Likewise.
1763         * modules/rbtree-oset (License): Likewise.
1764         * modules/omap (License): Likewise.
1765         * modules/array-omap (License): Likewise.
1766         * modules/avltree-omap (License): Likewise.
1767         * modules/rbtree-omap (License): Likewise.
1769 2020-07-20  Bruno Haible  <bruno@clisp.org>
1771         oset: Add an 'update' operation.
1772         * lib/gl_array_oset.c (gl_array_update): New function.
1773         (gl_array_oset_implementation): Use it.
1774         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
1775         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
1776         * lib/gl_avltree_ordered.h (gl_tree_add_node_before): New function,
1777         extracted from gl_tree_nx_add_before.
1778         (gl_tree_nx_add_before): Invoke it.
1779         (gl_tree_add_node_after): New function, extracted from
1780         gl_tree_nx_add_after.
1781         (gl_tree_nx_add_after): Invoke it.
1782         (gl_tree_remove_node_no_free): New function, extracted from
1783         gl_tree_remove_node.
1784         (gl_tree_remove_node): Invoke it.
1785         * lib/gl_rbtree_ordered.h (gl_tree_add_node_before): New function,
1786         extracted from gl_tree_nx_add_before.
1787         (gl_tree_nx_add_before): Invoke it.
1788         (gl_tree_add_node_after): New function, extracted from
1789         gl_tree_nx_add_after.
1790         (gl_tree_nx_add_after): Invoke it.
1791         (gl_tree_remove_node_no_free): New function, extracted from
1792         gl_tree_remove_node.
1793         (gl_tree_remove_node): Invoke it.
1794         * lib/gl_anytree_oset.h (gl_tree_next_node): New function, extracted
1795         from gl_tree_iterator_next.
1796         (gl_tree_iterator_next): Invoke it.
1797         (gl_tree_prev_node, gl_tree_update): New functions.
1798         * lib/gl_avltree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
1799         (gl_avltree_oset_implementation): Use gl_tree_update.
1800         * lib/gl_rbtree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
1801         (gl_rbtree_oset_implementation): Use gl_tree_update.
1802         * lib/gl_oset.h (struct gl_oset_implementation): Add 'update' member.
1803         (gl_oset_update): New function.
1804         * lib/gl_oset.hh (gl_OSet): Add 'update' member.
1805         * modules/avltree-oset (configure.ac): Require AC_C_INLINE.
1806         * modules/rbtree-oset (configure.ac): Likewise.
1807         * tests/test-oset-update.h: New file.
1808         * tests/test-array_oset.c: Include test-oset-update.h.
1809         (main): Invoke test_update.
1810         * tests/test-avltree_oset.c: Likewise.
1811         * tests/test-rbtree_oset.c: Likewise.
1812         * modules/array-oset-tests (Files): Add tests/test-oset-update.h.
1813         * modules/avltree-oset-tests (Files): Likewise.
1814         * modules/rbtree-oset-tests (Files): Likewise.
1815         * tests/test-oset-c++.cc (action): New function.
1816         (main): Test the 'update' member function.
1818 2020-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1820         md5, sha1, sha256, sha512: pacify Autoconf 2.70
1821         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Use m4_if rather than a
1822         shell if, so that the argument to AC_CHECK_HEADERS is
1823         a simple string that does not require shell evaluation.
1824         This fixes a warning generated by Autoconf 2.69b.
1826 2020-07-12  Bruno Haible  <bruno@clisp.org>
1828         libgmp: Avoid warning when --without-libgmp is used.
1829         * lib/mini-gmp-gnulib.c: Ignore -Wsuggest-attribute=malloc only for
1830         GCC >= 8, not for GCC >= 4.6.
1832 2020-07-12  Bruno Haible  <bruno@clisp.org>
1834         libgmp: Link to the correct shared library.
1835         * m4/libgmp.m4 (gl_LIBGMP): Invoke AC_LIB_HAVE_LINKFLAGS.
1836         * modules/libgmp (Depends-on): Add havelib.
1837         (Link): Mention $(LIBGMP) and $(LTLIBGMP).
1838         * modules/libgmp-tests (Makefile.am): Link test-libgmp with $(LIBGMP).
1840 2020-07-12  Bruno Haible  <bruno@clisp.org>
1842         libgmp tests: Add some safety checks.
1843         * modules/libgmp-tests (Depends-on): Add verify.
1844         * tests/test-libgmp.c: Verify GMP_NUMB_BITS value.
1845         (main): Verify that gmp.h and libgmp versions match.
1847 2020-07-10  Bruno Haible  <bruno@clisp.org>
1849         unicodeio: Fix wrong result on NetBSD.
1850         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
1851         characters also on NetBSD.
1853 2020-07-09  Bruno Haible  <bruno@clisp.org>
1855         unicodeio: Fix wrong result on Solaris 11.
1856         Reported by Kiyoshi Kanazawa <yoi_no_myoujou@yahoo.co.jp>
1857         via Akim Demaille <akim.demaille@gmail.com> in
1858         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00036.html>.
1859         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
1860         characters on Solaris.
1861         * tests/test-unicodeio.c (main): In the "C" locale, expect either the
1862         UTF-8 output or the specified fallback.
1864 2020-07-08  Bruno Haible  <bruno@clisp.org>
1866         unicodeio: Add tests.
1867         * tests/test-unicodeio.c: New file.
1868         * tests/test-unicodeio1.sh: New file.
1869         * tests/test-unicodeio2.sh: New file.
1870         * tests/test-unicodeio3.sh: New file.
1871         * modules/unicodeio-tests: New file.
1873 2020-07-08  Bruno Haible  <bruno@clisp.org>
1875         unicodeio: Document link requirements.
1876         * modules/unicodeio (Link): New section.
1878 2020-07-07  Bruno Haible  <bruno@clisp.org>
1880         doc: Remove support for some very old platforms.
1881         * doc/posix-functions/memcmp.texi: Don't mention "older platforms".
1882         * doc/posix-functions/memcpy.texi: Likewise.
1883         * doc/posix-functions/memmove.texi: Likewise.
1884         * doc/posix-functions/memset.texi: Likewise.
1885         * doc/posix-functions/getcwd.texi: Likewise.
1887         memchr: Remove support for some very old platforms.
1888         * m4/memchr-obsolete.m4: Remove file.
1889         * modules/memchr-obsolete: Remove file.
1890         * m4/memchr.m4 (gl_FUNC_MEMCHR): Assume module 'memchr-obsolete' is
1891         absent. Don't define HAVE_MEMCHR.
1892         * lib/string.in.h (memchr): Assume HAVE_MEMCHR is 1.
1893         * modules/memchr (Depends-on): Remove memchr-obsolete.
1894         (configure.ac): Assume HAVE_MEMCHR is 1.
1895         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
1896         HAVE_MEMCHR.
1897         * modules/string (Makefile.am): Don't substitute HAVE_MEMCHR.
1898         * doc/posix-functions/memchr.texi: Don't mention module
1899         'memchr-obsolete'.
1900         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Assume HAVE_MEMCHR is 1.
1901         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Assume HAVE_MEMCHR is 1.
1902         * modules/strnlen (Depends-on): Remove memchr-obsolete.
1904         dup2: Remove support for some very old platforms.
1905         * m4/dup2-obsolete.m4: Remove file.
1906         * modules/dup2-obsolete: Remove file.
1907         * m4/dup2.m4 (gl_FUNC_DUP2): Assume module 'dup2-obsolete' is absent.
1908         Don't define HAVE_DUP2.
1909         * lib/unistd.in.h (dup2): Assume HAVE_DUP2 is 1.
1910         * lib/dup2.c: Likewise.
1911         * modules/dup2 (Depends-on, configure.ac): Likewise.
1912         (Depends-on): Remove dup2-obsolete.
1913         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize HAVE_DUP2.
1914         * modules/unistd (Makefile.am): Don't substitute HAVE_DUP2.
1915         * doc/posix-functions/dup2.texi: Don't mention module 'dup2-obsolete'.
1917 2020-07-07  Bruno Haible  <bruno@clisp.org>
1919         canonicalize: Trim module dependencies.
1920         * lib/hash-triple.h: Group declarations.
1921         * lib/hash-triple-simple.c: New file, extracted from lib/hash-triple.c.
1922         * lib/hash-triple.c: Don't include <stdlib.h>, <string.h>, hash-pjw.h.
1923         (STREQ): Remove macro.
1924         (triple_hash, triple_compare_ino_str, triple_free): Remove functions.
1925         * modules/hash-triple-simple: New file, based on modules/hash-triple.
1926         * modules/hash-triple (Files): Remove lib/hash-triple.h.
1927         (Depends-on): Add hash-triple-simple. Remove hash-pjw.
1928         * modules/canonicalize (Depends-on): Remove hash-triple. Add
1929         hash-triple-simple.
1930         * modules/file-set (Depends-on): Likewise.
1932 2020-07-07  Bruno Haible  <bruno@clisp.org>
1934         Clarify dependencies to double-slash-root.
1935         * modules/canonicalize (Files): Remove m4/double-slash-root.m4.
1936         (Depends-on): Add double-slash-root.
1937         * modules/canonicalize-lgpl (Depends-on): Add double-slash-root.
1938         * modules/dirname-lgpl (Depends-on): Add double-slash-root.
1940 2020-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1942         libgmp: new module
1943         The idea is to let programs simply include <gmp.h>, and
1944         so long as they live within the mini-gmp subset they need
1945         not worry about whether the GMP libraries are installed.
1946         * MODULES.html.sh: Mention it.
1947         * config/srclist.txt: Mention files copied from GMP source.
1948         * config/srclistvars.sh (GMP): New var.
1949         * lib/mini-gmp-gnulib.c, m4/libgmp.m4, modules/libgmp:
1950         * modules/libgmp-tests, tests/test-libgmp.c: New files.
1951         * lib/mini-gmp.c, lib/mini-gmp.h: New files, copied from GMP.
1953 2020-07-05  Bruno Haible  <bruno@clisp.org>
1955         mkancesdirs: Trim module dependencies.
1956         * lib/mkancesdirs.c: Include filename.h instead of dirname.h.
1957         * modules/mkancesdirs (Depends-on): Remove dirname-lgpl. Add filename.
1959 2020-07-05  Bruno Haible  <bruno@clisp.org>
1961         getprogname: Trim module dependencies.
1962         * lib/getprogname.c: Include basename-lgpl.h instead of dirname.h.
1963         * modules/getprogname (Depends-on): Remove dirname-lgpl. Add
1964         basename-lgpl.
1966 2020-07-05  Bruno Haible  <bruno@clisp.org>
1968         filenamecat-lgpl: Trim module dependencies.
1969         * lib/filenamecat-lgpl.c: Include basename-lgpl.h, filename.h instead of
1970         dirname.h.
1971         * modules/filenamecat-lgpl (Depends-on): Remove dirname-lgpl. Add
1972         basename-lgpl, filename.
1974 2020-07-05  Bruno Haible  <bruno@clisp.org>
1976         backupfile, backup-rename: Trim module dependencies.
1977         * lib/backupfile.c: Include basename-lgpl.h instead of dirname.h.
1978         * modules/backupfile (Depends-on): Remove dirname-lgpl. Add
1979         basename-lgpl.
1980         * modules/backup-rename (Depends-on): Likewise.
1982 2020-07-05  Bruno Haible  <bruno@clisp.org>
1984         argp: Trim module dependencies.
1985         * lib/argp-namefrob.h: Include basename-lgpl.h instead of dirname.h.
1986         * modules/argp (Depends-on): Remove dirname-lgpl. Add basename-lgpl.
1988 2020-07-05  Bruno Haible  <bruno@clisp.org>
1990         basename-lgpl: New module.
1991         * lib/basename-lgpl.h: New file, based on lib/dirname.h and
1992         lib/basename-lgpl.c.
1993         * lib/basename-lgpl.c: Include basename-lgpl.h, not dirname.h. Include
1994         <stdbool.h>, filename.h.
1995         (last_component): Rename a local variable.
1996         * lib/dirname.h: Include basename-lgpl.h.
1997         (DOUBLE_SLASH_IS_DISTINCT_ROOT): Remove macro.
1998         (last_component, base_len): Remove declarations.
1999         * modules/basename-lgpl: New file.
2000         * modules/dirname-lgpl (Files): Remove lib/basename-lgpl.c.
2001         (Depends-on): Add basename-lgpl. Remove double-slash-root.
2002         (Makefile.am): Don't compile basename-lgpl.c.
2003         * doc/posix-functions/basename.texi: Mention the module 'basename-lgpl',
2004         not 'dirname'.
2006 2020-07-05  Bruno Haible  <bruno@clisp.org>
2008         dirname, dirname-lgpl: Simplify.
2009         * m4/dirname.m4: Remove file.
2010         * modules/dirname (configure.ac): Don't invoke gl_DIRNAME.
2011         * modules/dirname-lgpl (Files): Remove m4/dirname.m4.
2012         (configure.ac): Don't invoke gl_DIRNAME_LGPL.
2014 2020-07-05  Bernhard Voelker  <mail@bernhard-voelker.de>
2016         tests: avoid shadowing warning
2017         * tests/test-memchr.c (main): Give page_boundary variable a tight scope.
2019 2020-07-05  Bruno Haible  <bruno@clisp.org>
2021         supersede: Add tests.
2022         * tests/test-supersede.c: New file.
2023         * tests/test-supersede-open.h: New file.
2024         * tests/test-supersede-fopen.h: New file.
2025         * modules/supersede-tests: New file.
2027         supersede: New module.
2028         * lib/supersede.h: New file.
2029         * lib/supersede.c: New file.
2030         * m4/supersede.m4: New file.
2031         * modules/supersede: New file.
2033 2020-07-05  Bruno Haible  <bruno@clisp.org>
2035         Add some copyright headers.
2036         * lib/dev-ino.h: Add copyright header.
2037         * lib/di-set.h: Likewise.
2038         * lib/fchown-stub.c: Likewise.
2039         * lib/file-set.h: Likewise.
2040         * lib/hash-triple.h: Likewise.
2041         * lib/idcache.h: Likewise.
2042         * lib/ino-map.h: Likewise.
2043         * lib/mkancesdirs.h: Likewise.
2044         * lib/scratch_buffer.h: Likewise.
2045         * lib/se-context.in.h: Likewise.
2046         * lib/stdopen.h: Likewise.
2047         * lib/userspec.h: Likewise.
2049 2020-07-04  Bruno Haible  <bruno@clisp.org>
2051         getrandom: Relicense under LGPLv2+.
2052         Paul Eggert's approval is in
2053         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00023.html>.
2054         * modules/getrandom (License): Change to LGPLv2+.
2056 2020-07-04  Bruno Haible  <bruno@clisp.org>
2058         getumask: Add tests.
2059         * tests/test-getumask.c: New file.
2060         * modules/getumask-tests: New file.
2062         getumask: New module.
2063         * lib/sys_stat.in.h (getumask): New declaration.
2064         * lib/getumask.c: New file.
2065         * m4/getumask.m4: New file.
2066         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether getumask is
2067         declared.
2068         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_GETUMASK, HAVE_GETUMASK.
2069         * modules/sys_stat (Makefile.am): Substitute GNULIB_GETUMASK,
2070         HAVE_GETUMASK.
2071         * modules/getumask: New file.
2072         * tests/test-sys_stat-c++.cc (getumask): Check signature.
2073         * doc/glibc-functions/getumask.texi: New file.
2074         * doc/gnulib.texi (Glibc sys/stat.h): Include it.
2076 2020-07-04  Bruno Haible  <bruno@clisp.org>
2078         clean-temp: Add support for temporary files with given mode.
2079         * lib/clean-temp.h (gen_register_open_temp): Add mode argument.
2080         * lib/clean-temp.c (struct try_create_file_params): New type.
2081         (try_create_file): New function.
2082         (gen_register_open_temp): Add mode argument. Use try_tempname instead of
2083         gen_tempname.
2085 2020-07-04  Bruno Haible  <bruno@clisp.org>
2087         clean-temp: Document limitations.
2088         * lib/clean-temp.h: Document limitations.
2090 2020-07-04  Bruno Haible  <bruno@clisp.org>
2092         clean-temp: Add support for temporary files with unpredictable names.
2093         * lib/clean-temp.h (gen_register_open_temp): New declaration.
2094         * lib/clean-temp.c: Include tempname.h.
2095         (gen_register_open_temp): New function.
2096         * modules/tempname (configure.ac): Define a module indicator.
2098 2020-07-04  Bruno Haible  <bruno@clisp.org>
2100         clean-temp: Add support for temporary files anywhere in the file system.
2101         * lib/clean-temp.h (register_temporary_file, unregister_temporary_file,
2102         cleanup_temporary_file): New declarations.
2103         * lib/clean-temp.c (file_cleanup_list_lock, file_cleanup_list): New
2104         variables.
2105         (dir_cleanup_list_lock): Renamed from cleanup_list_lock.
2106         (dir_cleanup_list): Renamed from cleanup_list.
2107         (cleanup_action): Process the file_cleanup_list as well.
2108         (do_init_clean_temp): New function.
2109         (clean_temp_once): New variable.
2110         (init_clean_temp): New function.
2111         (create_temp_dir): Invoke it.
2112         (register_temporary_file, unregister_temporary_file,
2113         cleanup_temporary_file): New functions.
2114         (do_unlink, do_rmdir): Remove 'dir' argument. Add 'cleanup_verbose'
2115         argument.
2117 2020-07-04  Bruno Haible  <bruno@clisp.org>
2119         clean-temp: Improve comments.
2120         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
2121         fwriteerror_temp, close_stream_temp): Clarify intended use.
2122         * lib/clean-temp.c: Likewise.
2124 2020-07-04  Bruno Haible  <bruno@clisp.org>
2126         clean-temp: Make multithread-safe, part 2.
2127         * lib/fatal-signal.h: Include <signal.h>.
2128         (get_fatal_signal_set): New declaration.
2129         * lib/fatal-signal.c (get_fatal_signal_set): New function.
2130         * lib/clean-temp.c: Include asyncsafe-spin.h, gl_linked_list.h.
2131         (struct closeable_fd): New type.
2132         (fatal_signal_set): New variable.
2133         (init_fatal_signal_set): New function.
2134         (asyncsafe_close, asyncsafe_fclose_variant): New functions.
2135         (cleanup_action): Invoke asyncsafe_close instead of close.
2136         (create_temp_dir): Invoke init_fatal_signal_set.
2137         (register_fd): Use a plain linked list. Add a 'struct closeable_fd *'
2138         element.
2139         (unregister_fd): Remove function.
2140         (close_temp): Cleanup descriptors list on the fly. Invoke
2141         init_fatal_signal_set. Invoke asyncsafe_close instead of close.
2142         (fclose_variant_temp): New function.
2143         (fclose_temp, fwriteerror_temp, close_stream_temp): Use it.
2144         * modules/clean-temp (Depends-on): Add asyncsafe-spin, linked-list.
2146 2020-07-04  Bruno Haible  <bruno@clisp.org>
2148         clean-temp: Make multithread-safe, part 1.
2149         * lib/clean-temp.c: Include glthread/lock.h.
2150         (cleanup_list_lock): New variable.
2151         (register_temp_file, unregister_temp_file, register_temp_subdir,
2152         unregister_temp_subdir, cleanup_temp_dir_contents): Use it.
2153         (create_temp_dir): Likewise. Don't free the old array.
2154         (descriptors_lock): New variable.
2155         (register_fd, unregister_fd): Use it.
2156         * modules/clean-temp (Depends-on): Add lock.
2158 2020-07-04  Bruno Haible  <bruno@clisp.org>
2160         fatal-signal: Make multithread-safe.
2161         * lib/fatal-signal.c (init_fatal_signals): Add comment.
2162         (do_init_fatal_signal_set): New function, extracted from
2163         init_fatal_signal_set.
2164         (fatal_signal_set_once): New variable.
2165         (init_fatal_signal_set): Use gl_once.
2167 2020-07-03  Bruno Haible  <bruno@clisp.org>
2169         getrandom: Fix compilation error on native Windows (regr. 2020-06-28).
2170         * lib/getrandom.c: Don't include <ntdef.h>. Instead, define NTSTATUS.
2171         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Include <windows.h> before
2172         <bcrypt.h>.
2174 2020-07-03  Bruno Haible  <bruno@clisp.org>
2176         dfa tests: Follow common file naming conventions.
2177         * tests/test-dfa-match-aux.c: Renamed from tests/dfa-match-aux.c.
2178         * tests/test-dfa-match.sh: Renamed from tests/dfa-match.sh. Update.
2179         * tests/test-dfa-invalid-char-class.sh: Renamed from
2180         tests/dfa-invalid-char-class.sh. Update.
2181         * modules/dfa-tests (Files, Makefile.am): Update.
2183 2020-07-03  Bruno Haible  <bruno@clisp.org>
2185         asyncsafe-spin: Use GCC extended asm syntax for SunStudio 12 compiler.
2186         * lib/asyncsafe-spin.c (memory_barrier, atomic_compare_and_swap): Use
2187         the GCC extended asm syntax also for the Sun Studio 12 compilers.
2189 2020-07-03  Bruno Haible  <bruno@clisp.org>
2191         asyncsafe-spin: Reduce code duplication.
2192         * lib/asyncsafe-spin.c (do_lock, do_unlock): New functions.
2193         (asyncsafe_spin_lock, asyncsafe_spin_unlock): Use them.
2194         * modules/asyncsafe-spin (configure.ac): Require AC_C_INLINE.
2196 2020-07-03  Bruno Haible  <bruno@clisp.org>
2198         lchmod: Simplify after 2020-02-22 change.
2199         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Don't require AC_C_INLINE.
2201 2020-07-03  Bruno Haible  <bruno@clisp.org>
2203         gen-uni-tables: Make sure the compiler does not barf on 'inline'.
2204         * modules/gen-uni-tables (configure.ac): Require AC_C_INLINE.
2206 2020-07-03  Bruno Haible  <bruno@clisp.org>
2208         dfa: Make sure the compiler does not barf on 'inline'.
2209         * modules/dfa (configure.ac): Require AC_C_INLINE.
2211 2020-07-03  Bruno Haible  <bruno@clisp.org>
2213         bitset: Make sure the compiler does not barf on 'inline'.
2214         * modules/bitset (configure.ac): New section.
2216 2020-07-01  Paul Eggert  <eggert@cs.ucla.edu>
2218         manywarnings: improve port to GCC 10.1
2219         * build-aux/gcc-warning.spec: Also list warnings that are default
2220         or are enabled by already-given flags.  This lets us speed up
2221         checking for attributes, and makes the generated compilation
2222         commands shorter.  Add -Wanalyzer-too-complex (too much noise).
2223         * m4/manywarnings.m4 (gl_MANYWARN_COMPLEMENT)
2224         (gl_MANYWARN_ALL_GCC): Use gl_AS_VAR_APPEND to append
2225         to shell variables that may have long values.
2226         (gl_MANYWARN_ALL_GCC): Omit flags that are default or are
2227         consequences of other flags, to speed up checking and
2228         shorten commands.
2230         tests: pacify gcc -fanalyzer on zerosize_ptr
2231         * tests/test-memcasecmp.c (main):
2232         * tests/test-memchr.c (main):
2233         * tests/test-memchr2.c (main):
2234         * tests/test-memcmp.c (main):
2235         * tests/test-memmem.c (main):
2236         * tests/test-memrchr.c (main):
2237         * tests/unistr/test-chr.h (main):
2238         * tests/unistr/test-cmp.h (test_cmp):
2239         Check whether zerosize_ptr returns NULL before using it.
2240         This pacifies GCC 10.1’s new fanalyzer option, and matches
2241         other uses of zerosize_ptr.
2243 2020-07-01  Bruno Haible  <bruno@clisp.org>
2245         asyncsafe-spin: Add tests.
2246         * tests/test-asyncsafe-spin1.c: New file.
2247         * tests/test-asyncsafe-spin2.c: New file, based on tests/test-lock.c and
2248         tests/test-pthread-spin.c.
2249         * modules/asyncsafe-spin-tests: New file.
2251 2020-07-01  Bruno Haible  <bruno@clisp.org>
2253         asyncsafe-spin: New module.
2254         * lib/asyncsafe-spin.h: New file.
2255         * lib/asyncsafe-spin.c: New file, based on lib/pthread-spin.c.
2256         * modules/asyncsafe-spin: New file.
2258 2020-07-01  Bruno Haible  <bruno@clisp.org>
2260         windows-spin: Fix race condition on multiprocessor systems.
2261         * lib/windows-spin.c (glwthread_spin_init): Add a memory barrier.
2263 2020-07-01  Bruno Haible  <bruno@clisp.org>
2265         pthread-spin: Add optimized fallback for GCC versions >= 4.1, < 4.7.
2266         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
2267         pthread_spin_trylock, pthread_spin_unlock): For GCC >= 4.1, < 4.7, use
2268         an implementation based on other GCC built-ins.
2270 2020-07-01  Bruno Haible  <bruno@clisp.org>
2272         pthread-spin: Optimize fallback for GCC versions >= 4.7.
2273         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
2274         pthread_spin_trylock, pthread_spin_unlock): Use a lock word instead of a
2275         lock byte.
2277 2020-07-01  Bruno Haible  <bruno@clisp.org>
2279         pthread-spin: Add error checking.
2280         * lib/pthread-spin.c: Include <stdbool.h>.
2281         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock,
2282         pthread_spin_unlock) [GCC>=4.7]: Prefer an implementation that verifies
2283         the unlocks.
2284         * modules/pthread-spin (Depends-on): Add stdbool.
2286 2020-07-01  Bruno Haible  <bruno@clisp.org>
2288         pthread-spin: Add tests.
2289         * tests/test-pthread-spin.c: New file, based on tests/test-lock.c.
2290         * modules/pthread-spin-tests: New file.
2292 2020-07-01  Bruno Haible  <bruno@clisp.org>
2294         tests: Reduce code duplication.
2295         * tests/atomic-int-posix.h: New file, extracted from
2296         tests/test-pthread-mutex.c.
2297         * tests/test-pthread-mutex.c: Include it. Remove the corresponding code.
2298         * tests/test-pthread-rwlock.c: Likewise.
2299         * modules/pthread-mutex-tests (Files): Add tests/atomic-int-posix.h.
2300         * modules/pthread-rwlock-tests (Files): Likewise.
2302 2020-07-01  Bruno Haible  <bruno@clisp.org>
2304         tests: Refactor.
2305         * tests/atomic-int-isoc.h: New file, extracted from tests/test-mtx.c.
2306         * tests/test-mtx.c: Include it. Remove the corresponding code.
2307         * modules/mtx-tests (Files): Add tests/atomic-int-isoc.h.
2309 2020-07-01  Bruno Haible  <bruno@clisp.org>
2311         tests: Refactor.
2312         * tests/atomic-int-gnulib.h: New file, extracted from tests/test-lock.c.
2313         * tests/test-lock.c: Include it. Remove the corresponding code.
2314         * modules/lock-tests (Files): Add tests/atomic-int-gnulib.h.
2316 2020-06-29  Bruno Haible  <bruno@clisp.org>
2318         sys_socket: Don't define socklen_t if it is already defined on mingw.
2319         Reported by Keith Marshall <keith.d.marshall@ntlworld.com> in
2320         <https://savannah.gnu.org/bugs/?57725>,
2321         by Rahul Das <bokul_4u@yahoo.com> in
2322         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00081.html>,
2323         and by Eli Zaretskii <eliz@gnu.org> in
2324         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00068.html>.
2325         * lib/sys_socket.in.h (socklen_t): Remove definition.
2327 2020-06-29  Bruno Haible  <bruno@clisp.org>
2329         alloca-opt: Fix warning on mingw.
2330         Reported and solution by Eli Zaretskii <eliz@gnu.org> in
2331         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00069.html>.
2332         * lib/alloca.in.h: On mingw, include <alloca.h> and then test again
2333         whether alloca is defined.
2335 2020-06-28  Paul Eggert  <eggert@cs.ucla.edu>
2337         getrandom: do not depend on ‘open’ on mingw
2338         Similarly for at-internal, getloadavg.  These modules do not call
2339         the ‘open’ function when they are compiled on mingw.  On mingw,
2340         this avoids having to compile open.c when building Emacs, which
2341         does its own thing with ‘open’.
2342         * modules/at-internal, modules/getloadavg, modules/getrandom:
2343         (Depends-on): Don’t depend on ‘open’ on mingw.
2344         (Depends-on): Require AC_CANONICAL_HOST, for host_os.
2345         * modules/getloadavg (Depends-on):
2346         Depend on intprops, open, stdbool, stdlib only if compiling
2347         getloadavg.c.
2349 2020-06-28  Bruno Haible  <bruno@clisp.org>
2351         doc: Add a note about sigprocmask vs. pthread_sigmask.
2352         * doc/posix-functions/sigprocmask.texi: Add note.
2354 2020-06-28  Bruno Haible  <bruno@clisp.org>
2356         getrandom: Fix compilation errors on older versions of mingw.
2357         Reported by Eli Zaretskii <eliz@gnu.org> in
2358         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00059.html>.
2359         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Test whether <bcrypt.h> exists.
2360         * lib/getrandom.c: If <bcrypt.h> is not available, include <ntdef.h> and
2361         define/declare BCRYPT_ALG_HANDLE, BCRYPT_USE_SYSTEM_PREFERRED_RNG,
2362         BCryptGenRandom ourselves.
2364 2020-06-28  Bruno Haible  <bruno@clisp.org>
2366         clean-temp: Fix wrong errno in error message.
2367         * lib/clean-temp.c (create_temp_dir): Save errno around
2368         unblock_fatal_signals call.
2370 2020-06-27  Bruno Haible  <bruno@clisp.org>
2372         fatal-signal: Make multithread-safe.
2373         * lib/fatal-signal.c (at_fatal_signal): Don't free the old actions array.
2375 2020-06-27  Bruno Haible  <bruno@clisp.org>
2377         clean-temp: Don't force deletion of temporary files on native Windows.
2378         * lib/clean-temp.h (open_temp, fopen_temp): Add delete_on_close
2379         argument.
2380         * lib/clean-temp.c (open_temp, fopen_temp): Likewise.
2381         * NEWS: Mention the change.
2382         * lib/javacomp.c (write_temp_file): Update.
2384 2020-06-27  Bruno Haible  <bruno@clisp.org>
2386         fatal-signal: Make multithread-safe.
2387         * lib/fatal-signal.c: Include glthread/lock.h.
2388         (at_fatal_signal_lock): New variable.
2389         (at_fatal_signal): Use it.
2390         (fatal_signals_block_lock, fatal_signals_block_counter): New variables.
2391         (block_fatal_signals, unblock_fatal_signals): Use them.
2392         * modules/fatal-signal (Depends-on): Add lock.
2394 2020-06-27  Paul Eggert  <eggert@cs.ucla.edu>
2396         getloadavg: don’t depend on fopen-gnu
2397         This is for Emacs, which does not need fopen-gnu for anything else,
2398         and which would need it only on a NetBSD platform where getloadavg
2399         does not work (does that even happen?).
2400         * lib/getloadavg.c (getloadavg) [__NetBSD__]: Use open, not fopen.
2401         * modules/getloadavg (Depends-on): Remove fopen-gnu.
2403         * tests/test-getloadavg.c (main): Fix typo.
2405 2020-06-27  Bruno Haible  <bruno@clisp.org>
2407         tempname et al.: Fix link errors on MSVC (regression from 2020-05-31).
2408         * modules/tempname (Link): New section.
2409         * modules/mkdtemp (Link): Likewise.
2410         * modules/clean-temp (Link): Likewise.
2411         * modules/mkstemp (Link): Likewise.
2412         * modules/stdlib-safer (Link): Likewise.
2413         * modules/mkstemps (Link): Likewise.
2414         * modules/mkostemp (Link): Likewise.
2415         * modules/mkostemps (Link): Likewise.
2416         * modules/tmpfile (Link): Likewise.
2417         * modules/tmpfile-safer (Link): Likewise.
2418         * modules/javacomp (Link): Add $(LIB_GETRANDOM).
2419         * modules/argv-iter-tests (Makefile.am): Link test-argv-iter with
2420         $(LIB_GETRANDOM).
2421         * NEWS: Mention the changes.
2423 2020-06-27  Bruno Haible  <bruno@clisp.org>
2425         fopen-gnu: Simplify code.
2426         * lib/fopen.c: Include <stdbool.h>.
2427         (rpl_fopen): Use a single variable open_flags instead of
2428         open_flags_standard and open_flags_gnu. Make open_flags_gnu a bool.
2429         * modules/fopen (Depends-on): Add stdbool.
2431 2020-06-26  Bruno Haible  <bruno@clisp.org>
2433         canonicalize: Improve documentation.
2434         * lib/canonicalize.h (canonicalize_filename_mode): Document the failure
2435         return convention.
2437 2020-06-26  Bruno Haible  <bruno@clisp.org>
2439         xgetcwd: Improve documentation.
2440         * lib/xgetcwd.c (xgetcwd): Document the failure return convention.
2442 2020-06-26  Bruno Haible  <bruno@clisp.org>
2444         getcwd: Improve documentation.
2445         * lib/getcwd.c (__getcwd): Document the failure return convention.
2447 2020-06-26  Bruno Haible  <bruno@clisp.org>
2449         fchdir: Improve documentation.
2450         * lib/fchdir.c (get_name, _gl_register_fd): Document the failure return
2451         convention.
2453 2020-06-26  Bruno Haible  <bruno@clisp.org>
2455         filenamecat-lgpl: Set errno upon failure.
2456         * lib/filenamecat-lgpl.c (mfile_name_concat): Document the failure
2457         return convention.
2458         * modules/filenamecat-lgpl (Depends-on): Add malloc-posix.
2460 2020-06-26  Bruno Haible  <bruno@clisp.org>
2462         areadlink-with-size: Set errno upon failure.
2463         * lib/areadlink-with-size.c (areadlink_with_size): Set errno when malloc
2464         fails.
2465         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Add comment.
2467 2020-06-26  Bruno Haible  <bruno@clisp.org>
2469         copy-file: Shrink dependencies.
2470         * modules/copy-file (Depends-on): Remove acl. Add acl-permissions,
2471         qcopy-acl.
2473 2020-06-26  Bruno Haible  <bruno@clisp.org>
2475         doc: Mention declaration fixes implemented by some modules.
2476         * doc/posix-functions/chdir.texi: Mention the module 'chdir'.
2477         * doc/posix-functions/close.texi: Mention that Gnulib makes the function
2478         declaration appear in <unistd.h>.
2479         * doc/posix-functions/dup.texi: Likewise.
2480         * doc/posix-functions/dup2.texi: Likewise.
2481         * doc/posix-functions/gethostname.texi: Likewise.
2482         * doc/posix-functions/isatty.texi: Likewise.
2483         * doc/posix-functions/lseek.texi: Likewise.
2484         * doc/posix-functions/unlink.texi: Likewise.
2485         * doc/posix-functions/read.texi: Mention the module 'read'.
2486         * doc/posix-functions/write.texi: Mention the effects of the module
2487         'write'.
2489 2020-06-25  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
2491         c-dtoastr, c-ldtoastr: new modules
2492         These modules provide the same functionality as the modules
2493         dtoastr and ldtoastr except for the formatting taking place in the
2494         C locale.
2495         * MODULES.html.sh: Add c-dtoastr and c-ldtoastr.
2496         * lib/c-dtoastr.c, lib/c-ldtoastr.c: New files.
2497         * lib/ftoastr.c: Prefix exported functions when the macro C_LOCALE is
2498         defined.  Use c_snprintf and c_strtod/c_strtold instead of
2499         snprintf and strtod/strtold whhen the macro C_LOCALE is defined.
2500         * lib/ftoastr.h: Add prototypes for c_dtoastr and c_ldtoastr.
2501         * modules/c-dtoastr, modules/c-dtoastr-tests, modules/c-ldtoastr,
2502         modules/c-ldtoastr-tests: New files.
2503         * tests/test-c-dtoastr.c, tests/test-c-dtoastr.sh,
2504         tests-c-ldtoastr.c tests-c-ldtoastr.sh: New files.
2506 2020-06-21  Bruno Haible  <bruno@clisp.org>
2508         tzset: Fix compilation warnings on mingw (regression from 2017-05-01).
2509         * lib/tzset.c: Include <stdlib.h>, <string.h>.
2511 2020-06-16  Bruno Haible  <bruno@clisp.org>
2513         thread: Avoid possible compiler warnings in uses of gl_thread_exit.
2514         * lib/glthread/thread.h (gl_thread_exit): Add a cast to void.
2516 2020-06-16  Bruno Haible  <bruno@clisp.org>
2518         thread, thrd: Avoid a compiler warning.
2519         * lib/windows-thread.h (glwthread_thread_exit): Mark as non-returning.
2521 2020-06-16  Biswapriyo Nath  <nathbappai@gmail.com>  (tiny change)
2523         windows-thread: Avoid a compiler warning.
2524         * lib/windows-thread.h (glwthread_thread_exit): Change return type to
2525         void.
2526         * lib/windows-thread.c (glwthread_thread_exit): Likewise.
2528 2020-06-15  Bruno Haible  <bruno@clisp.org>
2530         unictype/joininggroup-name: Fix warning on 64-bit mingw.
2531         Reported by Biswapriyo Nath <nathbappai@gmail.com> in
2532         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00036.html>.
2533         * lib/unictype/joininggroup_name.c (ELEM): Cast struct offset to size_t
2534         first.
2536 2020-06-06  Bruno Haible  <bruno@clisp.org>
2538         calloc-gnu tests: Avoid a test failure with clang.
2539         * tests/test-calloc-gnu.c (main): Mark the pointer variable as
2540         'volatile', to defeat compiler optimizations.
2542 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
2544         getloadavg: fix double-increment bug
2545         * lib/getloadavg.c (getloadavg): Fix double-increment typo on
2546         Linux without glibc, Android, Cygwin.  This fixes a bug I
2547         introduced in 2011-02-08T20:23:29Z!eggert@cs.ucla.edu.
2548         Problem and fix reported by Semen Verchenko in:
2549         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00007.html
2551         tempname: use getrandom, not getentropy
2552         This removes a dependency, as getentropy depends on getrandom.
2553         * lib/tempname.c: Include sys/random.h instead of unistd.h.
2554         (RANDOM_BITS) [!_LIBC]: Use getrandom, not getentropy.
2555         * modules/tempname (Depends-on): Depend on getrandom, not getentropy.
2557 2020-06-01  Bruno Haible  <bruno@clisp.org>
2559         doc: New chapter 'Multithreading'.
2560         * doc/multithread.texi: New file.
2561         * doc/gnulib.texi: Include it.
2563 2020-06-01  Bruno Haible  <bruno@clisp.org>
2565         doc: Move 'Running self-tests under valgrind' section.
2566         * doc/gnulib.texi (Build Infrastructure Modules): Include
2567         valgrind-tests.texi here...
2568         (Miscellaneous Notes): ... not here.
2570 2020-06-01  Bruno Haible  <bruno@clisp.org>
2572         doc: Move 'Visual Studio Compatibility' section.
2573         * doc/gnulib.texi (Native Windows Support): Include ld-output-def.texi
2574         here...
2575         (Build Infrastructure Modules): ... not here.
2577 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
2579         doc: improve randomness discussion
2580         Inspired by comments from Jeffrey Walton in:
2581         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00002.html
2582         * doc/glibc-functions/getentropy.texi (getentropy):
2583         * doc/glibc-functions/getrandom.texi (getrandom):
2584         Improve discussion of problems with "random" data,
2585         and cite Ristenpart & Yilek.  Also, mention GRND_INSECURE.
2587 2020-06-01  Bruno Haible  <bruno@clisp.org>
2589         doc: Fix Texinfo syntax error.
2590         * doc/glibc-functions/getrandom.texi: Add missing '@item'.
2592 2020-06-01  Asher Gordon  <AsDaGo@posteo.net>
2594         doc: Change '.' to '@.' where appropriate.
2595         * doc/c-ctype.texi: Change '.' to '@.' where appropriate.
2596         * doc/glibc-functions/fstatfs.texi: Likewise.
2597         * doc/glibc-functions/fts_children.texi: Likewise.
2598         * doc/glibc-functions/fts_read.texi: Likewise.
2599         * doc/glibc-functions/getdirentries.texi: Likewise.
2600         * doc/glibc-functions/mkostemp.texi: Likewise.
2601         * doc/glibc-functions/mkostemps.texi: Likewise.
2602         * doc/glibc-functions/mkstemps.texi: Likewise.
2603         * doc/glibc-functions/preadv.texi: Likewise.
2604         * doc/glibc-functions/pwritev.texi: Likewise.
2605         * doc/glibc-functions/sendfile.texi: Likewise.
2606         * doc/glibc-functions/statfs.texi: Likewise.
2607         * doc/gnulib-intro.texi: Likewise.
2608         * doc/gnulib-tool.texi: Likewise.
2609         * doc/intprops.texi: Likewise.
2610         * doc/lib-symbol-visibility.texi: Likewise.
2611         * doc/licenses-texi.texi: Likewise.
2612         * doc/pastposix-functions/bcmp.texi: Likewise.
2613         * doc/pastposix-functions/bcopy.texi: Likewise.
2614         * doc/pastposix-functions/bzero.texi: Likewise.
2615         * doc/pastposix-functions/ecvt.texi: Likewise.
2616         * doc/pastposix-functions/fcvt.texi: Likewise.
2617         * doc/pastposix-functions/ftime.texi: Likewise.
2618         * doc/pastposix-functions/gcvt.texi: Likewise.
2619         * doc/pastposix-functions/getwd.texi: Likewise.
2620         * doc/pastposix-functions/index.texi: Likewise.
2621         * doc/pastposix-functions/mktemp.texi: Likewise.
2622         * doc/pastposix-functions/rindex.texi: Likewise.
2623         * doc/pastposix-functions/wcswcs.texi: Likewise.
2624         * doc/posix-functions/aio_cancel.texi: Likewise.
2625         * doc/posix-functions/aio_error.texi: Likewise.
2626         * doc/posix-functions/aio_fsync.texi: Likewise.
2627         * doc/posix-functions/aio_read.texi: Likewise.
2628         * doc/posix-functions/aio_return.texi: Likewise.
2629         * doc/posix-functions/aio_suspend.texi: Likewise.
2630         * doc/posix-functions/aio_write.texi: Likewise.
2631         * doc/posix-functions/creat.texi: Likewise.
2632         * doc/posix-functions/ctime.texi: Likewise.
2633         * doc/posix-functions/daylight.texi: Likewise.
2634         * doc/posix-functions/fgetpos.texi: Likewise.
2635         * doc/posix-functions/fopen.texi: Likewise.
2636         * doc/posix-functions/freopen.texi: Likewise.
2637         * doc/posix-functions/fseeko.texi: Likewise.
2638         * doc/posix-functions/fsetpos.texi: Likewise.
2639         * doc/posix-functions/fstatat.texi: Likewise.
2640         * doc/posix-functions/fstatvfs.texi: Likewise.
2641         * doc/posix-functions/ftello.texi: Likewise.
2642         * doc/posix-functions/ftruncate.texi: Likewise.
2643         * doc/posix-functions/getrlimit.texi: Likewise.
2644         * doc/posix-functions/lio_listio.texi: Likewise.
2645         * doc/posix-functions/localtime.texi: Likewise.
2646         * doc/posix-functions/lseek.texi: Likewise.
2647         * doc/posix-functions/mkstemp.texi: Likewise.
2648         * doc/posix-functions/mktime.texi: Likewise.
2649         * doc/posix-functions/open.texi: Likewise.
2650         * doc/posix-functions/openat.texi: Likewise.
2651         * doc/posix-functions/opendir.texi: Likewise.
2652         * doc/posix-functions/pread.texi: Likewise.
2653         * doc/posix-functions/pwrite.texi: Likewise.
2654         * doc/posix-functions/readdir.texi: Likewise.
2655         * doc/posix-functions/readdir_r.texi: Likewise.
2656         * doc/posix-functions/scandir.texi: Likewise.
2657         * doc/posix-functions/seekdir.texi: Likewise.
2658         * doc/posix-functions/setrlimit.texi: Likewise.
2659         * doc/posix-functions/statvfs.texi: Likewise.
2660         * doc/posix-functions/strftime.texi: Likewise.
2661         * doc/posix-functions/telldir.texi: Likewise.
2662         * doc/posix-functions/timezone.texi: Likewise.
2663         * doc/posix-functions/tmpfile.texi: Likewise.
2664         * doc/posix-functions/truncate.texi: Likewise.
2665         * doc/posix-functions/tzname.texi: Likewise.
2666         * doc/posix-functions/wcsftime.texi: Likewise.
2667         * doc/windows-sockets.texi: Likewise.
2669 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
2671         getrandom-tests: do not assume GRND_RANDOM yields short read
2672         * tests/test-getrandom.c (main): Omit assertion that
2673         getrandom (b, sizeof b, GRND_RANDOM | GRND_NONBLOCK) < sizeof b
2674         when b’s size is 100000.  This assertion fails with Linux kernel
2675         5.6.13, as that kernel ignores the GRND_RANDOM flag.
2676         The separate blocking pool is going away in the Linux kernel, and
2677         they’ve added a flag GRND_INSECURE instead; see:
2678         https://lore.kernel.org/linux-api/705c5a091b63cc5da70c99304bb97e0109be0a26.1577088521.git.luto@kernel.org/
2679         The assertion was iffy anyway; what’s to prevent a kernel from
2680         lazily filling a large buffer with random bytes?
2682         read-file-test: pacify --enable-gcc-warnings
2683         * tests/test-read-file.c (test_read_file): Now static.
2685         tempname: merge from glibc and coreutils
2686         Also, merge in Gnulib’s more-recent methods of making it easier
2687         to share between Gnulib and glibc, and fix a few randomness
2688         glitches.
2689         * lib/tempname.c: Include libc-config.h, not config.h, if !_LIBC.
2690         (__set_errno): Remove; libc-config.h does that for us.
2691         Do not include <sys/time.h>.
2692         (__secure_getenv) [_LIBC]: New macro.
2693         (__try_tempname, __getpid, __gettimeofday) [!_LIBC]: Remove macros.
2694         (RANDOM_BITS): Rewrite.
2695         (RANDOM_VALUE_MAX, BASE_62_DIGITS, BASE_62_POWER): New macros.
2696         (random_value): New typedef.
2697         (try_file, try_dir, try_nocreate): Move up.
2698         (gen_tempname_len, try_tempname_len): New functions.
2699         (gen_tempname_len): Use a constant array rather than a switch.
2700         (try_tempname_len): Don’t assume string length fits in int.
2701         Generalize use of RANDOM_BITS.  If _LIBC, don’t assume RANDOM_BITS
2702         has enough entropy (it’s a bit short).
2703         (__gen_tempname): Rewrite in terms of gen_tempname_len.
2704         (__try_tempname): Rewrite in terms of try_tempname_len.
2705         * lib/tempname.h (gen_tempname_len, try_tempname_len): New decls.
2706         * modules/tempname (Depends-on): Remove gettimeofday, sys_time.
2707         Add getentropy, libc-config.
2709 2020-05-31  Bruno Haible  <bruno@clisp.org>
2711         getrandom, getentropy: Mention the crypto/gc-random module.
2712         Suggested by Simon Josefsson in
2713         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00400.html>.
2714         * doc/glibc-functions/getrandom.texi: Mention the quality issues and the
2715         crypto/gc-random module.
2716         * doc/glibc-functions/getentropy.texi: Likewise.
2718 2020-05-31  Bruno Haible  <bruno@clisp.org>
2720         getentropy: Enhance tests.
2721         * tests/test-getentropy.c (main): Add one more test.
2722         * tests/test-unistd-c++.cc: Check the signature of getentropy.
2724 2020-05-31  Bruno Haible  <bruno@clisp.org>
2726         getentropy: Work around a macOS and Solaris problem.
2727         * lib/unistd.in.h: Include <sys/random.h>, when needed for the
2728         'getentropy' module.
2729         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2730         UNISTD_H_HAVE_SYS_RANDOM_H.
2731         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Set
2732         UNISTD_H_HAVE_SYS_RANDOM_H.
2733         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_SYS_RANDOM_H.
2734         * doc/glibc-functions/getentropy.texi: Document the macOS and Solaris
2735         problem. List more platforms.
2737 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
2739         fnmatch: merge from glibc
2740         Also, merge in Gnulib’s more-recent methods of making it easier
2741         to share between Gnulib and glibc.
2742         * lib/fnmatch.c: Reorder includes to match glibc better.
2743         Include libc-config.h instead of config.h.
2744         Include alloca.h only if _LIBC || HAVE_ALLOCA.
2745         Do not include "../locale/elem-hash.h" if _LIBC.
2746         Define macros for btowc, etc. if _LIBC.  All uses simplified.
2747         Define FALLTHROUGH if _LIBC, instead of including attribute.h.
2748         Include intprops.h, since glibc has it now.
2749         (SIZE_MAX): Remove; use (size_t) -1 instead.
2750         Omit the "Comment out all this code" ifdef, since Gnulib
2751         has never really needed it.
2752         (STREQ): Remove; no longer used.
2753         (__libc_use_alloca, alloca, alloca_account): Define as
2754         needed if !_LIBC.
2755         (ISWCTYPE): Remove; all uses replaced by iswctype.
2756         (HANDLE_MULTIBYTE): Remove.  All uses removed by assuming true.
2757         (internal_function): Remove.  All uses removed.
2758         (STRUCT): New macro.
2759         (WIDE_CHAR_VERSION): Define to 0 instead of leaving undefined.
2760         (WMEMCMP): New macro.
2761         (FINDIDX): Define if _LIBC, and include <locale/weight.h>
2762         and <locale/weightwc.h>.
2763         (fnmatch): Prefer __glibc_likely and __glibc_unlikely to
2764         __builtin_expect.  Check for integer overflow more
2765         systematically.  Account for alloca storage better when
2766         recursive.  Use strnlen instead of strlen for efficiency.
2767         * lib/fnmatch_loop.c: Include stdint.h if _LIBC, for int32_t etc.
2768         (struct STRUCT): New type.
2769         (FCT, EXT): New ENDS and ALLOCA_USED args.
2770         All callers changed.
2771         (FCT): Prefer __glibc_unlikely to __builtin_expect.
2772         Simplify by assuming WIDE_CHAR_SUPPORT.
2773         Copy _LIBC code from glibc without worrying Gnulib compatibility.
2774         Cast cold to UCHAR to avoid signedness warning.
2775         (END): Check for invalid pattern.
2776         (EXT): Improve alloca/malloc checking (taken from glibc),
2777         and improve it some more by using intprops.h and checking
2778         for integer overflow and using bool for booleans.
2779         * lib/libc-config.h (compat_symbol): New macro.
2780         (versioned_symbol): Make it ‘extern int dummy’ so that it’s
2781         acceptable to non-GCC when a trailing semicolon is added.
2782         * modules/fnmatch (Depends-on): Add alloca-opt, intprops,
2783         libc-config, strnlen.  Remove alloca.
2785 2020-05-31  Bruno Haible  <bruno@clisp.org>
2787         getrandom: Doc and test tweaks.
2788         * lib/getrandom.c (getrandom): Mention that it never returns 0, and that
2789         it sets errno when failing.
2790         * tests/test-getrandom.c (main): Disable the high-quality check on those
2791         platforms on which it fails.
2792         * doc/glibc-functions/getrandom.texi: Add Minix, AIX, HP-UX, IRIX,
2793         Cygwin to the list of platforms that don't have the function. Add a note
2794         about the quality of the result.
2795         * doc/glibc-headers/sys_random.texi: Don't mention the 'getrandom'
2796         declaration; this is fixed by module 'getrandom'.
2798 2020-05-31  Bruno Haible  <bruno@clisp.org>
2800         getrandom: Add support for native Windows.
2801         * lib/getrandom.c: Include <errno.h>, <windows.h>, <bcrypt.h>,
2802         <wincrypt.h>.
2803         (CRYPT_VERIFY_CONTEXT): New macro.
2804         (LoadLibrary, CryptAcquireContext): Redirect to the variant with suffix
2805         'A'.
2806         (GetProcAddress): New macro.
2807         (BCryptGenRandomFuncType): New type.
2808         (BCryptGenRandomFunc, initialized): New variables.
2809         (initialize): New function.
2810         (getrandom): On native Windows, use <bcrypt.h> API when available, and
2811         <wincrypt.h> API as fallback.
2812         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set LIB_GETRANDOM.
2813         * modules/getrandom (Link): New section.
2814         * modules/getentropy (Link): Likewise.
2815         * modules/getrandom-tests (Makefile.am): Link test-getrandom against
2816         $(LIB_GETRANDOM).
2817         * modules/getentropy-tests (Makefile.am): Link test-getentropy against
2818         $(LIB_GETRANDOM).
2819         * modules/sys_random-c++-tests (Makefile.am): Link test-sys_random-c++
2820         against $(LIB_GETRANDOM).
2821         * doc/glibc-functions/getrandom.texi: Mention the native Windows
2822         support.
2824 2020-05-31  Bruno Haible  <bruno@clisp.org>
2826         getrandom: Simplify the determination of the random number devices.
2827         Suggested by Paul Eggert in
2828         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00383.html>.
2829         * lib/getrandom.c (NAME_OF_RANDOM_DEVICE, NAME_OF_NONCE_DEVICE): New
2830         macros.
2831         * modules/getrandom (Depends-on): Remove crypto/gc-random.
2833 2020-05-31  Bruno Haible  <bruno@clisp.org>
2835         crypto/gc-random: Fix list of crypto devices for Solaris.
2836         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case Solaris.
2838 2020-05-31  Akim Demaille  <akim@lrde.epita.fr>
2840         list: fix GCC warnings
2841         * lib/gl_anytree_list2.h (gl_tree_iterator_free)
2842         (gl_tree_next_node, gl_tree_node_nx_set_value)
2843         (gl_tree_previous_node, gl_tree_next_node):
2844         Mark unused arguments.
2845         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
2846         * lib/gl_anylinked_list2.h (gl_linked_node_value)
2847         (gl_linked_node_nx_set_value, gl_linked_iterator_free): Likewise.
2849         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Avoid using
2850         the same variable name in nested scopes.
2852 2020-05-31  Bruno Haible  <bruno@clisp.org>
2854         list-c++, set-c++, oset-c++, map-c++, omap-c++: Don't fool the compiler.
2855         Reported by Akim Demaille in
2856         <https://lists.gnu.org/archive/html/bug-bison/2020-05/msg00102.html>.
2857         * lib/gl_list.hh (gl_List::iterator::next): Avoid a reinterpret_cast.
2858         * lib/gl_set.hh (gl_Set::iterator::next): Likewise.
2859         * lib/gl_oset.hh (gl_OSet::iterator::next): Likewise.
2860         * lib/gl_map.hh (gl_Map::iterator::next): Likewise.
2861         * lib/gl_omap.hh (gl_OMap::iterator::next): Likewise.
2863 2020-05-30  Bruno Haible  <bruno@clisp.org>
2865         wmemchr: Relicense under LGPLv2+.
2866         * modules/wmemchr (License): Set to LGPLv2+.
2868 2020-05-30  Bruno Haible  <bruno@clisp.org>
2870         wmempcpy: New module.
2871         Reported by Paul Eggert in
2872         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00387.html>.
2873         * lib/wchar.in.h (wmempcpy): New declaration.
2874         * lib/wmempcpy.c: New file.
2875         * m4/wmempcpy.m4: New file.
2876         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmempcpy is declared.
2877         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMPCPY, HAVE_WMEMPCPY.
2878         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMPCPY,
2879         HAVE_WMEMPCPY.
2880         * modules/wmempcpy: New file.
2881         * tests/test-wchar-c++.cc: Check the signature of wmempcpy.
2882         * doc/glibc-functions/wmempcpy.texi: Mention the new module.
2883         * modules/mempcpy (Description): Fix typo.
2885 2020-05-30  Bruno Haible  <bruno@clisp.org>
2887         crypto/gc-random: Fix list of crypto devices for NetBSD, OpenBSD.
2888         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case NetBSD and OpenBSD.
2890 2020-05-30  Bruno Haible  <bruno@clisp.org>
2892         sys_random: Work around macOS bug.
2893         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Include <sys/types.h> and
2894         <stdlib.h> before <sys/random.h>.
2895         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
2896         * lib/sys_random.in.h: On macOS, include <sys/types.h> and <stdlib.h>
2897         first.
2898         * doc/glibc-headers/sys_random.texi: Mention the macOS problem.
2900 2020-05-30  Bruno Haible  <bruno@clisp.org>
2902         getrandom: Override incompatible system function on Solaris 11.
2903         * lib/sys_random.in.h (getrandom): Override if REPLACE_GETRANDOM is 1.
2904         * lib/getrandom.c (getrandom): When the system has getrandom, just
2905         invoke it.
2906         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set REPLACE_GETRANDOM if the
2907         system's getrandom function's prototype is not the expected one.
2908         * m4/sys_random_h.m4 (gl_SYS_RANDOM_H_DEFAULTS): Initialize
2909         REPLACE_GETRANDOM.
2910         * modules/sys_random (Makefile.am): Substitute REPLACE_GETRANDOM.
2911         * modules/getrandom (modules/getrandom): Consider REPLACE_GETRANDOM.
2912         * tests/test-getrandom.c (main): Allow error EINVAL as an alternative to
2913         EAGAIN.
2914         * doc/glibc-functions/getrandom.texi: Mention the new module and the
2915         Solaris problem.
2917 2020-05-30  Bruno Haible  <bruno@clisp.org>
2919         sys_random: Add C++ tests.
2920         * tests/test-sys_random-c++.cc: New file.
2921         * modules/sys_random-c++-tests: New file.
2922         * modules/sys_random-tests (Depends-on): Depend on it.
2924         sys_random: Add tests.
2925         * tests/test-sys_random.c: New file.
2926         * modules/sys_random-tests: New file.
2928         sys_random: New module.
2929         * lib/sys_random.in.h: Use the common idioms for overridable header
2930         files.
2931         * m4/sys_random_h.m4: New file.
2932         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Require gl_SYS_RANDOM_H_DEFAULTS.
2933         * modules/sys_random: New file.
2934         * modules/getrandom (Files): Remove lib/sys_random.in.h.
2935         (Depends-on): Add sys_random.
2936         (configure.ac): Use gl_SYS_RANDOM_MODULE_INDICATOR, not
2937         gl_UNISTD_MODULE_INDICATOR.
2938         (Makefile.am): Don't generate sys/random.h here.
2939         * doc/glibc-headers/sys_random.texi: New file.
2940         * doc/gnulib.texi: Include it.
2942 2020-05-30  Bruno Haible  <bruno@clisp.org>
2944         unistd: Remove conflicting declaration of getrandom().
2945         * lib/unistd.in.h (getrandom): Remove declaration.
2946         * m4/unistd_h.m4 (gl_UNISTD_H): Don't test whether getrandom is
2947         declared.
2948         (gl_UNISTD_H_DEFAULTS): Don't initialize GNULIB_GETRANDOM,
2949         HAVE_GETRANDOM.
2950         * modules/unistd (Makefile.am): Don't substitute GNULIB_GETRANDOM,
2951         HAVE_GETRANDOM.
2953 2020-05-30  Bruno Haible  <bruno@clisp.org>
2955         getrandom: Add tests.
2956         * tests/test-getrandom.c: New file.
2957         * modules/getrandom-tests: New file.
2959 2020-05-30  Bruno Haible  <bruno@clisp.org>
2961         crypto/gc-random: Fix link error on MSVC.
2962         * m4/gc-random.m4 (gl_GC_RANDOM): Set LIB_GC_RANDOM.
2963         * modules/crypto/gc-random (Link): New section.
2964         * modules/crypto/gc-tests (Makefile.am): Link test-gc against
2965         $(LIB_GC_RANDOM).
2967 2020-05-30  Bruno Haible  <bruno@clisp.org>
2969         Don't assume that UNICODE is not defined.
2970         Many Windows API functions are defined differently (redirecting to a
2971         function with suffix 'W') if the application defines the macro UNICODE
2972         than by default (redirecting to a function with suffix 'A').
2973         * lib/clean-temp.c (OSVERSIONINFO, GetVersionEx): Redirect to the
2974         variant with suffix 'A'.
2975         * lib/dirent-private.h (WIN32_FIND_DATA): Likewise.
2976         * lib/gc-gnulib.c (CryptAcquireContext): Likewise.
2977         * lib/getaddrinfo.c (GetModuleHandle): Likewise.
2978         * lib/getlogin.c (GetUserName): Likewise.
2979         * lib/getlogin_r.c (GetUserName): Likewise.
2980         * lib/gettimeofday.c (LoadLibrary): Likewise.
2981         * lib/isatty.c (LoadLibrary, QueryFullProcessImageName): Likewise.
2982         * lib/link.c (GetModuleHandle, CreateHardLink): Likewise.
2983         * lib/localename.c (GetLocaleInfo, EnumSystemLocales): Likewise.
2984         * lib/mountlist.c (GetDriveType): Likewise.
2985         * lib/nonblocking.c (GetNamedPipeHandleState): Likewise.
2986         * lib/opendir.c (WIN32_FIND_DATA, GetFullPathName, FindFirstFile):
2987         Likewise.
2988         * lib/physmem.c (GetModuleHandle): Likewise.
2989         * lib/poll.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
2990         PeekMessage, DispatchMessage): Likewise.
2991         * lib/progreloc.c (GetModuleFileName): Likewise.
2992         * lib/putenv.c (SetEnvironmentVariable): Likewise.
2993         * lib/read.c (GetNamedPipeHandleState): Likewise.
2994         * lib/readdir.c (FindNextFile): Likewise.
2995         * lib/relocatable.c (GetModuleFileName): Likewise.
2996         * lib/rename.c (MoveFileEx): Likewise.
2997         * lib/rewinddir.c (FindFirstFile): Likewise.
2998         * lib/select.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
2999         PeekMessage, DispatchMessage): Likewise.
3000         * lib/sethostname.c (GetComputerNameEx, SetComputerNameEx): Likewise.
3001         * lib/socket.c (WSASocket): Likewise.
3002         * lib/stat-w32.c (LoadLibrary, GetFinalPathNameByHandle): Likewise.
3003         * lib/stat.c (WIN32_FIND_DATA, CreateFile, FindFirstFile): Likewise.
3004         * lib/stdio-read.c (GetNamedPipeHandleState): Likewise.
3005         * lib/stdio-write.c (GetNamedPipeHandleState): Likewise.
3006         * lib/tmpdir.c (GetTempPath): Likewise.
3007         * lib/tmpfile.c (OSVERSIONINFO, GetVersionEx, GetTempPath): Likewise.
3008         * lib/uname.c (OSVERSIONINFO, GetVersionEx): Likewise.
3009         * lib/utime.c (CreateFile, GetFileAttributes): Likewise.
3010         * lib/windows-cond.c (CreateEvent): Likewise.
3011         * lib/windows-rwlock.c (CreateEvent): Likewise.
3012         * lib/windows-timedmutex.c (CreateEvent): Likewise.
3013         * lib/windows-timedrecmutex.c (CreateEvent): Likewise.
3014         * lib/windows-timedrwlock.c (CreateEvent): Likewise.
3015         * lib/write.c (GetNamedPipeHandleState): Likewise.
3017 2020-05-30  Bruno Haible  <bruno@clisp.org>
3019         physmem: Fix compilation errors on MSVC.
3020         * lib/physmem.c (PFN_MS_EX): Use BOOL, not WINBOOL.
3021         * modules/physmem (Depends-on): Add unistd.
3023 2020-05-29  Bruno Haible  <bruno@clisp.org>
3025         gnulib-tool: Fix link errors with a particular set of modules on mingw.
3026         * gnulib-tool (func_emit_tests_Makefile_am): Add ../lib/libgnu.a to
3027         LDADD a second time, after the second occurrence of libtests.a.
3028         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
3030 2020-05-29  Bruno Haible  <bruno@clisp.org>
3032         fnmatch: Rely on more gnulib modules.
3033         * modules/fnmatch (Depends-on): Add btowc, isblank, iswctype, wmemchr,
3034         wmempcpy, mempcpy.
3035         * lib/fnmatch.c: Assume that HAVE_WCTYPE_H, HAVE_BTOWC, HAVE_ISWCTYPE,
3036         HAVE_WMEMCHR, HAVE_WMEMPCPY, HAVE_ISBLANK, HAVE_DECL_ISBLANK,
3037         HAVE_MEMPCPY are all 1.
3038         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't test for btowc, isblank,
3039         iswctype, mempcpy, wmemchr, wmemcpy, wmempcpy, <wctype.h>.
3041 2020-05-29  Bruno Haible  <bruno@clisp.org>
3043         Avoid dynamic lookup of Windows API functions when possible.
3044         * lib/getaddrinfo.c (GetProcAddress, getaddrinfo_func,
3045         freeaddrinfo_func, getnameinfo_func, getaddrinfo_ptr, freeaddrinfo_ptr,
3046         getnameinfo_ptr): Don't define in a build for Windows XP or higher.
3047         (use_win32_p): Define differently.
3048         * lib/link.c (GetProcAddress, CreateHardLinkFuncType,
3049         CreateHardLinkFunc, initialized, initialize): Don't define in a build
3050         for Windows XP or higher.
3052 2020-05-29  Daiki Ueno  <ueno@gnu.org>
3054         read-file: disable buffering if RF_SENSITIVE is set
3055         * lib/read-file.c (read_file): Call setvbuf if RF_SENSITIVE.
3056         Suggested by Glenn Strauss.
3057         (fread_file): Suggest calling setvbuf before calling this
3058         function.  Suggested by Bruno Haible.
3060 2020-05-29  Bruno Haible  <bruno@clisp.org>
3062         wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset: Fix autoconf test.
3063         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Link, not only compile, the test
3064         program.
3065         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
3066         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
3067         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
3068         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
3070 2020-05-29  Bruno Haible  <bruno@clisp.org>
3072         Fix compilation error on native Windows (regression from 2020-05-28).
3073         Reported by Daiki Ueno.
3074         * lib/gettimeofday.c (GetSystemTimePreciseAsFileTimeFunc): Define as
3075         macro when not using dynamic loading.
3076         * lib/isatty.c (GetNamedPipeClientProcessIdFunc,
3077         QueryFullProcessImageNameFunc): Likewise.
3078         * lib/stat-w32.c (GetFileInformationByHandleExFunc,
3079         GetFinalPathNameByHandleFunc): Likewise.
3081 2020-05-29  Daiki Ueno  <ueno@gnu.org>
3083         fopen-gnu-tests: fix "\x" escape usage
3084         * tests/test-fopen-gnu.c (DATA): Use safer escape sequence.
3086 2020-05-28  Bruno Haible  <bruno@clisp.org>
3088         Avoid dynamic loading of Windows API functions when possible.
3089         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
3090         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00182.html>.
3091         * lib/gettimeofday.c (GetProcAddress,
3092         GetSystemTimePreciseAsFileTimeFuncType,
3093         GetSystemTimePreciseAsFileTimeFunc, initialized, initialize): Don't
3094         define in a build for Windows 8 or higher.
3095         * lib/isatty.c (GetProcAddress, GetNamedPipeClientProcessIdFuncType,
3096         GetNamedPipeClientProcessIdFunc, QueryFullProcessImageNameFuncType,
3097         QueryFullProcessImageNameFunc, initialized, initialize): Don't define
3098         in a build for Windows Vista or higher.
3099         * lib/stat-w32.c (GetProcAddress, GetFileInformationByHandleExFuncType,
3100         GetFileInformationByHandleExFunc, GetFinalPathNameByHandleFuncType,
3101         GetFinalPathNameByHandleFunc, initialized, initialize): Likewise.
3103 2020-05-28  Paul Eggert  <eggert@cs.ucla.edu>
3105         explicit_bzero-tests: improve -Wmissing-declarations pacification
3106         * tests/test-explicit_bzero.c: Now noinline.
3107         Suggested by Bruno Haible in:
3108         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00300.html
3110 2020-05-28  Bruno Haible  <bruno@clisp.org>
3112         Fix build errors due to read-file changes (regression from 2020-05-27).
3113         * lib/git-merge-changelog.c (read_changelog_file): Update read_file
3114         invocation.
3115         * tests/test-sameacls.c (main): Likewise.
3116         * tests/test-pipe-filter-gi1.c (main): Call read_file instead of
3117         read_binary_file.
3118         * tests/test-pipe-filter-ii1.c (main): Likewise.
3120 2020-05-28  Bruno Haible  <bruno@clisp.org>
3122         fts: Make more robust in multithreaded applications.
3123         * lib/fts.c (fts_open): Pass an O_CLOEXEC flag to open().
3124         * modules/fts (Depends-on): Add 'open'.
3126 2020-05-28  Bruno Haible  <bruno@clisp.org>
3128         relocatable-prog: Make more robust in multithreaded applications.
3129         * lib/progreloc.c (O_CLOEXEC): Define fallback to 0 when use from module
3130         relocatable-prog-wrapper.
3131         (find_executable): Pass an O_CLOEXEC flag to open().
3132         * modules/relocatable-prog (Depends-on): Add 'open'.
3134 2020-05-28  Bruno Haible  <bruno@clisp.org>
3136         getloadavg: Make more robust in multithreaded applications.
3137         * lib/getloadavg.c (getloadavg): Pass an O_CLOEXEC flag to open().
3138         Simplify use of O_CLOEXEC.
3139         * modules/getloadavg (Depends-on): Add 'open'.
3141 2020-05-28  Bruno Haible  <bruno@clisp.org>
3143         vma-iter: Make more robust in multithreaded applications.
3144         * lib/vma-iter.c (rof_open, vma_iterate): Pass an O_CLOEXEC flag to
3145         open().
3146         * modules/vma-iter (Depends-on): Add 'open'.
3148 2020-05-28  Bruno Haible  <bruno@clisp.org>
3150         truncate: Make more robust in multithreaded applications.
3151         * lib/truncate.c (truncate): Pass an O_CLOEXEC flag to open().
3153 2020-05-28  Bruno Haible  <bruno@clisp.org>
3155         pagealign_alloc: Make more robust in multithreaded applications.
3156         * lib/pagealign_alloc.c (pagealign_alloc): Pass an O_CLOEXEC flag to
3157         open().
3158         * modules/pagealign_alloc (Depends-on): Add 'open'.
3160 2020-05-28  Bruno Haible  <bruno@clisp.org>
3162         openat: Make more robust in multithreaded applications.
3163         * lib/openat.c (openat_needs_fchdir): Pass an O_CLOEXEC flag to open().
3165 2020-05-28  Bruno Haible  <bruno@clisp.org>
3167         at-internal: Make more robust in multithreaded applications.
3168         * lib/openat-proc.c (openat_proc_name): Pass an O_CLOEXEC flag to
3169         open().
3171 2020-05-28  Bruno Haible  <bruno@clisp.org>
3173         mountlist: Make more robust in multithreaded applications.
3174         * lib/mountlist.c (read_file_system_list): Pass an O_CLOEXEC flag to
3175         open().
3176         * modules/mountlist (Depends-on): Add 'open'.
3178 2020-05-28  Bruno Haible  <bruno@clisp.org>
3180         login_tty: Make more robust in multithreaded applications.
3181         * lib/login_tty.c (login_tty): Pass an O_CLOEXEC flag to open().
3182         * modules/login_tty (Depends-on): Add 'open'.
3184 2020-05-28  Bruno Haible  <bruno@clisp.org>
3186         javacomp: Make more robust in multithreaded applications.
3187         * lib/javacomp.c (get_classfile_version): Pass an O_CLOEXEC flag to
3188         open().
3189         * modules/javacomp (Depends-on): Add 'open'.
3191 2020-05-28  Bruno Haible  <bruno@clisp.org>
3193         getprogname: Make more robust in multithreaded applications.
3194         * lib/getprogname.c (getprogname): Pass an O_CLOEXEC flag to open().
3195         * modules/getprogname (Depends-on): Add 'open'.
3197 2020-05-28  Bruno Haible  <bruno@clisp.org>
3199         get_progname_of: Make more robust in multithreaded applications.
3200         * lib/get_progname_of.c (get_progname_of): Pass an O_CLOEXEC flag to
3201         open().
3202         * modules/get_progname_of (Depends-on): Add 'open'.
3204 2020-05-28  Bruno Haible  <bruno@clisp.org>
3206         get_ppid_of: Make more robust in multithreaded applications.
3207         * lib/get_ppid_of.c (get_ppid_of): Pass an O_CLOEXEC flag to open().
3208         * modules/get_ppid_of (Depends-on): Add 'open'.
3210 2020-05-28  Bruno Haible  <bruno@clisp.org>
3212         get-rusage-as: Make more robust in multithreaded applications.
3213         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Pass an O_CLOEXEC
3214         flag to open().
3215         * modules/get-rusage-as (Depends-on): Add 'open'.
3217 2020-05-28  Bruno Haible  <bruno@clisp.org>
3219         crypto/gc: Make more robust in multithreaded applications.
3220         * lib/gc-gnulib.c (randomize): Pass an O_CLOEXEC flag to open().
3221         * modules/crypto/gc (Depends-on): Add 'open'.
3223 2020-05-28  Bruno Haible  <bruno@clisp.org>
3225         copy-file: Make more robust in multithreaded applications.
3226         * lib/copy-file.c (qcopy_file_preserving): Pass an O_CLOEXEC flag to
3227         open().
3229 2020-05-28  Bruno Haible  <bruno@clisp.org>
3231         chown: Make more robust in multithreaded applications.
3232         * lib/chown.c (rpl_chown): Pass an O_CLOEXEC flag to open().
3234 2020-05-28  Bruno Haible  <bruno@clisp.org>
3236         doc: Fix statement about O_CLOEXEC (wrong since 2017-08-14).
3237         * doc/posix-headers/fcntl.texi: Gnulib no longer defines O_CLOEXEC to 0.
3239 2020-05-28  Daiki Ueno  <ueno@gnu.org>
3241         fopen-gnu: make 'b' flag can be used with 'e' on Windows
3242         * lib/fopen.c (rpl_fopen): Pass O_BINARY to open, if a 'b' flag is
3243         specified on Windows.
3244         * tests/test-fopen-gnu.c (DATA): New define.
3245         (main): Add test for reading binary files with an 'e' flag.
3247 2020-05-27  Bruno Haible  <bruno@clisp.org>
3249         Don't assume that UNICODE is not defined.
3250         Some Windows types, such as TCHAR, LPTSTR, LPCTSTR, are defined
3251         differently if the application defines the macro UNICODE.
3252         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
3253         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00184.html>.
3254         * lib/link.c (CreateHardLinkFuncType): Use LPCSTR, not LPCTSTR.
3255         * lib/localename.c (enum_locales_fn): Use LPSTR, not LPTSTR.
3256         * lib/stat-w32.c (GetFinalPathNameByHandleFuncType): Likewise.
3258 2020-05-27  Bruno Haible  <bruno@clisp.org>
3260         Improve pattern for defining _WIN32_WINNT.
3261         Newer versions of the Windows API may not only add, but also remove API
3262         functions. Therefore, when the user is e.g. building for Windows 10, we
3263         should not set _WIN32_WINNT to e.g. Windows 8, as this may enable the
3264         use of APIs that were present in Windows 8 but removed in Windows 10.
3265         Suggested by Steve Lhomme <robux4@ycbcr.xyz> in
3266         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00318.html>.
3267         * lib/ftruncate.c (_WIN32_WINNT): Don't set to a smaller value.
3268         * lib/sethostname.c (_WIN32_WINNT): Likewise.
3269         * lib/stat-w32.c (_WIN32_WINNT): Likewise.
3271 2020-05-27  Bruno Haible  <bruno@clisp.org>
3273         javacomp: Make more robust in multithreaded applications.
3274         * lib/javacomp.c (write_temp_file): Pass an 'e' flag to fopen_temp.
3275         * modules/javacomp (Depends-on): Add fopen-gnu.
3277 2020-05-27  Bruno Haible  <bruno@clisp.org>
3279         mountlist: Make more robust in multithreaded applications.
3280         * lib/mountlist.c (setmntent, read_file_system_list): Pass an 'e' flag
3281         to fopen.
3282         * modules/mountlist (Depends-on): Add fopen-gnu.
3284 2020-05-27  Bruno Haible  <bruno@clisp.org>
3286         sethostname: Make more robust in multithreaded applications.
3287         * lib/sethostname.c (sethostname): Pass an 'e' flag to fopen.
3288         * modules/sethostname (Depends-on): Add fopen-gnu.
3290 2020-05-27  Bruno Haible  <bruno@clisp.org>
3292         readutmp: Make more robust in multithreaded applications.
3293         * lib/readutmp.c (read_utmp): Pass an 'e' flag to fopen.
3294         * modules/readutmp (Depends-on): Add fopen-gnu.
3296 2020-05-27  Bruno Haible  <bruno@clisp.org>
3298         getpass: Make more robust in multithreaded applications.
3299         * lib/getpass.c (getpass): Pass an 'e' flag to fopen.
3300         * modules/getpass (Depends-on): Add fopen-gnu.
3302 2020-05-27  Bruno Haible  <bruno@clisp.org>
3304         getloadavg: Make more robust in multithreaded applications.
3305         * lib/getloadavg.c (getloadavg): Pass an 'e' flag to fopen.
3306         * modules/getloadavg (Depends-on): Add fopen-gnu.
3308 2020-05-27  Bruno Haible  <bruno@clisp.org>
3310         exclude: Make more robust in multithreaded applications.
3311         * lib/exclude.c (add_exclude_file): Pass an 'e' flag to fopen.
3312         * modules/exclude (Depends-on): Add fopen-gnu.
3314 2020-05-27  Bruno Haible  <bruno@clisp.org>
3316         bitset: Make more robust in multithreaded applications.
3317         * lib/bitset/stats.c (bitset_stats_read, bitset_stats_write): Pass an
3318         'e' flag to fopen.
3319         * modules/bitset (Depends-on): Add fopen-gnu.
3321 2020-05-27  Daiki Ueno  <ueno@gnu.org>
3323         read-file: add RF_SENSITIVE flag
3324         * lib/read-file.h (RF_SENSITIVE): New define.
3325         * lib/read-file.c (fread_file, read_file): Take into account of
3326         RF_SENSITIVE flag.
3327         * modules/read-file (Depends-on): Add explicit_bzero.
3328         This adds an alternative behavior of those functions to explicitly
3329         clear the internal memory block when it becomes unused.  This is
3330         useful for reading sensitive information from a file.
3332 2020-05-27  Daiki Ueno  <ueno@gnu.org>
3334         read-file: add flags to modify reading behavior
3335         * lib/read-file.h (RF_BINARY): New define.
3336         (fread_file, read_file): Take FLAGS argument.
3337         (read_binary_file): Remove.
3338         * lib/read-file.c (internal_read_file): Merge into ...
3339         (read_file): ... here.
3340         * modules/read-file-tests (Files): Add "tests/macros.h".
3341         * tests/test-read-file.c (main): Refactor using ASSERT macro.
3342         * NEWS: Mention this change.
3344 2020-05-26  Bernhard Voelker  <mail@bernhard-voelker.de>
3346         doc/gnulib-intro.texi: add missing "to" in sentence
3347         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
3348         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00316.html>.
3349         * doc/gnulib-intro.texi (Collaborative Development): Add "to".
3351 2020-05-26  Bruno Haible  <bruno@clisp.org>
3353         count-one-bits: Fix MSVC specific code.
3354         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
3355         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00309.html>.
3356         * lib/count-one-bits.h (COUNT_ONE_BITS_GENERIC): Don't define if we're
3357         using GCC.
3358         [_MSC_VER]: Use correct syntax for #pragma intrinsic.
3359         (__popcnt64): In 32-bit mode, define as an inline function.
3360         (COUNT_ONE_BITS): Rename first argument to GCC_BUILTIN.
3362 2020-05-26  Bruno Haible  <bruno@clisp.org>
3364         argz: Avoid name clashes through argz.h.
3365         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
3366         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00308.html>.
3367         * lib/argz.h: Don't use __ prefixed identifiers.
3368         (const): Remove definition.
3369         (argz_next): Remove inline definitions.
3371 2020-05-26  Daiki Ueno  <ueno@gnu.org>
3373         read-file: make use of fopen-gnu
3374         * lib/read-file.c (read_file): Pass an 'e' flag to fopen.
3375         (read_binary_file): Likewise.
3376         * modules/read-file (Depends-on): Add fopen-gnu.
3378 2020-05-25  Paul Eggert  <eggert@cs.ucla.edu>
3380         getentropy, getrandom: new modules
3381         * MODULES.html.sh (func_all_modules):
3382         * lib/unistd.in.h (getentropy, getrandom):
3383         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS):
3384         * modules/unistd (unistd.h):
3385         Add support for getentropy, getrandom.
3386         * doc/glibc-functions/getentropy.texi (getentropy):
3387         * doc/glibc-functions/getrandom.texi (getrandom):
3388         These are now fixed on some platforms.
3389         * lib/getentropy.c, lib/getrandom.c, lib/sys_random.in.h:
3390         * m4/getentropy.m4, m4/getrandom.m4:
3391         * modules/getentropy, modules/getentropy-tests:
3392         * modules/getrandom, modules/getrandom-tests:
3393         * tests/test-getentropy.c, tests/test-getrandom.c:
3394         New files.
3396 2020-05-25  Bruno Haible  <bruno@clisp.org>
3398         Add missing C99 dependencies.
3399         Reported by Paul Smith <psmith@gnu.org> in
3400         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00290.html>.
3401         * modules/assert (Depends-on): Add c99.
3402         * modules/filenamecat-lgpl (Depends-on): Likewise.
3403         * modules/libc-config (Depends-on): Likewise.
3404         * modules/mktime (Depends-on): Likewise.
3405         * modules/random_r (Depends-on): Likewise.
3406         * modules/regex (Depends-on): Likewise.
3407         * modules/scratch_buffer (Depends-on): Likewise.
3408         * modules/timespec-add (Depends-on): Likewise.
3409         * modules/timespec-sub (Depends-on): Likewise.
3410         * modules/verify (Depends-on): Likewise.
3412 2020-05-24  Paul Eggert  <eggert@cs.ucla.edu>
3414         explicit_bzero-tests: pacify -Wmissing-declarations
3415         * tests/test-explicit_bzero.c (do_secret_stuff, test_stack):
3416         Now static.
3418 2020-05-24  Bruno Haible  <bruno@clisp.org>
3420         fopen-gnu: Add tests.
3421         * tests/test-fopen-gnu.c: New file.
3422         * modules/fopen-gnu-tests: New file.
3424         fopen-gnu: New module.
3425         Suggested by Tim Rühsen <tim.ruehsen@gmx.de> in
3426         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00119.html>.
3427         * lib/fopen.c (rpl_fopen): When the fopen-gnu module is enabled and the
3428         mode contains an 'x' or 'e' flag, use open() followed by fdopen().
3429         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): New macro.
3430         * modules/fopen-gnu: New file.
3431         * doc/posix-functions/fopen.texi: Document the 'fopen-gnu' module.
3433 2020-05-24  Bruno Haible  <bruno@clisp.org>
3435         open, openat: Really support O_CLOEXEC.
3436         * lib/open.c (open): When have_cloexec is still undecided, do pass a
3437         O_CLOEXEC flag to orig_open.
3438         * lib/openat.c (rpl_openat): When have_cloexec is still undecided, do
3439         pass a O_CLOEXEC flag to orig_openat.
3440         * tests/test-open.h (test_open): Verify that O_CLOEXEC is honoured.
3441         * modules/open-tests (Depends-on): Add fcntl.
3442         * modules/openat-tests (Depends-on): Likewise.
3443         * modules/fcntl-safer-tests (Depends-on): Likewise.
3445 2020-05-24  Bruno Haible  <bruno@clisp.org>
3447         fopen: Fix the trailing slash workaround.
3448         * lib/fopen.c (rpl_fopen): Parse the mode string. Recognize "r+" as a
3449         write access. Pass the right flags to open().
3450         * tests/test-fopen.h (test_fopen): Add a few more tests on directories.
3452 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3454         assure: new macro ‘affirm’
3455         * lib/assure.h: Include verify.h.
3456         (affirm): New macro, after a suggestion by Marc Nieper-Wißkirchen in:
3457         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00263.html
3458         and commentary by Bruno Haible in:
3459         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00278.html
3460         * modules/assure (Depends-on:): Add verify.
3462 2020-05-23  Bruno Haible  <bruno@clisp.org>
3464         calloc-gnu: Make test work in non-flat address spaces.
3465         Uses code by Paul Eggert.
3466         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Allow a calloc() implementation
3467         to return more than SIZE_MAX bytes, but only without wrap-around bugs.
3469 2020-05-23  Bruno Haible  <bruno@clisp.org>
3471         calloc-gnu: Avoid wrong configure results with GCC's AddressSanitizer.
3472         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Split the AC_RUN_IFELSE into two
3473         AC_RUN_IFELSE invocations.
3475 2020-05-23  Bruno Haible  <bruno@clisp.org>
3477         isnanf, isnanl, isnan: Don't use nonexistent builtins with clang.
3478         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM,
3479         gl_ISNANF_WORKS): Don't use __builtin_isnanf on clang versions that
3480         don't have it.
3481         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
3482         gl_FUNC_ISNANL_WORKS): Don't use __builtin_isnanl on clang versions that
3483         don't have it.
3484         * lib/isnanf-nolibm.h (__has_builtin): New macro.
3485         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
3486         it.
3487         * lib/isnanl-nolibm.h (__has_builtin): New macro.
3488         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
3489         it.
3490         * lib/math.in.h (__has_builtin): New macro.
3491         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
3492         it.
3493         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
3494         it.
3495         (isnan): Don't use the builtins on clang versions that don't have
3496         __builtin_isnanf and __builtin_isnanl.
3498 2020-05-23  Bruno Haible  <bruno@clisp.org>
3500         calloc-gnu: Avoid wrong configure results with clang.
3501         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Mark the pointer variable as
3502         'volatile', to defeat compiler optimizations.
3504 2020-05-23  Bruno Haible  <bruno@clisp.org>
3506         isnanl, isnanl-nolibm: Make a test work better with "gcc -O2" on x86_64.
3507         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Pass the
3508         'long double' values by reference, with values taken from a statically
3509         allocated array.
3511 2020-05-23  Bruno Haible  <bruno@clisp.org>
3513         findprog-in: Ignore directories.
3514         Reported by Frederick Eaton via Dmitry Goncharov in
3515         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
3516         * lib/findprog-in.c (find_in_given_path): When the file found is a
3517         directory, set errno to EACCES and, during a PATH search, continue
3518         searching.
3519         * modules/findprog-in (Depends-on): Add sys_stat, stat.
3521 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3523         verify: document ‘assume’ better
3524         * lib/verify.h (assume): Say it’s for static analysis, not dynamic.
3526 2020-05-22  Asher Gordon  <AsDaGo@posteo.net>
3528         gendocs: Clarify licenses for templates.
3529         * doc/gendocs_template: Add a GNU All-Permissive license notice
3530         and bump Parent-Version.
3531         * doc/gendocs_template_min: Add a GNU All-Permissive license
3532         notice and copy the explanatory comment about the license notice
3533         at the bottom from gendocs_template.
3535 2020-05-21  Bruno Haible  <bruno@clisp.org>
3537         group-member: Relicense under LGPLv2+.
3538         Jim Meyering's approval is in
3539         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00218.html>.
3540         Paul Eggert's approval is in
3541         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00225.html>.
3542         Eric Blake's approval is in
3543         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00217.html>.
3544         * modules/group-member (License): Change to LGPLv2+.
3546 2020-05-21  Bruno Haible  <bruno@clisp.org>
3548         memmem: Avoid wrong configure results with "clang -fsanitize=undefined".
3549         Reported by Tim Rühsen in
3550         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
3551         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Use NULL + 1, not NULL.
3553 2020-05-21  Bruno Haible  <bruno@clisp.org>
3555         regex: Avoid wrong configure results with "clang -fsanitize=leak".
3556         Reported by Tim Rühsen in
3557         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
3558         * m4/regex.m4 (gl_REGEX): Free compiled regexes and allocated registers
3559         before returning with status 0.
3561 2020-05-21  Bruno Haible  <bruno@clisp.org>
3563         glob: Avoid wrong configure results with "clang -fsanitize=leak".
3564         Reported by Tim Rühsen in
3565         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
3566         * m4/glob.m4 (gl_GLOB): Free allocated memory before returning.
3568 2020-05-21  Bruno Haible  <bruno@clisp.org>
3570         fchownat: Support clang -fsanitize=implicit-integer-sign-change better.
3571         Reported by Tim Rühsen in
3572         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
3573         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
3574         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Cast -1 to uid_t or git_t,
3575         respectively.
3577 2020-05-18  Tim Rühsen  <tim.ruehsenqgmx.de>
3579         getdelim: Avoid wrong configure results with gcc -fsanitize=address.
3580         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Fix memleak.
3582 2020-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3584         ftoastr: fix ifndef typo
3585         * lib/ftoastr.h (_GL_FTOASTR_H): Define.
3587 2020-05-19  Bruno Haible  <bruno@clisp.org>
3589         havelib: Tweak documentation.
3590         * doc/havelib.texi (Searching for Libraries): Fix typo.
3592 2020-05-18  Siddhesh Poyarekar  <siddhesh@gotplt.org>
3594         vcs-to-changelog: Rename vcs_to_changelog.py to use hyphens.
3595         This was needed earlier because modules had to import the main script,
3596         but that is no longer true.  Rename the script so that it is
3597         consistent with all other scripts in gnulib and uses hyphens.
3598         * build-aux/vcs_to_changelog.py: Rename to...
3599         * build-aux/vcs-to-changelog.py: ... this.
3600         * doc/vcs-to-changelog.texi (VCS To ChangeLog): Update reference.
3601         * modules/vcs-to-changelog: Likewise.
3603 2020-05-17  Bruno Haible  <bruno@clisp.org>
3605         Clarify intended usage of the license file modules.
3606         Reported by Asher Gordon <AsDaGo@posteo.net> in
3607         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00126.html>.
3608         * doc/licenses-texi.texi (License Texinfo sources): Mention the
3609         GNU AGPL. Explain the intended usage of the modules.
3610         * modules/fdl (Notice): Discourage use as a module.
3611         * modules/fdl-1.3 (Notice): Likewise.
3613 2020-05-17  Akim Demaille  <akim@lrde.epita.fr>
3615         hash: add hash_xinsert
3616         * lib/hash.h, lib/xhash.c (hash_xinsert): New.
3618 2020-05-16  Bruno Haible  <bruno@clisp.org>
3620         findprog-lgpl: Fix link error (existing since 2008-09-02).
3621         * modules/findprog-lgpl (Makefile.am): Arrange to compile
3622         findprog-lgpl.c, not findprog.c.
3623         * lib/findprog.c (find_in_path): Add LGPLed replacement code for
3624         XNMALLOC.
3626 2020-05-15  Paul Eggert  <eggert@cs.ucla.edu>
3628         c-stack: pacify -Wunused-result when DEBUG
3629         Problem reported by Marc Nieper-Wißkirchen in:
3630         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00132.html
3631         * lib/c-stack.c (segv_handler, overflow_handler, segv_handler) [DEBUG]:
3632         Explicitly ignore write failures.
3634 2020-05-13  Jim Meyering  <meyering@fb.com>
3636         announce-gen: improve a comment
3637         * build-aux/announce-gen: Improve comment.
3639 2020-05-12  Paul Eggert  <eggert@cs.ucla.edu>
3641         xalloc: pacify -Wanalyzer-possible-null-argument
3642         Problem reported for GCC 10.1.0 by Bruno Haible in:
3643         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00118.html
3644         * lib/xmalloc.c (HAVE_GNU_MALLOC, HAVE_GNU_REALLOC): New constants.
3645         (xmalloc): Suppress unnecessary check if HAVE_GNU_MALLOC.
3646         (xrealloc): Suppress unnecssary check if HAVE_GNU_REALLOC.
3648 2020-05-11  Paul Eggert  <eggert@cs.ucla.edu>
3650         careadlinkat: fix GCC 10 workaround
3651         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
3652         Massage the code so that it’s closer to what it was before
3653         the GCC 10.1.0 workaround was introduced.  This fixes
3654         a loop when !buffer and the bug workaround is in effect.
3655         Remove unnecessary casts.  Defend in a different way
3656         against (buffer && !buffer_size), by adding at least 1
3657         to buf_size each time through the loop.
3659 2020-05-10  Bruno Haible  <bruno@clisp.org>
3661         doc: Mark HP-UX as unsupported.
3662         * doc/gnulib-intro.texi (Target Platforms): List HP-UX as unsupported.
3664 2020-05-10  Paul Eggert  <eggert@cs.ucla.edu>
3666         careadlinkat: limit GCC workaround
3667         * lib/careadlinkat.c (careadlinkat): Limit workaround to GCC
3668         10.1.0 and later, since the workaround is pretty bad and the GCC
3669         bug should get fixed.
3671 2020-05-10  Bruno Haible  <bruno@clisp.org>
3673         havelib: Enhance documentation.
3674         * doc/havelib.texi (Searching for Libraries): Mention the bad
3675         consequences of using LIBxxx instead of LTLIBxxx and vice versa.
3677 2020-05-10  Bruno Haible  <bruno@clisp.org>
3679         attribute: Clarify list of attributes.
3680         * lib/attribute.h: Reorder the list of attributes, and group them by
3681         purpose.
3683 2020-05-10  Bruno Haible  <bruno@clisp.org>
3685         string: Fix compilation error in C++ mode.
3686         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): In C mode, use plain
3687         _GL_WARN_ON_USE.
3688         * lib/string.in.h (strchr, strpbrk, strrchr): Use _GL_WARN_ON_USE_CXX
3689         instead of _GL_WARN_ON_USE.
3691 2020-05-10  Akim Demaille  <akim@lrde.epita.fr>
3693         announce-gen: add support for dist-lzip
3694         * build-aux/announce-gen (@archive_suffixes): Add tar.lz.
3696 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
3698         manywarnings: port to GCC 10.1
3699         * build-aux/gcc-warning.spec:
3700         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)):
3701         Add GCC 10.1.0 warnings.
3703         careadlinkat: pacify -Wreturn-local-addr
3704         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
3705         Pacify gcc 10’s -Wreturn-local-addr option.
3706         Simplify some of the later code.
3708 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
3710         attribute: remove ATTRIBUTE_DEPRECATED
3711         * lib/attribute.h: Improve recently-added comments, mostly
3712         by shortening them (use active voice, etc.).
3713         (ATTRIBUTE_DEPRECATED): Remove, as it duplicates DEPRECATED.
3714         Problem reported by Bruno Haible in:
3715         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00089.html
3717 2020-05-09  Bruno Haible  <bruno@clisp.org>
3719         attribute: Add comments.
3720         * lib/attribute.h: Document each macro.
3722 2020-05-09  Akim Demaille  <akim@lrde.epita.fr>
3724         bitset: use the attribute module
3725         * modules/bitset: Depend on 'attribute'.
3726         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Remove.
3727         * lib/bitset.c, lib/bitset/array.c, lib/bitset/list.c,
3728         * lib/bitset/stats.c, lib/bitset/table.c, lib/bitset/vector.c:
3729         Use MAYBE_UNUSED instead of ATTRIBUTE_UNUSED.
3731 2020-05-09  Bruno Haible  <bruno@clisp.org>
3733         c-stack: Fix warning when DEBUG is enabled.
3734         Patch suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
3735         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00081.html>.
3736         * lib/c-stack.c: Include <stdio.h>.
3738 2020-05-09  Bruno Haible  <bruno@clisp.org>
3740         Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
3741         * lib/argp.h (_GL_ATTRIBUTE_FORMAT): Remove macro.
3742         * lib/argp-fmtstream.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3743         * lib/c-snprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3744         * lib/c-vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3745         * lib/c-vasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3746         * lib/c-vsnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3747         * lib/c-xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3748         * lib/error.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3749         * lib/parse-datetime.y (_GL_ATTRIBUTE_FORMAT): Likewise.
3750         * lib/vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3751         * lib/xprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3752         * lib/xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3754 2020-05-09  Bruno Haible  <bruno@clisp.org>
3756         Remove redundant definitions of _GL_ATTRIBUTE_ALLOC_SIZE.
3757         Reported by Akim Demaille in
3758         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00077.html>.
3759         * lib/eealloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Remove macro.
3760         * lib/pagealign_alloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
3761         * lib/xalloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
3763 2020-05-09  Bruno Haible  <bruno@clisp.org>
3765         stdio, monetary: Don't redefine _GL_ATTRIBUTE_FORMAT.
3766         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Don't override the definition
3767         that usually comes from m4/gnulib-common.m4.
3768         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3770 2020-05-09  Bruno Haible  <bruno@clisp.org>
3772         dirent, stdlib, wchar, string: Don't redefine _GL_ATTRIBUTE_PURE.
3773         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Don't override the definition
3774         that usually comes from m4/gnulib-common.m4.
3775         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3776         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3777         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3779 2020-05-09  Bruno Haible  <bruno@clisp.org>
3781         uchar: Work around incorrect char16_t, char32_t types on Haiku 2020.
3782         * lib/uchar.in.h (char16_t): Define as macro if
3783         GNULIB_OVERRIDES_CHAR16_T.
3784         (char32_t): Define as macro if GNULIB_OVERRIDES_CHAR32_T.
3785         * m4/uchar.m4 (gl_TYPE_CHAR16_T, gl_TYPE_CHAR32_T): New macros.
3786         (gl_UCHAR_H): Invoke them.
3787         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_OVERRIDES_CHAR16_T,
3788         GNULIB_OVERRIDES_CHAR32_T.
3789         * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Require
3790         gl_TYPE_CHAR32_T and test GNULIB_OVERRIDES_CHAR32_T.
3791         * modules/uchar (Makefile.am): Substitute GNULIB_OVERRIDES_CHAR16_T,
3792         GNULIB_OVERRIDES_CHAR32_T.
3794 2020-05-09  Bruno Haible  <bruno@clisp.org>
3796         Macro tweaks.
3797         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Correct config.h comment.
3798         * m4/wint_t.m4 (gt_TYPE_WINT_T): Correct indentation.
3800 2020-05-08  Bruno Haible  <bruno@clisp.org>
3802         c32rtomb: Avoid compilation failure on Haiku.
3803         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Test for c32rtomb without excluding
3804         inline definitions.
3805         * doc/posix-functions/c32rtomb.texi: Mention the Haiku problem.
3807 2020-05-08  Bruno Haible  <bruno@clisp.org>
3809         mbrtoc32: Avoid compilation failure on Haiku.
3810         * m4/mbrtoc32.m4 (gl_CHECK_FUNC_MBRTOC32): New macro.
3811         (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Use it instead of
3812         AC_CHECK_FUNCS_ONCE.
3813         * doc/posix-functions/mbrtoc32.texi: Mention the Haiku problem.
3815 2020-05-08  Bruno Haible  <bruno@clisp.org>
3817         limits-h: Define LONG_BIT correctly on Haiku/x86_64.
3818         * lib/limits.in.h: Define and test _GL_ALREADY_INCLUDING_LIMITS_H.
3820 2020-05-08  Bruno Haible  <bruno@clisp.org>
3822         list: Update documentation.
3823         Reported by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
3824         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00062.html>.
3825         * doc/containers.texi (Container data types): Document the new list
3826         operations and their complexity.
3828 2020-05-08  Bruno Haible  <bruno@clisp.org>
3830         ignore-value tests: Use module 'attribute'.
3831         * m4/gnulib-common.m4 (gl_COMMON_BODY): Fix a typo.
3832         * tests/test-ignore-value.c: Include attribute.h.
3833         (_GL_ATTRIBUTE_RETURN_CHECK): Remove macro. Use NODISCARD instead.
3834         * modules/ignore-value-tests (Depends-on): Add attribute.
3836 2020-05-08  Bruno Haible  <bruno@clisp.org>
3838         uniname/uniname: Use module 'attribute'.
3839         * lib/uniname/gen-uninames.lisp: Emit a reference to ATTRIBUTE_PACKED.
3840         * lib/uniname/uninames.h: Regenerated.
3841         * lib/uniname/uniname.c: Include attribute.h.
3842         * modules/uniname/uniname (Depends-on): Add attribute.
3844 2020-05-08  Bruno Haible  <bruno@clisp.org>
3846         c32rtomb: Use module 'attribute'.
3847         * lib/c32rtomb.c: Include attribute.h.
3848         (FALLTHROUGH): Remove macro.
3849         * modules/c32rtomb (Depends-on): Add attribute.
3851 2020-05-08  Bruno Haible  <bruno@clisp.org>
3853         xsize: Use module 'attribute'.
3854         * lib/xsize.h: Include attribute.h. Use ATTRIBUTE_PURE.
3855         * modules/xsize (Depends-on): Add attribute.
3857 2020-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3859         * m4/gnulib-common.m4 (gl_COMMON_BODY): Minor style fixes.
3861         * lib/attribute.h: Minor style fixes.
3863         Fix version-etc glitch on OpenIndiana
3864         Problem reported by Mats Erik Andersson in:
3865         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00067.html
3866         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Remove defn
3867         that now clashes with gnulib-common.h.  All uses changed.
3869 2020-05-03  Paul Eggert  <eggert@cs.ucla.edu>
3871         attribute: new module
3872         This simplifies use of GCC and C2X attributes like ‘deprecated’.
3873         * MODULES.html.sh: Add attribute.
3874         * doc/attribute.texi, lib/attribute.h, modules/attribute: New files.
3875         * doc/gnulib.texi (Particular Modules): Add Attributes.
3876         * lib/backupfile.c, lib/fnmatch.c, lib/freopen-safer.c:
3877         * lib/mbrtoc32.c, lib/mbrtowc.c, lib/nstrftime.c, lib/quotearg.c:
3878         * lib/savewd.c, lib/unistr/u8-uctomb-aux.c, lib/unistr/u8-uctomb.c:
3879         * lib/vasnprintf.c:
3880         Include attribute.h, and let it define FALLTHROUGH.
3881         * lib/bitset/base.h, lib/c-stack.c (__attribute__): Remove macro.
3882         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Define in terms of
3883         _GL_ATTRIBUTE_MAYBE_UNUSED, for forwards compatibility to C2X.
3884         * lib/dfa.c (FALLTHROUGH): Define consistently with gl_COMMON_BODY.
3885         This is a copy since Gawk doesn’t use Gnulib.
3886         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Remove definition that
3887         is incompatible with gl_COMMON_BODY’s.  All uses changed.
3888         * lib/fts.c: Include attribte.h, for FALLTHROUGH.
3889         Keep the existing FALLTHROUGH definition since Glibc might use it,
3890         and it does no harm to Gnulib’s FALLTHROUGH.
3891         * lib/fts_.h, lib/inttostr.h:
3892         (__GNUC_PREREQ): Remove; no longer needed.
3893         (__attribute_warn_unused_result__): Remove.  All uses
3894         replaced by _GL_ATTRIBUTE_NODISCARD.
3895         * lib/gl_list.h, lib/gl_map.h, lib/gl_omap.h, lib/gl_oset.h:
3896         * lib/gl_set.h: Prefer _GL_ATTRIBUTE_NODISCARD to an ifdeffed
3897         __attribute__ ((__warn_unused_result__)), for forward
3898         compatibility to C2X.
3899         * lib/hash.h (_GL_ATTRIBUTE_WUR): Remove.  All uses replaced by
3900         _GL_ATTRIBUTE_NODISCARD.
3901         (_GL_ATTRIBUTE_DEPRECATED): Remove, since gl_COMMON_BODY defines it.
3902         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Remove.  All uses
3903         replaced by gl_COMMON_BODY’s implementation, which has a
3904         slightly different signature.
3905         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK):
3906         Remove.  All uses replaced by _GL_ATTRIBUTE_NODISCARD.
3907         * lib/unused-parameter.h (_GL_UNUSED_PARAMETER):
3908         Define in terms of _GL_ATTRIBUTE_MAYBE_UNUSED.
3909         No doubt all uses should be replaced, at some point.
3910         * m4/gnulib-common.m4 (_GL_GNUC_PREREQ): New macro.
3911         (_Noreturn): Use it.
3912         (_GL_HAS_ATTRIBUTE, _GL_ATTRIBUTE_ALLOC_SIZE)
3913         (_GL_ATTRIBUTE_ALWAYS_INLINE, _GL_ATTRIBUTE_ARTIFICIAL)
3914         (_GL_ATTRIBUTE_COLD)
3915         (_GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_ERROR)
3916         (_GL_ATTRIBUTE_WARNING, _GL_ATTRIBUTE_EXTERNALLY_VISIBLE)
3917         (_GL_ATTRIBUTE_FALLTHROUGH, _GL_ATTRIBUTE_FORMAT)
3918         (_GL_ATTRIBUTE_LEAF, _GL_ATTRIBUTE_MAY_ALIAS)
3919         (_GL_ATTRIBUTE_MAYBE_UNUSED)
3920         (_GL_ATTRIBUTE_NODISCARD, _GL_ATTRIBUTE_NOINLINE)
3921         (_GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_NONSTRING)
3922         (_GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PACKED, _GL_ATTRIBUTE_PURE)
3923         (_GL_ATTRIBUTE_RETURNS_NONNULL)
3924         (_GL_ATTRIBUTE_SENTINEL): New macros.
3925         * modules/backup-rename, modules/backupfile, modules/c-vasnprintf:
3926         * modules/fnmatch, modules/freopen-safer, modules/fts:
3927         * modules/mbrtoc32, modules/mbrtowc, modules/nstrftime:
3928         * modules/quotearg, modules/savewd:
3929         * modules/unistdio/u16-u16-vasnprintf:
3930         * modules/unistdio/u16-vasnprintf:
3931         * modules/unistdio/u32-u32-vasnprintf:
3932         * modules/unistdio/u32-vasnprintf:
3933         * modules/unistdio/u8-u8-vasnprintf:
3934         * modules/unistdio/u8-vasnprintf:
3935         * modules/unistdio/ulc-vasnprintf:
3936         * modules/unistr/u8-uctomb, modules/vasnprintf:
3937         (Depends-on:): Add attribute module.
3939 2020-05-03  Bruno Haible  <bruno@clisp.org>
3941         bison: Fix today's commit.
3942         * m4/bison.m4 (gl_PROG_BISON): Set ac_verc_fail to 'yes', not 'true'.
3944 2020-05-03  Bruno Haible  <bruno@clisp.org>
3946         list-c++: Add get_first, get_last, set_first, set_last operations.
3947         * lib/gl_list.hh (class gl_List): Add methods get_first, get_last,
3948         set_first, set_last.
3949         * lib/gl_list.h: Tweak comments.
3951 2020-05-03  Akim Demaille  <akim@lrde.epita.fr>
3953         bison: rely on bison's %require to check a version requirement
3954         See https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00021.html.
3955         * m4/bison.m4 (gl_PROG_BISON): Let bison itself decide if it it recent
3956         enough of not.
3957         So far it is the only know Yacc tool that supports '%require'.
3958         Other yaccs will actually even choke on seeing the -o option after the
3959         input file name.
3960         * m4/parse-datetime.m4: Simplify gl_PROG_BISON invocation.
3962 2020-05-02  Bruno Haible  <bruno@clisp.org>
3964         list: Add get_first, get_last, set_first, set_last operations.
3965         * lib/gl_list.h (gl_list_get_first, gl_list_get_last,
3966         gl_list_nx_set_first, gl_list_nx_set_last): New functions.
3967         * lib/gl_xlist.h (gl_list_set_first, gl_list_set_last): New functions.
3969 2020-05-02  Bruno Haible  <bruno@clisp.org>
3971         list: Remove redundant code for remove_first and remove_last operations.
3972         * lib/gl_list.h (struct gl_list_implementation): Remove fields
3973         remove_first, remove_last.
3974         (gl_list_remove_first, gl_list_remove_last): Implement in a generic way.
3975         * lib/gl_array_list.c: Revert last change.
3976         * lib/gl_carray_list.c: Likewise.
3977         * lib/gl_anylinked_list2.h: Likewise.
3978         * lib/gl_linked_list.c: Likewise.
3979         * lib/gl_linkedhash_list.c: Likewise.
3980         * lib/gl_anytree_list2.h: Likewise.
3981         * lib/gl_avltree_list.c: Likewise.
3982         * lib/gl_avltreehash_list.c: Likewise.
3983         * lib/gl_rbtree_list.c: Likewise.
3984         * lib/gl_rbtreehash_list.c: Likewise.
3985         * lib/gl_sublist.c: Likewise.
3987 2020-05-02  Bruno Haible  <bruno@clisp.org>
3989         bison-i18n: Add support for cross-compilation.
3990         Reported by Hongxu Jia <hongxu.jia@windriver.com> in
3991         <https://lists.gnu.org/archive/html/bison-patches/2016-02/msg00000.html>
3992         via Akim Demaille <akim@lrde.epita.fr>.
3993         * m4/bison-i18n.m4 (BISON_I18N): Accept a configure option
3994         --with-bison-prefix=PREFIX and use it to determine BISON_LOCALEDIR.
3995         Don't use bison's --print-localedir option when cross-compiling.
3996         Also, fix an error message and a comment.
3998 2020-05-01  Bruno Haible  <bruno@clisp.org>
4000         list: Add remove_first and remove_last operations.
4001         Suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
4002         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00092.html>.
4003         * lib/gl_list.h (struct gl_list_implementation): Add fields
4004         remove_first, remove_last.
4005         (gl_list_remove_first, gl_list_remove_last): New functions.
4006         * lib/gl_array_list.c (gl_array_remove_first, gl_array_remove_last): New
4007         functions, based on gl_array_remove_at.
4008         (gl_array_list_implementation): Implement the new operations.
4009         * lib/gl_carray_list.c (gl_carray_remove_first, gl_carray_remove_last):
4010         New functions, based on gl_carray_remove_at.
4011         (gl_carray_list_implementation): Implement the new operations.
4012         * lib/gl_anylinked_list2.h (gl_linked_remove_first,
4013         gl_linked_remove_last): New functions, based on gl_linked_remove_at.
4014         * lib/gl_linked_list.c (gl_linked_list_implementation): Implement the
4015         new operations.
4016         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation):
4017         Likewise.
4018         * lib/gl_anytree_list2.h (gl_tree_remove_first, gl_tree_remove_last):
4019         New functions, based on gl_tree_remove_at.
4020         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Implement the
4021         new operations.
4022         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
4023         Likewise.
4024         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Likewise.
4025         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation):
4026         Likewise.
4027         * lib/gl_sublist.c (gl_sublist_remove_first, gl_sublist_remove_last):
4028         New functions, based on gl_sublist_remove_at.
4029         (gl_sublist_list_implementation): Implement the new operations.
4030         * lib/gl_list.hh (class gl_List): Add methods remove_first,
4031         remove_last.
4032         * tests/test-array_list.c (main): Test also gl_list_remove_first and
4033         gl_list_remove_last.
4034         * tests/test-avltree_list.c (main): Likewise.
4035         * tests/test-avltreehash_list.c (main): Likewise.
4036         * tests/test-carray_list.c (main): Likewise.
4037         * tests/test-linked_list.c (main): Likewise.
4038         * tests/test-linkedhash_list.c (main): Likewise.
4039         * tests/test-rbtree_list.c (main): Likewise.
4040         * tests/test-rbtreehash_list.c (main): Likewise.
4042 2020-05-01  Bruno Haible  <bruno@clisp.org>
4044         parse-datetime: Fix a build failure with an older bison version.
4045         * modules/parse-datetime (Makefile.am): Don't do the post-processing of
4046         parse-datetime.tab.c if a suitable version of bison was not found.
4048 2020-05-01  Bruno Haible  <bruno@clisp.org>
4050         bison: New module.
4051         * m4/bison.m4 (gl_PROG_BISON): New macro, extracted from
4052         m4/parse-datetime.m4.
4053         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Invoke gl_PROG_BISON.
4054         * modules/bison: New file.
4055         * modules/parse-datetime (Files): Remove m4/bison.m4.
4056         (Depends-on): Add bison.
4058 2020-05-01  Jose E. Marchesi  <jemarch@gnu.org>
4060         Update users.txt.
4061         * users.txt: Add poke.
4063 2020-04-28  Bruno Haible  <bruno@clisp.org>
4065         posix_spawn_file_actions_addfchdir tests: Enhance test.
4066         * tests/test-posix_spawn5.c: Include findprog.h.
4067         (test): New function, extracted from main.
4068         (main): Invoke it. Also, invoke it with a program name such as
4069         "bin/pwd".
4070         * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Add
4071         findprog.
4073 2020-04-28  Bruno Haible  <bruno@clisp.org>
4075         posix_spawn_file_actions_addchdir tests: Enhance test.
4076         * tests/test-posix_spawn4.c: Include findprog.h.
4077         (test): New function, extracted from main.
4078         (main): Invoke it. Also, invoke it with a program name such as
4079         "bin/pwd".
4080         * modules/posix_spawn_file_actions_addchdir-tests (Depends-on): Add
4081         findprog.
4083 2020-04-28  Bruno Haible  <bruno@clisp.org>
4085         posix_spawn_file_actions_destroy: Fix a crash (bug from 2019-06-10).
4086         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Don't
4087         access elements of the wrong union member.
4089 2020-04-27  Bruno Haible  <bruno@clisp.org>
4091         getdate: Remove deprecated module.
4092         * modules/getdate: Remove file.
4093         * doc/getdate.texi: Remove file.
4094         * lib/getdate.h: Remove file.
4095         * NEWS: Mention the removal.
4097 2020-04-27  Bruno Haible  <bruno@clisp.org>
4099         realloc: Remove deprecated module.
4100         * modules/realloc: Remove file.
4101         * NEWS: Mention the removal.
4103 2020-04-27  Bruno Haible  <bruno@clisp.org>
4105         calloc: Remove deprecated module.
4106         * modules/calloc: Remove file.
4107         * NEWS: Mention the removal.
4109 2020-04-27  Bruno Haible  <bruno@clisp.org>
4111         malloc: Remove deprecated module.
4112         * modules/malloc: Remove file.
4113         * NEWS: Mention the removal.
4115 2020-04-27  Bruno Haible  <bruno@clisp.org>
4117         fnmatch-posix: Remove deprecated module.
4118         * modules/fnmatch-posix: Remove file.
4119         * MODULES.html.sh (Enhancements for POSIX:2008 functions): Update.
4120         * NEWS: Mention the removal.
4122 2020-04-27  Bruno Haible  <bruno@clisp.org>
4124         pipe: Remove deprecated module.
4125         * modules/pipe: Remove file.
4126         * lib/pipe.h: Remove file.
4127         * NEWS: Mention the removal.
4129 2020-04-27  Bruno Haible  <bruno@clisp.org>
4131         getopt: Remove deprecated module.
4132         * modules/getopt: Remove file.
4133         * NEWS: Mention the removal.
4135 2020-04-27  Bruno Haible  <bruno@clisp.org>
4137         remove-dest-slash: Remove deprecated module.
4138         * modules/rename-dest-slash: Remove file.
4139         * MODULES.html.sh (Compatibility checks for POSIX:2008 functions):
4140         Update.
4141         * NEWS: Mention the removal.
4143 2020-04-27  Bruno Haible  <bruno@clisp.org>
4145         unictype/bidicategory-*: Remove deprecated modules.
4146         * modules/unictype/bidicategory-all: Remove file.
4147         * modules/unictype/bidicategory-byname: Remove file.
4148         * modules/unictype/bidicategory-name: Remove file.
4149         * modules/unictype/bidicategory-of: Remove file.
4150         * modules/unictype/bidicategory-test: Remove file.
4151         * MODULES.html.sh (Unicode string functions): Update.
4152         * NEWS: Mention the removals.
4154 2020-04-25  Paul Eggert  <eggert@cs.ucla.edu>
4156         Tune fts for FTS_LOGICAL+FTS_NOSTAT
4157         From a suggestion by Askar Safin in:
4158         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00074.html
4159         * lib/fts.c (fts_build): If file types are known, optimize
4160         FTS_LOGICAL+FTS_NOSTAT for non-symlinks and non-directories the
4161         same way that we already optimize FTS_PHYSICAL+FTS_NOSTAT for
4162         non-directories.
4164 2020-04-19  Bruno Haible  <bruno@clisp.org>
4166         vasnprintf: Add support for printing wide characters using escapes.
4167         * lib/vasnprintf.c (ENABLE_WCHAR_FALLBACK): Document optional macro.
4168         (wctomb_fallback): New function.
4169         (local_wctomb): New function.
4170         (local_wcrtomb): New function or macro.
4171         (MAX_ROOM_NEEDED): Adjust estimate for %lc.
4172         (VASNPRINTF): Simplify %ls code by use of local_wcrtomb. Add code for
4173         %lc.
4175 2020-04-15  Paul Eggert  <eggert@cs.ucla.edu>
4177         fts: remove NOSTAT_LEAF_OPTIMIZATION
4178         It caused ‘find’ and ‘du’ to dump core, and it was useful
4179         only for obsolescent Linux filesystems anyway.  Problem reported in:
4180         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00068.html
4181         Quite possibly there is still a serious underlying fts bug with
4182         tight-loop-check and mutating file systems, but if so this patch
4183         should cause the bug to be triggered less often.
4184         * lib/fts.c (enum leaf_optimization): Remove
4185         NOSTAT_LEAF_OPTIMIZATION, as it’s problematic.
4186         (S_MAGIC_REISERFS, S_MAGIC_XFS): Remove; no longer needed.
4187         (leaf_optimization): Remove special cases for ReiserFS and XFS.
4188         (fts_read): Remove NOSTAT_LEAF_OPTIMIZATION code.
4189         * lib/fts_.h (struct _ftsent.fts_n_dirs_remaining):
4190         Remove.  All uses removed.
4192 2020-04-13  Bastien Roucariès  <rouca@debian.org>
4194         explicit_bzero: Improve code style.
4195         * lib/explicit_bzero.c (explicit_bzero): Use '\0' instead of 0.
4197 2020-04-13  Bastien Roucariès  <rouca@debian.org>
4199         explicit_bzero: On native Windows, use SecureZeroMemory().
4200         * lib/explicit_bzero.c: Include <windows.h>.
4201         (explicit_bzero): On native Windows, use SecureZeroMemory.
4203 2020-04-13  Bastien Roucariès  <rouca@debian.org>
4205         explicit_bzero: Use memset_s() when available.
4206         * lib/explicit_bzero.c (__STDC_WANT_LIB_EXT1__): Define.
4207         (explicit_bzero): Use memset_s when available.
4208         * m4/explicit_bzero.m4 (gl_PREREQ_EXPLICIT_BZERO): Test for memset_s.
4210 2020-04-13  Bastien Roucariès  <rouca@debian.org>
4212         explicit_bzero tests: Fix test failure on OpenBSD 6.5.
4213         * tests/test-explicit_bzero.c (test_heap): Handle implementations of
4214         free() that overwrite the memory with canaries.
4216 2020-04-13  Akim Demaille  <akim@lrde.epita.fr>
4218         bootstrap: recommend git submodule update --init
4219         Reported by Bruno Haible.
4220         <https://lists.gnu.org/r/bug-gnulib/2020-03/msg00101.html>
4221         * build-aux/bootstrap: recommand "git submodule update --init"
4222         rather than "git submodule init".
4224 2020-04-12  Bruno Haible  <bruno@clisp.org>
4226         explicit_bzero: Add tests.
4227         * tests/test-explicit_bzero.c: New file.
4228         * modules/explicit_bzero-tests: New file.
4230 2020-04-11  Bruno Haible  <bruno@clisp.org>
4232         explicit_bzero: Relicense under LGPLv2+.
4233         Approved by Paul Eggert.
4234         * modules/explicit_bzero (License): Change to LGPLv2+.
4236 2020-04-10  Bruno Haible  <bruno@clisp.org>
4238         findprog, relocatable-prog: Ignore directories during PATH search.
4239         Reported by Frederick Eaton via Dmitry Goncharov in
4240         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
4242         * lib/findprog.c (find_in_path): When the file found in a PATH element
4243         is a directory, continue searching.
4244         * modules/findprog (Depends-on): Add sys_stat, stat.
4245         * modules/findprog-lgpl (Depends-on): Likewise.
4247         * lib/progreloc.c (maybe_executable): When the file found in a PATH
4248         element is a directory, continue searching.
4249         * lib/relocwrapper.c: Update comments.
4250         * modules/relocatable-prog-wrapper (Files): Add m4/largefile.m4.
4251         (configure.ac-early): New section.
4253 2020-04-10  Bruno Haible  <bruno@clisp.org>
4255         MODULES.html.sh: Support for reproducible builds from git-less tarballs.
4256         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
4257         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00061.html>.
4258         * MODULES.html.sh: In a git-less tarball, use the date of the first
4259         ChangeLog entry.
4261 2020-04-04  Bruno Haible  <bruno@clisp.org>
4263         Fix comments: The gettext library is under LGPL 2.1, not LGPL 2.0.
4264         * m4/gettext.m4: Fix comments regarding the gettext library.
4265         * m4/intl-thread-locale.m4: Likewise.
4266         * m4/intlmacosx.m4: Likewise.
4267         * m4/lcmessage.m4: Likewise.
4268         * m4/nls.m4: Likewise.
4269         * m4/po.m4: Likewise.
4270         * m4/progtest.m4: Likewise.
4272 2020-04-04  Jim Meyering  <meyering@fb.com>
4274         maint: remove a stray inter-word space in a 6x-repeated comment
4275         Induce the changes by running this:
4276           re='by  perl'; git grep -l "$re"|xargs perl -pi -e "s/$re/by perl/"
4277         * build-aux/announce-gen: Change "by  perl" to "by perl".
4278         * build-aux/gitlog-to-changelog: Likewise.
4279         * build-aux/prefix-gnulib-mk: Likewise.
4280         * build-aux/update-copyright: Likewise.
4281         * build-aux/useless-if-before-free: Likewise.
4282         * tests/test-update-copyright.sh: Likewise.
4284 2020-03-28  Bruno Haible  <bruno@clisp.org>
4286         Use module 'filename' instead of module 'dosname'.
4288         * lib/at-func.c: Include filename.h instead of dosname.h.
4289         * lib/unlinkat.c: Likewise.
4290         * modules/areadlinkat (Depends-on): Add filename. Remove dosname.
4291         * modules/areadlinkat-with-size (Depends-on): Likewise.
4292         * modules/faccessat (Depends-on): Likewise.
4293         * modules/fchmodat (Depends-on): Likewise.
4294         * modules/fchownat (Depends-on): Likewise.
4295         * modules/fstatat (Depends-on): Likewise.
4296         * modules/mkdirat (Depends-on): Likewise.
4297         * modules/mkfifoat (Depends-on): Likewise.
4298         * modules/readlinkat (Depends-on): Likewise.
4299         * modules/selinux-at (Depends-on): Likewise.
4300         * modules/symlinkat (Depends-on): Likewise.
4301         * modules/unlinkat (Depends-on): Likewise.
4302         * modules/utimensat (Depends-on): Likewise.
4304         * lib/at-func2.c: Include filename.h instead of dosname.h.
4305         * modules/linkat (Depends-on): Add filename. Remove dosname.
4306         * modules/renameatu (Depends-on): Likewise.
4308         * lib/canonicalize.c: Include filename.h instead of dosname.h.
4309         * lib/canonicalize-lgpl.c: Likewise.
4310         * modules/canonicalize (Depends-on): Add filename.
4311         * modules/canonicalize-lgpl (Depends-on): Likewise.
4313         * lib/dirname.h: Include filename.h instead of dosname.h.
4314         * modules/dirname-lgpl (Depends-on): Add filename. Remove dosname.
4316         * lib/fchdir.c: Include filename.h instead of dosname.h.
4317         * modules/fchdir (Depends-on): Add filename. Remove dosname.
4319         * lib/openat.c: Include filename.h instead of dosname.h.
4320         * modules/openat (Depends-on): Add filename. Remove dosname.
4322         * lib/rmdir.c: Include filename.h instead of dosname.h.
4323         * modules/rmdir (Depends-on): Add filename. Remove dosname.
4325         * lib/savewd.c: Include filename.h instead of dosname.h.
4326         * modules/savewd (Depends-on): Add filename. Remove dosname.
4328         * lib/unlink.c: Include filename.h instead of dosname.h.
4329         * modules/unlink (Depends-on): Add filename. Remove dosname.
4331         * modules/relocatable-prog-wrapper (Depends-on): Add filename.
4332         * lib/relocwrapper.c: Update comments.
4334         * modules/lstat (Depends-on): Remove dosname.
4336 2020-03-28  Bruno Haible  <bruno@clisp.org>
4338         dosname: Redirect to 'filename'.
4339         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
4340         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00042.html>.
4341         * lib/dosname.h: Remove all definitions. Just include filename.h.
4342         * modules/dosname (Status, Notice): Mark as deprecated.
4343         (Depends-on): Add 'filename'.
4345 2020-03-28  Bruno Haible  <bruno@clisp.org>
4347         dosname: Change IS_RELATIVE_FILE_NAME.
4348         * lib/dosname.h (IS_RELATIVE_FILE_NAME): On native Windows, OS/2, DOS,
4349         change the definition so that IS_RELATIVE_FILE_NAME("c:") is false.
4350         * NEWS: Mention the change.
4352 2020-03-28  Bruno Haible  <bruno@clisp.org>
4354         filename: Copy some definitions from module 'dosname'.
4355         * lib/filename.h: Include <string.h>, for IS_FILE_NAME_WITH_DIR.
4356         (HAS_DEVICE): Document macro.
4357         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New macro.
4358         (IS_ABSOLUTE_FILE_NAME): Consider
4359         FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE.
4360         (IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR): New macros.
4361         (IS_ABSOLUTE_PATH, IS_PATH_WITH_DIR): Define as deprecated aliases.
4362         * lib/relocatable.c (IS_FILE_NAME_WITH_DIR): Renamed from
4363         IS_PATH_WITH_DIR.
4364         (DllMain): Update.
4365         * lib/progreloc.c (IS_FILE_NAME_WITH_DIR): Renamed from
4366         IS_PATH_WITH_DIR.
4367         (find_executable): Update.
4368         * NEWS: Document the deprecations.
4370 2020-03-25  Paul Eggert  <eggert@cs.ucla.edu>
4372         getopt-posix: port __GETOPT_PREFIX to macOS
4373         * lib/getopt-pfx-core.h (_GETOPT) [__APPLE__ && __GETOPT_PREFIX]:
4374         Define to work around a problem with asm on macOS (Bug#40205).
4376 2020-03-22  Bruno Haible  <bruno@clisp.org>
4378         MODULES.html.sh: Add support for reproducible builds.
4379         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
4380         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00024.html>.
4381         * MODULES.html.sh: Print the date of the last gnulib commit, not the
4382         current date.
4384 2020-03-22  Bruno Haible  <bruno@clisp.org>
4386         Several modules: Depend on stat.
4387         * modules/acl-permissions (Depends-on): Add stat.
4388         * modules/canonicalize (Depends-on): Likewise.
4389         * modules/file-has-acl (Depends-on): Likewise.
4390         * modules/fstat (Depends-on): Likewise.
4391         * modules/fstatat (Depends-on): Likewise.
4392         * modules/glob (Depends-on): Likewise.
4393         * modules/javacomp (Depends-on): Likewise.
4394         * modules/linkat (Depends-on): Likewise.
4395         * modules/mkdir (Depends-on): Likewise.
4396         * modules/pt_chown (Depends-on): Likewise.
4397         * modules/ptsname_r (Depends-on): Likewise.
4398         * modules/readlinkat (Depends-on): Likewise.
4399         * modules/rename (Depends-on): Likewise.
4400         * modules/renameatu (Depends-on): Likewise.
4401         * modules/tmpdir (Depends-on): Likewise.
4402         * modules/utimens (Depends-on): Likewise.
4403         * modules/relocatable-prog-wrapper (Depends-on): Add largefile.
4404         * modules/same (Depends-on): Remove stat.
4406 2020-03-22  Bruno Haible  <bruno@clisp.org>
4408         acl-permissions: Improve autoconf macro.
4409         * m4/acl.m4 (gl_FUNC_ACL): Test the value of gl_need_lib_has_acl
4410         more reliably.
4412 2020-03-22  Bruno Haible  <bruno@clisp.org>
4414         file-has-acl: Fix module description.
4415         * modules/file-has-acl (Files): Add lib/acl-internal.h, m4/acl.m4.
4416         (Depends-on): Depend on acl-permissions unconditionally.
4418 2020-03-21  Bruno Haible  <bruno@clisp.org>
4420         unlink: Ensure errno also on native Windows.
4421         * modules/unlink (Depends-on): Add malloc-posix.
4423 2020-03-21  Paul Eggert  <eggert@cs.ucla.edu>
4425         unlink: fix malloc errno typo
4426         Problem reported by Tim Rühsen in:
4427         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00044.html
4428         * lib/unlink.c (rpl_unlink): Don’t mask malloc errno.
4430 2020-03-16  Bruno Haible  <bruno@clisp.org>
4432         *printf-posix: Fix m4 error (regression from 2020-03-08).
4433         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): Enable interpretation of
4434         brackets in AC_COMPILE_IFELSE invocation.
4436 2020-03-08  Bruno Haible  <bruno@clisp.org>
4438         crypto/af_alg, renameatu, same, term-style-control: Depend on fstat.
4439         * modules/crypto/af_alg (Depends-on): Add fstat.
4440         * modules/renameatu (Depends-on): Likewise.
4441         * modules/same (Depends-on): Likewise.
4442         * modules/term-style-control (Depends-on): Likewise.
4444 2020-03-08  Bruno Haible  <bruno@clisp.org>
4446         *printf-posix: Document why it's overridden on some glibc systems.
4447         Reported by Adrian Bunk <bunk@stusta.de> in
4448         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00011.html>.
4449         * doc/posix-functions/*printf.texi: Document the problem with the %n
4450         directive on some glibc systems.
4451         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Adjust
4452         the cross-compilation guesses accordingly.
4454 2020-03-07  Paul Eggert  <eggert@cs.ucla.edu>
4456         open, openat: port to (O_RDWR | O_RDONLY) != 0
4457         Potential portability problem reported by Dan Gohman in:
4458         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00000.html
4459         * lib/open.c (open):
4460         * lib/openat.c (rpl_openat):
4461         Don’t assume O_RDONLY is disjoint from O_RDWR.
4463 2020-03-07  Bruno Haible  <bruno@clisp.org>
4465         openat: Fix theoretically possible issue on GNU/Hurd.
4466         Reported by Dan Gohman <sunfish@mozilla.com> in
4467         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00000.html>.
4468         * lib/openat.c (rpl_openat): When testing whether flags contains O_RDWR,
4469         ignore the bits that are also set in O_RDONLY.
4471 2020-02-24  Bruno Haible  <bruno@clisp.org>
4473         getloadavg: Don't use /usr/local when cross-compiling on AIX.
4474         Reported by Jens Rehsack <sno@netbsd.org> in
4475         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00136.html>.
4476         * m4/getloadavg.m4 (gl_GETLOADAVG): Don't look in /usr/local/lib when
4477         cross-compiling.
4479 2020-02-24  Bruno Haible  <bruno@clisp.org>
4481         fcntl: Add witness of gnulib override.
4482         Reported by Jens Rehsack <sno@netbsd.org> in
4483         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00137.html>.
4484         * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New
4485         macros.
4487 2020-02-23  Assaf Gordon  <assafgordon@gmail.com>
4489         Update users.txt.
4490         * users.txt: Add datamash, time.
4492 2020-02-23  Bruno Haible  <bruno@clisp.org>
4494         uni*/base: Use 'restrict'.
4495         * lib/unitypes.in.h (_UC_RESTRICT): New macro, based on '_Restrict_'
4496         from lib/regex.h.
4497         * lib/unistr.in.h (u8_cpy, u16_cpy, u32_cpy, u8_strcpy, u16_strcpy,
4498         u32_strcpy, u8_stpcpy, u16_stpcpy, u32_stpcpy, u8_strncpy, u16_strncpy,
4499         u32_strncpy, u8_stpncpy, u16_stpncpy, u32_stpncpy, u8_strcat,
4500         u16_strcat, u32_strcat, u8_strncat, u16_strncat, u32_strncat, u8_strtok,
4501         u16_strtok, u32_strtok): Use '_UC_RESTRICT'.
4502         * lib/uninorm.in.h (u8_normalize, u16_normalize, u32_normalize): Use
4503         '_UC_RESTRICT'.
4504         * lib/uniconv.in.h (u8_conv_to_encoding, u16_conv_to_encoding,
4505         u32_conv_to_encoding): Use '_UC_RESTRICT'.
4506         * lib/unicase.in.h (u8_toupper, u16_toupper, u32_toupper, u8_tolower,
4507         u16_tolower, u32_tolower, u8_totitle, u16_totitle, u32_totitle,
4508         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
4509         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
4510         u32_ct_totitle, u8_casefold, u16_casefold, u32_casefold, u8_ct_casefold,
4511         u16_ct_casefold, u32_ct_casefold, u8_casexfrm, u16_casexfrm,
4512         u32_casexfrm, ulc_casexfrm): Use '_UC_RESTRICT'.
4513         * lib/unilbrk.in.h (u8_possible_linebreaks, u16_possible_linebreaks,
4514         u32_possible_linebreaks, ulc_possible_linebreaks, u8_width_linebreaks,
4515         u16_width_linebreaks, u32_width_linebreaks, ulc_width_linebreaks): Use
4516         '_UC_RESTRICT'.
4517         * lib/uniwbrk.in.h (ulc_wordbreaks): Use '_UC_RESTRICT'.
4518         * lib/unistdio.in.h (ulc_sprintf, ulc_snprintf, ulc_asnprintf,
4519         ulc_vsprintf, ulc_vsnprintf, ulc_vasnprintf, u8_u8_sprintf,
4520         u8_u8_snprintf, u8_u8_asnprintf, u8_u8_vsprintf, u8_u8_vsnprintf,
4521         u8_u8_vasnprintf, u16_u16_sprintf, u16_u16_snprintf, u16_u16_asnprintf,
4522         u16_u16_vsprintf, u16_u16_vsnprintf, u16_u16_vasnprintf,
4523         u32_u32_sprintf, u32_u32_snprintf, u32_u32_asnprintf, u32_u32_vsprintf,
4524         u32_u32_vsnprintf, u32_u32_vasnprintf): Use '_UC_RESTRICT'.
4526 2020-02-23  Bruno Haible  <bruno@clisp.org>
4528         glob, spawn: Use improved '_Restrict_' definition.
4529         * lib/glob.in.h (_Restrict_): Use same definition as in lib/regex.h.
4530         * lib/spawn.in.h (_Restrict_, _Restrict_arr_): Likewise.
4532 2020-02-23  Bruno Haible  <bruno@clisp.org>
4534         crypto/gc: Use 'restrict'.
4535         * lib/gc.h (gc_pbkdf2_hmac, gc_pbkdf2_sha1): Use 'restrict'.
4536         * m4/gc.m4 (gl_GC): Require AC_C_RESTRICT.
4538         crypto/hmac-*: Use 'restrict'.
4539         * lib/hmac.h (hmac_md5, hmac_sha1, hmac_sha256, hmac_sha512): Use
4540         'restrict'.
4541         * modules/crypto/hmac-md5 (configure.ac): Require AC_C_RESTRICT.
4542         * modules/crypto/hmac-sha1 (configure.ac): Likewise.
4543         * modules/crypto/hmac-sha256 (configure.ac): Likewise.
4544         * modules/crypto/hmac-sha512 (configure.ac): Likewise.
4546         crypto/sm3: Use 'restrict'.
4547         * lib/sm3.h (sm3_finish_ctx, sm3_read_ctx, sm3_buffer): Use 'restrict'.
4548         * m4/sm3.m4 (gl_SM3): Require AC_C_RESTRICT.
4550         crypto/*-buffer: Use 'restrict'.
4551         * lib/gl_openssl.h (GL_CRYPTO_FN (_finish_ctx), GL_CRYPTO_FN (_buffer),
4552         GL_CRYPTO_FN (_read_ctx)): Use 'restrict'.
4554         crypto/sha512-buffer: Use 'restrict'.
4555         * lib/sha512.h (sha512_finish_ctx, sha384_finish_ctx, sha512_read_ctx,
4556         sha384_read_ctx, sha512_buffer, sha384_buffer): Use 'restrict'.
4557         * modules/crypto/sha512-buffer (configure.ac): Require AC_C_RESTRICT.
4559         crypto/sha256-buffer: Use 'restrict'.
4560         * lib/sha256.h (sha256_finish_ctx, sha224_finish_ctx, sha256_read_ctx,
4561         sha224_read_ctx, sha256_buffer, sha224_buffer): Use 'restrict'.
4562         * modules/crypto/sha256-buffer (configure.ac): Require AC_C_RESTRICT.
4564         crypto/sha1-buffer: Use 'restrict'.
4565         * lib/sha1.h (sha1_finish_ctx, sha1_read_ctx, sha1_buffer): Use
4566         'restrict'.
4567         * modules/crypto/sha1-buffer (configure.ac): Require AC_C_RESTRICT.
4569         crypto/md5-buffer: Use 'restrict'.
4570         * lib/md5.h (__md5_finish_ctx, __md5_read_ctx, __md5_buffer): Use
4571         'restrict'.
4572         * modules/crypto/md5-buffer (configure.ac): Require AC_C_RESTRICT.
4574         crypto/md4: Use 'restrict'.
4575         * lib/md4.h (md4_finish_ctx, md4_read_ctx, md4_buffer): Use 'restrict'.
4576         * modules/crypto/md4 (configure.ac): Require AC_C_RESTRICT.
4578         crypto/md2: Use 'restrict'.
4579         * lib/md2.h (md2_finish_ctx, md2_read_ctx, md2_buffer): Use 'restrict'.
4580         * modules/crypto/md2 (configure.ac): Require AC_C_RESTRICT.
4582         crypto/rijndael: Use 'restrict'.
4583         * lib/rijndael-api-fst.h (rijndaelBlockEncrypt, rijndaelPadEncrypt,
4584         rijndaelBlockDecrypt, rijndaelPadDecrypt): Use 'restrict'.
4585         * modules/crypto/rijndael (configure.ac): Require AC_C_RESTRICT.
4587         crypto/arctwo: Use 'restrict'.
4588         * lib/arctwo.h (arctwo_encrypt, arctwo_decrypt): Use 'restrict'.
4589         * modules/crypto/arctwo (configure.ac): Require AC_C_RESTRICT.
4591         crypto/arcfour: Use 'restrict'.
4592         * lib/arcfour.h (arcfour_stream): Use 'restrict'.
4593         * modules/crypto/arcfour (configure.ac): Require AC_C_RESTRICT.
4595         careadlinkat: Use 'restrict'.
4596         * lib/careadlinkat.h (careadlinkat): Use 'restrict'.
4597         * modules/careadlinkat (configure.ac): Require AC_C_RESTRICT.
4598         * modules/relocatable-prog-wrapper (configure.ac): Likewise.
4600         regex-quote: Use 'restrict'.
4601         * lib/regex-quote.h (regex_quote_copy): Use 'restrict'.
4602         * modules/regex-quote (configure.ac): Require AC_C_RESTRICT.
4604         system-quote: Use 'restrict'.
4605         * lib/system-quote.h (system_quote_copy): Use 'restrict'.
4606         * modules/system-quote (configure.ac): Require AC_C_RESTRICT.
4608         sh-quote: Use 'restrict'.
4609         * lib/sh-quote.h (shell_quote_copy): Use 'restrict'.
4610         * modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
4612         quotearg: Use 'restrict'.
4613         * lib/quotearg.h (quotearg_buffer): Use 'restrict'.
4614         * m4/quotearg.m4 (gl_QUOTEARG): Require AC_C_RESTRICT.
4616         parse-datetime: Use 'restrict'.
4617         * lib/parse-datetime.h (parse_datetime, parse_datetime2): Use
4618         'restrict'.
4619         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Require AC_C_RESTRICT.
4621         nstrftime: Use 'restrict'.
4622         * lib/strftime.h (nstrftime): Use 'restrict'.
4623         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Require AC_C_RESTRICT.
4625         mbstok_r: Use 'restrict'.
4626         * lib/string.in.h (mbstok_r): Use 'restrict'.
4628         xmemcoll: Use 'restrict'.
4629         * lib/xmemcoll.h (xmemcoll): Use 'restrict'.
4630         * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT.
4632         memcoll: Use 'restrict'.
4633         * lib/memcoll.h (memcoll): Use 'restrict'.
4634         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.
4636         vasnprintf: Use 'restrict'.
4637         * lib/vasnprintf.h (asnprintf, vasnprintf): Use 'restrict'.
4638         * modules/vasnprintf (configure.ac): Require AC_C_RESTRICT.
4640         c-vasnprintf: Use 'restrict'.
4641         * lib/c-vasnprintf.h (c_vasnprintf): Use 'restrict'.
4642         * modules/c-vasnprintf (configure.ac): Require AC_C_RESTRICT.
4644         c-vsnprintf: Use 'restrict'.
4645         * lib/c-vsnprintf.h (c_vsnprintf): Use 'restrict'.
4646         * modules/c-vsnprintf (configure.ac): Require AC_C_RESTRICT.
4648         c-snprintf: Use 'restrict'.
4649         * lib/c-snprintf.h (c_snprintf): Use 'restrict'.
4650         * modules/c-snprintf (configure.ac): Require AC_C_RESTRICT.
4652         astrxfrm: Use 'restrict'.
4653         * lib/astrxfrm.h (astrxfrm): Use 'restrict'.
4654         * modules/astrxfrm (configure.ac): Require AC_C_RESTRICT.
4656         amemxfrm: Use 'restrict'.
4657         * lib/amemxfrm.h (amemxfrm): Use 'restrict'.
4658         * modules/amemxfrm (configure.ac): Require AC_C_RESTRICT.
4660 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
4662         fchmodat, lchmod: simplify
4663         It appears that we may have overengineered lchmod and fchmodat,
4664         in that the code was prepared for some hypothetical platforms but
4665         was so complicated that it was hard to understand.  I attempted to
4666         improve the situation by simplifying the code when this
4667         simplification should not hurt on real platforms; we can re-add
4668         complexity later to port to platforms I didn’t know about.
4669         * lib/fchmodat.c (fchmodat):
4670         * lib/lchmod.c (lchmod):
4671         Put the ‘defined __linux__ || defined __ANDROID__’ #ifdef only
4672         around the /proc code that needs it.
4673         * lib/fchmodat.c (fchmodat): Coalese calls to orig_fchmodat.
4674         * lib/lchmod.c (__need_system_sys_stat_h): Omit; no longer needed.
4675         Do not include <config.h> twice.
4676         (orig_lchmod) [HAVE_LCHMOD]: Remove, since we need not wrap
4677         lchmod on any known hosts.
4678         (lchmod): Do not defer to fchmodat, so that the lchmod module
4679         need not depend on the fchmodat module (which is a circular
4680         dependency).  Do not use openat, since ‘open’ suffices.
4681         Coalesce calls to lchmod/chmod.
4682         * lib/lchmod.c, lib/sys_stat.in.h (lchmod):
4683         * m4/sys_stat_h.m4 (REPLACE_FSTAT):
4684         * modules/lchmod (Depends-on, configure.ac):
4685         * modules/sys_stat (Depends-on):
4686         Do not worry about replacing lchmod, since that shouldn’t happen.
4687         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Do not check for fchmodat.
4688         Do not worry about whether lchmod works on non-symlinks,
4689         since every known lchmod works on non-symlinks.
4690         * modules/lchmod (Depends-on):
4691         Remove circular dependency on fchmodat.
4693 2020-02-22  Bruno Haible  <bruno@clisp.org>
4695         lchmod: Fix link error on Solaris 10 (regression from 2020-02-16).
4696         * lib/lchmod.c (lchmod): Use the code with lstat and chmod also when
4697         NEED_LCHMOD_NONSYMLINK_FIX is not defined.
4699 2020-02-22  Bruno Haible  <bruno@clisp.org>
4701         Use 'restrict' in all POSIX function declarations.
4702         * lib/iconv.in.h (iconv): Use 'restrict'.
4703         * lib/inttypes.in.h (strtoimax, strtoumax): Likewise.
4704         * lib/monetary.in.h (strfmon_l): Likewise.
4705         * lib/pthread.in.h (pthread_create, pthread_mutex_init,
4706         pthread_mutexattr_gettype, pthread_mutexattr_getrobust,
4707         pthread_mutex_timedlock, pthread_rwlock_init,
4708         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
4709         pthread_cond_init, pthread_cond_wait, pthread_cond_timedwait): Likewise.
4710         * lib/search.in.h (tdelete): Likewise.
4711         * lib/signal.in.h (pthread_sigmask, sigprocmask): Likewise.
4712         * lib/stdio.in.h (dprintf, fgets, fopen, fprintf, fputs, fread, freopen,
4713         fscanf, fwrite, getdelim, getline, printf, scanf, snprintf, sprintf,
4714         vdprintf, vfprintf, vfscanf, vprintf, vscanf, vsnprintf, vsprintf):
4715         Likewise.
4716         * lib/stdlib.in.h (mbtowc, realpath, strtod, strtold, strtoll,
4717         strtoull): Likewise.
4718         * lib/string.in.h (strncat): Likewise.
4719         * lib/sys_socket.in.h (accept, getpeername, getsockname, getsockopt,
4720         recvfrom): Likewise.
4721         * lib/sys_stat.in.h (fstatat, lstat, stat): Likewise.
4722         * lib/time.in.h (strftime): Likewise.
4723         * lib/unistd.in.h (readlink, readlinkat): Likewise.
4724         * lib/wchar.in.h (mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs, wcrtomb,
4725         wcsrtombs, wcsnrtombs, wmemcpy, wcscpy, wcpcpy, wcsncpy, wcpncpy,
4726         wcscat, wcsncat, wcsxfrm, wcsstr, wcstok, wcsftime): Likewise.
4727         * m4/iconv_h.m4 (gl_ICONV_H): Require AC_C_RESTRICT.
4728         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Likewise.
4729         * m4/monetary_h.m4 (gl_MONETARY_H): Likewise.
4730         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
4731         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4732         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
4733         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
4734         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
4735         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
4736         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4737         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
4738         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Make consistent with the
4739         other *_h.m4 files.
4740         * m4/time_h.m4 (gl_HEADER_TIME_H): Likewise.
4742 2020-02-22  Bruno Haible  <bruno@clisp.org>
4744         Update NEWS.
4745         * NEWS: Mention the last change.
4747 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
4749         chmodat, chownat: new modules
4750         These are split from fchmodat, fchownat.  GNU Emacs needs the
4751         POSIX-specified fchmodat, but not the gnulib-specified chmodat and
4752         lchmodat.  Split the latter two into a new module chmodat.
4753         Similarly for fchownat.  This the same basic idea for why statat
4754         was split from fstatat on 2013-01-23.
4755         * lib/chmodat.c, lib/openat.h (CHMODAT_INLINE):
4756         Rename from FCHMODAT_INLINE.  All uses changed.
4757         * lib/chownat.c, lib/openat.h (CHOWNAT_INLINE):
4758         Rename from FCHOWNAT_INLINE.  All uses changed.
4759         * lib/openat.h:
4760         (chownat, lchownat): Define if GNULIB_CHOWNAT, not GNULIB_FCHOWNAT.
4761         (chmodat, lchmodat): Define if GNULIB_CHMODAT, not GNULIB_FCHMODAT.
4762         * modules/chmodat, modules/chownat, tests/test-chownat.c: New files.
4763         * modules/fchmodat (Files:): Remove lib/fchmodat.c.
4764         (configure.ac): Remove fchmodat module indicator.
4765         (Makefile.am): Omit chmodat.c.
4766         (Maintainer): Add self.
4767         * modules/fchownat: Similarly, but for chown.
4768         * tests/test-fchownat.c (BASE): Don't define if already defined.
4769         (do_chown, do_lchown) [!TEST_CHOWNAT]: Test fchownat instead.
4771 2020-02-22  Bruno Haible  <bruno@clisp.org>
4773         users.txt: Add groff.
4774         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
4775         * users.txt: Add groff.
4777 2020-02-22  Bruno Haible  <bruno@clisp.org>
4779         gnulib-tool: Ensure copied files are writable.
4780         Reported by Benno Fünfstück <benno.fuenfstueck@gmail.com> in
4781         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00101.html>.
4782         * gnulib-tool (func_ensure_writable): New function.
4783         (func_ln_s, func_hardlink, func_lookup_file, func_import,
4784         func_create_testdir, copy-file): Invoke it after copying a file.
4786 2020-02-22  Bruno Haible  <bruno@clisp.org>
4788         users.txt: Update.
4789         * users.txt: Update URLs to projects that have moved or switched to git.
4790         Use canonical host names. Prefer gitweb over cgit. Prefer the tree view
4791         over the summary view. Add gawk.
4793 2020-02-21  Paul Eggert  <eggert@cs.ucla.edu>
4795         largefile: remove _DARWIN_USE_64_BIT_INODE
4796         It’s not needed in currently-supported macOS versions, and was
4797         problematic anyway in MacOS X 10.5 which was the only version that
4798         could use it.  Problem reported by Peter Eisentraut in:
4799         https://lists.gnu.org/r/bug-autoconf/2020-02/msg00004.html
4800         * m4/largefile.m4 (AC_SYS_LARGEFILE):
4801         Don’t define _DARWIN_USE_64_BIT_INODE.
4802         This syncs with Autoconf master.
4804         Add ‘extern "C"’ to count-one-bits.h etc.
4805         This ports these .h files to C++.
4806         Problem reported by Simon Marchi in:
4807         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00110.html
4808         * lib/count-leading-zeros.h, lib/count-one-bits.h:
4809         * lib/count-trailing-zeros.h: Add ‘extern "C"’.
4811 2020-02-19  Bruno Haible  <bruno@clisp.org>
4813         uninorm/decompose-internal: Avoid "no previous prototype" warning.
4814         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
4815         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00105.html>.
4816         * lib/array-mergesort.h: Accept an optional macro definition
4817         STATIC_FROMTO.
4818         * lib/uninorm/decompose-internal.c (STATIC_FROMTO): New macro.
4820 2020-02-16  Bruno Haible  <bruno@clisp.org>
4822         fchmodat: Make more future-proof.
4823         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Define
4824         NEED_FCHMODAT_NONSYMLINK_FIX.
4825         (gl_PREREQ_FCHMODAT): New macro.
4826         * lib/fchmodat.c (fchmodat): Test NEED_FCHMODAT_NONSYMLINK_FIX. Access
4827         /proc only on Linux. Return EOPNOTSUPP only on Linux and on platforms
4828         without lchmod function.
4829         * modules/fchmodat (configure.ac): Invoke gl_PREREQ_FCHMODAT.
4831 2020-02-16  Bruno Haible  <bruno@clisp.org>
4833         lchmod: Make more future-proof.
4834         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Define NEED_LCHMOD_NONSYMLINK_FIX.
4835         (gl_PREREQ_LCHMOD): New macro.
4836         * lib/lchmod.c (orig_lchmod): New function.
4837         (lchmod): Test NEED_LCHMOD_NONSYMLINK_FIX. Access /proc only on Linux.
4838         Return EOPNOTSUPP only on Linux and on platforms without lchmod
4839         function.
4840         * modules/lchmod (configure.ac): Invoke gl_PREREQ_LCHMOD.
4842         lchmod: Fix buggy override on macOS, HP-UX (regression from 2020-02-08).
4843         * modules/lchmod (Makefile.am): Don't add lchmod.c to lib_SOURCES.
4845 2020-02-16  Paul Eggert  <eggert@cs.ucla.edu>
4847         xnanosleep: prefer pause, and get remaining time
4848         Problem reported by Vladimir Panteleev in:
4849         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00052.html
4850         * lib/xnanosleep.c: Include intprops.h, unistd.h.
4851         (xnanosleep) [HAVE_PAUSE]: Prefer pause when sleeping infinitely.
4852         (xnanosleep): Obtain remaining time when nanosleep is interrupted.
4853         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Check for 'pause'.
4854         * modules/xnanosleep (Depends-on): Add intprops, unistd.
4856 2020-02-16  Bruno Haible  <bruno@clisp.org>
4858         lchmod: Improve cross-compilation guess.
4859         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require AC_CANONICAL_HOST. When
4860         cross-compiling, guess depending on the platform.
4862 2020-02-16  Bruno Haible  <bruno@clisp.org>
4864         fstrcmp: Add API to clean up resources.
4865         Reported by Akim Demaille <akim@lrde.epita.fr> in
4866         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00080.html>.
4867         * lib/fstrcmp.h (fstrcmp_free_resources): New declaration.
4868         * lib/fstrcmp.c (fstrcmp_free_resources): New function.
4870 2020-02-14  Bruno Haible  <bruno@clisp.org>
4872         wctype-h: Fix compilation errors in C++ (regression from 2020-01-25).
4873         Reported by Christian Biesinger in
4874         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00064.html>.
4875         * lib/wctype.in.h (iswdigit, iswxdigit): Don't declare if the
4876         corresponding module is not enabled.
4877         * tests/test-wctype-h-c++.cc (iswdigit, iswxdigit): Don't check the
4878         prototype if the corresponding module is not enabled.
4880 2020-02-13  Paul Eggert  <eggert@cs.ucla.edu>
4882         fchmodat, lchmod: port to buggy Linux filesystems
4883         Problem reported by Florian Weimer in:
4884         https://www.sourceware.org/ml/libc-alpha/2020-02/msg00534.html
4885         * lib/fchmodat.c (fchmodat):
4886         * lib/lchmod.c (lchmod):
4887         Don’t assume that chmod on the O_PATH-opened fd will do
4888         the right thing on a symbolic link.
4889         * lib/fchmodat.c (fchmodat):
4890         Don’t attempt to special-case
4891         any flag value other than AT_SYMLINK_NOFOLLOW.
4893 2020-02-11  Paul Eggert  <eggert@cs.ucla.edu>
4895         lchmod: pacify Coverity CID 1491216
4896         * lib/lchmod.c (lchmod): Redo #if nesting so that Coverity does
4897         not complain about unreachable code at the ‘struct stat st;’
4898         declaration.
4900 2020-02-10  Bruno Haible  <bruno@clisp.org>
4902         copysignf: Fix link error on HP-UX with cc.
4903         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Require AC_CANONICAL_HOST. On
4904         HP-UX, set COPYSIGNF_LIBM to -lm.
4906 2020-02-10  Bruno Haible  <bruno@clisp.org>
4908         pthread-mutex-tests, pthread-rwlock-tests: Fix link errors on HP-UX.
4909         * modules/pthread-mutex-tests (Makefile.am): Link test-pthread-mutex
4910         with $(LIB_SEMAPHORE).
4911         * modules/pthread-rwlock-tests (Makefile.am): Link test-pthread-rwlock
4912         with $(LIB_SEMAPHORE).
4914 2020-02-10  Bruno Haible  <bruno@clisp.org>
4916         ptsname_r-tests: Avoid unused function warning.
4917         * tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.
4919 2020-02-08  Bruno Haible  <bruno@clisp.org>
4921         lchmod: Add tests.
4922         * tests/test-lchmod.c: New file.
4923         * modules/lchmod-tests: New file.
4925 2020-02-08  Bruno Haible  <bruno@clisp.org>
4927         lchmod: Ensure declaration on HP-UX.
4928         * lib/sys_stat.in.h (lchown): Declare also on HP-UX.
4929         * doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.
4931 2020-02-08  Bruno Haible  <bruno@clisp.org>
4933         fchmodat: Strengthen tests.
4934         * tests/test-fchmodat.c (BASE): New macro.
4935         (main): Use it, to avoid conflicts with other unit tests. Verify that
4936         fchmodat changed the file permission bits.
4938 2020-02-08  Bruno Haible  <bruno@clisp.org>
4940         fchmodat: Fix endless recursion on Cygwin (regression from 2020-02-07).
4941         * lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
4942         '#undef __need_system_sys_stat_h'.
4944 2020-02-08  Bruno Haible  <bruno@clisp.org>
4946         fchmodat: Improve cross-compilation guesses.
4947         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Require AC_CANONICAL_HOST. When
4948         cross-compiling, guess depending on the platform.
4949         * doc/posix-functions/fchmodat.texi: Clarify.
4951 2020-02-08  Bruno Haible  <bruno@clisp.org>
4953         Fix compilation errors in a testdir created with --with-c++-tests.
4954         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
4955         since it does not work any more with g++ >= 4.4.
4957 2020-02-08  Bruno Haible  <bruno@clisp.org>
4959         doc: Update for glibc 2.31.
4960         * doc/glibc-functions/pthread_clockjoin_np.texi: New file.
4961         * doc/gnulib.texi: Include it.
4962         * doc/pastposix-functions/h_errno.texi: Update.
4963         * doc/posix-functions/*.texi: Likewise.
4965 2020-02-08  Kenneth D'souza  <kdsouza@redhat.com>
4967         mountlist: consider smb3 file systems as remote
4968         * lib/mountlist.c (ME_REMOTE): Recognize file systems of type
4969         "smb3" as remote.
4971 2020-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4973         fchmodat: AT_SYMLINK_NOFOLLOW fix for non-symlinks
4974         Fix lchmod, and fchmodat with AT_SYMLINK_NOFOLLOW, so that
4975         they act like chmod on non-symlinks.
4976         * NEWS:
4977         * doc/glibc-functions/lchmod.texi (lchmod):
4978         * doc/posix-functions/fchmodat.texi (fchmodat):
4979         Mention this.
4980         * lib/fchmodat.c: Define __need_system_sys_stat_h before including
4981         config.h, and undef it after including sys/stat.h the first time.
4982         Include fcntl.h, stdio.h, unistd.h, intprops.h, and include
4983         sys/stat.h a second time after defining orig_fchmodat.
4984         (orig_fchmodat) [HAVE_FCHMODAT]: New function.
4985         (fchmodat) [HAVE_FCHMODAT]: Work around the AT_SYMLINK_NOFOLLOW bug.
4986         * lib/lchmod.c: New file.
4987         * lib/sys_stat.in.h (fchmodat, lchmod):
4988         Support replacing these functions.
4989         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): If fchmodat exists,
4990         test that AT_SYMLINK_NOFOLLOW works on non-symlinks.
4991         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Check for lstat.
4992         Test that lchmod works on non-symlinks.
4993         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS):
4994         Default REPLACE_FCHMODAT and REPLACE_LCHMOD to 0.
4995         * modules/fchmodat (Depends-on): Add fstatat, intprops, lchmod, unistd.
4996         (Depends-on, configure.ac): Check REPLACE_FCHMODAT too.
4997         * modules/lchmod (Files): Add lib/lchmod.c.
4998         (Depends-on): Add errno, fcntl-h, fchmodat, intprops, lstat, unistd.
4999         (configure.ac): Compile lchmod.c if needed.
5000         (lib_SOURCES): Add lchmod.c.
5001         * modules/sys_stat (sys/stat.h): Substitute REPLACE_FCHMODAT
5002         and REPLACE_LCHMOD.
5003         * tests/test-fchmodat.c: Include fcntl.h, sys/stat.h.
5004         (main): Test fchmodat with AT_SYMLINK_NOFOLLOW on non-symlinks.
5006 2020-02-05  Marc Dionne  <marc.dionne@auristor.com>  (tiny change)
5008         mountlist: Consider AFS filesystems as remote
5009         df --local relies on the ME_REMOTE macro to determine if a given
5010         mount entry should be considered "local".  There is special logic
5011         for nfs and smb/cifs mounts, but /afs as mounted by OpenAFS, the
5012         kernel's kafs module or AuriStorFS is treated as a local mount.
5013         * lib/mountlist.c (ME_REMOTE): Treat mounts of type 'afs'
5014         (OpenAFS, kernel kafs) and 'auristorfs' (AuriStorFS) as remote.
5016 2020-02-04  Paul Eggert  <eggert@cs.ucla.edu>
5018         Port _Noreturn to older Clang
5019         Problem reported by Jeffery Walton in:
5020         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00013.html
5021         * lib/_Noreturn.h (_Noreturn):
5022         * m4/gnulib-common.m4 (gl_COMMON_BODY):
5023         Assume _Noreturn works in Clang 3.5 and later.
5024         It is documented to work in Clang 3.5:
5025         http://releases.llvm.org/3.5.0/tools/clang/docs/AttributeReference.html
5026         and is not documented in Clang 3.4:
5027         https://releases.llvm.org/3.4/tools/clang/docs/LanguageExtensions.html
5028         Apple sets __clang_version__ to a different value, so use
5029         __apple_build_version__ there.  See:
5030         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00017.html
5032 2020-02-04  Pádraig Brady  <P@draigBrady.com>
5034         test-canonicalize: avoid unused function warning
5035         * tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
5036         with the same guard as that used to protect usage of the null_ptr
5037         function, so that one doesn't get a -Wunused warning.
5038         * tests/test-canonicalize-lgpl.c: Likewise.
5040 2020-02-03  Paul Eggert  <eggert@cs.ucla.edu>
5042         libc-config: port to Apple’s Clang variant
5043         * lib/libc-config.h (__glibc_clang_prereq):
5044         Port to Apple’s Clang variant, which uses a different
5045         numbering scheme for __clang_major__.
5047 2020-02-02  Bruno Haible  <bruno@clisp.org>
5049         Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++.
5050         * doc/containers.texi: Document these new modules.
5052 2020-02-02  Bruno Haible  <bruno@clisp.org>
5054         omap-c++: Add tests.
5055         * tests/test-omap-c++.cc: New file.
5056         * modules/omap-c++-tests: New file.
5058         omap-c++: New module.
5059         * lib/gl_omap.hh: New file, based on lib/gl_omap.h.
5060         * modules/omap-c++: New file.
5062 2020-02-02  Bruno Haible  <bruno@clisp.org>
5064         map-c++: Add tests.
5065         * tests/test-map-c++.cc: New file.
5066         * modules/map-c++-tests: New file.
5068         map-c++: New module.
5069         * lib/gl_map.hh: New file, based on lib/gl_map.h.
5070         * modules/map-c++: New file.
5072 2020-02-02  Bruno Haible  <bruno@clisp.org>
5074         oset-c++: Add tests.
5075         * tests/test-oset-c++.cc: New file.
5076         * modules/oset-c++-tests: New file.
5078         oset-c++: New module.
5079         * lib/gl_oset.hh: New file, based on lib/gl_oset.h.
5080         * modules/oset-c++: New file.
5082 2020-02-02  Bruno Haible  <bruno@clisp.org>
5084         set-c++: Add tests.
5085         * tests/test-set-c++.cc: New file.
5086         * modules/set-c++-tests: New file.
5088         set-c++: New module.
5089         * lib/gl_set.hh: New file, based on lib/gl_set.h.
5090         * modules/set-c++: New file.
5092 2020-02-02  Bruno Haible  <bruno@clisp.org>
5094         list-c++: Add tests.
5095         * tests/test-list-c++.cc: New file.
5096         * modules/list-c++-tests: New file.
5098         list-c++: New module.
5099         * lib/gl_list.hh: New file, based on lib/gl_list.h.
5100         * modules/list-c++: New file.
5102 2020-02-02  Bruno Haible  <bruno@clisp.org>
5104         xalloc: Fix compilation error in C++ mode on FreeBSD 12.
5105         * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
5106         '_Noreturn'.
5107         * lib/sigpipe-die.h (sigpipe_die): Likewise.
5109 2020-02-02  Pádraig Brady  <P@draigBrady.com>
5111         read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
5112         On x86_64 with glibc-2.30, gcc 9.2 is giving:
5113           error: argument 2 value '18446744073709551615'
5114           exceeds maximum object size 9223372036854775807
5115           [-Werror=alloc-size-larger-than=]
5116         The details of this restriction are discussed at:
5117         https://stackoverflow.com/q/42574890/4421
5118         * lib/read-file.c: s/SIZE_MAX/PTRDIFF_MAX/
5120 2020-02-02  Pádraig Brady  <P@draigBrady.com>
5122         sysctl.h: avoid including on glibc
5123         * lib/nproc.c: Avoid including deprecated and unneeded header on GLIBC.
5124         * lib/physmem.c: Likewise.
5126 2020-02-02  Bruno Haible  <bruno@clisp.org>
5128         list, set, oset, map, omap: Avoid imperative voice in documentation.
5129         * lib/gl_list.h: Use descriptive sentences instead of imperative voice
5130         in the specification of functions.
5131         * lib/gl_set.h: Likewise.
5132         * lib/gl_oset.h: Likewise.
5133         * lib/gl_map.h: Likewise.
5134         * lib/gl_omap.h: Likewise.
5135         * lib/gl_*.h: Likewise.
5137 2020-02-01  Bruno Haible  <bruno@clisp.org>
5139         ansi-c++-opt: Set CXXFLAGS to "-g -O2" by default.
5140         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Determine CXXFLAGS like AC_PROG_CXX
5141         does.
5143 2020-01-29  Bruno Haible  <bruno@clisp.org>
5145         array-map, hash-map, linkedhash-map: Fix module description.
5146         * modules/array-map (Description): Fix description.
5147         * modules/hash-map (Description): Likewise.
5148         * modules/linkedhash-map (Description): Likewise.
5150 2020-01-29  Paul Eggert  <eggert@cs.ucla.edu>
5152         dfa: do not depend on isblank
5153         This removes a difference between Gawk dfa.c and Gnulib dfa.c.
5154         * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
5155         * modules/dfa (Depends-on): Remove isblank.
5156         * modules/isblank: Add a module indicator, for lib/dfa.c.
5158         dfa: do not assume 64-bit int
5159         Problem reported for VAX/VMS C (!) by Arnold Robbins in:
5160         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
5161         * lib/dfa.c (CHARCLASS_PAIR): Bring back this macro.
5162         (CHARCLASS_WORD_BITS, charclass_word) [!UINT_LEAST64_MAX]:
5163         Fall back to 32-bit words.
5164         (CHARCLASS_INIT): Go back to having 8 32-bit args instead
5165         of 4 64-bit args.  All uses changed.
5167 2020-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5169         regex: remove limits-h dependency
5170         * modules/regex (Depends-on): Remove limits-h, since the
5171         code no longer depends on ULONG_WIDTH already being defined.
5173         regex: port to non-GCC pre-IEC-60559
5174         Problem reported by Arnold Robbins in:
5175         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00154.html
5176         * lib/regex_internal.h (ULONG_WIDTH): Make this usable in #if.
5178 2020-01-25  Bruno Haible  <bruno@clisp.org>
5180         c32isxdigit: Add tests.
5181         * tests/test-c32isxdigit.c: New file, based on tests/test-iswxdigit.c.
5182         * tests/test-c32isxdigit.sh: New file.
5183         * modules/c32isxdigit-tests: New file.
5185         c32isxdigit: New module.
5186         * lib/c32isxdigit.c: New file.
5187         * modules/c32isxdigit: New file.
5188         * doc/posix-functions/iswxdigit.texi: Mention the new module.
5190 2020-01-25  Bruno Haible  <bruno@clisp.org>
5192         c32isupper: Add tests.
5193         * tests/test-c32isupper.c: New file.
5194         * tests/test-c32isupper.sh: New file.
5195         * modules/c32isupper-tests: New file.
5197         c32isupper: New module.
5198         * lib/c32isupper.c: New file.
5199         * modules/c32isupper: New file.
5200         * doc/posix-functions/iswupper.texi: Mention the new module.
5202 2020-01-25  Bruno Haible  <bruno@clisp.org>
5204         c32isspace: Add tests.
5205         * tests/test-c32isspace.c: New file.
5206         * tests/test-c32isspace.sh: New file.
5207         * modules/c32isspace-tests: New file.
5209         c32isspace: New module.
5210         * lib/c32isspace.c: New file.
5211         * modules/c32isspace: New file.
5212         * doc/posix-functions/iswspace.texi: Mention the new module.
5214 2020-01-25  Bruno Haible  <bruno@clisp.org>
5216         c32ispunct: Add tests.
5217         * tests/test-c32ispunct.c: New file.
5218         * tests/test-c32ispunct.sh: New file.
5219         * modules/c32ispunct-tests: New file.
5221         c32ispunct: New module.
5222         * lib/c32ispunct.c: New file.
5223         * modules/c32ispunct: New file.
5224         * doc/posix-functions/iswpunct.texi: Mention the new module.
5226 2020-01-25  Bruno Haible  <bruno@clisp.org>
5228         c32isprint: Add tests.
5229         * tests/test-c32isprint.c: New file.
5230         * tests/test-c32isprint.sh: New file.
5231         * modules/c32isprint-tests: New file.
5233         c32isprint: New module.
5234         * lib/c32isprint.c: New file.
5235         * modules/c32isprint: New file.
5236         * doc/posix-functions/iswprint.texi: Mention the new module.
5238 2020-01-25  Bruno Haible  <bruno@clisp.org>
5240         c32islower: Add tests.
5241         * tests/test-c32islower.c: New file.
5242         * tests/test-c32islower.sh: New file.
5243         * modules/c32islower-tests: New file.
5245         c32islower: New module.
5246         * lib/c32islower.c: New file.
5247         * modules/c32islower: New file.
5248         * doc/posix-functions/iswlower.texi: Mention the new module.
5250 2020-01-25  Bruno Haible  <bruno@clisp.org>
5252         c32isgraph: Add tests.
5253         * tests/test-c32isgraph.c: New file.
5254         * tests/test-c32isgraph.sh: New file.
5255         * modules/c32isgraph-tests: New file.
5257         c32isgraph: New module.
5258         * lib/c32isgraph.c: New file.
5259         * modules/c32isgraph: New file.
5260         * doc/posix-functions/iswgraph.texi: Mention the new module.
5262 2020-01-25  Bruno Haible  <bruno@clisp.org>
5264         c32isdigit: Add tests.
5265         * tests/test-c32isdigit.c: New file, based on tests/test-iswdigit.c.
5266         * tests/test-c32isdigit.sh: New file.
5267         * modules/c32isdigit-tests: New file.
5269         c32isdigit: New module.
5270         * lib/c32isdigit.c: New file.
5271         * modules/c32isdigit: New file.
5272         * doc/posix-functions/iswdigit.texi: Mention the new module.
5274 2020-01-25  Bruno Haible  <bruno@clisp.org>
5276         c32iscntrl: Add tests.
5277         * tests/test-c32iscntrl.c: New file.
5278         * tests/test-c32iscntrl.sh: New file.
5279         * modules/c32iscntrl-tests: New file.
5281         c32iscntrl: New module.
5282         * lib/c32iscntrl.c: New file.
5283         * modules/c32iscntrl: New file.
5284         * doc/posix-functions/iswcntrl.texi: Mention the new module.
5286 2020-01-25  Bruno Haible  <bruno@clisp.org>
5288         c32isblank: Add tests.
5289         * tests/test-c32isblank.c: New file.
5290         * tests/test-c32isblank.sh: New file.
5291         * modules/c32isblank-tests: New file.
5293         c32isblank: New module.
5294         * lib/c32isblank.c: New file.
5295         * modules/c32isblank: New file.
5296         * doc/posix-functions/iswblank.texi: Mention the new module.
5298 2020-01-25  Bruno Haible  <bruno@clisp.org>
5300         c32isalpha: Add tests.
5301         * tests/test-c32isalpha.c: New file.
5302         * tests/test-c32isalpha.sh: New file.
5303         * modules/c32isalpha-tests: New file.
5305         c32isalpha: New module.
5306         * lib/c32isalpha.c: New file.
5307         * modules/c32isalpha: New file.
5308         * doc/posix-functions/iswalpha.texi: Mention the new module.
5310 2020-01-25  Bruno Haible  <bruno@clisp.org>
5312         c32isalnum: Add tests.
5313         * tests/test-c32isalnum.c: New file.
5314         * tests/test-c32isalnum.sh: New file.
5315         * modules/c32isalnum-tests: New file.
5317         c32isalnum: New module.
5318         * lib/c32isalnum.c: New file.
5319         * lib/c32is-impl.h: New file.
5320         * modules/c32isalnum: New file.
5321         * doc/posix-functions/iswalnum.texi: Mention the new module.
5323 2020-01-25  Bruno Haible  <bruno@clisp.org>
5325         uchar: Preparations for modules c32isalnum, ..., c32isxdigit.
5326         * lib/uchar.in.h (c32isalnum, c32isalpha, c32isblank, c32iscntrl,
5327         c32isdigit, c32isgraph, c32islower, c32isprint, c32ispunct, c32isspace,
5328         c32isupper, c32isxdigit): New declarations.
5329         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32ISALNUM,
5330         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
5331         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
5332         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
5333         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
5334         * modules/uchar (Makefile.am): Substitute GNULIB_C32ISALNUM,
5335         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
5336         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
5337         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
5338         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
5339         * tests/test-uchar-c++.cc: Test the signature of c32isalnum, c32isalpha,
5340         c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
5341         c32ispunct, c32isspace, c32isupper, c32isxdigit.
5343 2020-01-25  Bruno Haible  <bruno@clisp.org>
5345         mbchar, wctype: Use the corrected iswxdigit function.
5346         * modules/mbchar (Depends-on): Add iswxdigit.
5347         * modules/wctype (Depends-on): Likewise.
5349         iswxdigit: Add tests.
5350         * tests/test-iswxdigit.c: New file.
5351         * tests/test-iswxdigit.sh: New file.
5352         * modules/iswxdigit-tests: New file.
5354         iswxdigit: New module.
5355         * m4/iswxdigit.m4: New file.
5356         * lib/wctype.in.h (iswxdigit): Potentially override.
5357         (iswxdigit, rpl_iswxdigit): Test REPLACE_ISWXDIGIT, not
5358         REPLACE_ISWCNTRL. Rely on ISO C compliant definition.
5359         * lib/iswxdigit.c: New file.
5360         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWXDIGIT,
5361         REPLACE_ISWXDIGIT.
5362         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWXDIGIT,
5363         REPLACE_ISWXDIGIT.
5364         * modules/iswxdigit: New file.
5365         * doc/posix-functions/iswxdigit.texi: Mention the portability problem.
5367 2020-01-25  Bruno Haible  <bruno@clisp.org>
5369         lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
5370         Reported by John Donoghue <john.david.donoghue@gmail.com> in
5371         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
5372         * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
5373         off_t on mingw, invoke _lseeki64 instead of lseek.
5375 2020-01-25  Bruno Haible  <bruno@clisp.org>
5377         iswdigit tests: Avoid test failure on Cygwin.
5378         * tests/test-iswdigit.c (for_character): If mbrtowc cannot convert the
5379         byte sequence, return 0.
5381         iswdigit: Fix test failure on native Windows.
5382         * lib/wctype.in.h (rpl_iswdigit): Rely on ISO C compliant definition.
5384         mbchar, wctype: Use the corrected iswdigit function.
5385         * modules/mbchar (Depends-on): Add iswdigit.
5386         * modules/wctype (Depends-on): Likewise.
5388         iswdigit: Add tests.
5389         * tests/test-iswdigit.c: New file.
5390         * tests/test-iswdigit.sh: New file.
5391         * modules/iswdigit-tests: New file.
5393         iswdigit: New module.
5394         * m4/iswdigit.m4: New file.
5395         * lib/wctype.in.h (iswdigit): Potentially override.
5396         (iswdigit, rpl_iswdigit): Test REPLACE_ISWDIGIT, not REPLACE_ISWCNTRL.
5397         * lib/iswdigit.c: New file.
5398         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWDIGIT,
5399         REPLACE_ISWDIGIT.
5400         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWDIGIT,
5401         REPLACE_ISWDIGIT.
5402         * modules/iswdigit: New file.
5403         * doc/posix-functions/iswdigit.texi: Mention the portability problem.
5405 2020-01-25  Bruno Haible  <bruno@clisp.org>
5407         hard-locale tests: Make it easy to reuse the musl test.
5408         * m4/musl.m4: New file, extracted from modules/hard-locale-tests.
5409         * modules/hard-locale-tests (Files): Add it.
5410         (configure.ac): Invoke gl_MUSL_LIBC.
5412 2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
5414         regex: port to Gawk on nonstandard platforms
5415         * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
5416         This is useful for Gawk, which does not use the Gnulib stdlib-h
5417         module.  Problem reported by Arnold Robbins in:
5418         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
5420 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
5422         regex: fix bug with >=16 subexpressions
5423         * lib/regex_internal.h (struct re_backref_cache_entry):
5424         Use bitset_word_t as the type of eps_reachable_subexps_map,
5425         instead of unsigned short int.  This fixes a bug I introduced
5426         to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
5427         2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
5428         Remove unused member 'unused'.
5430         regex: simplify definition of BITSET_WORD_BITS
5431         * config/srclist.txt: Remove regex.c, regex_internal.h temporarily.
5432         * lib/regex.c (__STDC_WANT_IEC_60559_BFP_EXT__): Define.
5433         * lib/regex_internal.h (BITSET_WORD_BITS):
5434         * modules/regex (Depends-on): Add limits-h.
5435         Simplify now that we can use ULONG_WIDTH.
5437 2020-01-20  Bruno Haible  <bruno@clisp.org>
5439         mbrtoc32: Add note about FreeBSD 12.
5440         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
5441         * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
5442         affected.
5444 2020-01-20  Bruno Haible  <bruno@clisp.org>
5446         unistr/u8-uctomb: Fix warning.
5447         Reported by Andreas Schwab <schwab@suse.de> in
5448         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00127.html>.
5449         * lib/unistr/u8-uctomb.c (FALLTHROUGH): New macro.
5450         (u8_uctomb): Add FALLTHROUGH markers.
5452 2020-01-20  Bruno Haible  <bruno@clisp.org>
5454         lock: Fix test-once1 failure on FreeBSD 11 (regression from 2020-01-19).
5455         * lib/glthread/lock.c (glthread_once_multithreaded): New function.
5456         * lib/glthread/lock.h (glthread_once_multithreaded): New declaration.
5457         (glthread_once): Use it.
5459 2020-01-19  Bruno Haible  <bruno@clisp.org>
5461         threadlib: Disable use of weak symbols on FreeBSD 11.
5462         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
5463         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00061.html>.
5464         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Require AC_CANONICAL_HOST. Test
5465         against a bug in FreeBSD 11.
5467 2020-01-19  Bruno Haible  <bruno@clisp.org>
5469         iconv_open: Improve z/OS support.
5470         * lib/iconv_open-zos.gperf: Choose better aliases. Add mapping for
5471         ISO-8859-3, KOI8-R, KOI8-U, CP775, CP857, CP865, CP1129, CP1131, CP1257.
5472         Remove mapping for EUC-TW.
5474 2020-01-18  Bruno Haible  <bruno@clisp.org>
5476         Rename ~~gnulib.m4 to zzgnulib.m4.
5477         Suggested by Paul Eggert.
5478         * m4/zzgnulib.m4: Renamed from m4/~~gnulib.m4.
5479         * gnulib-tool (func_get_filelist): Update.
5480         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
5482 2020-01-18  Bruno Haible  <bruno@clisp.org>
5484         doc: Update license notices.
5485         * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by
5486         reference to a section or to a "file as part of this distribution".
5488 2020-01-18  Bruno Haible  <bruno@clisp.org>
5490         Avoid error "m4_require: circular dependency of AC_LANG_COMPILER(C)".
5491         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
5492         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00109.html>.
5493         * m4/00gnulib.m4 (gl_COMPILER_CLANG): Use _AC_COMPILE_IFELSE, not
5494         AC_EGREP_CPP.
5496 2020-01-18  Bruno Haible  <bruno@clisp.org>
5498         Ensure Automake does not drop ~~gnulib.m4.
5499         * m4/~~gnulib.m4 (gl_ZZGNULIB): New macro.
5500         * m4/gnulib-common.m4 (gl_COMMON): Require it.
5502 2020-01-18  Bruno Haible  <bruno@clisp.org>
5504         Fix major regression from 2020-01-10.
5505         Reported by Paul Eggert in
5506         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00079.html>.
5507         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
5508         Don't AC_REQUIRE anything.
5509         (gl_COMPILER_PREPARE_CHECK_DECL): Define through AC_DEFUN, not
5510         AC_DEFUN_ONCE. Use _AC_COMPILE_IFELSE, not AC_COMPILE_IFELSE.
5511         (_AC_CHECK_DECL_BODY): If ac_compile_for_check_decl has not been set,
5512         use ac_compile instead.
5513         (AC_CHECK_DECL): Remove override.
5514         * m4/~~gnulib.m4: New file.
5515         * gnulib-tool (func_get_filelist): Add also ~~gnulib.m4.
5516         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
5518 2020-01-17  Bruno Haible  <bruno@clisp.org>
5519             Paul Eggert  <eggert@cs.ucla.edu>
5521         glob: Fix use-after-free bug.
5522         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
5523         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.
5524         * lib/glob.c (__glob): Delay freeing dirname until after the use of
5525         end_name.
5527 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
5529         vcs-to-changelog: Fix parsing of fndecl without args.
5530         * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression
5531         for empty arguments.
5533 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
5535         vcs-to-changelog: Add documentation.
5536         * doc/vcs-to-changelog.texi: New file.
5537         * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog
5538         section.
5540 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
5542         vcs-to-changelog: Allow loading of custom quirks file.
5543         * build-aux/vcs_to_changelog.py: New commandline option -q.
5545 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
5547         vcs-to-changelog: Fix formatting of ChangeLog output.
5548         * build-aux/vcstocl/vcs_git.py (list_changes): Add newline in print
5549         output.
5551 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
5553         vcs-to-changelog: Drop python3 shebang from frontend_c.py.
5554         Reported in
5555         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00050.html>.
5556         * build-aux/vcstocl/frontend_c.py: Remove shebang.
5558 2020-01-15  Simon Josefsson  <simon@josefsson.org>
5560         crypto/gc-pbkdf2: New module.
5561         * MODULES.html.sh (func_all_modules): Add gc-pbkdf2.
5562         * NEWS: Deprecated gc-pbkdf2-sha1 in favor of gc-pbkdf2.
5563         * lib/gc-pbkdf2.c: New file.
5564         * lib/gc-pbkdf2-sha1.c: Use new interface.
5565         * lib/gc.h (GC_MAX_DIGEST_SIZE, gc_pbkdf2_hmac): Add.
5566         * modules/crypto/gc-pbkdf2: New file.
5567         * modules/crypto/gc-pbkdf2-tests: New file.
5568         * tests/test-gc-pbkdf2.c: New file.
5570 2020-01-12  Bruno Haible  <bruno@clisp.org>
5572         c32stombs: Add tests.
5573         * tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
5574         * tests/test-c32stombs-1.sh: New file, based on
5575         tests/test-c32srtombs-1.sh.
5576         * tests/test-c32stombs-2.sh: New file, based on
5577         tests/test-c32srtombs-2.sh.
5578         * tests/test-c32stombs-3.sh: New file, based on
5579         tests/test-c32srtombs-3.sh.
5580         * tests/test-c32stombs-4.sh: New file, based on
5581         tests/test-c32srtombs-4.sh.
5582         * modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
5584         c32stombs: New module.
5585         * lib/uchar.in.h (c32stombs): New declaration.
5586         * lib/c32stombs.c: New file.
5587         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32STOMBS.
5588         * modules/uchar (Makefile.am): Substitute GNULIB_C32STOMBS.
5589         * modules/c32stombs: New file.
5590         * tests/test-uchar-c++.cc: Test the signature of c32stombs.
5591         * doc/posix-functions/wcstombs.texi: Mention the new module.
5593 2020-01-11  Jim Meyering  <meyering@fb.com>
5595         perl: require the "warnings" module
5596         * m4/perl.m4: Also "use warnings", so we reject the perl found
5597         on at least one IRIX 6.5 system. Reported by Bruno Haible in
5598         https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
5600 2020-01-10  Bruno Haible  <bruno@clisp.org>
5602         Fix major regression from 2020-01-04.
5603         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
5604         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
5605         * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
5606         AC_DEFUN_ONCE.
5607         (AC_CHECK_DECL): Invoke, not require, it.
5609 2020-01-10  Bruno Haible  <bruno@clisp.org>
5611         c32snrtombs: Add tests.
5612         * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
5613         * tests/test-c32snrtombs-1.sh: New file, based on
5614         tests/test-wcsnrtombs1.sh.
5615         * tests/test-c32snrtombs-2.sh: New file, based on
5616         tests/test-wcsnrtombs2.sh.
5617         * tests/test-c32snrtombs-3.sh: New file, based on
5618         tests/test-wcsnrtombs3.sh.
5619         * tests/test-c32snrtombs-4.sh: New file, based on
5620         tests/test-wcsnrtombs4.sh.
5621         * modules/c32snrtombs-tests: New file, based on
5622         modules/wcsnrtombs-tests.
5624         c32snrtombs: New module.
5625         * lib/uchar.in.h (c32snrtombs): New declaration.
5626         * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
5627         INTERNAL_STATE, WCRTOMB.
5628         * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
5629         * lib/c32snrtombs.c: New file.
5630         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
5631         * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
5632         * modules/c32snrtombs: New file.
5633         * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
5634         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
5636 2020-01-09  Bruno Haible  <bruno@clisp.org>
5638         c32srtombs: Add tests.
5639         * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
5640         * tests/test-c32srtombs-1.sh: New file, based on
5641         tests/test-wcsrtombs1.sh.
5642         * tests/test-c32srtombs-2.sh: New file, based on
5643         tests/test-wcsrtombs2.sh.
5644         * tests/test-c32srtombs-3.sh: New file, based on
5645         tests/test-wcsrtombs3.sh.
5646         * tests/test-c32srtombs-4.sh: New file, based on
5647         tests/test-wcsrtombs4.sh.
5648         * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
5650         c32srtombs: New module.
5651         * lib/uchar.in.h (c32srtombs): New declaration.
5652         * lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
5653         INTERNAL_STATE, WCRTOMB.
5654         * lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
5655         * lib/c32srtombs.c: New file.
5656         * lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
5657         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
5658         * modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
5659         * modules/c32srtombs: New file.
5660         * tests/test-uchar-c++.cc: Test the signature of c32srtombs.
5661         * doc/posix-functions/wcsrtombs.texi: Mention the new module.
5663 2020-01-08  Bruno Haible  <bruno@clisp.org>
5665         c32tob: Make consistent with mbrtoc32.
5666         * lib/c32tob.c: Include <stdio.h>, <string.h>, <wchar.h>.
5667         (c32tob): If the char32_t encoding and the wchar_t encoding may differ,
5668         use c32rtomb, not wctob.
5669         * modules/c32tob (Files): Add m4/mbrtoc32.m4.
5670         (Depends-on): Add c32rtomb.
5671         (configure.ac): Require gl_MBRTOC32_SANITYCHECK.
5673 2020-01-08  Bruno Haible  <bruno@clisp.org>
5675         c32rtomb: Add tests.
5676         * tests/test-c32rtomb.c: New file, based on tests/test-wcrtomb.c.
5677         * tests/test-c32rtomb.sh: New file, based on tests/test-wcrtomb.sh.
5678         * tests/test-c32rtomb-w32.c: New file, based on
5679         tests/test-wcrtomb-w32.c.
5680         * tests/test-c32rtomb-w32-1.sh: New file, based on
5681         tests/test-wcrtomb-w32-1.sh.
5682         * tests/test-c32rtomb-w32-2.sh: New file, based on
5683         tests/test-wcrtomb-w32-2.sh.
5684         * tests/test-c32rtomb-w32-3.sh: New file, based on
5685         tests/test-wcrtomb-w32-3.sh.
5686         * tests/test-c32rtomb-w32-4.sh: New file, based on
5687         tests/test-wcrtomb-w32-4.sh.
5688         * tests/test-c32rtomb-w32-5.sh: New file, based on
5689         tests/test-wcrtomb-w32-5.sh.
5690         * tests/test-c32rtomb-w32-6.sh: New file, based on
5691         tests/test-wcrtomb-w32-6.sh.
5692         * tests/test-c32rtomb-w32-7.sh: New file, based on
5693         tests/test-wcrtomb-w32-7.sh.
5694         * modules/c32rtomb-tests: New file.
5696         c32rtomb: New module.
5697         * lib/uchar.in.h (c32rtomb): New declaration.
5698         * lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
5699         * m4/c32rtomb.m4: New file.
5700         * m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
5701         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
5702         REPLACE_C32RTOMB.
5703         * modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
5704         HAVE_C32RTOMB, REPLACE_C32RTOMB.
5705         * modules/c32rtomb: New file.
5706         * tests/test-uchar-c++.cc: Test the signature of c32rtomb.
5707         * doc/posix-functions/c32rtomb.texi: Document the new module.
5708         * doc/posix-functions/wcrtomb.texi: Mention the new module.
5710 2020-01-08  Bruno Haible  <bruno@clisp.org>
5712         mbrtoc32: Use the system's mbrtoc32 if it exists and basically works.
5713         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): New macro.
5714         (gl_FUNC_MBRTOC32): Require it. Set REPLACE_MBRTOC32 if mbrtoc32 exists
5715         but is not working.
5716         * lib/mbrtoc32.c: Include hard-locale.h, <locale.h>.
5717         (mbrtoc32): If the char32_t encoding and the wchar_t encoding may
5718         differ, use the system's mbrtoc32, adding workarounds.
5719         * modules/mbrtoc32 (Depends-on): Add hard-locale.
5720         * doc/posix-functions/mbrtoc32.texi: Mention the Solaris and native
5721         Windows problem.
5722         * lib/btoc32.c: Include <stdio.h>, <string.h>.
5723         (btoc32): If the char32_t encoding and the wchar_t encoding may differ,
5724         use mbrtoc32, not btowc.
5725         * modules/btoc32 (Depends-on): Add mbrtoc32.
5726         * lib/mbsrtoc32s.c (mbsrtoc32s): If the char32_t encoding and the
5727         wchar_t encoding may differ, use mbrtoc32, not mbsrtowcs.
5728         * modules/mbsrtoc32s (Depends-on): Update conditions.
5729         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
5730         * lib/mbsnrtoc32s.c (mbsnrtoc32s): If the char32_t encoding and the
5731         wchar_t encoding may differ, use mbrtoc32, not mbsnrtowcs.
5732         * modules/mbsnrtoc32s (Depends-on): Update conditions.
5733         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
5735 2020-01-07  Bruno Haible  <bruno@clisp.org>
5737         wcrtomb: Make multithread-safe, except possibly on IRIX.
5738         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Don't set REPLACE_WCRTOMB to 1 when
5739         REPLACE_MBSTATE_T is set. Define WCRTOMB_C_LOCALE_BUG and
5740         WCRTOMB_RETVAL_BUG.
5741         * lib/wcrtomb.c (wcrtomb): Use original wcrtomb whenever available. Use
5742         wctomb only on IRIX.
5744 2020-01-05  Jim Meyering  <meyering@fb.com>
5746         tests: skip thread-using tests when threading is disabled
5747         sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three
5748         thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each
5749         of those, so they are skipped in this case.
5750         * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled.
5751         * tests/test-setlocale_null-mt-all.c (main): Likewise.
5752         * tests/test-setlocale_null-mt-one.c (main): Likewise.
5754 2020-01-05  Bruno Haible  <bruno@clisp.org>
5756         tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
5757         Reported by Jim Meyering in
5758         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
5759         * lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
5760         (GNULIB_defined_ptsname_r): New macro.
5761         * tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
5762         (main): Disable the NULL argument test if canonicalize_file_name does
5763         not come from gnulib.
5764         * tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
5765         (main): Disable the NULL argument test if canonicalize_file_name does
5766         not come from gnulib.
5767         * tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
5768         (test_errors): Disable the NULL argument test if ptsname_r does not come
5769         from gnulib.
5771 2020-01-04  Jim Meyering  <meyering@fb.com>
5773         update-copyright: reenable its always-skipped test
5774         * tests/test-update-copyright.sh: Restore the "-pi" options removed
5775         on 2019-06-15. Without those, an internal preliminary test would
5776         fail, causing this test always to be skipped.
5777         Verify that the test is now run and passes via this:
5778           ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
5780 2020-01-05  Bruno Haible  <bruno@clisp.org>
5782         mbstoc32s: Add tests.
5783         * tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
5784         * tests/test-mbstoc32s-1.sh: New file, based on
5785         tests/test-mbsrtoc32s-1.sh.
5786         * tests/test-mbstoc32s-2.sh: New file, based on
5787         tests/test-mbsrtoc32s-2.sh.
5788         * tests/test-mbstoc32s-3.sh: New file, based on
5789         tests/test-mbsrtoc32s-3.sh.
5790         * tests/test-mbstoc32s-4.sh: New file, based on
5791         tests/test-mbsrtoc32s-4.sh.
5792         * modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
5794         mbstoc32s: New module.
5795         * lib/uchar.in.h (mbstoc32s): New declaration.
5796         * lib/mbstoc32s.c: New file.
5797         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSTOC32S.
5798         * modules/uchar (Makefile.am): Substitute GNULIB_MBSTOC32S.
5799         * modules/mbstoc32s: New file.
5800         * tests/test-uchar-c++.cc: Test the signature of mbstoc32s.
5801         * doc/posix-functions/mbstowcs.texi: Mention the new module.
5803 2020-01-05  Bruno Haible  <bruno@clisp.org>
5805         Tweak recently added tests.
5806         * tests/test-mbrtoc32.c: Make signature consistent with uchar.in.h.
5807         * tests/test-mbsrtoc32s.c: Likewise.
5808         * tests/test-mbsnrtoc32s.c: Likewise.
5810 2020-01-04  Bruno Haible  <bruno@clisp.org>
5812         mbsnrtoc32s: Add tests.
5813         * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c.
5814         * tests/test-mbsnrtoc32s-1.sh: New file, based on
5815         tests/test-mbsnrtowcs1.sh.
5816         * tests/test-mbsnrtoc32s-2.sh: New file, based on
5817         tests/test-mbsnrtowcs2.sh.
5818         * tests/test-mbsnrtoc32s-3.sh: New file, based on
5819         tests/test-mbsnrtowcs3.sh.
5820         * tests/test-mbsnrtoc32s-4.sh: New file, based on
5821         tests/test-mbsnrtowcs4.sh.
5822         * modules/mbsnrtoc32s-tests: New file, based on
5823         modules/mbsnrtowcs-tests.
5825         mbsnrtoc32s: New module.
5826         * lib/uchar.in.h (mbsnrtoc32s): New declaration.
5827         * lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
5828         INTERNAL_STATE, MBRTOWC.
5829         * lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
5830         * lib/mbsnrtoc32s.c: New file.
5831         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
5832         * modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
5833         * modules/mbsnrtoc32s: New file.
5834         * tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
5835         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
5837 2020-01-04  Bruno Haible  <bruno@clisp.org>
5839         mbsrtoc32s tests: Enhance test.
5840         * tests/test-mbsrtoc32s.c (main): Include a non-BMP character in the
5841         test strings for UTF-8 and GB18030.
5843 2020-01-04  Bruno Haible  <bruno@clisp.org>
5845         mbsrtoc32s: Fix bug.
5846         * modules/mbsrtoc32s (configure.ac): Require gl_UCHAR_H, to make sure
5847         that SMALL_WCHAR_T is defined.
5849 2020-01-04  Bruno Haible  <bruno@clisp.org>
5851         mbsrtoc32s: Add tests.
5852         * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c.
5853         * tests/test-mbsrtoc32s-1.sh: New file, based on
5854         tests/test-mbsrtowcs1.sh.
5855         * tests/test-mbsrtoc32s-2.sh: New file, based on
5856         tests/test-mbsrtowcs2.sh.
5857         * tests/test-mbsrtoc32s-3.sh: New file, based on
5858         tests/test-mbsrtowcs3.sh.
5859         * tests/test-mbsrtoc32s-4.sh: New file, based on
5860         tests/test-mbsrtowcs4.sh.
5861         * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-tests.
5863         mbsrtoc32s: New module.
5864         * lib/uchar.in.h (mbsrtoc32s): New declaration.
5865         * lib/mbsrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
5866         INTERNAL_STATE, MBRTOWC.
5867         * lib/mbsrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
5868         * lib/mbsrtoc32s.c: New file.
5869         * lib/mbsrtoc32s-state.c: New file, based on lib/mbsrtowcs-state.c.
5870         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOC32S.
5871         * modules/uchar (Makefile.am): Substitute GNULIB_MBSRTOC32S.
5872         * modules/mbsrtoc32s: New file.
5873         * tests/test-uchar-c++.cc: Test the signature of mbsrtoc32s.
5874         * doc/posix-functions/mbsrtowcs.texi: Mention the new module.
5876 2020-01-04  Bruno Haible  <bruno@clisp.org>
5878         mbrtowc, mbrtoc32: Tighten dependendies.
5879         * modules/mbrtowc (Depends-on): Disable hard-locale, mbsinit if
5880         REPLACE_MBSTATE_T is 1.
5881         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
5882         REPLACE_MBSTATE_T is 0.
5883         * modules/mbrtoc32 (Depends-on): Remove hard-locale, mbsinit. Disable
5884         mbrtowc dependency if REPLACE_MBSTATE_T is 1.
5885         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
5886         REPLACE_MBSTATE_T is 0.
5888 2020-01-04  Bruno Haible  <bruno@clisp.org>
5890         uchar: Decide about _GL_LARGE_CHAR32_T at configure time.
5891         * m4/uchar.m4 (gl_UCHAR_H): Set SMALL_WCHAR_T.
5892         * modules/uchar (Files): Add stdint.m4.
5893         (Makefile.am): Substitute SMALL_WCHAR_T.
5894         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): Rely on SMALL_WCHAR_T.
5896 2020-01-04  Bruno Haible  <bruno@clisp.org>
5898         Fix AC_CHECK_DECL so that it deactivates clang's built-in declarations.
5899         Reported by Martin Storsjö <martin@martin.st> in
5900         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00016.html>.
5901         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
5902         New macros.
5903         (_AC_CHECK_DECL_BODY, AC_CHECK_DECL): Augment.
5905 2020-01-04  Bruno Haible  <bruno@clisp.org>
5907         btoc32: Add tests.
5908         * tests/test-btoc32.c: New file, based on tests/test-btowc.c.
5909         * tests/test-btoc32-1.sh: New file, based on tests/test-btowc1.sh.
5910         * tests/test-btoc32-2.sh: New file, based on tests/test-btowc2.sh.
5911         * modules/btoc32-tests: New file, based on modules/btowc-tests.
5913         btoc32: New module.
5914         * lib/uchar.in.h (btoc32): New declaration.
5915         * lib/btoc32.c: New file.
5916         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32.
5917         * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32.
5918         * modules/btoc32: New file.
5919         * tests/test-uchar-c++.cc: Test the signature of btoc32.
5920         * doc/posix-functions/btowc.texi: Mention the new module.
5922 2020-01-03  Bruno Haible  <bruno@clisp.org>
5924         uchar tests: Avoid compilation error with HP cc.
5925         * tests/test-uchar.c: Disable a test when HP cc is in use.
5927 2020-01-03  Bruno Haible  <bruno@clisp.org>
5929         mbrtoc32: Add tests.
5930         * tests/test-mbrtoc32.c: New file, based on tests/test-mbrtowc.c.
5931         * tests/test-mbrtoc32-1.sh: New file, based on tests/test-mbrtowc1.sh.
5932         * tests/test-mbrtoc32-2.sh: New file, based on tests/test-mbrtowc2.sh.
5933         * tests/test-mbrtoc32-3.sh: New file, based on tests/test-mbrtowc3.sh.
5934         * tests/test-mbrtoc32-4.sh: New file, based on tests/test-mbrtowc4.sh.
5935         * tests/test-mbrtoc32-5.sh: New file, based on tests/test-mbrtowc5.sh.
5936         * tests/test-mbrtoc32-w32.c: New file, based on tests/test-mbrtowc-w32.c.
5937         * tests/test-mbrtoc32-w32-1.sh: New file, based on
5938         tests/test-mbrtowc-w32-1.sh.
5939         * tests/test-mbrtoc32-w32-2.sh: New file, based on
5940         tests/test-mbrtowc-w32-2.sh.
5941         * tests/test-mbrtoc32-w32-3.sh: New file, based on
5942         tests/test-mbrtowc-w32-3.sh.
5943         * tests/test-mbrtoc32-w32-4.sh: New file, based on
5944         tests/test-mbrtowc-w32-4.sh.
5945         * tests/test-mbrtoc32-w32-5.sh: New file, based on
5946         tests/test-mbrtowc-w32-5.sh.
5947         * tests/test-mbrtoc32-w32-6.sh: New file, based on
5948         tests/test-mbrtowc-w32-6.sh.
5949         * tests/test-mbrtoc32-w32-7.sh: New file, based on
5950         tests/test-mbrtowc-w32-7.sh.
5951         * modules/mbrtoc32-tests: New file, based on modules/mbrtowc-tests.
5953         mbrtoc32: New module.
5954         * lib/uchar.in.h (mbrtoc32): New declaration.
5955         * lib/mbrtoc32.c: New file, based on lib/mbrtowc.c.
5956         * m4/mbrtoc32.m4: New file, based on m4/mbrtowc.m4.
5957         * m4/uchar.m4 (gl_UCHAR_H): Test whether mbrtoc32 is declared.
5958         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOC32, HAVE_MBRTOC32,
5959         REPLACE_MBRTOC32.
5960         * modules/uchar (Makefile.am): Substitute GNULIB_MBRTOC32,
5961         HAVE_MBRTOC32, REPLACE_MBRTOC32.
5962         * modules/mbrtoc32: New file, based on modules/mbrtowc.
5963         * tests/test-uchar-c++.cc (mbrtoc32): Verify the signature.
5964         * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with
5965         $(LIB_MBRTOWC).
5966         * doc/posix-functions/mbrtoc32.texi: Document the new module.
5967         * doc/posix-functions/mbrtowc.texi: Mention the new module.
5969 2020-01-03  Bruno Haible  <bruno@clisp.org>
5971         mbrtowc: Refactor to share code with mbrtoc32.
5972         * lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
5973         * lib/mbrtowc-impl-utf8.h: Likewise.
5974         * lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
5975         mbrtowc-impl.h.
5976         * modules/mbrtowc (Files): Add the new files.
5978 2020-01-03  Jim Meyering  <meyering@fb.com>
5980         doc: fix time.texi wording
5981         * doc/posix-headers/time.texi (time.h): Typo.
5983 2020-01-03  Bruno Haible  <bruno@clisp.org>
5985         mbrtowc: Refactor locale charset dispatching.
5986         * lib/lc-charset-dispatch.h: New file, extracted from lib/mbrtowc.c.
5987         * lib/lc-charset-dispatch.c: New file, extracted from lib/mbrtowc.c.
5988         * lib/mbrtowc.c: Include lc-charset-dispatch.h. Don't include
5989         localcharset.h, streq.h.
5990         (enc_t): Remove type.
5991         (locale_enc): Remove function.
5992         (cached_locale_enc): Remove variable.
5993         (locale_enc_cached): Remove function.
5994         (mbrtowc): Invoke locale_encoding_classification.
5995         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Update comment.
5996         * modules/mbrtowc (Files): Add lc-charset-dispatch.h,
5997         lc-charset-dispatch.c.
5998         (configure.ac): Arrange to compile lc-charset-dispatch.c.
6000 2020-01-03  Paul Eggert  <eggert@cs.ucla.edu>
6002         doc: mention 32-bit time_t issue
6003         * doc/posix-headers/sys_stat.texi (sys/stat.h):
6004         * doc/posix-headers/time.texi (time.h): Mention 2038.
6006 2020-01-03  Bruno Haible  <bruno@clisp.org>
6008         mbrtowc: Ensure the mbtowc_lock is unique.
6009         * lib/mbtowc-lock.c: New file, based on lib/setlocale-lock.c.
6010         * lib/mbtowc-lock.h: New file, extracted from lib/mbrtowc.c and
6011         lib/setlocale_null.c.
6012         * lib/mbrtowc.c: Include headers needed for mbtowc-lock.h. Don't include
6013         glthread/lock.h. Include mbtowc-lock.h.
6014         (mbtowc_lock): Remove declaration.
6015         (mbrtowc): Use mbtowc_with_lock.
6016         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Require gl_PTHREADLIB. Check for
6017         threads.h. Set LIB_MBRTOWC.
6018         (gl_PREREQ_MBTOWC_LOCK): New macro.
6019         * modules/mbrtowc (Files): Add lib/mbtowc-lock.h, lib/mbtowc-lock.c,
6020         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
6021         (Depends-on): Remove lock.
6022         (configure.ac): Arrange to compile mbtowc-lock.c.
6023         (Link): Mention $(LIB_MBRTOWC) instead of $(LIBTHREAD).
6024         * modules/acl (Link): Likewise.
6025         * modules/argmatch (Link): Likewise.
6026         * modules/backup-rename (Link): Likewise.
6027         * modules/backupfile (Link): Likewise.
6028         * modules/closein (Link): Likewise.
6029         * modules/closeout (Link): Likewise.
6030         * modules/copy-file (Link): Likewise.
6031         * modules/csharpcomp (Link): Likewise.
6032         * modules/csharpexec (Link): Likewise.
6033         * modules/dfa (Link): Likewise.
6034         * modules/exclude (Link): Likewise.
6035         * modules/fnmatch (Link): Likewise.
6036         * modules/fnmatch-gnu (Link): Likewise.
6037         * modules/fnmatch-posix (Link): Likewise.
6038         * modules/glob (Link): Likewise.
6039         * modules/human (Link): Likewise.
6040         * modules/javacomp (Link): Likewise.
6041         * modules/javaexec (Link): Likewise.
6042         * modules/javaversion (Link): Likewise.
6043         * modules/mbfile (Link): Likewise.
6044         * modules/mbiter (Link): Likewise.
6045         * modules/mbmemcasecmp (Link): Likewise.
6046         * modules/mbmemcasecoll (Link): Likewise.
6047         * modules/mbrlen (Link): Likewise.
6048         * modules/mbscasecmp (Link): Likewise.
6049         * modules/mbscasestr (Link): Likewise.
6050         * modules/mbschr (Link): Likewise.
6051         * modules/mbscspn (Link): Likewise.
6052         * modules/mbsinit (Link): Likewise.
6053         * modules/mbslen (Link): Likewise.
6054         * modules/mbsncasecmp (Link): Likewise.
6055         * modules/mbsnlen (Link): Likewise.
6056         * modules/mbsnrtowcs (Link): Likewise.
6057         * modules/mbspbrk (Link): Likewise.
6058         * modules/mbspcasecmp (Link): Likewise.
6059         * modules/mbsrchr (Link): Likewise.
6060         * modules/mbsrtowcs (Link): Likewise.
6061         * modules/mbssep (Link): Likewise.
6062         * modules/mbsspn (Link): Likewise.
6063         * modules/mbsstr (Link): Likewise.
6064         * modules/mbstok_r (Link): Likewise.
6065         * modules/mbswidth (Link): Likewise.
6066         * modules/mbuiter (Link): Likewise.
6067         * modules/mkdir-p (Link): Likewise.
6068         * modules/propername (Link): Likewise.
6069         * modules/quote (Link): Likewise.
6070         * modules/quotearg (Link): Likewise.
6071         * modules/quotearg-simple (Link): Likewise.
6072         * modules/regex-quote (Link): Likewise.
6073         * modules/rpmatch (Link): Likewise.
6074         * modules/sh-quote (Link): Likewise.
6075         * modules/system-quote (Link): Likewise.
6076         * modules/trim (Link): Likewise.
6077         * modules/unistdio/ulc-asnprintf (Link): Likewise.
6078         * modules/unistdio/ulc-fprintf (Link): Likewise.
6079         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
6080         * modules/unistdio/ulc-vasprintf (Link): Likewise.
6081         * modules/unistdio/ulc-vfprintf (Link): Likewise.
6082         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
6083         * modules/unistdio/ulc-vsprintf (Link): Likewise.
6084         * modules/xfreopen (Link): Likewise.
6085         * modules/xmemcoll (Link): Likewise.
6086         * modules/yesno (Link): Likewise.
6087         * modules/regex (Link): Add $(LIB_MBRTOWC).
6088         * modules/acl-tests (Makefile.am): Link the programs with $(LIB_MBRTOWC)
6089         instead of $(LIBTHREAD).
6090         * modules/argmatch-tests (Makefile.am): Likewise.
6091         * modules/closein-tests (Makefile.am): Likewise.
6092         * modules/copy-file-tests (Makefile.am): Likewise.
6093         * modules/dfa-tests (Makefile.am): Likewise.
6094         * modules/fnmatch-tests (Makefile.am): Likewise.
6095         * modules/glob-tests (Makefile.am): Likewise.
6096         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
6097         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
6098         * modules/mbrtowc-tests (Makefile.am): Likewise.
6099         * modules/mbscasecmp-tests (Makefile.am): Likewise.
6100         * modules/mbscasestr-tests (Makefile.am): Likewise.
6101         * modules/mbschr-tests (Makefile.am): Likewise.
6102         * modules/mbscspn-tests (Makefile.am): Likewise.
6103         * modules/mbsinit-tests (Makefile.am): Likewise.
6104         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
6105         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
6106         * modules/mbspbrk-tests (Makefile.am): Likewise.
6107         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
6108         * modules/mbsrchr-tests (Makefile.am): Likewise.
6109         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
6110         * modules/mbsspn-tests (Makefile.am): Likewise.
6111         * modules/mbsstr-tests (Makefile.am): Likewise.
6112         * modules/quotearg-simple-tests (Makefile.am): Likewise.
6113         * modules/quotearg-tests (Makefile.am): Likewise.
6114         * modules/readtokens-tests (Makefile.am): Likewise.
6115         * modules/sh-quote-tests (Makefile.am): Likewise.
6116         * modules/system-quote-tests (Makefile.am): Likewise.
6117         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
6118         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
6119         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
6120         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
6121         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
6122         * modules/yesno-tests (Makefile.am): Likewise.
6123         * modules/exclude-tests (Makefile.am): Link the programs with
6124         $(LIB_MBRTOWC).
6125         * modules/regex-tests (Makefile.am): Likewise.
6126         * modules/regex-quote-tests (Makefile.am): Likewise.
6128 2020-01-03  Bruno Haible  <bruno@clisp.org>
6130         getopt-posix: Fix compilation failure in testdirs.
6131         * lib/unistd.in.h: Include <getopt-cdefs.h> and <getopt-pfx-core.h> only
6132         when the gnulib module 'getopt-posix' is enabled.
6133         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETOPT_POSIX.
6134         * modules/getopt-posix (configure.ac): Set GNULIB_GETOPT_POSIX as a
6135         module indicator.
6136         * modules/unistd (Makefile.am): Substitute GNULIB_GETOPT_POSIX.
6138 2020-01-03  Bruno Haible  <bruno@clisp.org>
6140         doc: Mention the 64-bit inode number problem.
6141         * m4/largefile.m4 (AC_SYS_LARGEFILE): Mention that this macro fixes the
6142         64-bit inode number problem.
6143         * doc/posix-functions/stat.texi: Mention that this module fixes the
6144         64-bit inode number problem.
6145         * doc/posix-functions/lstat.texi: Likewise.
6146         * doc/posix-functions/fstat.texi: Likewise.
6147         * doc/posix-functions/readdir.texi: Add more details.
6148         * doc/posix-functions/readdir_r.texi: Likewise.
6150 2020-01-02  Bruno Haible  <bruno@clisp.org>
6152         wcrtomb: Add more tests.
6153         * tests/test-wcrtomb-w32.c: Include localcharset.h.
6154         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
6155         locale_charset() returns the expected value; otherwise, skip the test.
6156         * tests/test-wcrtomb-w32-6.sh: Remove old comment.
6157         * tests/test-wcrtomb-w32-7.sh: Likewise.
6158         * modules/wcrtomb-tests (Files): Add these files.
6159         (Depends-on): Add localcharset.
6160         (TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
6162 2020-01-02  Bruno Haible  <bruno@clisp.org>
6164         mbrtowc: Add more tests.
6165         * tests/test-mbrtowc-w32.c: Include localcharset.h.
6166         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
6167         locale_charset() returns the expected value; otherwise, skip the test.
6168         * tests/test-mbrtowc-w32-6.sh: Remove old comment.
6169         * tests/test-mbrtowc-w32-7.sh: Likewise.
6170         * modules/mbrtowc-tests (Files): Add these files.
6171         (Depends-on): Add localcharset.
6172         (TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
6174 2020-01-02  Bruno Haible  <bruno@clisp.org>
6176         mbrtowc: Fix test failures on MSVC (regression by previous commit).
6177         * m4/mbrtowc.m4 (gl_MBRTOWC_STORES_INCOMPLETE): New macro.
6178         (gl_FUNC_MBRTOWC): Invoke it. Define MBRTOWC_STORES_INCOMPLETE_BUG.
6179         * lib/mbrtowc.c (rpl_mbrtowc): Add workaround for
6180         MBRTOWC_STORES_INCOMPLETE_BUG.
6181         * doc/posix-functions/mbrtowc.texi: Mention the MSVC bug.
6183 2020-01-02  Paul Eggert  <eggert@cs.ucla.edu>
6185         doc: mention glibc bug 24269
6186         * doc/regex.texi (Back-reference Operator): Add glibc bug 24269.
6187         Reformat slightly so that it looks nicer in the Grep manual.
6189 2020-01-02  Bruno Haible  <bruno@clisp.org>
6191         mbrtowc: Don't replace mbstate_t on MSVC.
6192         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore
6193         a missing mbsinit function on native Windows.
6194         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Likewise.
6195         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Strengthen the test, to detect an
6196         MSVC bug.
6197         * doc/posix-functions/wcrtomb.texi: Mention the MSVC bug.
6199 2020-01-02  Bruno Haible  <bruno@clisp.org>
6201         setlocale-null: Avoid crashing the MSVC linker.
6202         * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on
6203         MSVC.
6205 2020-01-02  Bruno Haible  <bruno@clisp.org>
6207         wchar: Make the HP-UX workaround work on HP-UX 11.31.
6208         * modules/wchar (Depends-on): Add inttypes-incomplete.
6209         * lib/inttypes.in.h: Define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H.
6210         * lib/wchar.in.h: Test _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H instead
6211         of strtoimax.
6213 2020-01-02  Bruno Haible  <bruno@clisp.org>
6215         mbrtowc: Fix compilation error on IRIX (regression from 2019-12-26).
6216         * lib/mbrtowc.c: Include <stdint.h>.
6217         * modules/mbrtowc (Depends-on): Add stdint.
6219 2020-01-01  Pádraig Brady  <P@draigBrady.com>
6221         md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compat
6222         * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode,
6223         which will auto enable use of openssl, only for >= version 3,
6224         which is newly licensed under the Apache Software License.
6226 2020-01-01  Bruno Haible  <bruno@clisp.org>
6228         mbrtowc: Include function name in macro names.
6229         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Define
6230         MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not C_LOCALE_MAYBE_EILSEQ.
6231         (gl_MBRTOWC_C_LOCALE): Change cache variable name to
6232         gl_cv_func_mbrtowc_C_locale_sans_EILSEQ.
6233         * lib/mbrtowc.c: Test MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not
6234         C_LOCALE_MAYBE_EILSEQ.
6236 2020-01-01  Bruno Haible  <bruno@clisp.org>
6238         c32tob: New module.
6239         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): New macro.
6240         (c32tob): New declaration.
6241         * lib/c32tob.c: New file.
6242         * m4/uchar.m4 (gl_UCHAR_MODULE_INDICATOR, gl_UCHAR_H_DEFAULTS): New
6243         macros.
6244         (gl_UCHAR_H): Require gl_UCHAR_H_DEFAULTS.
6245         * modules/uchar (Depends-on): Add snippet/c++defs.
6246         (Makefile.am): Include c++defs.h and substitute GNULIB_C32TOB in
6247         uchar.h.
6248         * modules/c32tob: New file.
6249         * tests/test-uchar.c: Verify that _GL_LARGE_CHAR32_T is correctly
6250         defined.
6251         * tests/test-uchar-c++.cc: Include signature.h. Test the signature of
6252         c32tob.
6253         * modules/uchar-c++-tests (Files): Add tests/signature.h.
6254         * doc/posix-functions/wctob.texi: Mention the new module.
6256 2020-01-01  Bruno Haible  <bruno@clisp.org>
6258         locale C++ tests: Fix link error on AIX (regression from 2019-12-18).
6259         * modules/locale-c++-tests (Makefile.am): Link test-locale-c++ with
6260         $(LIB_SETLOCALE).
6262 2020-01-01  Bruno Haible  <bruno@clisp.org>
6264         hard-locale tests: Fix a conflict with the C++ tests.
6265         * modules/hard-locale-tests (Makefile.am): Build a program named
6266         'current-locale', not 'locale'.
6268 2020-01-01  Bruno Haible  <bruno@clisp.org>
6270         doc: Update documentation about wchar_t.
6271         * doc/*/*wc*.texi: Clarify that 64-bit AIX does not have a too small
6272         wchar_t type.
6274 2020-01-01  Bruno Haible  <bruno@clisp.org>
6276         mbrtowc tests: Fix typos.
6277         * tests/test-mbrtowc.c (main): Fix typo.
6278         * tests/test-mbrtowc-w32.c (test_one_locale): Likewise.
6280 2019-12-31  Paul Eggert  <eggert@cs.ucla.edu>
6282         maint: update copyright notices
6283         Before doing the following changes done by hand, I also ran ‘make
6284         update-copyright’ and ‘config/srclist-update <config/srclist.txt’
6285         to do most of the copyright years automatically.  A few upstream
6286         sources are still in 2019 but these should eventually be changed
6287         automatically too.
6288         * build-aux/declared.sh (func_version):
6289         * build-aux/libtool-next-version (func_version):
6290         * build-aux/run-test (func_version):
6291         Update these notices by hand.  Put just the last year
6292         in output of programs, as per GNU coding standards.
6294 2019-12-31  Bruno Haible  <bruno@clisp.org>
6296         uchar: Add C++ tests.
6297         * tests/test-uchar-c++.cc: New file.
6298         * tests/test-uchar-c++2.cc: New file.
6299         * modules/uchar-c++-tests: New file.
6301         uchar: Add tests.
6302         * tests/test-uchar.c: New file.
6303         * modules/uchar-tests: New file.
6305         uchar: New module.
6306         * lib/uchar.in.h: New file.
6307         * m4/uchar.m4: New file.
6308         * modules/uchar: New file.
6309         * doc/posix-headers/uchar.texi: Mention the new module.
6311 2019-12-30  Jim Meyering  <meyering@fb.com>
6313         localeinfo: ->simple would be wrong for LC_ALL=C
6314         That would lead to using unnecessary and expensive code paths in dfa.c.
6315         * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic
6316         error that would have made grep many times slower in the C locale.
6317         With this change, and a file created like this:
6318           yes 00 | head -10000000 > in
6319         Running grep as follows becomes more than 40 times faster:
6320           LC_ALL=C grep -Fw 0 in
6322 2019-12-30  Paul Eggert  <eggert@cs.ucla.edu>
6324         doc: document trouble with back-references
6325         * doc/regex.texi (Back-reference Operator): Mention bugs etc.
6327 2019-12-29  Paul Eggert  <eggert@cs.ucla.edu>
6329         doc: use “back-reference” for \1 etc.
6330         * doc/regex.texi: Consistently spell “back-reference” with
6331         a hyphen, since that’s how POSIX does it.
6333 2019-12-26  Jim Meyering  <meyering@fb.com>
6335         test-framework-sh: tighten an internal grep regexp
6336         * tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
6337         that helps test for a working printf.
6339 2019-12-26  Bruno Haible  <bruno@clisp.org>
6341         test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
6342         Reported by Paul Eggert in
6343         <https://lists.gnu.org/archive/html/grep-devel/2019-12/msg00020.html>.
6344         Simplification by Jim Meyering.
6345         * tests/init.sh (gl_shell_test_script_): Add a test of printf of an
6346         octal escape sequence in a UTF-8 locale.
6348 2019-12-26  Paul Eggert  <eggert@cs.ucla.edu>
6350         mbrtowc: port better to narrow-wchar_t platforms
6351         * lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
6352         wchar_t is too narrow to represent all the Unicode characters,
6353         consider a byte sequence for an out-of-wchar_t-range character to
6354         be an encoding error.  This fixes grep’s surrogate-pair test
6355         failure on AIX 7.2.
6357 2019-12-24  Bruno Haible  <bruno@clisp.org>
6359         localcharset: Avoid referencing rpl_setlocale on native Windows.
6360         * lib/localcharset.c (setlocale): Undefine.
6362 2019-12-24  Bruno Haible  <bruno@clisp.org>
6364         lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
6365         * m4/semaphore.m4: New file.
6366         * modules/lock-tests (Files): Add it.
6367         (configure.ac): Require gl_SEMAPHORE.
6368         (Makefile.am): Link test-lock with $(LIB_SEMAPHORE).
6370 2019-12-24  Paul Eggert  <eggert@cs.ucla.edu>
6372         strptime: fix typo in previous patch
6373         Problem and fix reported by Bruno Haible in:
6374         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
6375         * lib/strptime.c (day_of_the_week): Fix paren bug.
6377 2019-12-24  Bruno Haible  <bruno@clisp.org>
6379         setlocale-null: Make it easy to rely on the lock in another library.
6380         * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is
6381         defined.
6383 2019-12-23  Paul Eggert  <eggert@cs.ucla.edu>
6385         gethrxtime, mktime, nstrftime, strptime: tweak division performance
6386         Performanced analyzed by Bruno Haible in:
6387         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00200.html
6388         * config/srclist.txt: Do not sync mktime.c for now.
6389         * lib/mktime.c (shr, ydhms_diff):
6390         * lib/nstrftime.c (SHR, tm_diff, __strftime_internal):
6391         * lib/strptime.c (day_of_the_week):
6392         * lib/xtime.h (xtime_sec):
6393         Redo with neither ‘%’ nor conditional branches.
6395 2019-12-23  Bruno Haible  <bruno@clisp.org>
6397         setlocale-null: Export the lock function also on non-Windows platforms.
6398         * lib/setlocale-lock.c (DLL_EXPORTED): New macro.
6399         (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
6400         * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
6401         * modules/setlocale-null (configure.ac): Invoke it.
6402         (Files): Add m4/visibility.m4.
6404 2019-12-22  Paul Eggert  <eggert@cs.ucla.edu>
6406         gethrxtime: fix rounding bug with negative args
6407         Problem reported by Bruno Haible in:
6408         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
6409         * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
6410         with negative rounding.  Common platforms can compute / and % with
6411         a single instruction, so the simplified code should be shorter and
6412         faster on these platforms anyway.
6414 2019-12-22  Bruno Haible  <bruno@clisp.org>
6416         gethrxtime: remove incorrect overflow detection
6417         * lib/xtime.h (xtime_make): Remove attempt to prevent internal
6418         integer overflow, as it didn’t suffice.  This reverts the xtime.h
6419         part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
6420         cannot now see the need for anyway (even in cases where it works),
6421         as the patch is helpful only when the signs of S and NS disagree,
6422         and all callers pass nonnegative values for S and NS.
6424 2019-12-22  Bruno Haible  <bruno@clisp.org>
6426         setlocale-null: Add standalone include file.
6427         * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
6428         * lib/locale.in.h: Include setlocale_null.h.
6429         (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
6430         setlocale_null): Remove declarations.
6431         * lib/setlocale_null.c: Include setlocale_null.h.
6432         * lib/localename.c: Likewise.
6433         * modules/setlocale-null (Files): Add lib/setlocale_null.h.
6434         (Depends-on): Add snippet/arg-nonnull.
6435         (Include): Allow either "setlocale_null.h" or <locale.h>.
6437 2019-12-22  Bruno Haible  <bruno@clisp.org>
6439         strfmon_l: Fix test failures on FreeBSD and Cygwin.
6440         * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
6441         AC_RUN_IFELSE test.
6442         * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
6443         * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
6444         problem.
6446 2019-12-22  Bruno Haible  <bruno@clisp.org>
6448         Prefer lib_SOURCES to unconditional AC_LIBOBJ.
6449         * modules/at-internal: Prefer a lib_SOURCES augmentation to an
6450         unconditional AC_LIBOBJ.
6451         * modules/selinux-at: Likewise.
6452         * modules/xmemdup0: Likewise.
6453         * modules/xstrtoll: Likewise.
6455 2019-12-22  Bruno Haible  <bruno@clisp.org>
6457         longlong: Mark module obsolete.
6458         * modules/longlong (Status, Notice): New sections.
6460         stdint: Assume that the compiler supports 'long long'.
6461         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
6462         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
6463         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
6464         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
6465         AC_TYPE_UNSIGNED_LONG_LONG_INT.
6466         * modules/stdint (Files): Remove longlong.m4.
6467         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
6468         HAVE_UNSIGNED_LONG_LONG_INT.
6470         inttypes-incomplete: Assume that the compiler supports 'long long'.
6471         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
6472         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
6473         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
6474         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
6475         HAVE_LONG_LONG_INT to be 1.
6476         * modules/inttypes-incomplete (Makefile.am): Don't substitute
6477         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
6479         malloca: Assume that the compiler supports 'long long'.
6480         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
6481         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
6482         * modules/malloca (Files): Remove longlong.m4.
6483         * modules/relocatable-prog-wrapper (Files): Likewise.
6485         atoll: Assume that the compiler supports 'long long'.
6486         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
6487         * modules/atoll (Files): Remove longlong.m4.
6489         strtoll: Assume that the compiler supports 'long long'.
6490         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
6491         * modules/strtoll (Files): Remove longlong.m4.
6493         strtoull: Assume that the compiler supports 'long long'.
6494         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
6495         AC_TYPE_UNSIGNED_LONG_LONG_INT.
6496         * modules/strtoull (Files): Remove longlong.m4.
6498         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
6499         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
6500         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
6501         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
6502         AC_TYPE_LONG_LONG_INT.
6503         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
6504         AC_TYPE_UNSIGNED_LONG_LONG_INT.
6505         * modules/strtoimax (Files): Remove longlong.m4.
6506         * modules/strtoumax (Files): Likewise.
6508         xstrtoll: Assume that the compiler supports 'long long'.
6509         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
6510         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
6512         vasnprintf: Assume that the compiler supports 'long long'.
6513         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
6514         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
6515         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
6516         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
6517         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
6518         require AC_TYPE_LONG_LONG_INT.
6519         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
6520         gl_PREREQ_VASNPRINTF): Likewise.
6521         * modules/vasnprintf (Files): Remove longlong.m4.
6522         * modules/c-vasnprintf (Files): Likewise.
6523         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6524         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6525         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6526         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6527         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6528         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6529         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6531         gethrxtime: Assume that the compiler supports 'long long'.
6532         * lib/xtime.h (xtime_t): Define to 'long long int' always.
6533         (XTIME_PRECISION): Define to 1000000000 always.
6534         (xtime_make, xtime_sec): Optimize accordingly.
6535         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
6536         * modules/gethrxtime (Files): Remove longlong.m4.
6538         integer_length*: Assume that the compiler supports 'long long'.
6539         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
6540         * modules/integer_length (Files): Remove longlong.m4.
6541         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
6542         * modules/integer_length_l (Files): Remove longlong.m4.
6543         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
6544         * modules/integer_length_ll (Files): Remove longlong.m4.
6545         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
6547         count-one-bits: Assume that the compiler supports 'long long'.
6548         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
6549         * m4/count-one-bits.m4: Remove file.
6550         * modules/count-one-bits (Files): Remove it.
6551         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
6552         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
6553         unconditionally.
6555         count-trailing-zeros: Assume that the compiler supports 'long long'.
6556         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
6557         unconditionally.
6558         * m4/count-trailing-zeros.m4: Remove file.
6559         * modules/count-trailing-zeros (Files): Remove it.
6560         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
6561         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
6562         unconditionally.
6564         count-leading-zeros: Assume that the compiler supports 'long long'.
6565         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
6566         unconditionally.
6567         * m4/count-leading-zeros.m4: Remove file.
6568         * modules/count-leading-zeros (Files): Remove it.
6569         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
6570         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
6571         unconditionally.
6573 2019-12-22  Bruno Haible  <bruno@clisp.org>
6575         localcharset: Update support for OpenBSD.
6576         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
6578 2019-12-21  Bruno Haible  <bruno@clisp.org>
6580         pthread_sigmask: Avoid test failure on NetBSD 8.0.
6581         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
6582         NetBSD.
6583         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
6585 2019-12-21  Bruno Haible  <bruno@clisp.org>
6587         threadlib: Improve code structure.
6588         * m4/threadlib.m4: Reorder macros. Add comments.
6590 2019-12-21  Bruno Haible  <bruno@clisp.org>
6592         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
6593         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
6594         here from m4/threads.m4).
6595         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
6596         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
6597         (gl_STDTHREADLIB): New macro.
6598         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
6599         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
6601 2019-12-21  Bruno Haible  <bruno@clisp.org>
6603         sched_yield: Don't depend on threadlib and yield.
6604         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
6605         LIB_SCHED_YIELD.
6606         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
6607         m4/yield.m4).
6608         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
6609         gl_THREADLIB and gl_YIELD.
6610         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
6611         based on $(LIB_SCHED_YIELD).
6612         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
6613         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
6614         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
6615         (Depends-on): Remove threadlib.
6616         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
6617         * modules/threads-h (Files): Remove m4/yield.m4.
6618         * modules/pthread-cond-tests (Makefile.am): Link the programs against
6619         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
6620         * modules/pthread-mutex-tests (Makefile.am): Likewise.
6621         * modules/pthread-once-tests (Makefile.am): Likewise.
6622         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
6623         * modules/pthread-tss-tests (Makefile.am): Likewise.
6625 2019-12-21  Bruno Haible  <bruno@clisp.org>
6627         threads-h: Don't depend on threadlib.
6628         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
6629         not gl_THREADLIB_EARLY.
6631 2019-12-21  Bruno Haible  <bruno@clisp.org>
6633         nl_langinfo tests: Fix link error (regression from 2019-12-18).
6634         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
6635         with $(LIB_SETLOCALE).
6637 2019-12-21  Bruno Haible  <bruno@clisp.org>
6639         threadlib: Remove unused dependency (left over from 2019-07-06).
6640         * modules/threadlib (Depends-on): Remove havelib.
6642 2019-12-21  Bruno Haible  <bruno@clisp.org>
6644         New convention for multithread-safety tests.
6645         * tests/test-setlocale_null-mt-one.c: Renamed from
6646         tests/test-setlocale_null-one.c.
6647         * tests/test-setlocale_null-mt-all.c: Renamed from
6648         tests/test-setlocale_null-all.c.
6649         * modules/setlocale-null-tests (Files, Makefile.am): Update.
6651 2019-12-21  Bruno Haible  <bruno@clisp.org>
6653         quotearg tests: Fix conflict with hard-locale tests.
6654         * tests/testlocale: Renamed from tests/locale.
6655         * modules/quotearg-tests (Files): Update.
6656         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
6658 2019-12-21  Bruno Haible  <bruno@clisp.org>
6660         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
6661         Reported by Daniel Richard G. in
6662         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
6663         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
6664         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
6665         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
6666         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
6667         alternative to PTHREAD_RWLOCK_INITIALIZER.
6668         * lib/glthread/lock.c: Likewise.
6670 2019-12-21  Bruno Haible  <bruno@clisp.org>
6672         memcmp tests: Work around the clang bug.
6673         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
6674         the clang optimization.
6676 2019-12-20  Bruno Haible  <bruno@clisp.org>
6678         localcharset: Add support for z/OS encoding names.
6679         * lib/localcharset.h: Mention which encodings are used as locale
6680         encodings on z/OS.
6682 2019-12-20  Bruno Haible  <bruno@clisp.org>
6684         iconv_open: Add support for z/OS encoding names.
6685         Reported by Daniel Richard G. in
6686         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
6687         * lib/iconv_open-zos.gperf: New file.
6688         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
6689         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
6690         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
6691         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
6692         * doc/posix-functions/iconv_open.texi: Mention z/OS.
6694 2019-12-20  Bruno Haible  <bruno@clisp.org>
6696         doc: Document the problem of the per-thread locale functions on z/OS.
6697         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
6698         * doc/posix-functions/newlocale.texi: Likewise.
6699         * doc/posix-functions/duplocale.texi: Likewise.
6700         * doc/posix-functions/freelocale.texi: Likewise.
6702 2019-12-20  Bruno Haible  <bruno@clisp.org>
6704         localename, gettext: Fix host_os value for z/OS.
6705         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
6706         cross-configuration code.
6708 2019-12-19  Jim Meyering  <meyering@fb.com>
6710         nstrftime: avoid a shadowing warning
6711         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
6712         to avoid shadowing an "i" declared hundreds of lines above.
6714 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
6716         dfa: struct dfamust now uses flexible array
6717         * lib/dfa.c: Include flexmember.h.
6718         (dfamust, dfamustfree): Adjust to struct dfamust change.
6719         This saves a call to malloc+free.
6720         * lib/dfa.h (struct dfamust): Make the final member a
6721         flexible array member.
6722         * modules/dfa (Depends-on): Add flexmember.
6724         dfa: fast->small for array elements
6725         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
6726         since this type is used in arrays.  This change is more for
6727         documentation than for any practical effect, since the two types
6728         are the same on all known platforms.
6730 2019-12-19  Bruno Haible  <bruno@clisp.org>
6732         iconv tests: Test canonicalized, not system-dependent, encoding names.
6733         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
6734         * modules/iconv-tests (Depends-on): Add iconv_open.
6736 2019-12-18  Bruno Haible  <bruno@clisp.org>
6738         localename: Fix test failure on AIX 7.2.
6739         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
6740         locales on AIX.
6741         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
6742         locales on AIX.
6744 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6746         Improve port of AC_C_RESTRICT to Oracle C++
6747         Problem reported by Christian Biesinger in:
6748         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
6749         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
6750         Oracle Developer Studio C++ 12.5 or later.
6752 2019-12-18  Bruno Haible  <bruno@clisp.org>
6754         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
6755         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
6757 2019-12-18  Bruno Haible  <bruno@clisp.org>
6759         localename: Ensure multithread-safety in future changes.
6760         * lib/localename.c (setlocale): Reference the system's setlocale().
6761         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
6762         (gl_locale_name_posix): Likewise.
6763         * modules/localename (Depends-on): Add setlocale-null.
6765 2019-12-18  Bruno Haible  <bruno@clisp.org>
6767         setlocale-null: Make API more useful.
6768         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
6769         callers changed.
6770         (setlocale_null): New declaration.
6771         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
6772         extracted from setlocale_null_unlocked.
6773         (setlocale_null_unlocked): Invoke it.
6774         (setlocale_null_r): Renamed from setlocale_null.
6775         (setlocale_null): New function, extracted from setlocale_mtsafe in
6776         setlocale.c.
6777         * lib/setlocale.c: Don't include <errno.h>.
6778         (setlocale_mtsafe): Invoke setlocale_null.
6779         * lib/setlocale-lock.c: Update comments.
6780         * doc/posix-functions/setlocale.texi: Mention both functions.
6782 2019-12-18  Bruno Haible  <bruno@clisp.org>
6784         localename: Optimize code for native Windows.
6785         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
6786         category (not allowed here).
6788 2019-12-18  Bruno Haible  <bruno@clisp.org>
6790         setlocale: Make calls with NULL argument multithread-safe.
6791         * lib/setlocale.c: Include <errno.h>.
6792         (setlocale_mtsafe): New function.
6793         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
6794         (setlocale_improved): Renamed from rpl_setlocale.
6795         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
6796         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
6797         LIB_SETLOCALE.
6798         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
6799         (Link): New section.
6800         * tests/locale.c: Undefine setlocale.
6801         * tests/test-setlocale_null-one.c: Likewise.
6802         * tests/test-setlocale_null-all.c: Likewise.
6803         * modules/setlocale-tests (Makefile.am): Link the test programs with
6804         $(LIB_SETLOCALE).
6805         * modules/astrxfrm-tests (Makefile.am): Likewise.
6806         * modules/btowc-tests (Makefile.am): Likewise.
6807         * modules/c-ctype-tests (Makefile.am): Likewise.
6808         * modules/c-snprintf-tests (Makefile.am): Likewise.
6809         * modules/c-strcase-tests (Makefile.am): Likewise.
6810         * modules/c-vasprintf-tests (Makefile.am): Likewise.
6811         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
6812         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
6813         * modules/dfa-tests (Makefile.am): Likewise.
6814         * modules/duplocale-tests (Makefile.am): Likewise.
6815         * modules/hard-locale-tests (Makefile.am): Likewise.
6816         * modules/localcharset-tests (Makefile.am): Likewise.
6817         * modules/localename-tests (Makefile.am): Likewise.
6818         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
6819         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
6820         * modules/mbrtowc-tests (Makefile.am): Likewise.
6821         * modules/mbscasecmp-tests (Makefile.am): Likewise.
6822         * modules/mbscasestr-tests (Makefile.am): Likewise.
6823         * modules/mbschr-tests (Makefile.am): Likewise.
6824         * modules/mbscspn-tests (Makefile.am): Likewise.
6825         * modules/mbsinit-tests (Makefile.am): Likewise.
6826         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
6827         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
6828         * modules/mbspbrk-tests (Makefile.am): Likewise.
6829         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
6830         * modules/mbsrchr-tests (Makefile.am): Likewise.
6831         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
6832         * modules/mbsspn-tests (Makefile.am): Likewise.
6833         * modules/mbsstr-tests (Makefile.am): Likewise.
6834         * modules/nl_langinfo-tests (Makefile.am): Likewise.
6835         * modules/quotearg-tests (Makefile.am): Likewise.
6836         * modules/regex-tests (Makefile.am): Likewise.
6837         * modules/strfmon_l-tests (Makefile.am): Likewise.
6838         * modules/strtod-tests (Makefile.am): Likewise.
6839         * modules/strtold-tests (Makefile.am): Likewise.
6840         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
6841         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
6842         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
6843         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
6844         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
6845         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
6846         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
6847         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
6848         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
6849         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
6850         * modules/wcrtomb-tests (Makefile.am): Likewise.
6851         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
6852         * modules/wcsrtombs-tests (Makefile.am): Likewise.
6853         * modules/wcwidth-tests (Makefile.am): Likewise.
6854         * doc/posix-functions/setlocale.texi: Mention that the multithread-
6855         safety fix is also available in module 'setlocale'.
6857 2019-12-18  Bruno Haible  <bruno@clisp.org>
6859         hard-locale: Make multithread-safe.
6860         * lib/hard-locale.h (hard_locale): Move documentation to here.
6861         * lib/hard-locale.c: Don't include <stdlib.h>.
6862         (GLIBC_VERSION): Remove macro.
6863         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
6864         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
6865         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
6866         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
6867         (Link): New section.
6868         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
6869         $(LIB_HARD_LOCALE).
6871 2019-12-18  Bruno Haible  <bruno@clisp.org>
6873         hard-locale: Avoid test failure on Haiku.
6874         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
6876 2019-12-18  Bruno Haible  <bruno@clisp.org>
6878         setlocale-null: Handle NULL result from setlocale.
6879         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
6880         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
6881         from setlocale or _wsetlocale.
6883 2019-12-18  Bruno Haible  <bruno@clisp.org>
6885         hard-locale: Add test.
6886         * tests/test-hard-locale.c: New file.
6887         * tests/locale.c: New file.
6888         * modules/hard-locale-tests: New file.
6890 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
6892         dfa: do not match invalid UTF-8
6893         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
6894         from 5 to 9 tokens; this is needed due to the changes to
6895         add_utf8_anychar.
6896         (charclass_index): 2nd arg is now pointer-to-const.
6897         (add_utf8_anychar): Match only valid UTF-8 byte sequences
6898         instead of allowing overlong encodings or surrogate halves.
6900         dfa: simplify charclass by assuming C99
6901         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
6902         (charclass_word): Now always uint_fast64_t.
6903         (CHARCLASS_PAIR): Remove.
6904         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
6906         fts: tune via calloc
6907         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
6909         dfa: tune via xzalloc
6910         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
6912 2019-12-17  Bruno Haible  <bruno@clisp.org>
6914         localcharset: Fix multithread-safety bug on Windows and OS/2.
6915         * lib/localcharset.h (locale_charset): Clarify when the result becomes
6916         invalid.
6917         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
6918         assemble the result.
6920 2019-12-17  Bruno Haible  <bruno@clisp.org>
6922         localcharset: Optimize code for native Windows.
6923         * lib/localcharset.c (locale_charset): Don't bother calling
6924         setlocale (LC_ALL, NULL) since we're not interested in its result.
6926 2019-12-17  Bruno Haible  <bruno@clisp.org>
6928         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
6929         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
6930         setlocale.
6931         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
6932         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
6933         * modules/nl_langinfo (Depends-on): Add setlocale-null.
6935 2019-12-17  Bruno Haible  <bruno@clisp.org>
6937         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
6938         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
6939         stack-allocated buffer to assemble each result and different static
6940         buffers to return it.
6941         * tests/test-nl_langinfo-mt.c: New file.
6942         * modules/nl_langinfo-tests (Files): Add it.
6943         (Depends-on): Add thread, nanosleep.
6944         (Makefile.am): Build test-nl_langinfo-mt test.
6946 2019-12-17  Bruno Haible  <bruno@clisp.org>
6948         langinfo: Document more details.
6949         * doc/posix-headers/langinfo.texi: List platform details.
6950         * doc/posix-functions/nl_langinfo.texi: Likewise.
6952 2019-12-17  Bruno Haible  <bruno@clisp.org>
6954         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
6955         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
6956         and Martin Storsjö <martin@martin.st>
6957         in <https://savannah.gnu.org/bugs/?57406>.
6958         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
6959         mingw.
6961 2019-12-17  Bruno Haible  <bruno@clisp.org>
6963         glob: Avoid warning on mingw.
6964         Reported by Christian Biesinger <cbiesinger@google.com> in
6965         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
6966         * lib/glob.c (__stat64): Undefine first.
6968 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
6970         xalloc: tune xzalloc for fresh allocations
6971         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
6972         because when the memory is freshly allocated from the OS via sbrk
6973         or mmap, calloc can avoid doing the memset.
6975         dfa: new function dfacopysyntax
6976         * lib/dfa.c (struct dfa): Move syntax member later so
6977         that dfacopysyntax can easily clear earlier members.
6978         (dfacopysyntax): New function, used by Gawk.
6980 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
6982         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
6983         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
6984         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
6985         if not already defined.
6987         dfa: remove one dependency on MB_CUR_MAX
6988         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
6990         dfa: remove struct lexer_state.cur_mb_len
6991         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
6992         as it’s not needed and the code is simpler without it.
6993         All uses removed.
6995 2019-12-16  Bruno Haible  <bruno@clisp.org>
6997         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
6998         Reported by Arnold Robbins <arnold@skeeve.com>.
6999         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
7000         copied from lib/glthread/lock.h.
7001         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
7002         (setlocale_null_with_lock): If pthread_in_use() is false, use
7003         setlocale_null_unlocked directly.
7004         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
7005         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
7006         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
7007         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
7008         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
7009         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
7011 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
7013         dfa: make dfasyntax thread-safe
7014         Problem reported by Bruno Haible in:
7015         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
7016         * lib/dfa.c: Do not include locale.h.
7017         (struct dfa): Remove simple_locale member.
7018         All uses replaced by localeinfo.simple.
7019         (using_simple_locale): Remove; now present (with some
7020         changes) in localeinfo.c.
7021         (dfasyntax): No need to initialize removed member.
7023         localeinfo: record whether locale is simple
7024         * lib/localeinfo.c (using_simple_locale): New function,
7025         copied here from lib/dfa.c but with a change: it uses
7026         strcoll for its heuristic, instead of using setlocale.
7027         This lets it be thread-safe.
7028         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
7030 2019-12-15  Bruno Haible  <bruno@clisp.org>
7032         duplocale: Fix multithread-safety bug on AIX.
7033         * lib/duplocale.c: Don't include <stdlib.h>.
7034         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
7035         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
7036         Set LIB_DUPLOCALE.
7037         * modules/duplocale (Depends-on): Add setlocale-null.
7038         (Link): New section.
7039         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
7040         $(LIB_DUPLOCALE).
7042 2019-12-15  Bruno Haible  <bruno@clisp.org>
7044         setlocale-null: Add tests.
7045         * tests/test-setlocale_null.c: New file.
7046         * tests/test-setlocale_null-one.c: New file.
7047         * tests/test-setlocale_null-all.c: New file.
7048         * modules/setlocale-null-tests: New file.
7050         setlocale-null: New module.
7051         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
7052         setlocale_null): New declarations.
7053         * lib/setlocale_null.c: New file.
7054         * lib/setlocale-lock.c: New file.
7055         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
7056         * m4/setlocale_null.m4: New file.
7057         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
7058         GNULIB_SETLOCALE_NULL.
7059         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
7060         * modules/setlocale-null: New file.
7061         * doc/posix-functions/setlocale.texi: Mention the new module.
7063 2019-12-15  Bruno Haible  <bruno@clisp.org>
7065         lock tests: Skip test when no multithreading is enabled.
7066         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
7068 2019-12-14  Bruno Haible  <bruno@clisp.org>
7070         locale, duplocale, localename: Fix last patch.
7071         Reported by Daniel Richard G. in
7072         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
7073         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
7074         Don't define if locale_t does not exist.
7076 2019-12-13  Bruno Haible  <bruno@clisp.org>
7078         locale, duplocale, localename: Fix errors if locale_t does not exist.
7079         Reported by Daniel Richard G. in
7080         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
7081         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
7082         macros.
7083         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
7084         HAVE_NEWLOCALE.
7085         * tests/test-localename.c: Likewise.
7086         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
7087         HAVE_DUPLOCALE.
7088         * tests/test-locale-c++.cc: Likewise.
7090 2019-12-13  Bruno Haible  <bruno@clisp.org>
7092         wcstok: Fix test failure on HP-UX.
7093         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
7094         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
7096 2019-12-12  Bruno Haible  <bruno@clisp.org>
7098         strtod, strtold tests: Avoid test failure on AIX 7.2.
7099         * tests/test-strtod1.c (main): Allow implementations in which ',' and
7100         '.' both are radix characters.
7101         * tests/test-strtold1.c (main): Likewise.
7103 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
7105         dfa: prefer ptrdiff_t for API, too
7106         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
7107         but do this only for internal use for now.
7108         * NEWS: Mention the API change.
7109         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
7110         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
7111         values known to be nonnegative.
7112         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
7113         Prefer idx_t or ptrdiff_t to size_t for API.
7114         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
7115         Prefer ptrdiff_t to size_t for API.
7117         stdalign: port to xlclang 16.01
7118         Problem reportd by Bruno Haible in:
7119         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
7120         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
7121         ((__aligned__ (...))) with xlclang, as a top-level
7122         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
7123         xlclang version 16.01.0000.0001; the alignment directive is ignored.
7125 2019-12-12  Bruno Haible  <bruno@clisp.org>
7127         duplocale: Fix test failure on AIX 7.2 with xlclang.
7128         * lib/duplocale.c: Include <stdlib.h>.
7129         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
7130         value.
7132 2019-12-12  Bruno Haible  <bruno@clisp.org>
7134         stddef: Document the AIX xlc issue.
7135         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
7137 2019-12-12  Bruno Haible  <bruno@clisp.org>
7139         duplocale: Don't attempt to override if locale_t does not exist.
7140         Reported by Daniel Richard G. in
7141         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
7142         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
7143         HAVE_DUPLOCALE to 0.
7145 2019-12-12  Bruno Haible  <bruno@clisp.org>
7147         wcwidth: Avoid test failure on AIX 7.2.
7148         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
7149         negative.
7150         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
7152 2019-12-12  Bruno Haible  <bruno@clisp.org>
7154         ilogbl: Work around Cygwin bug.
7155         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
7156         correct.
7157         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
7159 2019-12-12  Bruno Haible  <bruno@clisp.org>
7161         strtold: Work around Cygwin bug.
7162         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
7163         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
7164         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
7165         STRTOLD_HAS_UNDERFLOW_BUG is defined.
7166         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
7168 2019-12-12  Bruno Haible  <bruno@clisp.org>
7170         strtold: Fix autoconf test.
7171         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
7173 2019-12-11  Bruno Haible  <bruno@clisp.org>
7175         fsync tests: Skip test that is known to fail.
7176         * doc/posix-functions/fsync.texi: Update list of platforms.
7177         * tests/test-fsync.c (main): Skip test with read-only file descriptors
7178         that is known to fail on AIX and Cygwin.
7180 2019-12-11  Bruno Haible  <bruno@clisp.org>
7182         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
7183         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
7184         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
7185         HAVE_GETADDRINFO as a C macro.
7186         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
7187         declare as replacement functions.
7188         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
7189         define as no-op overrides.
7190         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
7191         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
7192         * modules/getaddrinfo (Depends-on, configure.ac): Test
7193         REPLACE_GETADDRINFO.
7194         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
7195         problem.
7196         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
7197         convention problems.
7199 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
7201         dfa: prefer signed integers for internals
7202         Signed integers can be checked more easily for integer overflow.
7203         * lib/dfa.c (position, struct lexer_state, struct parser_state)
7204         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
7205         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
7206         (nsubtoks, copytoks, closure, alloc_position_set, delete)
7207         (replace, state_index, epsclosure, charclass_context)
7208         (state_separate_contexts, merge_nfa_state, dfaoptimize)
7209         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
7210         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
7211         (comsubs, inboth, allocmust):
7212         Prefer a signed to an unsigned integer when calculating indexes,
7213         unless the integer is part of the external API (a bigger deal,
7214         and to be done later).
7216         dfa: fix index overflow
7217         * lib/dfa.c (compare): Avoid integer overflow when analyzing
7218         very large regular expressions.
7220         dfa: update commentary for previous change
7221         * NEWS: Mention the change.
7222         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
7224 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
7226         dfa: separate parse and compile phase
7227         ‘dfamust’ must be called after parsing and before tokens are
7228         reordered, but both are executed in the compilation phase.
7229         Token reordering was introduced in Gnulib commit
7230         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
7231         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
7232         * lib/dfa.c (dfaparse): Change it to global function.
7233         (dfacomp): If first argument is NULL, skip parse.
7234         * lib/dfa.h: (dfaparse): Add a prototype.
7236 2019-12-11  Bruno Haible  <bruno@clisp.org>
7238         unistd tests: Fix link error on MSVC.
7239         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
7240         $(LIB_GETLOGIN).
7242 2019-12-11  Bruno Haible  <bruno@clisp.org>
7244         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
7245         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
7246         and POSIX substitutes are supported in C++ mode.
7247         * NEWS: Likewise.
7249 2019-12-11  Bruno Haible  <bruno@clisp.org>
7251         stddef: Fix compilation error in C++ mode on MSVC.
7252         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
7253         instead, include <cstddef>.
7255 2019-12-11  Bruno Haible  <bruno@clisp.org>
7257         unistd: Fix compilation error in C++ mode on MSVC.
7258         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
7259         does not have <unistd.h>.
7261 2019-12-11  Bruno Haible  <bruno@clisp.org>
7263         locale: Fix compilation error in C++ mode on MSVC.
7264         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
7265         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
7266         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
7267         int_n_sep_by_space): Define as macros on MSVC.
7269 2019-12-11  Bruno Haible  <bruno@clisp.org>
7271         wchar: Fix compilation error in C++ mode on MSVC.
7272         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
7274 2019-12-11  Bruno Haible  <bruno@clisp.org>
7276         pthread-thread: Fix compilation error in C++ mode on MSVC.
7277         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
7278         _GL_CXXALIAS_RPL invocation.
7280 2019-12-08  Bruno Haible  <bruno@clisp.org>
7282         Fix compilation errors in C++ mode on Haiku.
7283         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
7284         non-glibc systems.
7285         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
7286         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
7287         posix_spawnattr_setschedparam): Likewise.
7288         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
7289         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
7290         * lib/unistd.in.h (usleep): Likewise.
7292 2019-12-08  Bruno Haible  <bruno@clisp.org>
7294         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
7295         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
7296         * modules/fseeko (configure.ac-early): Require it instead of
7297         AC_FUNC_FSEEKO.
7298         * modules/ftello (configure.ac-early): Likewise.
7299         * modules/fflush (configure.ac-early): Likewise.
7301 2019-12-08  Bruno Haible  <bruno@clisp.org>
7303         Fix compilation error in C++ mode on HP-UX 11.
7304         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
7305         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
7307 2019-12-08  Bruno Haible  <bruno@clisp.org>
7309         Fix compilation errors on HP-UX 11/ia64.
7310         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
7311         _GL_FUNCDECL_SYS.
7313 2019-12-08  Bruno Haible  <bruno@clisp.org>
7315         Fix compilation error in C++ mode on OpenBSD.
7316         * lib/signal.in.h (signal): Declare on OpenBSD.
7318 2019-12-08  Bruno Haible  <bruno@clisp.org>
7320         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
7321         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
7322         instead of #error.
7324 2019-12-08  Bruno Haible  <bruno@clisp.org>
7326         Fix compilation errors in C++ mode on FreeBSD.
7327         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
7328         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
7329         * lib/threads.in.h (thrd_exit): Likewise.
7330         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
7332 2019-12-08  Bruno Haible  <bruno@clisp.org>
7334         Fix compilation errors in C++ mode on macOS and FreeBSD.
7335         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
7336         or FreeBSD with clang, use the approach without C preprocessor macro.
7338 2019-12-07  Bruno Haible  <bruno@clisp.org>
7340         Fix compilation errors in C++ mode on AIX with xlclang++.
7341         Reported by Christian Biesinger <cbiesinger@google.com> in
7342         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
7343         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
7345 2019-12-07  Bruno Haible  <bruno@clisp.org>
7347         Document compilation error in C++ mode on NetBSD 8.0.
7348         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
7350 2019-12-07  Bruno Haible  <bruno@clisp.org>
7352         Fix compilation errors in C++ mode on Solaris 10.
7353         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
7354         to non-empty on Solaris with a non-GCC compiler.
7355         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
7357 2019-12-07  Bruno Haible  <bruno@clisp.org>
7359         Reword NEWS entry.
7360         * NEWS: Reword the latest NEWS entry.
7362 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
7364         Move xstrtol_fatal to a new xstrtol-error module.
7365         * lib/xstrtol.h: Stop including <getopt.h>.
7366         (xstrtol_fatal): Move ...
7367         * lib/xstrtol-error.h: ... here.  New file.
7368         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
7369         * tests/test-xstrtol.c: Likewise.
7370         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
7371         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
7372         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
7373         * modules/xstrtol-error: New file.
7374         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
7375         * MODULES.html.sh: Add xstrtol-error.
7376         * NEWS: Document the change.
7378 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
7380         nstrftime: better width support for %N, %z
7381         * lib/nstrftime.c (width_add, width_add1, width_cpy):
7382         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
7383         a new WIDTH parameter.
7384         (add, add1, cpy): Use these macros.
7385         (width_add): Do not treat digits == 0 as a special case,
7386         do not pad if padding is ‘-’, and do not use a negative width.
7387         (__strftime_internal): Redo formatting of nanoseconds and numeric
7388         timezones to avoid buffer misuse in unusual cases, and so that
7389         widths make more sense.  Add support for widths greater than 9 to
7390         the %N format; they are zero filled on the right.
7391         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
7393 2019-12-05  Bruno Haible  <bruno@clisp.org>
7395         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
7396         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
7397         set REPLACE_ISFINITE to 1.
7398         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
7399         REPLACE_ISINF to 1.
7400         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
7401         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
7402         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
7403         * lib/threads.in.h (call_once): Likewise.
7404         * lib/iconv.in.h (iconv): Likewise.
7406 2019-12-05  Bruno Haible  <bruno@clisp.org>
7408         wchar: Add more C++ tests.
7409         Reported by Christian Biesinger <cbiesinger@google.com> in
7410         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
7411         * tests/test-wchar-c++3.cc: New file.
7412         * modules/wchar-c++-tests (Files): Add it.
7413         (Makefile.am): Compile it.
7415 2019-12-05  Bruno Haible  <bruno@clisp.org>
7417         Add more C++ tests.
7419         assert-h: Add C++ tests.
7420         * tests/test-assert-h-c++.cc: New file.
7421         * tests/test-assert-h-c++2.cc: New file.
7422         * modules/assert-h-c++-tests: New file.
7423         * modules/assert-h-tests: New file.
7425         ctype: Add C++ tests.
7426         * tests/test-ctype-c++.cc: New file.
7427         * tests/test-ctype-c++2.cc: New file.
7428         * modules/ctype-c++-tests: New file.
7429         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
7431         errno: Add C++ tests.
7432         * tests/test-errno-c++.cc: New file.
7433         * tests/test-errno-c++2.cc: New file.
7434         * modules/errno-c++-tests: New file.
7435         * modules/errno-tests (Depends-on): Add errno-c++-tests.
7437         float: Add C++ tests.
7438         * tests/test-float-c++.cc: New file.
7439         * tests/test-float-c++2.cc: New file.
7440         * modules/float-c++-tests: New file.
7441         * modules/float-tests (Depends-on): Add float-c++-tests.
7443         inttypes: Add more C++ tests.
7444         * tests/test-inttypes-c++2.cc: New file.
7445         * modules/inttypes-c++-tests (Files): Add it.
7446         (Makefile.am): Compile it.
7448         limits-h: Add C++ tests.
7449         * tests/test-limits-h-c++.cc: New file.
7450         * tests/test-limits-h-c++2.cc: New file.
7451         * modules/limits-h-c++-tests: New file.
7452         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
7454         stdarg: Add C++ tests.
7455         * tests/test-stdarg-c++.cc: New file.
7456         * tests/test-stdarg-c++2.cc: New file.
7457         * modules/stdarg-c++-tests: New file.
7458         * modules/stdarg-tests: New file.
7460         stdbool: Add C++ tests.
7461         * tests/test-stdbool-c++.cc: New file.
7462         * tests/test-stdbool-c++2.cc: New file.
7463         * modules/stdbool-c++-tests: New file.
7464         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
7466         stddef: Add C++ tests.
7467         * tests/test-stddef-c++.cc: New file.
7468         * tests/test-stddef-c++2.cc: New file.
7469         * modules/stddef-c++-tests: New file.
7470         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
7472         stdint: Add C++ tests.
7473         * tests/test-stdint-c++.cc: New file.
7474         * tests/test-stdint-c++2.cc: New file.
7475         * modules/stdint-c++-tests: New file.
7476         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
7478         wchar: Add more C++ tests.
7479         * tests/test-wchar-c++2.cc: New file.
7480         * modules/wchar-c++-tests (Files): Add it.
7481         (Makefile.am): Compile it.
7483         wctype-h: Add more C++ tests.
7484         * tests/test-wctype-h-c++2.cc: New file.
7485         * modules/wctype-h-c++-tests (Files): Add it.
7486         (Makefile.am): Compile it.
7488 2019-12-04  Bruno Haible  <bruno@clisp.org>
7490         Fix compilation errors in C++ mode with xlclang++ on AIX.
7491         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
7492         C++ mode on AIX.
7493         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
7494         without C preprocessor macro.
7495         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
7496         _GL_CXXALIAS_SYS.
7497         * lib/threads.in.h (thrd_exit): Likewise.
7499 2019-12-04  Bruno Haible  <bruno@clisp.org>
7501         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
7502         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
7503         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
7505 2019-12-04  Bruno Haible  <bruno@clisp.org>
7507         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
7508         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
7509         _GL_CXXALIASWARN invocation on non-glibc systems.
7510         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
7511         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
7512         iswctype, towlower, towupper): Likewise.
7514 2019-12-03  Bruno Haible  <bruno@clisp.org>
7516         Avoid hassles caused by [[noreturn]] in C++.
7517         Reported by Christian Biesinger <cbiesinger@google.com> in
7518         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
7519         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
7520         * lib/_Noreturn.h: Likewise.
7522 2019-12-02  Bruno Haible  <bruno@clisp.org>
7524         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
7525         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
7526         LIBMULTITHREAD.
7527         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
7528         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
7529         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
7530         gl_THREADLIB.
7531         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
7533 2019-12-02  Bruno Haible  <bruno@clisp.org>
7535         Fix some more link errors with --enable-threads=isoc.
7536         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
7537         * modules/pthread-rwlock (Depends-on): Likewise.
7539 2019-12-02  Bruno Haible  <bruno@clisp.org>
7541         Fix link errors with --enable-threads=posix on AIX.
7542         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
7543         program with $(LIBTHREAD).
7544         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
7545         program with $(LIBTHREAD).
7547 2019-12-02  Bruno Haible  <bruno@clisp.org>
7549         Fix link errors with --enable-threads=posix on AIX.
7550         * modules/mbrtowc (Link): New section.
7551         * modules/acl (Link): Likewise.
7552         * modules/argmatch (Link): Likewise.
7553         * modules/backup-rename (Link): Likewise.
7554         * modules/backupfile (Link): Likewise.
7555         * modules/closein (Link): Likewise.
7556         * modules/closeout (Link): Likewise.
7557         * modules/copy-file (Link): Likewise.
7558         * modules/csharpcomp (Link): Likewise.
7559         * modules/csharpexec (Link): Likewise.
7560         * modules/dfa (Link): Likewise.
7561         * modules/exclude (Link): Likewise.
7562         * modules/fnmatch (Link): Likewise.
7563         * modules/fnmatch-gnu (Link): Likewise.
7564         * modules/fnmatch-posix (Link): Likewise.
7565         * modules/glob (Link): Likewise.
7566         * modules/human (Link): Likewise.
7567         * modules/javacomp (Link): Likewise.
7568         * modules/javaexec (Link): Likewise.
7569         * modules/javaversion (Link): Likewise.
7570         * modules/mbfile (Link): Likewise.
7571         * modules/mbiter (Link): Likewise.
7572         * modules/mbmemcasecmp (Link): Likewise.
7573         * modules/mbmemcasecoll (Link): Likewise.
7574         * modules/mbrlen (Link): Likewise.
7575         * modules/mbscasecmp (Link): Likewise.
7576         * modules/mbscasestr (Link): Likewise.
7577         * modules/mbschr (Link): Likewise.
7578         * modules/mbscspn (Link): Likewise.
7579         * modules/mbsinit (Link): Likewise.
7580         * modules/mbslen (Link): Likewise.
7581         * modules/mbsncasecmp (Link): Likewise.
7582         * modules/mbsnlen (Link): Likewise.
7583         * modules/mbsnrtowcs (Link): Likewise.
7584         * modules/mbspbrk (Link): Likewise.
7585         * modules/mbspcasecmp (Link): Likewise.
7586         * modules/mbsrchr (Link): Likewise.
7587         * modules/mbsrtowcs (Link): Likewise.
7588         * modules/mbssep (Link): Likewise.
7589         * modules/mbsspn (Link): Likewise.
7590         * modules/mbsstr (Link): Likewise.
7591         * modules/mbstok_r (Link): Likewise.
7592         * modules/mbswidth (Link): Likewise.
7593         * modules/mbuiter (Link): Likewise.
7594         * modules/mkdir-p (Link): Likewise.
7595         * modules/propername (Link): Likewise.
7596         * modules/quote (Link): Likewise.
7597         * modules/quotearg (Link): Likewise.
7598         * modules/quotearg-simple (Link): Likewise.
7599         * modules/regex-quote (Link): Likewise.
7600         * modules/rpmatch (Link): Likewise.
7601         * modules/sh-quote (Link): Likewise.
7602         * modules/system-quote (Link): Likewise.
7603         * modules/trim (Link): Likewise.
7604         * modules/unistdio/ulc-asnprintf (Link): Likewise.
7605         * modules/unistdio/ulc-fprintf (Link): Likewise.
7606         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
7607         * modules/unistdio/ulc-vasprintf (Link): Likewise.
7608         * modules/unistdio/ulc-vfprintf (Link): Likewise.
7609         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
7610         * modules/unistdio/ulc-vsprintf (Link): Likewise.
7611         * modules/xfreopen (Link): Likewise.
7612         * modules/xmemcoll (Link): Likewise.
7613         * modules/yesno (Link): Likewise.
7614         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
7615         * modules/argmatch-tests (Makefile.am): Likewise.
7616         * modules/closein-tests (Makefile.am): Likewise.
7617         * modules/copy-file-tests (Makefile.am): Likewise.
7618         * modules/dfa-tests (Makefile.am): Likewise.
7619         * modules/fnmatch-tests (Makefile.am): Likewise.
7620         * modules/glob-tests (Makefile.am): Likewise.
7621         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
7622         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
7623         * modules/mbrtowc-tests (Makefile.am): Likewise.
7624         * modules/mbscasecmp-tests (Makefile.am): Likewise.
7625         * modules/mbscasestr-tests (Makefile.am): Likewise.
7626         * modules/mbschr-tests (Makefile.am): Likewise.
7627         * modules/mbscspn-tests (Makefile.am): Likewise.
7628         * modules/mbsinit-tests (Makefile.am): Likewise.
7629         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
7630         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
7631         * modules/mbspbrk-tests (Makefile.am): Likewise.
7632         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
7633         * modules/mbsrchr-tests (Makefile.am): Likewise.
7634         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
7635         * modules/mbsspn-tests (Makefile.am): Likewise.
7636         * modules/mbsstr-tests (Makefile.am): Likewise.
7637         * modules/quotearg-tests (Makefile.am): Likewise.
7638         * modules/quotearg-simple-tests (Makefile.am): Likewise.
7639         * modules/readtokens-tests (Makefile.am): Likewise.
7640         * modules/regex-quote-tests (Makefile.am): Likewise.
7641         * modules/sh-quote-tests (Makefile.am): Likewise.
7642         * modules/system-quote-tests (Makefile.am): Likewise.
7643         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
7644         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
7645         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
7646         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
7647         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
7648         * modules/yesno-tests (Makefile.am): Likewise.
7650 2019-12-02  Bruno Haible  <bruno@clisp.org>
7652         Simplify link sections.
7653         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
7654         * modules/lock (Link): Likewise.
7655         * modules/cond (Link): Likewise.
7656         * modules/tls (Link): Likewise.
7657         * modules/yield (Link): Likewise.
7658         * modules/regex (Link): Likewise.
7659         * modules/localename (Link): Likewise.
7660         * modules/unicase/locale-language (Link): Likewise.
7661         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
7663 2019-12-02  Bruno Haible  <bruno@clisp.org>
7665         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
7666         * tests/test-thread_self.c (main): Disable test on AIX.
7668 2019-12-01  Bruno Haible  <bruno@clisp.org>
7670         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
7671         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
7672         gl_THREADLIB_EARLY_BODY.
7673         (gl_THREADLIB_EARLY_BODY): Invoke it.
7674         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
7675         (gl_THREADLIB_BODY): Invoke it.
7676         (gl_PTHREADLIB): New macro.
7677         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
7678         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
7679         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
7680         * modules/pthread-h (Files): Add threadlib.m4.
7681         (Depends-on): Remove threadlib.
7682         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
7683         and _THREAD_SAFE here.
7684         (Link): Use LIBPTHREAD, not LIBTHREAD.
7685         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
7686         LIBMULTITHREAD.
7687         * modules/pthread-once (Link): Likewise.
7688         * modules/pthread-mutex (Link): Likewise.
7689         * modules/pthread-rwlock (Link): Likewise.
7690         * modules/pthread-cond (Link): Likewise.
7691         * modules/pthread-tss (Link): Likewise.
7692         * modules/pthread-spin (Link): Likewise.
7693         * modules/pthread (Link): Likewise.
7694         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
7695         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
7696         * modules/pthread-once-tests (test_pthread_once1_LDADD,
7697         test_pthread_once2_LDADD): Likewise.
7698         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
7699         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
7700         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
7701         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
7703 2019-12-01  Bruno Haible  <bruno@clisp.org>
7705         cond: State linking requirements.
7706         * modules/cond (Link): New section.
7708 2019-12-01  Bruno Haible  <bruno@clisp.org>
7710         threadlib: Remove unnecessary file (left over from 2019-07-06).
7711         * modules/threadlib (Files): Remove config.rpath.
7713 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
7715         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
7716         Reported by Dagobert Michelsen <dam@opencsw.org> in
7717         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
7718         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
7719         list of strings instead of one string.
7720         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
7721         * pygnulib/GLImport.py (execute): Likewise.
7723 2019-11-27  Bruno Haible  <bruno@clisp.org>
7725         openpty, forkpty: Fix build error on Solaris 11.4.
7726         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
7727         also in <termios.h>.
7728         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
7729         of the function also in <termios.h>.
7730         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
7731         * doc/glibc-functions/forkpty.texi: Likewise.
7733 2019-11-27  Bruno Haible  <bruno@clisp.org>
7735         New options --enable-threads=isoc and --enable-threads=isoc+posix.
7736         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
7737         --enable-threads=isoc and --enable-threads=isoc+posix.
7738         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
7739         When both the ISO C and the POSIX threads API are available, choose
7740         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
7741         --enable-threads=isoc+posix was specified. When only the ISO C threads
7742         API is available and --enable-threads=iso was specified, choose
7743         USE_ISOC_THREADS.
7744         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
7745         USE_ISOC_AND_POSIX_THREADS.
7746         * lib/glthread/lock.c: Likewise.
7747         * lib/glthread/cond.h: Likewise.
7748         * lib/glthread/cond.c: Likewise.
7749         * lib/glthread/tls.h: Likewise.
7750         * lib/glthread/tls.c: Likewise.
7751         * lib/glthread/yield.h: Likewise.
7752         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
7753         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
7754         * lib/glthread/thread.c: Likewise.
7755         * lib/glthread/threadlib.c: Likewise.
7756         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
7757         USE_ISOC_AND_POSIX_THREADS.
7758         * tests/test-cond.c: Consider USE_ISOC_THREADS and
7759         USE_ISOC_AND_POSIX_THREADS.
7760         * tests/test-tls.c: Likewise.
7761         * tests/test-thread_create.c (main): Likewise.
7762         * tests/test-pthread-cond.c: Likewise.
7763         * tests/test-pthread-mutex.c: Likewise.
7764         * tests/test-pthread-once2.c: Likewise.
7765         * tests/test-pthread-rwlock.c: Likewise.
7766         * tests/test-pthread-tss.c: Likewise.
7767         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
7768         USE_POSIX_THREADS.
7770 2019-11-24  Bruno Haible  <bruno@clisp.org>
7772         mbrtowc: Modernize autoconf test.
7773         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
7774         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
7775         try a UTF-8 locale.
7776         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
7778 2019-11-24  Bruno Haible  <bruno@clisp.org>
7780         Fix errors in C++ mode on mingw.
7781         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
7782         instead of _GL_CXXALIAS_SYS.
7783         * lib/signal.in.h (pthread_sigmask): Likewise.
7784         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
7785         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
7786         Likewise.
7787         * lib/wchar.in.h (btowc): Likewise.
7789 2019-11-24  Bruno Haible  <bruno@clisp.org>
7791         sys_time: Fix errors in C++ mode on mingw.
7792         * lib/sys_time.in.h (timeval): Restore the redirection
7793         '#define timeval rpl_timeval', for when the symbol timeval is being used
7794         outside the 'gnulib' namespace.
7795         * lib/sys_select.in.h (select): In C++, write 'timeval', not
7796         'struct timeval'.
7798 2019-11-24  Bruno Haible  <bruno@clisp.org>
7800         iswctype: Fix errors in C++ mode on mingw.
7801         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
7802         is 1.
7803         * lib/iswctype.c (iswctype): Add another implementation, for the
7804         GNULIB_defined_wint_t case.
7805         * modules/iswctype (configure.ac): Compile iswctype.c also if
7806         GNULIB_OVERRIDES_WINT_T is 1.
7808 2019-11-24  Bruno Haible  <bruno@clisp.org>
7810         windows-timedmutex: Fix errors in C++ mode on mingw.
7811         * lib/windows-timedmutex.h: Add closing brace.
7813 2019-11-24  Bruno Haible  <bruno@clisp.org>
7815         Fix errors in C++ mode on Cygwin.
7816         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
7817         _GL_CXXALIAS_SYS.
7819 2019-11-24  Bruno Haible  <bruno@clisp.org>
7821         time_r: Fix for mingw (regression from 2019-11-16).
7822         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
7823         AC_LINK_IFELSE test only if the function does not appear to exist.
7825 2019-11-24  Bruno Haible  <bruno@clisp.org>
7827         wcstok: Add tests.
7828         * tests/test-wcstok.c: New file.
7829         * modules/wcstok-tests: New file.
7831 2019-11-24  Bruno Haible  <bruno@clisp.org>
7833         wcstok: Work around wrong signature on native Windows.
7834         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
7835         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
7836         REPLACE_WCSTOK.
7837         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
7838         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
7839         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
7840         * doc/posix-functions/wcstok.texi: Mention the problem.
7842 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
7844         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
7845         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
7846         remove workaround for GCC bug 91450 as the bug should be fixed
7847         there too.
7849 2019-11-21  Bruno Haible  <bruno@clisp.org>
7851         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
7852         Reported by Christian Biesinger <cbiesinger@google.com> in
7853         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
7854         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
7855         non-glibc systems.
7856         * lib/locale.in.h (localeconv, setlocale): Likewise.
7857         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
7858         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
7859         rint, round, trunc): Likewise.
7860         * lib/monetary.in.h (strfmon_l): Likewise.
7861         * lib/pthread.in.h (pthread_mutexattr_getrobust,
7862         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
7863         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
7864         pthread_spin_destroy): Likewise.
7865         * lib/signal.in.h (raise, signal): Likewise.
7866         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
7867         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
7868         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
7869         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
7870         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
7871         Likewise.
7872         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
7873         Likewise.
7874         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
7875         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
7876         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
7877         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
7878         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
7879         wcsftime): Likewise.
7880         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
7882 2019-11-21  Bruno Haible  <bruno@clisp.org>
7884         Fix various errors in _GL_CXXALIAS_SYS invocations.
7885         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
7886         _GL_CXXALIAS_SYS.
7887         * lib/pthread.in.h (pthread_mutexattr_gettype,
7888         pthread_mutexattr_getrobust): Likewise.
7889         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
7890         * lib/sys_socket.in.h (recv, send): Likewise.
7891         * lib/unistd.in.h (getdtablesize): Likewise.
7892         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
7893         'struct timeval'.
7895 2019-11-21  Bruno Haible  <bruno@clisp.org>
7897         math tests: Update after 2019-08-28 change.
7898         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
7899         return type of 'bool', not 'int'.
7901 2019-11-21  Bruno Haible  <bruno@clisp.org>
7903         pthread-spin: Fix errors in C++ mode.
7904         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
7905         functions as nonexistent when <pthread.h> exists but does not define
7906         the pthread_spinlock_t type.
7908 2019-11-21  Bruno Haible  <bruno@clisp.org>
7910         pthread-mutex: Fix errors in C++ mode.
7911         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
7912         pthread_mutexattr_getrobust exists. If not, define
7913         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
7914         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
7915         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
7916         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
7917         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
7918         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
7919         definition.
7921 2019-11-19  Bruno Haible  <bruno@clisp.org>
7923         threads-h tests: Fix typo.
7924         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
7926 2019-11-19  Bruno Haible  <bruno@clisp.org>
7928         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
7929         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
7930         to 'const pthread_attr_t *'.
7931         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
7932         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
7934 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
7936         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
7937         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
7938         work around GCC bug 91450 as the bug should be fixed there.
7940 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
7942         glob: get closer to glibc glob.c
7943         Omit differences from glibc when the differences don’t matter.
7944         * lib/glob.c [_LIBC]: Include shlib-compat.h.
7945         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
7946         (glob_lstat): New function.
7947         (glob_in_dir): Use it.
7948         (GLOB_ATTRIBUTE): Define to empty if not already defined.
7949         Use changed.
7951 2019-11-18  Bruno Haible  <bruno@clisp.org>
7953         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
7954         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
7955         UINTPTR_MAX): Consider _WIN64.
7956         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
7957         a pointer.
7959 2019-11-18  Bruno Haible  <bruno@clisp.org>
7961         stdint: Fix value of WINT_MAX when we override wint_t.
7962         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
7963         when GNULIB_OVERRIDES_WINT_T is 1.
7965 2019-11-18  Bruno Haible  <bruno@clisp.org>
7967         vcs-to-changelog: New module.
7968         * modules/vcs-to-changelog: New file.
7969         * MODULES.html.sh (func_all_modules): Add it.
7971 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
7973         vcs-to-changelog: New script to generate ChangeLog-like output.
7974         Discussion:
7975         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
7976         * build-aux/vcs_to_changelog.py: New file.
7977         * build-aux/vcstocl/frontend_c.py: New file.
7978         * build-aux/vcstocl/misc_util.py: New file.
7979         * build-aux/vcstocl/vcs_git.py: New file.
7981 2019-11-18  Bruno Haible  <bruno@clisp.org>
7983         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
7984         Reported by Keith Marshall <keith@users.osdn.me> in
7985         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
7986         and <https://osdn.net/projects/mingw/ticket/39677>.
7987         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
7988         already been defined by mingw's <crtdefs.h>.
7990 2019-11-18  Bruno Haible  <bruno@clisp.org>
7992         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
7993         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
7994         conditionally enabled.
7996 2019-11-18  Bruno Haible  <bruno@clisp.org>
7998         gc: Mirror libgcrypt.m4 from libgcrypt.
7999         * config/srclistvars.sh (LIBGCRYPT): New variable.
8000         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
8002 2019-11-17  Bruno Haible  <bruno@clisp.org>
8004         locale, localename: Improve z/OS support.
8005         Reported by Daniel Richard G. in
8006         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
8007         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
8008         gl_LOCALE_H.
8009         (gl_LOCALE_H): Require it.
8010         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
8011         defined, don't even check for newlocale, duplocale, freelocale.
8012         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
8013         locale_t is not defined.
8015 2019-11-17  Bruno Haible  <bruno@clisp.org>
8017         havelib: Make libdirstems processing more flexible.
8018         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
8019         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
8020         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
8021         patch from 2017-02-19).
8022         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
8023         libdirs, even when the first one exists as a directory.
8025 2019-11-17  Bruno Haible  <bruno@clisp.org>
8027         havelib: Match the bitness when searching for libraries.
8028         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
8029         acl_is_expected_elfclass.
8030         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
8031         file exists, in ELF, also test whether it has the ELF class that
8032         corresponds to the host's bitness.
8034 2019-11-17  Bruno Haible  <bruno@clisp.org>
8036         host-cpu-c-abi: Add support for unknown CPUs.
8037         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
8038         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
8039         32-bit or 64-bit.
8041 2019-11-17  Bruno Haible  <bruno@clisp.org>
8043         havelib: Remove redundant code.
8044         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
8045         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
8047 2019-11-17  Bruno Haible  <bruno@clisp.org>
8049         havelib: Fix a bug in dependency processing.
8050         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
8051         of .la files, don't overwrite the value of additional_libdir for the
8052         next rounds.
8054 2019-11-16  Bruno Haible  <bruno@clisp.org>
8056         wctype-h: When overriding wint_t, override also the related functions.
8057         Reported by Christian Biesinger <cbiesinger@google.com> in
8058         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
8059         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
8060         REPLACE_ISWCNTRL to 1.
8061         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
8062         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
8063         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
8064         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
8065         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
8066         on mingw.
8067         * doc/posix-headers/wctype.texi: Likewise.
8069 2019-11-16  Bruno Haible  <bruno@clisp.org>
8071         time_r: Fix for mingw.
8072         Reported by Christian Biesinger <cbiesinger@google.com> in
8073         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
8074         * lib/time.in.h: On mingw, include <unistd.h>.
8075         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
8076         <time.h>. Test for localtime_r in a way that works when it is defined
8077         as an inline function.
8079 2019-11-13  Bruno Haible  <bruno@clisp.org>
8081         havelib: Revert last change.
8082         * build-aux/config.rpath: Revert last change. We can add msys2 support
8083         when it has been added to libtool.m4 upstream.
8085 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
8087         config: add msys support
8088         Requested by Arnold Robbins in:
8089         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
8090         He also requested a change to config.guess, which I’ll forward
8091         upstream.
8092         * build-aux/ar-lib (func_file_conv):
8093         * build-aux/compile (func_file_conv):
8094         * build-aux/config.rpath (wl, with_gnu_ld)
8095         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
8096         Treat msys like cygwin.
8098 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
8100         regex: now back in sync with glibc
8101         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
8102         regexec.c got merged into glibc and are now copies again.
8104 2019-10-27  Bruno Haible  <bruno@clisp.org>
8106         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
8107         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
8108         statement.
8109         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
8110         32-bit CPUs.
8112 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
8114         timespec-add, timespec-sub: simplify
8115         * lib/timespec-add.c (timespec_add):
8116         * lib/timespec-sub.c (timespec_sub):
8117         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
8118         work on unsigned integers.
8120 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
8122         nstrftime: speed up integer overflow checking
8123         * lib/nstrftime.c: Include intprops.h.
8124         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
8125         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
8126         instead of doing it by hand.
8127         * modules/nstrftime (Depends-on): Add intprops.
8129         Port better to GCC under macOS
8130         Work around macOS header that has ‘#define __has_builtin(x) 0’
8131         when compiled by GCC.  Apple really, really doesn’t want you to
8132         use GCC, apparently.  Rroblem reported by Akim Demaille in:
8133         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
8134         The fix is to not trust __has_builtin when being compiled by
8135         recent-enough GCC.
8136         * lib/intprops.h (__has_builtin)
8137         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
8138         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
8139         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
8140         Remove.  All uses removed.
8141         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
8142         directly, if defined and if not newer GCC.
8143         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
8144         New macro, that use __has_builtin directly, if defined and if
8145         not newer GCC.
8146         (assume): Use them.
8148 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
8150         maintainer-makefile: update rule for argmatch.
8151         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
8153 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
8155         bitset: let freeing functions accept NULL.
8156         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
8157         given NULL.
8158         * lib/bitset.h: Document that.
8159         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
8161 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
8163         inttypes: use more-robust test for int range
8164         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
8165         Problem reported by Dagobert Michelsen in:
8166         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
8167         * lib/inttypes.in.h: Rely only on limits.h when checking
8168         int range.
8170 2019-10-15  Bruno Haible  <bruno@clisp.org>
8172         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
8173         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
8174         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
8175         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
8176         term_ostream_set_hyperlink): New functions.
8177         (term_styled_ostream_get_hyperlink_ref,
8178         term_styled_ostream_get_hyperlink_id,
8179         term_styled_ostream_set_hyperlink): New function aliases.
8181 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
8183         update-copyright: use en dashes in .texi ranges
8184         * build-aux/update-copyright: Match year ranges like "1998--2019",
8185         which are used in the Autoconf manual.  Also, update ranges in
8186         .tex, .texi, and .texinfo files to use en dashes instead of
8187         hyphens.
8189 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
8191         * config/srclist.txt: Remove posix/regex_internal.c for now.
8193 2019-10-13  Bruno Haible  <bruno@clisp.org>
8195         git-version-gen: Allow 'snapshot' as .tarball-version contents.
8196         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
8197         contents to the empty string.
8199 2019-10-12  Bruno Haible  <bruno@clisp.org>
8201         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
8202         * tests/test-intprops.c (main): Disable two more tests when using
8203         HP-UX cc.
8205 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
8207         Simplify and regularize regex use of ‘assert’
8208         Also, tell GCC about the asserts even when compiling without
8209         debugging, to give it further optimization opportunities.
8210         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
8211         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
8212         (parse_expression, parse_bracket_exp):
8213         * lib/regex_internal.c (build_wcs_buffer)
8214         (build_wcs_upper_buffer, re_string_reconstruct)
8215         (re_string_context_at):
8216         * lib/regexec.c (re_search_stub, re_copy_regs)
8217         (re_search_internal, prune_impossible_nodes, check_matching)
8218         (check_halt_state_context, set_regs, sift_states_backward)
8219         (build_sifted_states, transit_state_mb, transit_state_bkref)
8220         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
8221         (match_ctx_add_subtop):
8222         Use it instead of plain ‘assert’.
8224 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
8226         regex: omit debug assignment when not debugging
8227         * lib/regexec.c (re_search_internal) [!DEBUG]:
8228         Remove unnecessary assignment.
8230         regex: tell compiler there’s at most 256 arcs out
8231         Partly this is to help the reader (and maybe help GCC);
8232         partly this is to pacify Coverity.
8233         * lib/regex_internal.h: Include verify.h.
8234         * lib/regexec.c (group_nodes_into_DFAstates):
8235         Tell the compiler that ndests cannot exceed SBC_MAX.
8236         * modules/regex (Depends-on): Add ‘verify’.
8238         regex: simplify by assuming C99
8239         * config/srclist.txt: Comment out regex_internal.h and regexec.c
8240         temporarily.
8241         * lib/regex_internal.h (lock_define, re_match_context_t):
8242         Simplify by assuming C99 macros and const.
8243         * lib/regexec.c (re_search_internal): Simplify by assuming C99
8244         initializers.  Remove unnecessary assignment, as mctx is now
8245         safely initialized earlier.
8247         regex: avoid copying of uninitialized storage
8248         * config/srclist.txt: Comment out regcomp.c temporarily.
8249         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
8250         Initialize even when not checking for lint, as the behavior is
8251         arguably undefined otherwise and Coverity warns about it.
8253 2019-10-06  Bruno Haible  <bruno@clisp.org>
8255         access tests: Fix test failure when run as root.
8256         * tests/test-access.c: Include root-uid.h.
8257         (geteuid): Define fallback.
8258         (main): Don't expect that writing to a read-only file would fail when
8259         running as root. Also, remove the created files at the end.
8260         * modules/access-tests (Depends-on): Add root-uid.
8261         (configure.ac): Test whether geteuid exists.
8263 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
8265         users.txt: add GNU nano
8266         Nano has been making use of gnulib since March 2017, version 2.8.0.
8268 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
8270         bootstrap: simplify debugging of wget failures
8271         Problem reported by Tim Rühsen in:
8272         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
8273         * build-aux/bootstrap (po_download_command_format):
8274         Invoke wget with -nv instead of -q, to make debugging easier.
8276 2019-09-29  Bruno Haible  <bruno@clisp.org>
8278         avltree-list: Fix compilation warning (introduced on 2014-09-16).
8279         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
8280         'const' attribute.
8282 2019-09-29  Bruno Haible  <bruno@clisp.org>
8284         fbufmode: Fix compilation error on glibc >= 2.28 systems.
8285         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
8287 2019-09-28  Bruno Haible  <bruno@clisp.org>
8289         Update comments that refer to POSIX.
8290         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
8291         sentence about trailing slashes.
8292         * lib/fflush.c: Clarify the reasoning.
8293         * tests/test-fflush2.c: Cite the relevant sentence.
8295 2019-09-28  Bruno Haible  <bruno@clisp.org>
8297         access: Document limitations on Windows.
8298         Suggested by Zaretskii <eliz@gnu.org>.
8299         * doc/posix-functions/access.texi: Mention two limitations on Windows.
8301 2019-09-28  Bruno Haible  <bruno@clisp.org>
8303         findprog-in: Fix comment.
8304         Reported by Eli Zaretskii <eliz@gnu.org>.
8305         * lib/findprog.h (find_in_given_path): Extend description of EACCES
8306         condition.
8307         * lib/stat.c (rpl_stat): Fix typo in comment.
8308         * lib/utime.c (_gl_utimens_windows): Likewise.
8310 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8312         Update URLs and associated text
8313         (Thanks to Bruno Haible for proofreading this patch.)
8314         Prefer https: to http: in URLs where either will do, for the usual
8315         security reasons.  I also updated broken and/or moved URLs
8316         discovered during the process. In a few places I had to resort to
8317         archive.org, since I didn't find the originals elsewhere.
8319 2019-09-15  Paul Smith  <psmith@gnu.org>
8320             Bruno Haible  <bruno@clisp.org>
8322         findprog-in: Set errno when the search fails.
8323         * lib/findprog-in.c: Include <errno.h>.
8324         (find_in_given_path): Set errno before returning NULL.
8325         * lib/findprog.h (find_in_given_path): Update comment accordingly.
8326         Define the term "slash".
8328 2019-09-15  Bruno Haible  <bruno@clisp.org>
8330         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
8331         * modules/findprog (Depends-on): Add access.
8332         * modules/findprog-lgpl (Depends-on): Likewise.
8333         * modules/findprog-in (Depends-on): Likewise.
8335 2019-09-15  Bruno Haible  <bruno@clisp.org>
8337         access: Add tests.
8338         * tests/test-access.c: New file.
8339         * modules/access-tests: New file.
8341         access: New module.
8342         * lib/unistd.in.h (access): New declaration.
8343         * lib/access.c: New file.
8344         * m4/access.m4: New file.
8345         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
8346         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
8347         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
8348         REPLACE_ACCESS.
8349         * modules/access: New file.
8350         * tests/test-unistd-c++.cc (access): Check signature.
8351         * doc/posix-functions/access.texi: Mention the new module.
8353 2019-09-15  Bruno Haible  <bruno@clisp.org>
8355         fcntl-h: Fix compilation error of creat.c on MSVC.
8356         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
8357         defined.
8359 2019-09-15  Bruno Haible  <bruno@clisp.org>
8361         creat: Add tests.
8362         * tests/test-creat.c: New file, based on tests/test-open.h.
8363         * modules/creat-tests: New file.
8365         creat: New module.
8366         * lib/fcntl.in.h (creat): New declaration.
8367         * lib/creat.c: New file, based on lib/open.c.
8368         * m4/creat.m4: New file.
8369         * m4/open-slash.m4: New file, extracted from m4/open.m4.
8370         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
8371         Invoke gl_OPEN_TRAILING_SLASH_BUG.
8372         * modules/open (Files): Add m4/open-slash.m4.
8373         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
8374         REPLACE_CREAT.
8375         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
8376         * modules/creat: New file.
8377         * tests/test-fcntl-h-c++.cc (creat): Check signature.
8378         * doc/posix-functions/creat.texi: Mention the new module.
8380 2019-09-15  Bruno Haible  <bruno@clisp.org>
8382         open tests: Enhance test.
8383         * tests/test-open.h (test_open): Test the creation of an executable
8384         regular file. Also improve initial cleanup.
8386 2019-09-15  Bruno Haible  <bruno@clisp.org>
8388         intprops tests: Avoid build failure with HP-UX cc.
8389         * tests/test-intprops.c: Disable a check that makes HP cc choke with
8390         "error 4018: Macro param too large after substitution - use -H option.".
8392 2019-09-14  Bruno Haible  <bruno@clisp.org>
8394         Make autoconf tests work with -Werror=implicit-function-declaration.
8395         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
8396         towupper() declaration.
8397         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
8398         declaration.
8400 2019-09-14  Bruno Haible  <bruno@clisp.org>
8402         findprog-in: Better mimic the system on native Windows.
8403         Reported by Paul Smith <psmith@gnu.org>.
8404         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
8405         non-empty suffixes when the file name already contains a '.'.
8407 2019-09-10  Bruno Haible  <bruno@clisp.org>
8409         wctob: Fix autoconf test.
8410         Based on patch by Florian Weimer <fweimer@redhat.com>.
8411         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
8413 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
8415         xhash: provide hash_xinitialize.
8416         Suggested by Egor Pugin <egor.pugin@gmail.com>
8417         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
8418         * modules/xhash, lib/xhash.c: New.
8419         * lib/hash.h (hash_xinitialize): New.
8421 2019-09-09  Bruno Haible  <bruno@clisp.org>
8423         findprog-in: Make exec optimization optional.
8424         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
8425         (find_in_given_path): Add optimize_for_exec parameter.
8426         * lib/findprog-in.c (find_in_given_path): Likewise.
8428 2019-09-08  Bruno Haible  <bruno@clisp.org>
8430         Add option to assume the best, not the worst, when cross-compiling.
8431         Suggested by Jonas Termansen <sortie@maxsi.org>.
8432         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
8433         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
8434         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
8435         lt_cv_sys_argz_works.
8436         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
8437         ac_cv_func_calloc_0_nonnull.
8438         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
8439         --enable-cross-guesses for gl_cv_func_realpath_works.
8440         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
8441         gl_cv_func_cbrtl_ieee.
8442         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
8443         gl_cv_func_ceil_ieee.
8444         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
8445         gl_cv_func_ceilf_ieee.
8446         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
8447         gl_cv_func_ceill_ieee.
8448         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
8449         ac_cv_func_chown_works.
8450         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
8451         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
8452         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
8453         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
8454         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
8455         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
8456         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
8457         gl_cv_func_expl_works.
8458         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
8459         gl_cv_func_expm1_ieee.
8460         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
8461         gl_cv_func_expm1l_works.
8462         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
8463         gl_cv_func_open_directory_works.
8464         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
8465         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
8466         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
8467         gl_cv_func_fchownat_empty_filename_works.
8468         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
8469         gl_cv_func_fdopendir_works.
8470         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
8471         gl_cv_func_floor_ieee.
8472         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
8473         gl_cv_func_floorf_ieee.
8474         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
8475         gl_cv_func_fma_works.
8476         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
8477         gl_cv_func_fmaf_works.
8478         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
8479         gl_cv_func_fmal_works.
8480         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
8481         gl_cv_func_fmod_ieee.
8482         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
8483         gl_cv_func_fmodf_ieee.
8484         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
8485         gl_cv_func_fmodl_ieee.
8486         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
8487         gl_cv_func_fpurge_works.
8488         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
8489         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
8490         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
8491         gl_cv_func_getcwd_null.
8492         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
8493         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
8494         gl_cv_func_working_getdelim.
8495         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
8496         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
8497         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
8498         gl_cv_func_getgroups_works.
8499         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
8500         am_cv_func_working_getline.
8501         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
8502         for gl_cv_func_getopt_gnu.
8503         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
8504         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
8505         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
8506         gl_cv_func_hypot_ieee.
8507         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
8508         gl_cv_func_hypotf_ieee.
8509         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
8510         gl_cv_func_hypotl_ieee.
8511         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
8512         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
8513         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
8514         gl_cv_func_link_works.
8515         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
8516         gl_cv_func_linkat_slash.
8517         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
8518         gl_cv_func_log_ieee.
8519         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
8520         gl_cv_func_logf_ieee.
8521         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
8522         gl_cv_func_logl_works.
8523         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
8524         gl_cv_func_log10_ieee.
8525         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
8526         gl_cv_func_log10f_ieee.
8527         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
8528         gl_cv_func_log10l_works.
8529         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
8530         gl_cv_func_log1p_ieee.
8531         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
8532         gl_cv_func_log1pf_ieee.
8533         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
8534         gl_cv_func_log1pl_ieee.
8535         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
8536         gl_cv_func_log2_ieee.
8537         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
8538         gl_cv_func_log2f_ieee.
8539         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
8540         --enable-cross-guesses for
8541         gl_cv_func_lstat_dereferences_slashed_symlink.
8542         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
8543         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
8544         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
8545         gl_cv_C_locale_sans_EILSEQ.
8546         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
8547         gl_cv_func_memchr_works.
8548         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
8549         gl_cv_func_memmem_works_always.
8550         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
8551         gl_cv_func_memmem_works_fast.
8552         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
8553         gl_cv_func_mkdir_trailing_slash_works,
8554         gl_cv_func_mkdir_trailing_dot_works.
8555         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
8556         gl_cv_func_mkfifo_works.
8557         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
8558         gl_cv_func_mknod_works.
8559         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
8560         gl_cv_func_working_mkstemp.
8561         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
8562         gl_cv_func_working_mktime.
8563         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
8564         gl_cv_func_modf_ieee.
8565         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
8566         gl_cv_func_modff_ieee.
8567         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
8568         gl_cv_func_modfl_ieee.
8569         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
8570         gl_cv_func_nanosleep.
8571         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
8572         gl_cv_func_perror_works.
8573         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
8574         gl_cv_func_printf_sizes_c99.
8575         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
8576         gl_cv_func_printf_infinite.
8577         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
8578         gl_cv_func_printf_infinite_long_double.
8579         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
8580         gl_cv_func_printf_directive_a.
8581         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
8582         gl_cv_func_printf_directive_f.
8583         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
8584         gl_cv_func_printf_flag_zero.
8585         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
8586         gl_cv_func_printf_enomem.
8587         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
8588         gl_cv_func_snprintf_truncation_c99.
8589         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
8590         gl_cv_func_snprintf_retval_c99.
8591         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
8592         gl_cv_func_snprintf_directive_n.
8593         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
8594         gl_cv_func_vsnprintf_zerosize_c99.
8595         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
8596         gl_cv_func_pselect_detects_ebadf.
8597         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
8598         Obey --enable-cross-guesses for
8599         gl_cv_pthread_rwlock_rdlock_prefer_writer.
8600         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
8601         gl_cv_func_ptsname_sets_errno.
8602         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
8603         gl_cv_func_svid_putenv.
8604         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
8605         gl_cv_func_readlink_works.
8606         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
8607         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
8608         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
8609         gl_cv_func_re_compile_pattern_working.
8610         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
8611         gl_cv_func_remainder_ieee.
8612         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
8613         gl_cv_func_remainderf_ieee.
8614         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
8615         gl_cv_func_remainderl_ieee.
8616         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
8617         gl_cv_func_rintl_works.
8618         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
8619         gl_cv_func_rmdir_works.
8620         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
8621         gl_cv_func_round_ieee.
8622         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
8623         gl_cv_func_roundf_ieee.
8624         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
8625         gl_cv_func_roundl_ieee.
8626         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
8627         gl_cv_func_select_detects_ebadf.
8628         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
8629         gl_cv_func_setenv_works.
8630         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
8631         gl_cv_func_unsetenv_works.
8632         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
8633         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
8634         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
8635         gl_cv_func_sleep_works.
8636         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
8637         gl_cv_func_stat_file_slash.
8638         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
8639         gl_cv_func_stpncpy.
8640         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
8641         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
8642         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
8643         gl_cv_func_strcasestr_linear.
8644         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
8645         gl_cv_func_working_strerror.
8646         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
8647         gl_cv_func_strerror_0_works.
8648         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
8649         --enable-cross-guesses for gl_cv_func_strerror_r_works.
8650         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
8651         gl_cv_func_strstr_works_always.
8652         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
8653         gl_cv_func_strstr_linear.
8654         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
8655         gl_cv_func_strtod_works.
8656         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
8657         gl_cv_func_strtold_works.
8658         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
8659         gl_cv_func_symlink_works.
8660         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
8661         gl_cv_func_symlinkat_works.
8662         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
8663         gl_cv_func_trunc_ieee.
8664         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
8665         gl_cv_func_truncf_ieee.
8666         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
8667         gl_cv_func_truncl_ieee.
8668         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
8669         gl_cv_func_tzset_clobber.
8670         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
8671         gl_cv_func_ungetc_works.
8672         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
8673         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
8674         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
8675         gl_cv_func_usleep_works.
8676         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
8677         gl_cv_func_futimesat_works.
8678         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
8679         gl_cv_func_working_utimes.
8680         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
8681         gl_cv_func_wcwidth_works.
8682         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
8683         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
8684         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
8685         links for testing. Obey --enable-cross-guesses for
8686         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
8687         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
8689 2019-09-08  Bruno Haible  <bruno@clisp.org>
8691         Clarify that cross-compilation guesses are guesses.
8692         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
8693         cross-compiling.
8695 2019-09-08  Bruno Haible  <bruno@clisp.org>
8697         chown: Fix configure output (regression from 2019-03-23).
8698         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
8699         gl_cv_func_chown_follows_symlink variable.
8701 2019-09-08  Bruno Haible  <bruno@clisp.org>
8703         findprog-in: New module.
8704         Suggested by Paul Smith <psmith@gnu.org>.
8705         * lib/findprog.h (find_in_given_path): New declaration.
8706         * lib/findprog-in.c: New file, based on lib/findprog.c.
8707         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
8708         * modules/findprog-in: New file.
8710 2019-09-08  Bruno Haible  <bruno@clisp.org>
8712         findprog: Remove unused dependency.
8713         * modules/findprog (Depends-on): Remove strdup.
8715 2019-09-08  Bruno Haible  <bruno@clisp.org>
8717         findprog: Remove test that is obsolete since 2006-04-24.
8718         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
8720 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
8722         bitset: style changes
8723         * lib/bitset/vector.c (vbitset_resize): Factor computation.
8724         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
8725         xzalloc to xcalloc.
8726         Suggested by Paul Eggert.
8728 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
8730         bitset: check memory allocation
8731         Reported by 江 祖铭 (Zu-Ming Jiang).
8732         With help from Paul Eggert.
8733         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
8734         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
8735         instead of realloc.
8736         When shrinking, accept failures.
8737         * lib/bitset/vector.c (vbitset_resize): Likewise.
8739 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
8741         scratch_buffer: sync from glibc
8742         * config/srclist.txt: Add the scratch_buffer source
8743         code from glibc, since these should be in sync.
8744         Autoupdate.
8746 2019-09-07  Bruno Haible  <bruno@clisp.org>
8748         doc: Update for glibc 2.30.
8749         * doc/glibc-functions/gettid.texi: New file.
8750         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
8751         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
8752         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
8753         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
8754         * doc/glibc-functions/sem_clockwait.texi: New file.
8755         * doc/glibc-functions/tgkill.texi: New file.
8756         * doc/glibc-functions/twalk_r.texi: New file.
8757         * doc/gnulib.texi: Include them.
8758         (Glibc semaphore.h): New section.
8759         * doc/pastposix-functions/h_errno.texi: Update.
8760         * doc/posix-functions/*.texi: Likewise.
8762 2019-09-06  Bruno Haible  <bruno@clisp.org>
8764         symlink tests: Avoid test failure on Linux with Lustre file system.
8765         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
8766         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
8767         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
8769 2019-09-01  Bruno Haible  <bruno@clisp.org>
8771         gitsub.sh: Add support for shallow-cloning of subdirectories.
8772         * top/gitsub.sh (func_usage): Document allowed git options with
8773         'git pull'.
8774         (func_pull): Accept GIT_OPTIONS argument.
8775         (pull): Parse git options before complaining about too many arguments.
8776         Pass the git options to func_pull.
8778 2019-08-29  Bruno Haible  <bruno@clisp.org>
8780         lock: Fix cross-compilation guesses.
8781         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
8782         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
8783         platforms.
8785 2019-08-28  Bruno Haible  <bruno@clisp.org>
8787         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
8788         Reported by Martin Storsjö <martin@martin.st> in
8789         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
8790         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
8791         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
8792         files from GCC 6 or newer, use an override through '#define', because
8793         the inline definitions in the platform's <cmath> cannot be overridden
8794         in another way.
8796 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
8798         Revert macOS INT_MULTIPLY_WRAPV patch
8799         Problem reported by Bruno Haible in:
8800         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
8801         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
8802         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
8803         Go back to working around the Clang bug on macOS.
8805 2019-08-27  Bruno Haible  <bruno@clisp.org>
8807         libtool-next-version: Fix error output.
8808         * build-aux/libtool-next-version (func_fatal_error): Fix the program
8809         name.
8811 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
8813         Speed up INT_MULTIPLY_WRAPV on macOS
8814         Assume that __builtin_mul_overflow works OK with Clang on macOS.
8815         Mattias Engdegård says it’s safe to assume the relevant library
8816         is always available there.
8817         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
8818         New temporary internal macro.
8819         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
8820         No need to work around the Clang bug on macOS.
8822 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
8824         intprops.h, verify.h: port better to clang
8825         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
8826         with Clang.  Problem reported privately by Mattias Engdegård.
8827         Also, insulate intprops.h and verify.h better against each other’s
8828         definitions of __has_builtin on non-Clang hosts.
8829         * lib/intprops.h (__has_builtin): Define a temporary substitute
8830         if __has_builtin is not already defined.
8831         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
8832         New temporary internal macros.
8833         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
8834         Now two separate macros, replacing the old
8835         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
8836         __builtin_mul_overflow is like the rest.  All uses changed.
8837         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
8838         Adjust to above changes.
8839         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
8840         longer relevant.  All uses changed.
8841         * lib/verify.h (__has_builtin): Treat like intprops.h,
8842         so that the two .h files do not collide with each other.
8843         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
8844         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
8846 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
8848         intprops: say why not Clang __builtin_add_overflow
8849         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
8850         Mention Clang in comment, responding to a query from
8851         Mattias Engdegård.
8853 2019-08-24  Bruno Haible  <bruno@clisp.org>
8855         doc: Document most of the files outside of modules.
8856         * doc/gnulib.texi (Build Infrastructure Files,
8857         Release Management Files): New chapters.
8859 2019-08-24  Bruno Haible  <bruno@clisp.org>
8861         bootstrap: Keep in sync with the 'gettext' module.
8862         Reported by Assaf Gordon in
8863         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
8864         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
8865         * build-aux/po/remove-potcdate.sin: Likewise.
8867 2019-08-24  Bruno Haible  <bruno@clisp.org>
8869         crypto/gc-sha512: Add tests.
8870         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
8871         * modules/crypto/gc-sha512-tests: New file.
8873         crypto/gc-sha256: Add tests.
8874         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
8875         * modules/crypto/gc-sha256-tests: New file.
8877         crypto/gc-sha256, crypto/gc-sha512: New modules.
8878         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
8879         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
8880         (MAX_DIGEST_SIZE): Set to 64.
8881         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
8882         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
8883         (gc_sha256, gc_sha512): New functions.
8884         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
8885         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
8886         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
8888 2019-08-24  Bruno Haible  <bruno@clisp.org>
8890         crypto/gc-sha1 tests: Improve output when the test fails.
8891         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
8892         output.
8894 2019-08-24  Bruno Haible  <bruno@clisp.org>
8896         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
8897         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
8898         LIBGCRYPT_HAS_MD_SM3.
8899         * lib/gc-libgcrypt.c: Include sm3.h.
8900         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
8901         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
8902         implementation if libgcrypt does not support SM3.
8904 2019-08-24  Bruno Haible  <bruno@clisp.org>
8906         crypto/gc-md2: Optimize and clarify code.
8907         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
8908         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
8909         is not needed.
8911 2019-08-24  Bruno Haible  <bruno@clisp.org>
8913         crypto/gc-md2: Add comment.
8914         * lib/gc-libgcrypt.c: Add comment.
8916 2019-08-24  Bruno Haible  <bruno@clisp.org>
8918         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
8919         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
8920         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
8921         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
8922         variable.
8924 2019-08-24  Bruno Haible  <bruno@clisp.org>
8926         crypto/gc: Fix link error with --with-libgcrypt.
8927         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
8928         AC_LIB_HAVE_LINKFLAGS invocation.
8930 2019-08-24  Bruno Haible  <bruno@clisp.org>
8932         crypto/gc: Access the module indicators correctly.
8933         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
8934         * lib/gc-libgcrypt.c: Likewise.
8936 2019-08-24  Bruno Haible  <bruno@clisp.org>
8938         crypto/gc: Fix configuration with --with-libgcrypt.
8939         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
8940         * modules/crypto/gc (Files): Add it.
8941         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
8943 2019-08-24  Bruno Haible  <bruno@clisp.org>
8945         Remove unused file.
8946         * m4/stat-macros.m4: Remove file.
8948 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
8950         New strip-trailing-space option for srclist-update
8951         * config/srclist-update (fixfile): Support new option.
8952         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
8953         Use it.
8955 2019-08-20  Eric Blake  <eblake@redhat.com>
8957         accept4: Support SOCK_NONBLOCK, if defined
8958         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
8960         accept4: Fix compilation when native accept4() exists.
8961         Reported by Richard W.M. Jones <rjones@redhat.com> in
8962         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
8963         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
8965 2019-08-18  Bruno Haible  <bruno@clisp.org>
8967         Defeat -flto GCC optimization in math autoconf tests.
8968         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
8969         at <https://savannah.gnu.org/bugs/?56109>.
8970         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
8971         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
8972         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
8973         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8974         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
8975         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
8976         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
8977         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
8978         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
8979         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
8980         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
8981         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
8983 2019-08-17  Bruno Haible  <bruno@clisp.org>
8985         windows-spin: Implement declared functions.
8986         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
8987         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
8988         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
8989         name.
8991 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
8993         intprops: port to Oracle Developer Studio 12.6
8994         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
8995         typos that were in a section not compiled by GCC.
8997 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
8999         intprops: support uchar, ushort _WRAPV dests
9000         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
9001         when __builtin_add_overflow etc. and _Generic are not used.
9002         (_GL_INT_OP_WRAPV): Use it to support destinations that
9003         are unsigned char or unsigned short, even in compilers
9004         that lack __typeof__ and are not C11-compatible.
9006         intprops: pacify picky GCC
9007         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
9008         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
9009         possibly-incorrect result.
9010         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
9011         about (A) used as a boolean, when A is an expression like 3 * 4.
9013         intprops: support unsigned *_WRAPV results
9014         Add support for unsigned, unsigned long, and unsigned long long
9015         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
9016         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
9017         bug with unsigned inputs reported by Eli Zaretskii in:
9018         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
9019         * config/srclist.txt: Break the glibc connection for intprops.h
9020         temporarily, while more testing is done in Gnulib-using apps.
9021         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
9022         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
9023         Support unsigned results no narrower than unsigned int.  Report
9024         overflow correctly if some arguments are unsigned.
9025         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
9026         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
9027         the right thing with narrow args.
9028         (_GL_INT_OP_CALC1): Remove.  All callers removed.
9029         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
9030         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
9031         * tests/test-intprops.c: Check for bugs and test new behavior.
9033 2019-08-14  Bruno Haible  <bruno@clisp.org>
9035         get_progname_of: New module.
9036         * lib/get_progname_of.h: New file.
9037         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
9038         * lib/getprogname.c (getprogname): Tweak coding style.
9039         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
9040         * modules/get_progname_of: New file.
9042 2019-08-14  Bruno Haible  <bruno@clisp.org>
9044         get_ppid_of: New module.
9045         * lib/get_ppid_of.h: New file.
9046         * lib/get_ppid_of.c: New file.
9047         * modules/get_ppid_of: New file.
9049 2019-08-13  Bruno Haible  <bruno@clisp.org>
9051         libtextstyle-optional tests: Support the NO_COLOR environment variable.
9052         * tests/test-libtextstyle.c (main): Do not emit styling when the
9053         environment variable NO_COLOR is set.
9055 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
9057         verify: improve diagnostic quality in recent GCC
9058         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
9059         useful line number containing the top-level caller of the macro.
9060         So, bring back the older way of issuing a diagnostic containing
9061         the top-level call’s arg, so that it is easier to diagnose
9062         ‘verify’ failures with recent GCC.
9063         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
9064         Bring back DIAGNOSTIC arg.  All callers changed.
9065         (verify): Just use _GL_VERIFY.
9067 2019-08-11  Bruno Haible  <bruno@clisp.org>
9069         localcharset: Add more aliases for OS/2.
9070         Based on patch by KO Myung-Hun <komh78@gmail.com> in
9071         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
9072         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
9074 2019-08-10  Eric Blake  <eblake@redhat.com>
9076         configmake: Update advice on usage.
9077         * modules/configmake (Include): No longer necessary to include
9078         last, since configmake.h itself worries about collision avoidance.
9080 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
9082         parse-datetime: fix 'T' military timezone handling
9083         * lib/parse-datetime.y (zone):
9084         follow-up to the previous commit: the 'T' case is handled outside the
9085         conversion table (used as either military timezone UTC-7 or ISO8601
9086         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
9087         timezone letters.
9089 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
9091         parse-datetime: fix military timezone letters
9092         Problem and trivial fix reported by Neil Hoggarth in:
9093         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
9094         * lib/parse-datetime.y (military_table):
9095         Do it the right way, not the RFC 822 way.
9097 2019-08-08  Eric Blake  <eblake@redhat.com>
9099         configmake: Avoid namespace pollution issue on mingw.
9100         * modules/configmake (Makefile.am): If the project uses
9101         <winsock2.h>, include that header before defining DATADIR.
9103 2019-07-28  Bruno Haible  <bruno@clisp.org>
9105         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
9106         * tests/test-mbrtowc.c (main): Fix expected value of wc.
9108 2019-07-24  Bruno Haible  <bruno@clisp.org>
9110         pthread-h: Fix definitions of types and macros on mingw.
9111         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
9112         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
9113         not in use.
9114         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
9115         'pthread-once' is not in use.
9116         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
9117         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
9118         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
9119         in use.
9120         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
9121         Define also when module 'pthread-rwlock' is not in use.
9122         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
9123         also when module 'pthread-cond' is not in use.
9124         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
9125         'pthread-tss' is not in use.
9126         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
9127         use.
9129 2019-07-24  Simon Josefsson  <simon@josefsson.org>
9131         crypto/gc: Cope with libgcrypt without SM3.
9132         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
9134 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
9136         backupfile: fix resource leak on memory failure
9137         Problem found by Coverity (CID 1484214).
9138         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
9140 2019-07-22  Bruno Haible  <bruno@clisp.org>
9142         Avoid missing-declarations warning in various tests.
9143         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
9144         test6, test_optional, test7, test8, test9, test10, test11, test12,
9145         test13, test14, test15, test_fun): Declare static.
9146         * tests/test-cnd.c (test_cnd_wait): Likewise.
9147         * tests/test-cond.c (test_cond): Likewise.
9149 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
9151         pthread tests: Avoid missing-declarations warning.
9152         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
9154 2019-07-19  Bruno Haible  <bruno@clisp.org>
9156         parse-datetime: Avoid warnings from bison versions >= 3.3.
9157         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
9158         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
9160 2019-07-19  Bruno Haible  <bruno@clisp.org>
9162         parse-datetime: Require Bison 2.4 or newer.
9163         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
9164         Code taken from gettext's intl.m4.
9165         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
9166         of YACC.
9168 2019-07-19  Bruno Haible  <bruno@clisp.org>
9170         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
9171         * lib/areadlink-with-size.c: Include <string.h>.
9172         * lib/areadlinkat-with-size.c: Likewise.
9173         * lib/xgethostname.c: Likewise.
9174         * lib/xgetdomainname.c: Likewise.
9176 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
9178         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
9179         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
9180         "%pure-parser".  The former is available since Bison 2.3b (2008),
9181         while the latter is marked as obsolete since version 3.4 (May 2019).
9183 2019-07-16  Bruno Haible  <bruno@clisp.org>
9185         update-copyright: Make it work again (regression from 2019-06-15).
9186         Reported by Brian C. Lane <bcl@redhat.com>.
9187         * build-aux/update-copyright: Add back the -0777, -p, -i options.
9189 2019-07-14  Bruno Haible  <bruno@clisp.org>
9191         doc: Update info about <pthread.h>.
9192         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
9193         of 'pthread'.
9195 2019-07-14  Bruno Haible  <bruno@clisp.org>
9197         pthread_sigmask tests: Use new multithread modules.
9198         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
9199         glthread/thread.h.
9200         (main_thread, killer_thread): Change type to pthread_t.
9201         (main): Update accordingly.
9202         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
9203         thread.
9205 2019-07-14  Bruno Haible  <bruno@clisp.org>
9207         pthread-tss: Add tests.
9208         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
9209         tests/test-tss.c.
9210         * modules/pthread-tss-tests: New file.
9212 2019-07-14  Bruno Haible  <bruno@clisp.org>
9214         pthread-cond: Add tests.
9215         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
9216         tests/test-cnd.c.
9217         * modules/pthread-cond-tests: New file.
9219 2019-07-14  Bruno Haible  <bruno@clisp.org>
9221         pthread-rwlock: Add tests.
9222         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
9223         * modules/pthread-rwlock-tests: New file.
9225 2019-07-14  Bruno Haible  <bruno@clisp.org>
9227         pthread-mutex: Add tests.
9228         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
9229         tests/test-mtx.c.
9230         * modules/pthread-mutex-tests: New file.
9232 2019-07-14  Bruno Haible  <bruno@clisp.org>
9234         pthread-once: Add tests.
9235         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
9236         tests/test-call_once.c.
9237         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
9238         tests/test-mtx.c.
9239         * modules/pthread-once-tests: New file.
9241 2019-07-14  Bruno Haible  <bruno@clisp.org>
9243         pthread-thread: Add tests.
9244         * tests/test-pthread-thread.c: New file, based on
9245         tests/test-thread_create.c and tests/test-thrd_create.c.
9246         * modules/pthread-thread-tests: New file.
9248 2019-07-14  Bruno Haible  <bruno@clisp.org>
9250         pthread: Turn into a convenience module.
9251         * lib/pthread.in.h: Remove declarations for extern inline functions.
9252         * lib/pthread.c: Remove file.
9253         * modules/pthread (Files): Remove it.
9254         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
9255         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
9256         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
9257         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
9258         GNULIB_PTHREAD.
9259         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
9261 2019-07-14  Bruno Haible  <bruno@clisp.org>
9263         pthread-spin: New module.
9264         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
9265         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
9266         inline definitions.
9267         * lib/pthread-spin.c: New file.
9268         * m4/pthread-spin.m4: New file.
9269         * modules/pthread-spin: New file.
9270         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
9271         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
9272         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
9273         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
9274         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
9276 2019-07-14  Bruno Haible  <bruno@clisp.org>
9278         pthread-tss: New module.
9279         * lib/pthread-tss.c: New file.
9280         * m4/pthread-tss.m4: New file.
9281         * modules/pthread-tss: New file.
9282         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
9283         * doc/posix-functions/pthread_setspecific.texi: Likewise.
9284         * doc/posix-functions/pthread_getspecific.texi: Likewise.
9285         * doc/posix-functions/pthread_key_delete.texi: Likewise.
9287 2019-07-14  Bruno Haible  <bruno@clisp.org>
9289         pthread-cond: New module.
9290         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
9291         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
9292         * lib/pthread-cond.c: New file.
9293         * m4/pthread-cond.m4: New file.
9294         * modules/pthread-cond: New file.
9295         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
9296         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
9297         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
9298         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
9299         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
9300         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
9301         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
9302         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
9304 2019-07-14  Bruno Haible  <bruno@clisp.org>
9306         pthread-rwlock: New module.
9307         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
9308         * m4/pthread-rwlock.m4: New file.
9309         * modules/pthread-rwlock: New file.
9310         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
9311         and the Android problem.
9312         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
9313         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
9314         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
9315         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
9316         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
9317         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
9318         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
9319         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
9320         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
9321         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
9323 2019-07-14  Bruno Haible  <bruno@clisp.org>
9325         pthread-mutex: New module.
9326         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
9327         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
9328         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
9329         pthread_mutex_unlock): Remove inline definitions.
9330         * lib/pthread-mutex.c: New file.
9331         * m4/pthread-mutex.m4: New file.
9332         * modules/pthread-mutex: New file.
9333         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
9334         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
9335         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
9336         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
9337         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
9338         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
9339         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
9340         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
9341         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
9342         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
9343         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
9344         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
9346 2019-07-14  Bruno Haible  <bruno@clisp.org>
9348         pthread-once: New module.
9349         * lib/pthread-once.c: New file.
9350         * m4/pthread-once.m4: New file.
9351         * modules/pthread-once: New file.
9352         * doc/posix-functions/pthread_once.texi: Mention the new module.
9354 2019-07-14  Bruno Haible  <bruno@clisp.org>
9356         pthread-thread: New module.
9357         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
9358         inline definitions.
9359         * lib/pthread-thread.c: New file.
9360         * m4/pthread-thread.m4: New file.
9361         * modules/pthread-thread: New file.
9362         * doc/posix-functions/pthread_create.texi: Mention the new module.
9363         * doc/posix-functions/pthread_attr_init.texi: Likewise.
9364         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
9365         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
9366         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
9367         * doc/posix-functions/pthread_self.texi: Likewise.
9368         * doc/posix-functions/pthread_equal.texi: Likewise.
9369         * doc/posix-functions/pthread_detach.texi: Likewise.
9370         * doc/posix-functions/pthread_join.texi: Likewise.
9371         * doc/posix-functions/pthread_exit.texi: Likewise.
9373 2019-07-14  Bruno Haible  <bruno@clisp.org>
9375         pthread-h: Prepare for adding new modules.
9376         * lib/pthread.in.h: Define the types and macros for each of the
9377         facilities separately.
9378         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
9379         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
9380         HAVE_PTHREAD_PROCESS_SHARED.
9381         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
9382         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
9383         HAVE_PTHREAD_PROCESS_SHARED.
9384         * modules/pthread-h (Makefile.am): Substitute
9385         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
9386         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
9388 2019-07-14  Bruno Haible  <bruno@clisp.org>
9390         pthread-h: Add declarations of essential pthread functions.
9391         * lib/pthread.in.h: Include snippets.
9392         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
9393         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
9394         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
9395         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
9396         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
9397         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
9398         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
9399         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
9400         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
9401         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
9402         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
9403         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
9404         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
9405         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
9406         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
9407         pthread_key_create, pthread_setspecific, pthread_getspecific,
9408         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
9409         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
9410         declarations.
9411         (pthread_mutex_timedlock): Move declaration.
9412         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
9413         declared.
9414         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
9415         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
9416         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
9417         HAVE_* and REPLACE_* variables for the new functions.
9418         * modules/pthread-h (Depends-on): Add snippet/c++defs,
9419         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
9420         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
9421         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
9422         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
9423         variables for the new functions. Split the sed script, to avoid the
9424         limit of 99 commands of HP-UX sed.
9425         * tests/test-pthread-c++.cc: Check the signature of the new functions.
9427 2019-07-14  Bruno Haible  <bruno@clisp.org>
9429         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
9430         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
9431         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
9432         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
9433         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
9434         * modules/pthread-h (Depends-on): Add threadlib.
9435         (Link): Change to $(LIBTHREAD).
9436         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
9437         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
9439 2019-07-14  Bruno Haible  <bruno@clisp.org>
9441         pthread-h: Add C++ tests.
9442         * tests/test-pthread-c++.cc: New file.
9443         * modules/pthread-h-c++-tests: New file.
9445 2019-07-14  Bruno Haible  <bruno@clisp.org>
9447         pthread-h: Add tests.
9448         * tests/test-pthread.c: New file.
9449         * modules/pthread-h-tests: New file.
9451 2019-07-14  Bruno Haible  <bruno@clisp.org>
9453         pthread-h: New module.
9454         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
9455         is 1.
9456         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
9457         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
9458         <pthread.h> pollutes the namespace; instead, prepare for generating a
9459         pthread.h always. Substitute HAVE_PTHREAD_H here.
9460         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
9461         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
9462         * modules/pthread-h: New file, based on modules/pthread.
9463         * modules/pthread: Rely on 'pthread-h'.
9464         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
9465         Update.
9466         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
9467         pthread.
9469 2019-07-14  Bruno Haible  <bruno@clisp.org>
9471         sched_yield: New module.
9472         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
9473         (sched_yield): New declaration.
9474         * lib/sched_yield.c: New file.
9475         * m4/sched_yield.m4: New file.
9476         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
9477         provide a replacement sched.h always. Test whether sched_yield is
9478         declared.
9479         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
9480         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
9481         (Makefile.am): Provide a replacement sched.h always. Substitute
9482         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
9483         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
9484         * modules/sched_yield: New file.
9485         * doc/posix-functions/sched_yield.texi: Mention the new module.
9487 2019-07-14  Bruno Haible  <bruno@clisp.org>
9489         windows-spin: New module.
9490         * lib/windows-spin.h: New file.
9491         * lib/windows-spin.c: New file.
9492         * modules/windows-spin: New file.
9494 2019-07-14  Bruno Haible  <bruno@clisp.org>
9496         windows-timedrwlock: New module.
9497         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
9498         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
9499         windows-cond.c.
9500         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
9501         redefinition conflict with windows-timedrwlock.h.
9502         * modules/windows-timedrwlock: New file.
9504 2019-07-14  Bruno Haible  <bruno@clisp.org>
9506         windows-rwlock: New module.
9507         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
9508         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
9509         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
9510         windows-initguard.h.
9511         (gl_rwlock_t): Define using glwthread_rwlock_t.
9512         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
9513         (glthread_rwlock_init): Define using glwthread_rwlock_init.
9514         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
9515         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
9516         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
9517         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
9518         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
9519         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
9520         glthread_rwlock_destroy_func): Remove declarations.
9521         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
9522         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
9523         gl_waitqueue_notify_all, glthread_rwlock_init_func,
9524         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
9525         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
9526         functions.
9527         * modules/windows-rwlock: New file.
9528         * modules/lock (Depends-on): Add windows-rwlock.
9530 2019-07-14  Bruno Haible  <bruno@clisp.org>
9532         windows-thread: Add support for creating a thread in detached state.
9533         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
9534         (glwthread_thread_create): Add attr argument.
9535         * lib/windows-thread.c (glwthread_thread_create): Likewise.
9536         * lib/glthread/thread.h (glthread_create): Update.
9537         * lib/thrd.c (thrd_create): Update.
9539 2019-07-14  Bruno Haible  <bruno@clisp.org>
9541         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
9542         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
9543         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
9544         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
9545         * lib/windows-mutex.h: Update.
9546         * lib/windows-recmutex.h: Likewise.
9547         * lib/windows-timedmutex.h: Likewise.
9548         * lib/windows-timedrecmutex.h: Likewise.
9549         * lib/windows-cond.h: Likewise.
9550         * lib/glthread/lock.h: Likewise.
9551         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
9552         lib/windows-spinlock.h.
9553         * modules/windows-recmutex (Files): Likewise.
9554         * modules/windows-timedmutex (Files): Likewise.
9555         * modules/windows-timedrecmutex (Files): Likewise.
9556         * modules/windows-cond (Files): Likewise.
9557         * modules/threads-h (Files): Likewise.
9559 2019-07-14  Bruno Haible  <bruno@clisp.org>
9561         doc: Fix info about pthread API in HP-UX.
9562         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
9564 2019-07-14  Bruno Haible  <bruno@clisp.org>
9566         threads-h: Fix generation of threads.h.
9567         * modules/threads-h (Makefile.am): Insert the required header file
9568         snippets.
9570 2019-07-09  Bruno Haible  <bruno@clisp.org>
9572         striconveh test: Fix a compilation failure when iconv is not available.
9573         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9574         * tests/test-striconveh.c (main): Move iconv_close invocations inside
9575         HAVE_ICONV.
9577 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
9579         argmatch: adjust columns for help2man.
9580         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
9581         requires column 20 or more, return 20.
9583 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
9585         areadlink-with-size: avoid realloc when size==0
9586         * lib/areadlink-with-size.c (areadlink_with_size):
9587         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
9588         Reallocate at the end to the actual size, to avoid memory waste,
9589         as suggested by Bruno Haible.  But when the guessed size is zero -
9590         useful when the size is unknown - do the initial small readlink
9591         into the stack, to avoid that realloc in the usual case.
9593 2019-07-06  Pádraig Brady  <P@draigBrady.com>
9595         areadlink-with-size: guess a buffer size with 0 size
9596         The size is usually taken from st_size, which can be zero,
9597         resulting in inefficient operation.
9598         Instead let zero select an initial memory allocation
9599         of 128 bytes, which most symlinks fit within.
9600         * lib/areadlink-with-size.c (areadlink_with_size):
9601         Start with a 128 byte buffer, for SIZE == 0.
9602         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
9604 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
9606         Replace manually crafted hex regexes with [:xdigit:]
9607         * build-aux/gitlog-to-changelog (parse_amend_file)
9608         (git_dir_option):
9609         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
9610         This patch is backported from Emacs (Bug#36167).
9612 2019-07-06  Bruno Haible  <bruno@clisp.org>
9614         error: Fix documentation.
9615         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
9616         module provides.
9617         * doc/glibc-functions/error_message_count.texi: Likewise.
9618         * doc/glibc-functions/error_one_per_line.texi: Likewise.
9619         * doc/glibc-functions/error_print_progname.texi: Likewise.
9621 2019-07-06  Bruno Haible  <bruno@clisp.org>
9623         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
9624         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
9625         and older is unsupported.
9626         * doc/**/*.texi: Update.
9628 2019-07-06  Bruno Haible  <bruno@clisp.org>
9630         doc: Remove documentation of Linux libc5 as a supported platform.
9631         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
9632         to Linux libc5.
9633         * doc/posix-functions/iswalpha.texi: Likewise.
9634         * doc/posix-functions/iswblank.texi: Likewise.
9635         * doc/posix-functions/iswcntrl.texi: Likewise.
9636         * doc/posix-functions/iswdigit.texi: Likewise.
9637         * doc/posix-functions/iswgraph.texi: Likewise.
9638         * doc/posix-functions/iswlower.texi: Likewise.
9639         * doc/posix-functions/iswprint.texi: Likewise.
9640         * doc/posix-functions/iswpunct.texi: Likewise.
9641         * doc/posix-functions/iswspace.texi: Likewise.
9642         * doc/posix-functions/iswupper.texi: Likewise.
9643         * doc/posix-functions/iswxdigit.texi: Likewise.
9644         * doc/posix-functions/snprintf.texi: Likewise.
9645         * doc/posix-functions/vsnprintf.texi: Likewise.
9647 2019-07-06  Bruno Haible  <bruno@clisp.org>
9649         doc: Remove documentation of Tandem/NSK as a supported platform.
9650         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
9651         Tandem/NSK.
9652         * doc/**/*.texi: Update.
9654 2019-07-06  Bruno Haible  <bruno@clisp.org>
9656         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
9657         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
9658         and older is unsupported.
9659         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
9660         Mac OS X 10.4 and older.
9661         * doc/posix-functions/asinl.texi: Likewise.
9662         * doc/posix-functions/atanl.texi: Likewise.
9663         * doc/posix-functions/cosl.texi: Likewise.
9664         * doc/posix-functions/expl.texi: Likewise.
9665         * doc/posix-functions/frexpl.texi: Likewise.
9666         * doc/posix-functions/gettimeofday.texi: Likewise.
9667         * doc/posix-functions/logl.texi: Likewise.
9668         * doc/posix-functions/mkstemp.texi: Likewise.
9669         * doc/posix-functions/sinl.texi: Likewise.
9670         * doc/posix-functions/sqrtl.texi: Likewise.
9671         * doc/posix-functions/tanl.texi: Likewise.
9672         * doc/posix-functions/wcswidth.texi: Likewise.
9673         * doc/**/*.texi: Update.
9675 2019-07-06  Bruno Haible  <bruno@clisp.org>
9677         doc: Remove documentation of AIX 4 as a supported platform.
9678         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
9679         unsupported.
9680         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
9681         workarounds.
9682         * doc/posix-functions/strnlen.texi: Likewise.
9683         * doc/posix-headers/inttypes.texi: Likewise.
9684         * doc/**/*.texi: Update.
9686 2019-07-06  Bruno Haible  <bruno@clisp.org>
9688         doc: Remove documentation of HP-UX 10 as a supported platform.
9689         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
9690         unsupported.
9691         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
9692         workarounds.
9693         * doc/posix-functions/gmtime_r.texi: Likewise.
9694         * doc/posix-functions/localtime_r.texi: Likewise.
9695         * doc/posix-functions/mkstemp.texi: Likewise.
9696         * doc/**/*.texi: Update.
9698 2019-07-06  Bruno Haible  <bruno@clisp.org>
9700         doc: Remove documentation of Interix 3.5 as a supported platform.
9701         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
9702         unsupported.
9703         * doc/posix-functions/select.texi: Don't mention Interix specific
9704         workarounds.
9705         * doc/posix-headers/signal.texi: Likewise.
9706         * doc/**/*.texi: Update.
9708 2019-07-06  Bruno Haible  <bruno@clisp.org>
9710         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
9711         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
9712         unsupported.
9713         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
9714         workarounds.
9715         * doc/posix-functions/nl_langinfo.texi: Likewise.
9716         * doc/posix-functions/remainder.texi: Likewise.
9717         * doc/posix-functions/towlower.texi: Likewise.
9718         * doc/posix-functions/towupper.texi: Likewise.
9719         * doc/posix-functions/vsnprintf.texi: Likewise.
9720         * doc/posix-functions/wcscat.texi: Likewise.
9721         * doc/posix-functions/wcschr.texi: Likewise.
9722         * doc/posix-functions/wcscmp.texi: Likewise.
9723         * doc/posix-functions/wcscpy.texi: Likewise.
9724         * doc/posix-functions/wcscspn.texi: Likewise.
9725         * doc/posix-functions/wcslen.texi: Likewise.
9726         * doc/posix-functions/wcsncat.texi: Likewise.
9727         * doc/posix-functions/wcsncmp.texi: Likewise.
9728         * doc/posix-functions/wcsncpy.texi: Likewise.
9729         * doc/posix-functions/wcspbrk.texi: Likewise.
9730         * doc/posix-functions/wcsrchr.texi: Likewise.
9731         * doc/posix-functions/wcsspn.texi: Likewise.
9732         * doc/posix-headers/langinfo.texi: Likewise.
9733         * doc/posix-headers/signal.texi: Likewise.
9734         * doc/posix-headers/wchar.texi: Likewise.
9735         * doc/posix-headers/wctype.texi: Likewise.
9736         * doc/**/*.texi: Update.
9738 2019-07-05  Bruno Haible  <bruno@clisp.org>
9740         doc: Remove documentation of OSF/1 as supported platform.
9741         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
9742         unsupported.
9743         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
9744         workarounds.
9745         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
9746         * doc/glibc-functions/ptsname_r.texi: Likewise.
9747         * doc/posix-functions/ceil.texi: Likewise.
9748         * doc/posix-functions/ceilf.texi: Likewise.
9749         * doc/posix-functions/ceill.texi: Likewise.
9750         * doc/posix-functions/fchdir.texi: Likewise.
9751         * doc/posix-functions/floor.texi: Likewise.
9752         * doc/posix-functions/floorf.texi: Likewise.
9753         * doc/posix-functions/fmod.texi: Likewise.
9754         * doc/posix-functions/fmodf.texi: Likewise.
9755         * doc/posix-functions/fmodl.texi: Likewise.
9756         * doc/posix-functions/log.texi: Likewise.
9757         * doc/posix-functions/logf.texi: Likewise.
9758         * doc/posix-functions/logl.texi: Likewise.
9759         * doc/posix-functions/log10.texi: Likewise.
9760         * doc/posix-functions/log10f.texi: Likewise.
9761         * doc/posix-functions/log10l.texi: Likewise.
9762         * doc/posix-functions/log2.texi: Likewise.
9763         * doc/posix-functions/log2f.texi: Likewise.
9764         * doc/posix-functions/log2l.texi: Likewise.
9765         * doc/posix-functions/mbrtowc.texi: Likewise.
9766         * doc/posix-functions/recv.texi: Likewise.
9767         * doc/posix-functions/recvfrom.texi: Likewise.
9768         * doc/posix-functions/remainder.texi: Likewise.
9769         * doc/posix-functions/remainderf.texi: Likewise.
9770         * doc/posix-functions/remainderl.texi: Likewise.
9771         * doc/posix-functions/round.texi: Likewise.
9772         * doc/posix-functions/roundf.texi: Likewise.
9773         * doc/posix-functions/roundl.texi: Likewise.
9774         * doc/posix-functions/send.texi: Likewise.
9775         * doc/posix-functions/sendto.texi: Likewise.
9776         * doc/posix-functions/setenv.texi: Likewise.
9777         * doc/posix-functions/snprintf.texi: Likewise.
9778         * doc/posix-functions/tcgetsid.texi: Likewise.
9779         * doc/posix-functions/trunc.texi: Likewise.
9780         * doc/posix-functions/truncf.texi: Likewise.
9781         * doc/posix-functions/truncl.texi: Likewise.
9782         * doc/posix-functions/ttyname_r.texi: Likewise.
9783         * doc/posix-functions/unsetenv.texi: Likewise.
9784         * doc/posix-functions/wcsrtombs.texi: Likewise.
9785         * doc/posix-headers/sys_select.texi: Likewise.
9786         * doc/posix-headers/wchar.texi: Likewise.
9787         * doc/posix-headers/wctype.texi: Likewise.
9788         * doc/**/*.texi: Update.
9790 2019-07-05  Bruno Haible  <bruno@clisp.org>
9792         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
9793         * doc/**/*.texi: Update.
9795 2019-07-05  Bruno Haible  <bruno@clisp.org>
9797         doc: Remove documentation of Solaris 8 and older as supported platforms.
9798         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
9799         unsupported.
9800         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
9801         workarounds.
9802         * doc/posix-functions/memcmp.texi: Likewise.
9803         * doc/posix-functions/rename.texi: Likewise.
9804         * doc/posix-functions/tzset.texi: Likewise.
9805         * doc/posix-headers/wctype.texi: Likewise.
9806         * doc/**/*.texi: Update.
9808 2019-07-05  Bruno Haible  <bruno@clisp.org>
9810         doc: Remove documentation of Interix 3.5 as a supported platform.
9811         * doc/**/*.texi: Update.
9813 2019-07-05  Bruno Haible  <bruno@clisp.org>
9815         doc: Remove documentation of BeOS as a supported platform.
9816         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
9817         unsupported.
9818         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
9819         * doc/posix-functions/getdelim.texi: Likewise.
9820         * doc/**/*.texi: Update.
9822 2019-07-05  Bruno Haible  <bruno@clisp.org>
9824         thread, lock, cond, tls: Remove support for Pth threads.
9825         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
9826         --enable-threads=pth any more.
9827         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
9828         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
9829         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
9830         threads and ISO C11 threads.
9831         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
9832         * lib/glthread/lock.h: Likewise.
9833         * lib/glthread/lock.c: Likewise.
9834         * lib/glthread/cond.h: Likewise.
9835         * lib/glthread/cond.c: Likewise.
9836         * lib/glthread/tls.h: Likewise.
9837         * lib/glthread/tls.c: Likewise.
9838         * lib/glthread/yield.h: Likewise.
9839         * lib/regex_internal.h: Likewise.
9840         * tests/test-thread_create.c: Likewise.
9841         * tests/test-lock.c: Likewise.
9842         * tests/test-cond.c: Likewise.
9843         * tests/test-tls.c: Likewise.
9844         * tests/test-rwlock1.c: Don't include glthread/yield.h.
9845         (main): Sleep without calling gl_thread_yield.
9847 2019-07-05  Bruno Haible  <bruno@clisp.org>
9849         thread, lock, cond, tls: Remove support for old Solaris threads.
9850         Solaris >= 2.5.1 has POSIX threads.
9851         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
9852         --enable-threads=solaris any more.
9853         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
9854         * lib/glthread/thread.c: Update comment.
9855         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
9856         * lib/glthread/lock.h: Likewise.
9857         * lib/glthread/lock.c: Likewise.
9858         * lib/glthread/cond.h: Likewise.
9859         * lib/glthread/cond.c: Likewise.
9860         * lib/glthread/tls.h: Likewise.
9861         * lib/glthread/tls.c: Likewise.
9862         * lib/glthread/yield.h: Likewise.
9863         * lib/regex_internal.h: Likewise.
9864         * tests/test-thread_create.c: Likewise.
9865         * tests/test-lock.c: Likewise.
9866         * tests/test-cond.c: Likewise.
9867         * tests/test-tls.c: Likewise.
9869 2019-07-05  Bruno Haible  <bruno@clisp.org>
9871         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
9872         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
9873         needed size is equal to the allocated size.
9874         * lib/getcwd.c (__getcwd): Likewise.
9876 2019-07-05  Bruno Haible  <bruno@clisp.org>
9878         xgetdomainname: Don't return an excessive memory allocation.
9879         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
9880         before returning it.
9882 2019-07-05  Bruno Haible  <bruno@clisp.org>
9884         xgethostname: Don't return an excessive memory allocation.
9885         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
9886         returning it.
9888 2019-07-05  Bruno Haible  <bruno@clisp.org>
9890         areadlinkat-with-size: Don't return an excessive memory allocation.
9891         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
9892         before returning it.
9894 2019-07-05  Bruno Haible  <bruno@clisp.org>
9896         areadlink-with-size: Don't return an excessive memory allocation.
9897         Reported by Andreas Dilger <adilger@whamcloud.com>.
9898         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
9899         before returning it.
9901 2019-07-03  Bruno Haible  <bruno@clisp.org>
9903         renameatu: Fix test failure on MSVC.
9904         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
9905         empty string.
9907 2019-07-03  Bruno Haible  <bruno@clisp.org>
9909         mbrtowc: Fix invalid use of mbtowc() on MSVC.
9910         * lib/mbrtowc.c: Include glthread/lock.h.
9911         (mbtowc_lock): New variable.
9912         (mbrtowc): Treat UTF-8 encoding without locking. For the other
9913         encodings, explicitly reset the internal state of mbtowc, and protect
9914         this through a lock.
9915         * modules/mbrtowc (Depends-on): Add lock.
9917 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
9919         argmatch: don't define _ in the header.
9920         Reported by Jim Meyering.
9921         * lib/argmatch.h (N_, _): Don't define.
9922         Use gettext instead.
9923         * lib/argmatch.h (_): Define.
9924         * tests/test-argmatch.c (N_): Define.
9926 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
9928         verify: document ‘assume’ better
9929         * lib/verify.h: Reword doc (Bug#36370).
9931 2019-07-02  Bruno Haible  <bruno@clisp.org>
9933         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
9934         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
9935         "CPutf8".
9936         * lib/nl_langinfo.c (ctype_codeset): Likewise.
9938 2019-07-02  Bruno Haible  <bruno@clisp.org>
9940         getcwd: Fix crash when invoked with size = 0 on MSVC.
9941         * lib/getcwd.c: Include msvc-inval.h.
9942         (getcwd_nothrow): New function/macro.
9943         (getcwd_system): New macro.
9944         (__getcwd): Use it instead of getcwd.
9945         * modules/getcwd (Depends-on): Add msvc-inval.
9946         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
9948 2019-07-02  Bruno Haible  <bruno@clisp.org>
9950         nonblocking-pipe tests: Fix test failure on MSVC.
9951         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
9952         native Windows.
9954 2019-07-02  Bruno Haible  <bruno@clisp.org>
9956         usleep: Implement with millisecond resolution on native Windows.
9957         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
9958         * doc/pastposix-functions/usleep.texi: Update accordingly.
9960 2019-07-02  Bruno Haible  <bruno@clisp.org>
9962         lstat tests: Fix test failure on MSVC.
9963         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
9964         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
9966 2019-07-02  Bruno Haible  <bruno@clisp.org>
9968         stat tests: Fix test failure on MSVC.
9969         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
9970         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
9972 2019-07-02  Bruno Haible  <bruno@clisp.org>
9974         getaddrinfo tests: Fix test failure on MSVC.
9975         * tests/test-getaddrinfo.c: Include sockets.h.
9976         (main): Invoke gl_sockets_startup.
9977         * modules/getaddrinfo-tests (Depends-on): Add sockets.
9979 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
9981         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
9982         * lib/poll.c: Call Windows native select() with Windows native timeval.
9984 2019-06-30  Bruno Haible  <bruno@clisp.org>
9986         argmatch: Fix compilation errors.
9987         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
9988         * tests/test-argmatch.c (main): Update after last-minute function names
9989         change.
9991 2019-06-30  Bruno Haible  <bruno@clisp.org>
9993         Include <stdlib.h> when needed.
9994         * lib/cnd.c: Include <stdlib.h>, needed for abort().
9995         * lib/fcntl.c: Likewise.
9996         * lib/mbscasestr.c: Likewise.
9997         * lib/mbssep.c: Likewise.
9998         * lib/mbsstr.c: Likewise.
9999         * lib/openat.c: Include <stdlib.h>, needed for free().
10000         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
10001         abort().
10003 2019-06-30  Bruno Haible  <bruno@clisp.org>
10005         Include <stdlib.h> when needed.
10006         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
10007         * lib/faccessat.c: Likewise.
10008         * lib/fchmodat.c: Likewise.
10009         * lib/fchownat.c: Likewise.
10010         * lib/fstatat.c: Likewise.
10011         * lib/mkfifoat.c: Likewise.
10012         * lib/mknodat.c: Likewise.
10013         * lib/readlinkat.c: Likewise.
10014         * lib/symlinkat.c: Likewise.
10015         * lib/utimensat.c: Likewise.
10016         * lib/mkdirat.c: Likewise. Include also the specification header.
10018 2019-06-30  Bruno Haible  <bruno@clisp.org>
10020         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
10021         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
10022         from gl_PREREQ_SYS_H_SOCKET.
10023         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
10024         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
10025         gl_PREREQ_SYS_H_WS2TCPIP.
10026         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
10027         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
10028         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
10030 2019-06-30  Bruno Haible  <bruno@clisp.org>
10032         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
10033         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
10034         REPLACE_INET_NTOP to 1 always.
10035         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
10036         REPLACE_INET_PTON to 1 always.
10038 2019-06-30  Bruno Haible  <bruno@clisp.org>
10040         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
10041         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
10042         not REPLACE_INET_NTOP.
10044 2019-06-30  Bruno Haible  <bruno@clisp.org>
10046         poll: Add comment.
10047         * lib/poll.c: Add comment about WSAPoll.
10049 2019-06-30  Bruno Haible  <bruno@clisp.org>
10051         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
10052         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
10053         * lib/poll.in.h: Include <winsock2.h>.
10054         (POLL*, pollfd): Override on native Windows.
10055         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
10056         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
10057         (Makefile.am): Substitute HAVE_WINSOCK2_H.
10059 2019-06-28  Bruno Haible  <bruno@clisp.org>
10061         accept4: Fix compilation error on OpenIndiana.
10062         Reported by Michal Nowak <mnowak@startmail.com>
10063         via Mark H Weaver <mhw@netris.org>.
10064         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
10065         whether it exists as a function.
10067 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
10069         strverscmp: sync from glibc
10070         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
10071         comments, include libc-config.h, define __strverscmp to be
10072         strverscmp, and don’t assume types line uint8_t and int8_t that
10073         that C99 doesn’t guarantee.
10074         [!_LIBC]: Include libc-config.h; define __strverscmp.
10075         Include stdint.h.
10076         (__strverscmp): Assume C99.  Use uint_least8_t
10077         and int_least8_t instead of unsigned char and signed char.
10078         * modules/strverscmp (Depends-on): Add libc-config, stdint.
10080 2019-06-25  Bruno Haible  <bruno@clisp.org>
10082         tss tests: Add tests for destructors and races.
10083         * tests/test-tss.c (worker_thread): Fix typo in debug message.
10084         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
10085         functions.
10086         (main): Invoke them.
10087         * modules/tls-tests (Depends-on): Add mtx.
10089 2019-06-25  Bruno Haible  <bruno@clisp.org>
10091         tls tests: Add tests for destructors and races.
10092         * tests/test-tls.c: Include glthread/lock.h.
10093         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
10094         functions.
10095         (main): Invoke them.
10096         * modules/tls-tests (Depends-on): Add lock.
10098 2019-06-25  Bruno Haible  <bruno@clisp.org>
10100         windows-tls: Implement TLS key destructors for native Windows.
10101         * lib/windows-tls.h (glwthread_tls_process_destructors): New
10102         declaration.
10103         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
10104         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
10105         (dtor_table_init_once, dtor_table_lock: New variables.
10106         (struct dtor): New type.
10107         (dtor_table, dtors_count, dtors_used, dtors_allocated,
10108         dtor_processing_threads): New variables.
10109         (dtor_table_initialize, dtor_table_ensure_initialized,
10110         dtor_table_shrink_used, glwthread_tls_process_destructors): New
10111         functions.
10112         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
10113         handle non-NULL destructors.
10114         * modules/windows-tls (Depends-on): Add windows-once.
10115         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
10116         Use the functions declared in windows-tls.h.
10117         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
10118         GLWTHREAD_DESTRUCTOR_ITERATIONS.
10119         * lib/windows-thread.c: Include windows-tls.h.
10120         (wrapper_func, glwthread_thread_exit): Invoke
10121         glwthread_tls_process_destructors.
10122         * modules/windows-thread (Depends-on): Add windows-tls.
10124 2019-06-25  Bruno Haible  <bruno@clisp.org>
10126         threadlib: Avoid autoconf warning "was expanded before it was required".
10127         * modules/threadlib (configure.ac): Require gl_THREADLIB.
10129 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
10131         argmatch: remove duplicate const qualifier
10132         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
10134 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
10136         unistd: stddef.h and sys/types.h namespace cleanup
10137         * lib/unistd.in.h [__GLIBC__]:
10138         Do not include stddef.h or sys/types.h.
10139         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
10140         supposed to declare off_t and ssize_t.  Problem found when looking
10141         at why @GNULIB_PWRITE@ was different from the newly-added
10142         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
10144 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
10146         maintainer-makefile: restore portability to non-GNU awks
10147         Reported by Tim Rühsen.
10148         * top/maint.mk (AWK): New variable.  Use it.
10149         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
10151 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
10153         Document setvbuf _IOLBF problem
10154         * doc/posix-functions/setvbuf.texi (setvbuf):
10155         Document MS-Windows portability problem with _IOLBF.
10157         Document lseek SEEK_DATA/SEEK_HOLE
10158         * doc/posix-functions/lseek.texi (lseek):
10159         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
10161 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
10163         argmatch: put all the docs member last.
10164         Reported by Bruno Haible.
10165         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
10166         member before the docs done.
10167         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
10169 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
10171         argmatch: add support to generate the usage message.
10172         * lib/argmatch.c: Move some #includes and gettext support to...
10173         * lib/argmatch.h: here.
10174         (ARGMATCH_DEFINE_GROUP): New macro.
10175         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
10176         (argmatch_backup_group): New.
10177         (CHECK): New.
10178         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
10179         argmatch_backup_argument and argmatch_backup_usage.
10180         * modules/argmatch: We depend on c99.
10181         * doc/argmatch.texi (Recognizing Option Arguments): New.
10182         * doc/gnulib.texi: Use it.
10184 2019-06-21  Bruno Haible  <bruno@clisp.org>
10186         thrd: Add comment.
10187         * lib/thrd.c (pthread_main_func): Add comment.
10189 2019-06-21  Bruno Haible  <bruno@clisp.org>
10191         threads-h: Define 'thread_local' if and only if it actually works.
10192         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
10193         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
10194         Oracle Solaris Studio C. Compile a simple program, to see whether
10195         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
10196         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
10197         * lib/threads.in.h (thread_local): Undefine if it does not work.
10198         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
10199         (Link): Mention LIBTHREADLOCAL.
10200         * tests/test-threads.c: Don't check that thread_local is defined.
10201         * tests/test-thread_local.c: New file.
10202         * modules/threads-h-tests (Files): Add it and macros.h.
10203         (Depends-on): Add thrd and stdint.
10204         (configure.ac): Test whether 'alarm' is declared.
10205         (Makefile.am): Arrange to build and link test-thread_local.
10206         * doc/posix-headers/threads.texi: Mention the platforms that don't
10207         support 'thread_local'.
10209 2019-06-20  Bruno Haible  <bruno@clisp.org>
10211         threads-h: Simplify link dependencies.
10212         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
10213         Don't set LTLIBSTDTHREAD.
10214         * modules/thrd (Link): Simplify accordingly.
10215         * modules/mtx (Link): Likewise.
10216         * modules/cnd (Link): Likewise.
10217         * modules/tss (Link): Likewise.
10218         * modules/threads (Link): Likewise.
10220 2019-06-20  Bruno Haible  <bruno@clisp.org>
10222         threads-h: Fix link error on FreeBSD 11.
10223         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
10224         also with -lpthread.
10226 2019-06-20  Bruno Haible  <bruno@clisp.org>
10228         threadlib: Fix typo (regression from today).
10229         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
10231 2019-06-20  Bruno Haible  <bruno@clisp.org>
10233         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
10234         * lib/windows-thread.c: Include <errno.h>.
10235         * lib/windows-tls.c: Likewise.
10237 2019-06-20  Bruno Haible  <bruno@clisp.org>
10239         tss tests: Small improvement.
10240         * tests/test-tss.c (test_tss): Pass a different id to each thread.
10242 2019-06-20  Bruno Haible  <bruno@clisp.org>
10244         threads: New module.
10245         * modules/threads: New file.
10247 2019-06-20  Bruno Haible  <bruno@clisp.org>
10249         tss: Add tests.
10250         * tests/test-tss.c: New file, based on tests/test-tls.c.
10251         * modules/tss-tests: New file.
10253 2019-06-20  Bruno Haible  <bruno@clisp.org>
10255         cnd: Add tests.
10256         * tests/test-cnd.c: New file, based on tests/test-cond.c.
10257         * modules/cnd-tests: New file.
10259 2019-06-20  Bruno Haible  <bruno@clisp.org>
10261         mtx: Add tests.
10262         * tests/test-mtx.c: New file, based on tests/test-lock.c.
10263         * tests/test-call_once.c: New file, based on tests/test-once.c.
10264         * modules/mtx-tests: New file.
10266 2019-06-20  Bruno Haible  <bruno@clisp.org>
10268         thrd: Add tests.
10269         * tests/test-thrd_create.c: New file, based on
10270         tests/test-thread_create.c.
10271         * tests/test-thrd_current.c: New file, based on
10272         tests/test-thread_self.c.
10273         * modules/thrd-tests: New file.
10275 2019-06-20  Bruno Haible  <bruno@clisp.org>
10277         tss: New module.
10278         * lib/tss.c: New file.
10279         * modules/tss: New file.
10280         * doc/posix-functions/tss_create.texi: Mention the new module.
10281         * doc/posix-functions/tss_set.texi: Likewise.
10282         * doc/posix-functions/tss_get.texi: Likewise.
10283         * doc/posix-functions/tss_delete.texi: Likewise.
10285 2019-06-20  Bruno Haible  <bruno@clisp.org>
10287         cnd: New module.
10288         * lib/cnd.c: New file.
10289         * modules/cnd: New file.
10290         * doc/posix-functions/cnd_init.texi: Mention the new module.
10291         * doc/posix-functions/cnd_wait.texi: Likewise.
10292         * doc/posix-functions/cnd_timedwait.texi: Likewise.
10293         * doc/posix-functions/cnd_signal.texi: Likewise.
10294         * doc/posix-functions/cnd_broadcast.texi: Likewise.
10295         * doc/posix-functions/cnd_destroy.texi: Likewise.
10297 2019-06-20  Bruno Haible  <bruno@clisp.org>
10299         mtx: New module.
10300         * lib/mtx.c: New file.
10301         * modules/mtx: New file.
10302         * doc/posix-functions/call_once.texi: Mention the new module.
10303         * doc/posix-functions/mtx_init.texi: Likewise.
10304         * doc/posix-functions/mtx_lock.texi: Likewise.
10305         * doc/posix-functions/mtx_trylock.texi: Likewise.
10306         * doc/posix-functions/mtx_timedlock.texi: Likewise.
10307         * doc/posix-functions/mtx_unlock.texi: Likewise.
10308         * doc/posix-functions/mtx_destroy.texi: Likewise.
10310 2019-06-20  Bruno Haible  <bruno@clisp.org>
10312         thrd: New module.
10313         * lib/thrd.c: New file.
10314         * m4/thrd.m4: New file.
10315         * modules/thrd: New file.
10316         * doc/posix-functions/thrd_current.texi: Mention the new module.
10317         * doc/posix-functions/thrd_detach.texi: Likewise.
10318         * doc/posix-functions/thrd_equal.texi: Likewise.
10319         * doc/posix-functions/thrd_exit.texi: Likewise.
10320         * doc/posix-functions/thrd_sleep.texi: Likewise.
10321         * doc/posix-functions/thrd_yield.texi: Likewise.
10322         * doc/posix-functions/thrd_create.texi: Mention the new module and the
10323         AIX bug.
10324         * doc/posix-functions/thrd_join.texi: Mention the new module and the
10325         AIX and Solaris bugs.
10327 2019-06-20  Bruno Haible  <bruno@clisp.org>
10329         threads-h: Add tests.
10330         * tests/test-threads.c: New file.
10331         * modules/threads-h-tests: New file.
10332         * tests/test-threads-c++.cc: New file.
10333         * modules/threads-h-c++-tests: New file.
10335 2019-06-20  Bruno Haible  <bruno@clisp.org>
10337         threads-h: New module.
10338         * lib/threads.in.h: New file.
10339         * m4/threads.m4: New file.
10340         * m4/yield.m4 (gl_YIELD): Update comment.
10341         * modules/threads-h: New file.
10342         * modules/yields (configure.ac): Use AC_REQUIRE.
10343         * doc/posix-headers/threads.texi: Mention the new module and the AIX
10344         bugs.
10346 2019-06-20  Bruno Haible  <bruno@clisp.org>
10348         windows-thread: New module.
10349         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
10350         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
10351         * lib/glthread/thread.h: Include windows-thread.h.
10352         (gl_thread_t): Define using glwthread_thread_t.
10353         (glthread_create): Define using glwthread_thread_create.
10354         (glthread_join): Define using glwthread_thread_join.
10355         (gl_thread_self): Define using glwthread_thread_self.
10356         (gl_thread_exit): Define using glwthread_thread_exit.
10357         (glthread_create_func, glthread_join_func, gl_thread_self_func,
10358         gl_thread_exit_func): Remove declarations.
10359         * lib/glthread/thread.c (self_key): Remove variable.
10360         (do_init_self_key, init_self_key): Remove functions.
10361         (struct gl_thread_struct): Remove type.
10362         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
10363         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
10364         functions.
10365         * modules/windows-thread: New file.
10366         * modules/thread (Depends-on): Add windows-thread.
10368 2019-06-20  Bruno Haible  <bruno@clisp.org>
10370         windows-tls: New module.
10371         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
10372         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
10373         * lib/glthread/tls.h: Include windows-tls.h.
10374         (gl_tls_key_t): Define using glwthread_tls_key_t.
10375         * modules/windows-tls: New file.
10376         * modules/tls (Depends-on): Add windows-tls.
10378 2019-06-20  Bruno Haible  <bruno@clisp.org>
10380         windows-cond: New module.
10381         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
10382         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
10383         * lib/glthread/cond.h: Include windows-cond.h.
10384         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
10385         (gl_cond_t): Define using glwthread_cond_t.
10386         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
10387         (glthread_cond_init): Define using glwthread_cond_init.
10388         (glthread_cond_wait): Define using glwthread_cond_wait.
10389         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
10390         (glthread_cond_signal): Define using glwthread_cond_signal.
10391         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
10392         (glthread_cond_destroy): Define using glwthread_cond_destroy.
10393         (glthread_cond_init_func, glthread_cond_wait_func,
10394         glthread_cond_timedwait_func, glthread_cond_signal_func,
10395         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
10396         declarations.
10397         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
10398         types.
10399         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
10400         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
10401         glthread_cond_init_func, glthread_cond_wait_func,
10402         glthread_cond_timedwait_func, glthread_cond_signal_func,
10403         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
10404         functions.
10405         * modules/windows-cond: New file.
10406         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
10408 2019-06-20  Bruno Haible  <bruno@clisp.org>
10410         windows-timedrecmutex: New module.
10411         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
10412         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
10413         * modules/windows-timedrecmutex: New file.
10415 2019-06-20  Bruno Haible  <bruno@clisp.org>
10417         windows-timedmutex: New module.
10418         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
10419         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
10420         * modules/windows-timedmutex: New file.
10422 2019-06-20  Bruno Haible  <bruno@clisp.org>
10424         windows-recmutex: New module.
10425         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
10426         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
10427         * lib/glthread/lock.h: Include windows-recmutex.h.
10428         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
10429         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
10430         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
10431         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
10432         (glthread_recursive_lock_unlock): Define using
10433         glwthread_recmutex_unlock.
10434         (glthread_recursive_lock_destroy): Define using
10435         glwthread_recmutex_destroy.
10436         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
10437         glthread_recursive_lock_unlock_func,
10438         glthread_recursive_lock_destroy_func): Remove declarations.
10439         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
10440         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
10441         glthread_recursive_lock_destroy_func): Remove functions.
10442         * modules/windows-recmutex: New file.
10443         * modules/lock (Depends-on): Add windows-recmutex.
10445 2019-06-20  Bruno Haible  <bruno@clisp.org>
10447         windows-mutex: New module.
10448         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
10449         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
10450         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
10451         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
10452         (gl_spinlock_t): Remove type.
10453         (gl_lock_t): Define using glwthread_mutex_t.
10454         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
10455         (glthread_lock_init): Define using glwthread_mutex_init.
10456         (glthread_lock_lock): Define using glwthread_mutex_lock.
10457         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
10458         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
10459         (glthread_lock_init_func, glthread_lock_lock_func,
10460         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
10461         declarations.
10462         Use glwthread_spinlock_t instead of gl_spinlock_t.
10463         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
10464         GLWTHREAD_SPINLOCK_INIT.
10465         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
10466         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
10467         functions.
10468         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
10469         gl_spinlock_t.
10470         * modules/windows-mutex: New file.
10471         * modules/lock (Depends-on): Add windows-mutex.
10473 2019-06-20  Bruno Haible  <bruno@clisp.org>
10475         windows-once: New module.
10476         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
10477         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
10478         * lib/glthread/lock.h: Include windows-once.h.
10479         (gl_once_t): Define using glwthread_once_t.
10480         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
10481         (glthread_once): Define using glwthread_once.
10482         (glthread_once_func): Remove declaration.
10483         * lib/glthread/lock.c (glthread_once_func): Remove function.
10484         * modules/windows-once: New file.
10485         * modules/lock (Depends-on): Add windows-once.
10487 2019-06-20  Bruno Haible  <bruno@clisp.org>
10489         lock, cond: Avoid possible counter wraparound on Windows.
10490         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
10491         field of the guard unchanged if it was already positive.
10492         (glthread_rwlock_rdlock_func): Likewise.
10493         (glthread_rwlock_wrlock_func): Likewise.
10494         (glthread_recursive_lock_lock_func): Likewise.
10495         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
10496         (glthread_cond_timedwait_func): Likewise.
10498 2019-06-20  Bruno Haible  <bruno@clisp.org>
10500         cond: Make glthread_cond_timedwait more reliable on Windows.
10501         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
10502         condition variable before looking at the current time.
10504 2019-06-20  Bruno Haible  <bruno@clisp.org>
10506         pthread_mutex_timedlock: New module.
10507         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
10508         new declaration.
10509         * lib/pthread_mutex_timedlock.c: New file.
10510         * m4/pthread_mutex_timedlock.m4: New file.
10511         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
10512         whether pthread_mutex_timedlock is declared.
10513         (gl_PTHREAD_MODULE_INDICATOR): New macro.
10514         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
10515         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
10516         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
10517         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
10518         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
10519         * modules/pthread_mutex_timedlock: New file.
10520         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
10521         module.
10523 2019-06-20  Bruno Haible  <bruno@clisp.org>
10525         thread, lock, cond, tls: Recognize C11 multithreaded applications.
10526         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
10527         * lib/glthread/thread.h (c11_threads_in_use): New macro.
10528         (pthread_in_use, pth_in_use, thread_in_use): Use it.
10529         * lib/glthread/lock.h (c11_threads_in_use): New macro.
10530         (pthread_in_use, pth_in_use, thread_in_use): Use it.
10531         * lib/glthread/cond.h (c11_threads_in_use): New macro.
10532         (pthread_in_use, pth_in_use, thread_in_use): Use it.
10533         * lib/glthread/tls.h (c11_threads_in_use): New macro.
10534         (pthread_in_use, pth_in_use, thread_in_use): Use it.
10536 2019-06-20  Bruno Haible  <bruno@clisp.org>
10538         tls tests: Small improvements.
10539         * tests/test-tls.c: Include <stdint.h>.
10540         (worker_thread): Avoid gcc warning on 64-bit mingw.
10541         (test_tls): Pass a different id to each thread.
10542         * modules/tls-tests (Depends-on): Add stdint.
10544 2019-06-20  Bruno Haible  <bruno@clisp.org>
10546         cond tests: Simplify.
10547         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
10549 2019-06-20  Bruno Haible  <bruno@clisp.org>
10551         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
10552         * tests/test-lock.c (test_once): Don't reference fire_signal if
10553         !ENABLE_LOCKING.
10555 2019-06-19  Bruno Haible  <bruno@clisp.org>
10557         nanosleep: Relicense under LGPLv2+.
10558         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
10559         * modules/nanosleep (License): Change to LGPLv2+.
10561 2019-06-19  Bruno Haible  <bruno@clisp.org>
10563         Reorder pieces of header in perl scripts.
10564         The desired order is
10565         - Prologue part 1 (2 lines with #!)
10566         - Program short description
10567         - Copyright and license notice
10568         - Written-by notice
10569         - Program short description (optional)
10570         - Program long description (optional)
10571         - Prologue part 2
10572         - Time stamp
10573         - Code
10574         Reported by Paul Eggert.
10575         * build-aux/announce-gen: Reorder header.
10576         * build-aux/gitlog-to-changelog: Likewise.
10577         * build-aux/useless-if-before-free: Likewise.
10578         * build-aux/prefix-gnulib-mk: Add copyright notice and short
10579         description.
10580         * build-aux/update-copyright: Likewise. Add short description. Bump
10581         time-stamp-line-limit to 200.
10583 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
10585         verify-tests: work around xlc bug
10586         Problem reported by Bruno Haible in:
10587         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
10588         * tests/test-verify.c (item): Move the arithmetic inside the
10589         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
10591 2019-06-16  Bruno Haible  <bruno@clisp.org>
10593         Restore Emacs time-stamp hook applicability.
10594         Reported by Darshit Shah <darnir@gnu.org>.
10595         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
10596         * build-aux/announce-gen: Likewise.
10597         * build-aux/gitlog-to-changelog: Likewise.
10598         * build-aux/prefix-gnulib-mk: Likewise.
10599         * build-aux/update-copyright: Likewise.
10601 2019-06-15  Bruno Haible  <bruno@clisp.org>
10603         Fix scripts to have valid executable format on Alpine Linux.
10604         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
10605         Idea by Paul Eggert.
10606         * build-aux/useless-if-before-free: Use a prologue that starts with
10607         '#!/bin/sh'.
10608         * build-aux/announce-gen: Likewise.
10609         * build-aux/gitlog-to-changelog: Likewise.
10610         * build-aux/prefix-gnulib-mk: Likewise.
10611         * build-aux/update-copyright: Likewise.
10612         * tests/test-update-copyright.sh: Update test program accordingly.
10614 2019-06-10  Bruno Haible  <bruno@clisp.org>
10616         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
10617         Reported by Nikita Ermakov <arei@altlinux.org> in
10618         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
10619         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
10620         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
10622 2019-06-10  Bruno Haible  <bruno@clisp.org>
10624         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
10625         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
10626         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
10627         a copy of the path argument.
10628         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
10629         it.
10631 2019-06-10  Bruno Haible  <bruno@clisp.org>
10633         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
10634         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
10635         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
10636         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
10637         a copy of the path argument.
10638         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
10639         it.
10641 2019-06-10  Bruno Haible  <bruno@clisp.org>
10643         posix_spawn_file_actions_addfchdir: Add tests.
10644         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
10645         * tests/test-posix_spawn5.c: New file.
10646         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
10648 2019-06-10  Bruno Haible  <bruno@clisp.org>
10650         posix_spawn_file_actions_addfchdir: New module.
10651         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
10652         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
10653         union member 'fchdir_action'.
10654         * lib/spawn_faction_addfchdir.c: New file.
10655         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
10656         * m4/posix_spawn_faction_addfchdir.m4: New file.
10657         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
10658         'posix_spawn_file_actions_addfchdir' is present and whether
10659         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
10660         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
10661         posix_spawn_file_actions_addfchdir is declared.
10662         (gl_SPAWN_H_DEFAULTS): Initialize
10663         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
10664         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
10665         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
10666         * modules/spawn (Makefile.am): Substitute
10667         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
10668         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
10669         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
10670         * modules/posix_spawn_file_actions_addfchdir: New file.
10671         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
10672         signature.
10673         * doc/posix-functions/posix_spawn.texi: Mention the new module.
10674         * doc/posix-functions/posix_spawnp.texi: Likewise.
10675         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
10676         Likewise.
10678 2019-06-10  Bruno Haible  <bruno@clisp.org>
10680         doc: Document existence of posix_spawn_file_actions_addchdir module.
10681         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
10682         the posix_spawn_file_actions_addchdir module.
10684 2019-06-10  Bruno Haible  <bruno@clisp.org>
10686         posix_spawn-internal: Fix module description.
10687         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
10688         from here...
10689         * modules/posix_spawnp (configure.ac): ... and here...
10690         * modules/posix_spawn-internal (configure.ac): ... to here.
10692 2019-06-10  Bruno Haible  <bruno@clisp.org>
10694         doc: Update and improve documentation of glibc functions.
10695         This is a series of commits that
10696         - updates the documentation to the state of glibc 2.29,
10697         - adds references to Linux man pages and glibc documentation,
10698         - marks Linux specific functions as such.
10699         These are the commits:
10700         doc: Update after removal of crypt functions from glibc 2.28.
10701         doc: Remove mention of function vm86 (does not exist on x86_64).
10702         doc: Remove mention of functions that are gone from glibc.
10703         doc: Mention that glibc no longer provides h_errno.
10704         doc: Mention the availability of specific functions in glibc versions.
10705         doc: Mention eaccess.
10706         doc: Add references to Linux man pages.
10707         doc: Add references to glibc documentation.
10708         doc: Mention inotify_* functions.
10709         doc: Mention ppoll.
10710         doc: Mention sched_getcpu.
10711         doc: Mention sync_file_range.
10712         doc: Mention epoll_pwait.
10713         doc: Mention eventfd, eventfd_read, eventfd_write.
10714         doc: Mention signalfd.
10715         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
10716         doc: Mention epoll_create1.
10717         doc: Mention getauxval.
10718         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
10719         doc: Mention nextdown, nextup.
10720         doc: Mention more ISO TS 18661-1 <math.h> functions.
10721         doc: Mention ISO TS 18661-1 <fenv.h> functions.
10722         doc: Mention getrandom, getentropy.
10723         doc: Mention strfromf, strfromd, strfroml.
10724         doc: Mention preadv2, pwritev2.
10725         doc: Mention copy_file_range.
10726         doc: Mention memfd_create.
10727         doc: Mention mlock2.
10728         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
10729         doc: Mention more ISO TS 18661-1 <math.h> functions.
10730         doc: Mention renameat2.
10731         doc: Mention statx.
10732         doc: Mention the ISO C11 multithreading header and functions.
10733         doc: Mention getcpu.
10734         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
10735         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
10736         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
10737         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
10738         doc: Some glibc functions also exist on Solaris 11.
10739         doc: Some glibc functions also exist on Solaris 11.4.
10740         doc: Some glibc functions also exist on FreeBSD.
10741         doc: Some glibc functions also exist on BeOS.
10742         doc: Some glibc functions also exist on Haiku.
10743         doc: Mark functions which exist only on Linux.
10744         doc: Mark functions which exist only on Linux and illumos.
10746 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
10748         copy-file: fix typo
10749         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
10751         copy-file-range: simplify into a stub
10752         Based on a comment by Florian Weimer in:
10753         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
10754         It turns out that Emacs (which will use this module) won’t need an
10755         emulation and I suspect other programs won’t either, because these
10756         programs will need to fall back on read+write anyway.  Perhaps I
10757         am wrong and other programs will be able to use an emulation; if
10758         so, this patch can be reverted.
10759         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
10760         Just call it copy_file_range.
10761         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
10762         Check via AC_LINK_IFELSE.
10763         * modules/copy-file-range (Depends-on): Remove modules no longer used.
10765 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
10767         copy-file: prefer copy_file_range
10768         * lib/copy-file.c: Do not include xalloc.h.
10769         (qcopy_file_preserving): Allocate a buffer only if
10770         copy_file_range does not suffice.  If the allocation fails
10771         don't give up; just use a small stack-based buffer.
10772         Prefer copy_file_range if it works.
10773         * modules/copy-file (Depends-on): Add copy-file-range.
10774         Remove xalloc.
10776         copy-file-range: new module
10777         * MODULES.html.sh: Add copy-file-range.
10778         * lib/copy-file-range.c, m4/copy-file-range.m4:
10779         * modules/copy-file-range: New files.
10780         * lib/unistd.in.h (copy_file_range): Declare.
10781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
10782         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
10783         * modules/unistd (unistd.h): Substitute them.
10785 2019-05-28  Bruno Haible  <bruno@clisp.org>
10787         binary-io: Attempted use of O_BINARY on consoles no longer fails.
10788         Reported by KO Myung-Hun <komh78@gmail.com> in
10789         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
10790         * lib/binary-io.h (__gl_setmode_check): Remove function.
10791         (set_binary_mode): Declare as notinline on DJGPP and EMX.
10792         * lib/binary-io.c (__gl_setmode_check): Remove function.
10793         (set_binary_mode): Define here on DJGPP and EMX. Inline
10794         __gl_setmode_check. In case of a tty, don't return an error code.
10796 2019-05-28  James Youngman  <jay@gnu.org>
10798         dirent-safer: Make opendir_safer usable from C++.
10799         * lib/dirent-safer.h: use extern "C".
10801 2019-05-28  James Youngman  <jay@gnu.org>
10803         canonicalize: Make canonicalize_filename_mode usable from C++.
10804         * lib/canonicalize.h: use extern "C".
10806 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
10808         prefix-gnulib-mk: Fix CPPFLAGS migration.
10809         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
10810         _a part of the library name.
10812 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
10814         flexmember: update comments again
10815         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
10817         flexmember: update comment
10818         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
10820 2019-05-20  Bruno Haible  <bruno@clisp.org>
10822         setlocale: Improve fallback on macOS.
10823         * lib/setlocale.c (search): Optimize away a redundant strcmp()
10824         invocation.
10825         (locales_with_principal_territory): New array.
10826         (langcmp, get_main_locale_with_same_language): New functions.
10827         (locales_with_principal_language): New array.
10828         (terrcmp, get_main_locale_with_same_territory): New functions.
10829         (rpl_setlocale): When setlocale_single failed, try again with a locale
10830         that is more likely to exist. Don't warn if the environment variable
10831         SETLOCALE_VERBOSE is not set.
10833 2019-05-19  Bruno Haible  <bruno@clisp.org>
10835         localename: Fix default on macOS.
10836         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
10837         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
10838         (gl_locale_name_environ, gl_locale_name_default): Remove code for
10839         HAVE_CFLOCALECOPYCURRENT.
10840         * lib/localename.h (gl_locale_name_default): Update.
10842 2019-05-19  Karl Berry  <karl@freefriends.org>
10844         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
10845         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
10846         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
10848 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
10850         maintainer-makefile: catch uses of $< in non-implicit rules
10851         * top/maint.mk (sc_prohibit_magic_number_exit): New.
10853 2019-05-18  Bruno Haible  <bruno@clisp.org>
10855         threadlib: Provide an easy way to avoid mingw's winpthreads library.
10856         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
10857         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
10858         gl_use_threads accordingly.
10860 2019-05-18  Bruno Haible  <bruno@clisp.org>
10862         pthread_sigmask: Fix compilation error with --enable-threads=windows.
10863         Reported by Tim Rühsen in
10864         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
10865         and Michele Locati in
10866         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
10867         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
10868         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
10869         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
10870         in use and regardless which threads API is chosen.
10872 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
10874         close-stream, closein, closeout: simplify
10875         I noticed this opportunity for simplification while drafting a
10876         new, related module that I haven’t had time to finish yet.
10877         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
10878         * modules/close-stream (Files): Remove m4/close-stream.m4.
10879         (configure.ac): Omit gl_CLOSE_STREAM.
10880         * modules/closein (Files): Remove m4/closein.m4
10881         (configure.ac): Omit gl_CLOSEIN.
10882         * modules/closeout (Files): Remove m4/closeout.m4.
10883         (configure.ac): Omit gl_CLOSEOUT.
10885 2019-05-12  Bruno Haible  <bruno@clisp.org>
10887         libtool-next-version: New program.
10888         * build-aux/libtool-next-version: New file.
10890 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
10891             Bruno Haible  <bruno@clisp.org>
10893         version-etc: Ease translation.
10894         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
10895         URLs and formatting newlines out of translatable string.
10897 2019-05-11  Bruno Haible  <bruno@clisp.org>
10899         gnupload: Explain how to create symlinks.
10900         * build-aux/gnupload (usage): Add an example that creates symlinks.
10902 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
10904         fpucw: port to gcc -pedantic
10905         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
10906         Use __extension__ if using ({ ... }).
10908         crypto/af_alg: port to strict C compilers
10909         * lib/af_alg.c: Include af_alg.h regardless, so that the
10910         compilation unit is nonempty.
10912 2019-05-10  Bruno Haible  <bruno@clisp.org>
10914         base64: Avoid false positive warning from Coverity.
10915         Reported by Kamil Dudka <kdudka@redhat.com>.
10916         Idea by Paul Eggert.
10917         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
10918         '& 0x3f' to the array index expressions. This convinces Coverity that
10919         there is no out-of-bounds array reference, regardless of the input.
10921 2019-05-09  Bruno Haible  <bruno@clisp.org>
10923         gettext: Update to gettext 0.20.
10924         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
10925         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
10926         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
10927         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
10928         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
10929         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
10930         (configure.ac): Request infrastructure compatible with gettext 0.20.
10931         * m4/glibc2.m4: Remove file.
10932         * m4/intdiv0.m4: Remove file.
10933         * m4/intl.m4: Remove file.
10934         * m4/intldir.m4: Remove file.
10935         * m4/intmax.m4: Remove file.
10936         * m4/printf-posix.m4: Remove file.
10937         * m4/uintmax_t.m4: Remove file.
10938         * m4/gettext.m4: Update from gettext 0.20.
10939         * m4/po.m4: Likewise.
10941 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
10943         verify: remove verify_true
10944         * NEWS: Mention this.
10945         * lib/verify.h (verify_true): Remove.
10946         * tests/test-verify.c (item): Test verify_expr, not verify_true.
10948         Support C2X and C++17 static_assert
10949         C2X and C++17 finally added support for a simple, single-argument
10950         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
10951         doing back in 2005.  Implement static_assert on older platforms.
10952         The only remaining advantage of ‘verify’ is a shorter name.
10953         * doc/posix-headers/assert.texi (assert.h):
10954         * doc/verify.texi (Compile-time Assertions):
10955         Modernize for C2X and C++17.
10956         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
10957         New macros.
10958         (_GL_HAVE__STATIC_ASSERT): Remove.
10959         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
10960         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
10961         string.  All callers changed.
10962         (_GL_VERIFY): Require 3 or more args, of which only the first 2
10963         are used.  All callers changed.
10964         (_Static_assert): Allow either 1 or 2 args, and define if
10965         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
10966         !_GL_HAVE__STATIC_ASSERT.
10967         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
10968         of defining if !_GL_HAVE_STATIC_ASSERT.
10969         (verify_expr, verify): Don’t bother trying to copy the expression
10970         into the diagnostic, since 1-argument static_assert doesn’t.
10971         (verify): Prefer 1-argument _Static_assert if it works.
10972         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
10974 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
10976         Fix _GL_HAVE__STATIC_ASSERT typo
10977         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
10978         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
10980 2019-05-05  Bruno Haible  <bruno@clisp.org>
10982         wcwidth: Ensure width 1, not 2, for ambiguous characters.
10983         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
10984         via Akim Demaille <akim.demaille@gmail.com>.
10985         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
10986         en_US.UTF-8 locale, since that is more likely to be present than an
10987         fr_FR.UTF-8 locale.
10988         * tests/test-wcwidth.c (main): Check the width of U+2202.
10989         * doc/posix-functions/wcwidth.texi: Mention the issue.
10991 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
10993         Port manywarnings to GCC 9
10994         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
10995         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
10996         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
10997         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
10998         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
10999         --help=warnings output.
11000         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
11001         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
11002         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
11004 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
11006         Sync lib/mktime-internal.h from glibc
11007         * config/srclist.txt: Add entry for lib/mktime-internal.h.
11008         * lib/mktime-internal.h: Autoupdate.
11010 2019-04-28  Bruno Haible  <bruno@clisp.org>
11012         tls tests: Prevent that the test takes too long.
11013         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
11014         (main): Let the test fail if it takes more than 10 minutes.
11015         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
11017 2019-04-27  Bruno Haible  <bruno@clisp.org>
11019         lock tests: Prevent that the test takes too long.
11020         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
11021         (main): Let the test fail if it takes more than 10 minutes.
11022         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
11024 2019-04-27  Bruno Haible  <bruno@clisp.org>
11026         localename: Fix crash on mingw (regression from 2018-11-23).
11027         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
11028         locale name that is null.
11030 2019-04-27  Bruno Haible  <bruno@clisp.org>
11032         Fix gcc warnings on 64-bit mode mingw.
11033         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
11034         * lib/gl_array_list.c: Likewise.
11035         * lib/gl_array_map.c: Likewise.
11036         * lib/gl_array_set.c: Likewise.
11037         * lib/gl_carray_list.c: Likewise.
11038         * lib/gl_sublist.c: Likewise.
11039         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
11040         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
11041         * lib/gl_hash_map.c (uintptr_t): Likewise.
11042         * lib/gl_hash_set.c (uintptr_t): Likewise.
11043         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
11044         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
11045         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
11046         * lib/iconv.c (uintptr_t): Likewise.
11047         * lib/iconv_close.c (uintptr_t): Likewise.
11048         * tests/test-lock.c: Include <stdint.h>.
11049         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
11050         'long'.
11051         * modules/clean-temp (Depends-on): Add stdint.
11052         * modules/array-list (Depends-on): Likewise.
11053         * modules/array-map (Depends-on): Likewise.
11054         * modules/array-set (Depends-on): Likewise.
11055         * modules/carray-list (Depends-on): Likewise.
11056         * modules/sublist (Depends-on): Likewise.
11057         * modules/lock-tests (Depends-on): Likewise.
11059 2019-04-27  Bruno Haible  <bruno@clisp.org>
11061         error: Tweak indentation.
11062         * lib/error.c: Correct indentation.
11064 2019-04-27  Bruno Haible  <bruno@clisp.org>
11066         term-style-control: Fix gcc warning on mingw.
11067         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
11068         of i.
11070 2019-04-26  Bruno Haible  <bruno@clisp.org>
11072         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
11073         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
11075 2019-04-26  Bruno Haible  <bruno@clisp.org>
11077         relocatable-prog: Fix gcc warning on mingw.
11078         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
11079         on EMX.
11081 2019-04-02  Bruno Haible  <bruno@clisp.org>
11083         gitsub.sh: New file.
11084         * top/gitsub.sh: New file.
11086 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
11088         argmatch: use void* for raw memory pointers
11089         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
11090         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
11091         to "values", keep char* for strings.
11093 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
11095         prefix-gnulib-mk: fix the support for gnulib-po
11096         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
11097         Don't touch HAVE_* variables.
11098         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
11100 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
11102         di-set: allow free with 'ino_map' being NULL.
11103         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
11104         is NULL.  Bug introduced in commit 3703dbbe88dd.
11105         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
11106         as a test.
11108 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
11110         * lib/str-two-way.h: Fix comment typo.
11112 2019-04-13  Bruno Haible  <bruno@clisp.org>
11114         x-to-1: Restore ability to use original calling convention.
11115         * build-aux/x-to-1.in: Add comments. Accept the original form of
11116         HELP2MAN argument as well as the form expected since 2012-12-12.
11118 2019-04-13  Bruno Haible  <bruno@clisp.org>
11120         x-to-1: Avoid failure due to missing perl modules.
11121         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
11122         needs are installed.
11124 2019-04-13  Bruno Haible  <bruno@clisp.org>
11126         openmp-init: New module.
11127         * modules/openmp-init: New file.
11128         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
11129         the changes from 2019-04-09.
11131 2019-04-12  Bruno Haible  <bruno@clisp.org>
11133         signbit: Fix compilation error when gnulib's math.h exists twice.
11134         * lib/math.in.h (GNULIB_defined_signbit): New macro.
11136 2019-04-12  Bruno Haible  <bruno@clisp.org>
11138         openmp: Fix compilation error on platforms without OpenMP.
11139         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
11141 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
11143         mountlist: make parsing /proc/self/mountinfo more robust
11144         Cater for the following issues with mountinfo parsing (the first
11145         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
11146         in <https://bugs.gnu.org/35137>).
11147         1. The fields source, target, mntroot and fstype may contain characters
11148         like '\r'; sscanf(3) fails to read such values with the %s format
11149         specifier because it would stop at such characters.
11150         Example: "mount -t tmpfs tmpfs /foo^Mbar".
11151         The only true separator in that file is the ' ' character.
11152         2. The source field may be an empty string, which happens e.g. with
11153         "mount -t tmpfs '' /target".
11154         3. The fstype field may contain mangled characters as well which need
11155         unescaping.
11156         * lib/mountlist.c (terminate_at_blank): Add utility function.
11157         (read_file_system_list): In the block trying to read the mountinfo file,
11158         avoid using sscanf(3) with %s format; instead, parse the above fields
11159         separated by spaces one by one.
11160         This also handles the case when the source field is an empty string.
11161         Unescape the fstype field.
11163 2019-04-09  Bruno Haible  <bruno@clisp.org>
11165         openmp: Add workaround for 32-bit programs on AIX.
11166         * lib/omp.in.h: New file.
11167         * lib/omp-init.c: New file, based on lib/nproc.c.
11168         * m4/omp_h.m4: New file.
11169         * modules/openmp (Files): Add them.
11170         (Depends-on): Add include_next, c-ctype, setenv.
11171         (configure.ac): Invoke gl_OMP_H.
11172         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
11173         (Include): Mention <omp.h>.
11175 2019-04-09  Bruno Haible  <bruno@clisp.org>
11177         nproc: Fix return value for privileged processes.
11178         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
11179         getpid().
11181 2019-04-07  Bruno Haible  <bruno@clisp.org>
11183         Add copyright notices in several files.
11184         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
11185         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
11186         * lib/libunistring.valgrind: Likewise.
11187         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
11188         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
11189         * lib/memchr.valgrind: Likewise.
11190         * lib/memchr2.valgrind: Likewise.
11191         * lib/rawmemchr.valgrind: Likewise.
11192         * lib/relocatable.valgrind: Likewise.
11193         * lib/strchrnul.valgrind: Likewise.
11195 2019-03-25  Bruno Haible  <bruno@clisp.org>
11197         term-style-control tests: Fix link error.
11198         Reported by Tom G. Christensen in
11199         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
11200         * modules/term-style-control-tests (Makefile.am): Link
11201         test-term-style-control-hello and test-term-style-control-yes against
11202         LIBINTL.
11204 2019-03-24  Bruno Haible  <bruno@clisp.org>
11206         term-style-control: Add tests.
11207         * tests/test-term-style-control-hello.c: New file.
11208         * tests/test-term-style-control-yes.c: New file.
11209         * modules/term-style-control-tests: New file.
11211         term-style-control: New module.
11212         * lib/term-style-control.h: New file, based on libtextstyle's
11213         term-ostream.oo.h and term-ostream.oo.c.
11214         * lib/term-style-control.c: New file, based on libtextstyle's
11215         term-ostream.oo.c.
11216         * modules/term-style-control: New file.
11218 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
11220         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
11221         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
11222         C++98 appears to be supported by Clang, but not by GCC nor ICC.
11224 2019-03-23  Bruno Haible  <bruno@clisp.org>
11226         Support cross-compilation to musl libc.
11227         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
11228         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
11229         musl libc.
11230         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
11231         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
11232         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
11233         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11234         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11235         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
11236         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
11237         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
11238         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11239         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
11240         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
11241         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
11242         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
11243         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
11244         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
11245         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
11246         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
11247         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
11248         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
11249         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
11250         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
11251         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
11252         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
11253         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11254         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
11255         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
11256         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
11257         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
11258         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
11259         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
11260         * m4/log.m4 (gl_FUNC_LOG): Likewise.
11261         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
11262         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
11263         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
11264         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
11265         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
11266         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
11267         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
11268         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
11269         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
11270         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
11271         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
11272         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
11273         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
11274         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
11275         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
11276         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
11277         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
11278         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
11279         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
11280         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
11281         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
11282         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
11283         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
11284         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
11285         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
11286         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
11287         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
11288         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
11289         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
11290         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11291         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11292         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11293         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
11294         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
11295         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
11296         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11297         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
11298         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
11299         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
11300         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11301         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11302         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11303         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
11304         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
11305         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
11306         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
11307         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11309 2019-03-23  Bruno Haible  <bruno@clisp.org>
11311         posix_spawn_file_actions_*: Document musl libc bugs.
11312         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
11313         the bug.
11314         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
11315         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
11316         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
11317         cross-compiling to a musl system, guess no.
11318         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
11319         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
11321 2019-03-23  Bruno Haible  <bruno@clisp.org>
11323         futimens: Document musl libc bug.
11324         * doc/posix-functions/futimens.texi: Mention the bug.
11325         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
11326         cross-compiling, guess no on glibc and musl systems.
11328 2019-03-23  Bruno Haible  <bruno@clisp.org>
11330         Clarify that cross-compilation guesses are guesses.
11331         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
11332         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
11333         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
11334         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
11335         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
11336         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
11337         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
11338         gl_cv_glob_lists_symlinks.
11339         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
11340         'guessing ' to ac_cv_func_malloc_0_nonnull.
11341         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
11342         'guessing ' to ac_cv_func_realloc_0_nonnull.
11343         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
11344         'guessing ' to gl_cv_func_poll.
11345         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
11346         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
11347         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
11349 2019-03-23  Bruno Haible  <bruno@clisp.org>
11351         strtold: Fix typo.
11352         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
11354 2019-03-23  Bruno Haible  <bruno@clisp.org>
11356         noreturn: In C++ mode with clang, use _Noreturn as fallback.
11357         Reported by Akim Demaille.
11358         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
11359         [[noreturn]] would not work, use _Noreturn instead.
11361 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
11363         libtextstyle-optional: Fix compiler warnings.
11364         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
11365         as unused.
11367 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
11369         bitset: fix memory leaks
11370         Reported by Bruno Haible.
11371         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
11372         * lib/bitset/vector.c (vbitset_free): New.
11373         (vbitset_vtable): Use it.
11375 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
11377         bitset: minor changes
11378         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
11379         * lib/bitset/table.c: Formatting changes.
11380         Remove useless braces.
11381         Prefer using else in cascades of if/else-if with returns.
11382         * lib/bitset/vector.c: Reduce scopes.
11384 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
11386         bitset: expose bitset_resize
11387         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
11388         * tests/test-bitset.c (check_attributes): Check bitset_resize.
11389         (main): Use a variable bitset as reference, since fixed does not support resize.
11391 2019-03-19  Bruno Haible  <bruno@clisp.org>
11393         doc: Document the 'stdnoreturn' and 'noreturn' modules.
11394         Reported by Akim Demaille.
11395         * doc/noreturn.texi: New file.
11396         * doc/gnulib.texi: Include it.
11398 2019-03-19  Bruno Haible  <bruno@clisp.org>
11400         doc: Document how to use 'static inline'.
11401         * doc/static-inline.texi: New file.
11402         * doc/gnulib.texi: Include it.
11404 2019-03-19  Bruno Haible  <bruno@clisp.org>
11406         libtextstyle-optional: Add tests.
11407         * tests/test-libtextstyle.c: New file, based on libtextstyle's
11408         adhoc-tests/hello.c.
11409         * tests/test-libtextstyle-default.css: New file, copied from
11410         libtextstyle's adhoc-tests/hello-default.css.
11411         * modules/libtextstyle-optional-tests: New file.
11413         libtextstyle-optional: New module.
11414         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
11415         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
11416         * modules/libtextstyle-optional: New file.
11418 2019-03-19  Bruno Haible  <bruno@clisp.org>
11420         c-stack: Make signal handlers more reliable.
11421         * lib/c-stack.c (progname): New variable.
11422         (die): Use it.
11423         (c_stack_action): Initialize it.
11424         (segv_handler): Save and restore errno.
11426 2019-03-19  Bruno Haible  <bruno@clisp.org>
11428         Help making signal handlers more reliable.
11429         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
11430         _GL_ASYNC_SAFE into config.h.
11431         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
11432         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
11433         argument.
11434         * lib/fatal-signal.c (action_t, uninstall_handlers,
11435         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
11436         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
11437         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
11438         _GL_ASYNC_SAFE.
11439         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
11440         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
11442 2019-03-18  Bruno Haible  <bruno@clisp.org>
11444         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
11445         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
11446         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
11448 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
11450         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
11451         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
11452         GCC 4.8.
11454 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
11456         fts: minor simplification
11457         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
11459 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
11461         bitset, timevar: Depend on c99.
11462         Reported by Bruno Haible.
11463         * modules/bitset, modules/timevar (Depends-on): Add c99.
11465 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
11467         bitset: a bit (...) more tests
11468         * tests/test-bitset.c (check_attributes): Check zero and ones.
11470 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
11472         bitset: fix overflows.
11473         Reported by Bruno Haible.
11474         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
11475         * lib/bitset/table.c (tbitset_test): last_bit is the position of
11476         the bit in the array of bitset_word, so be sure to take its modulo
11477         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
11478         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
11480 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
11482         bitset: style changes.
11483         * lib/bitset/table.c: Use NULL, not 0, for pointers.
11484         Formatting changes.
11485         (tbitset_list): Reduce scopes.
11487 2019-03-16  Bruno Haible  <bruno@clisp.org>
11489         fatal-signal: Pass the signal number to the action.
11490         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
11491         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
11492         (fatal_signal_handler): Pass the signal number to the action.
11493         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
11494         signal number as parameter.
11495         (create_temp_dir): Update.
11496         * lib/wait-process.c (cleanup_slaves_action): New function.
11497         (register_slave_subprocess): Update at_fatal_signal invocation.
11498         * NEWS: Mention the change.
11500 2019-03-16  Bruno Haible  <bruno@clisp.org>
11502         fatal-signal: Add function that lists the fatal signals.
11503         * lib/fatal-signal.h (get_fatal_signals): New declaration.
11504         * lib/fatal-signal.c (get_fatal_signals): New function.
11506 2019-03-14  Bruno Haible  <bruno@clisp.org>
11508         isatty: Make it return true in Cygwin consoles on native Windows.
11509         * lib/isatty.c: Include <string.h>.
11510         (GetProcAddress): New macro.
11511         (GetNamedPipeClientProcessIdFuncType): New type.
11512         (GetNamedPipeClientProcessIdFunc): New variable.
11513         (QueryFullProcessImageNameFuncType): New type.
11514         (QueryFullProcessImageNameFunc): New variable.
11515         (initialized): New variable.
11516         (initialize): New function.
11517         (IsCygwinConsoleHandle): New function.
11518         (isatty): Invoke it.
11519         * doc/posix-functions/isatty.texi: Mention the issue.
11521 2019-03-14  Bruno Haible  <bruno@clisp.org>
11523         all: Update URLs to msdn.microsoft.com.
11524         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
11525         was moved to docs.microsoft.com.
11527 2019-03-13  Bruno Haible  <bruno@clisp.org>
11529         gnulib-tool: Clarify the coding style.
11530         Suggested by Pavel Raiskup <praiskup@redhat.com>.
11531         * gnulib-tool: Add comment about coding style.
11533 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
11535         strtod: fix clash with strtold
11536         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
11537         * lib/strtod.c (compute_minus_zero, minus_zero):
11538         Simplify by remving the macro / external variable,
11539         and having just a function.  User changed.  This avoids
11540         the need for an external variable that might clash.
11542 2019-03-10  Bruno Haible  <bruno@clisp.org>
11544         alloca-opt: Fix conflict mingw's new <alloca.h> file.
11545         Reported by Eli Zaretskii <eliz@gnu.org>.
11546         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
11547         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
11548         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
11550 2019-03-10  Bruno Haible  <bruno@clisp.org>
11552         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
11553         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
11554         is in use.
11555         * tests/test-printf-posix2.c: Likewise.
11557 2019-03-10  Bruno Haible  <bruno@clisp.org>
11559         uninorm tests: Free allocated memory.
11560         * tests/uninorm/test-u32-normalize-big.h
11561         (struct normalization_test_file): Remove 'const' from allocated member.
11562         (free_normalization_test_file): New declaration.
11563         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
11564         memory.
11565         (free_normalization_test_file): New function.
11566         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
11567         'struct normalization_test_file' contents.
11568         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
11569         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
11570         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
11572 2019-03-10  Bruno Haible  <bruno@clisp.org>
11574         di-set: Fix memory leak.
11575         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
11576         not free().
11578 2019-03-10  Bruno Haible  <bruno@clisp.org>
11580         tests: Free allocated memory.
11581         Reported by <deltatau@protonmail.com> via Assaf Gordon.
11582         * tests/test-astrxfrm.c (main): Free allocated memory.
11583         * tests/test-bitset.c (compare, check_attributes): Free allocated
11584         bitsets.
11585         * tests/test-filenamecat.c (main): Free allocated memory.
11586         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
11587         * tests/test-freadptr.c (main): Likewise.
11588         * tests/test-freadptr2.c (main): Free allocated memory.
11589         * tests/test-freadseek.c (main): Likewise.
11590         * tests/test-gc-arcfour.c (main): Close allocated context.
11591         * tests/test-gc-arctwo.c (main): Likewise.
11592         * tests/test-gc-des.c (main): Close all allocated contexts.
11593         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
11594         * tests/test-pipe-filter-ii1.c (main): Likewise.
11595         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
11596         allocated file actions.
11597         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
11598         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
11599         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
11600         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
11601         * tests/test-strfmon_l.c (main): Free allocated locales.
11602         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
11603         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
11604         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
11605         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
11606         * tests/unistr/test-chr.h (main): Free input32.
11607         * tests/unistr/test-strchr.h (test_strchr): Likewise.
11609 2019-03-10  Bruno Haible  <bruno@clisp.org>
11611         tests: Prepare for using valgrind.
11612         * tests/*.sh: Invoke all test programs through ${CHECKER}.
11613         * tests/*/*.sh: Likewise.
11614         * tests/test-freadptr.c (main): Update accordingly.
11615         * tests/test-freadseek.c (main): Likewise.
11617 2019-03-09  Bruno Haible  <bruno@clisp.org>
11619         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
11620         * lib/get-rusage-as.c (get_rusage_as): When compiled by
11621         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
11622         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
11623         before exiting.
11625 2019-03-09  Jim Meyering  <meyering@fb.com>
11627         test-userspec.c: don't print NULL
11628         * tests/test-userspec.c (main): A test release of gcc,
11629         9.0.1 20190310, warned that this test would attempt to
11630         print a NULL pointer via a %s printf format.  Fix that
11631         and remove the unnecessary preceding "!diag" conjunct.
11632         Also add a comment.
11634 2019-03-03  Bruno Haible  <bruno@clisp.org>
11636         getloadavg: Write NULL for the null pointer.
11637         Reported by Michal Privoznik <mprivozn@redhat.com>.
11638         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
11640 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
11642         alloca, tsearch-tests: Write NULL for the null pointer.
11643         * lib/alloca.c (i00afunc): Write NULL instead of 0.
11644         * tests/test-tsearch.c (mangle_tree): Likewise.
11646 2019-03-09  Bruno Haible  <bruno@clisp.org>
11648         strfmon_l: Fix -fsanitize=address finding.
11649         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
11650         <string.h>.
11651         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
11652         (directive_t, directives_t): New types.
11653         (fmon_parse): New function.
11654         (rpl_strfmon_l): Don't call va_arg more often than needed for the
11655         format string. Consume 'long double' arguments in places where the
11656         format string indicates so.
11657         * modules/strfmon_l (Depends-on): Add 'stdbool'.
11659 2019-03-09  Bruno Haible  <bruno@clisp.org>
11661         crypto/des: Fix undefined behaviour.
11662         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
11663         shift operations on 'int'.
11665 2019-03-09  Bruno Haible  <bruno@clisp.org>
11667         Fix undefined behaviour.
11668         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
11669         'unsigned int', to avoid shift operations on 'int'.
11670         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
11671         * tests/test-count-leading-zeros.c (main): Use a random number that has
11672         as many bits as TYPE, not only 2*15 or 2*31 bits.
11673         * tests/test-count-trailing-zeros.c (main): Likewise.
11674         * tests/test-count-one-bits.c (main): Likewise.
11675         * tests/test-memmem.c: Don't include "null-ptr.h".
11676         (main): Use zerosize_ptr() instead of null_ptr().
11677         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
11679 2019-03-08  Bruno Haible  <bruno@clisp.org>
11681         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
11682         Reported by Jeffrey Walton <noloader@gmail.com>.
11683         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
11684         invoke memset with a zero size.
11685         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
11686         Likewise.
11687         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
11688         Adjust accordingly.
11690 2019-03-08  Bruno Haible  <bruno@clisp.org>
11692         unistr/*, uniconv/*: Fix undefined behaviour.
11693         Reported by Jeffrey Walton <noloader@gmail.com>.
11694         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
11695         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
11696         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
11697         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
11699 2019-03-08  Bruno Haible  <bruno@clisp.org>
11701         unistr/u8-cmp: Fix undefined behaviour.
11702         Reported by Jeffrey Walton <noloader@gmail.com>.
11703         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
11705 2019-03-08  Bruno Haible  <bruno@clisp.org>
11707         unictype/numeric: Fix undefined behaviour.
11708         Reported by Jeffrey Walton <noloader@gmail.com>.
11709         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
11710         on shift overflow, caught by "gcc -fsanitize=undefined".
11711         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
11712         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
11713         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
11715 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
11717         git-version-gen: fix --version copyright year
11718         * build-aux/git-version-gen, build-aux/move-if-change (version):
11719         --version output copyright year is now taken from script year,
11720         so that it no longer needs to be updated by hand.
11722 2019-03-04  Bruno Haible  <bruno@clisp.org>
11724         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
11725         This approach supports relocatable installation of shared libraries
11726         which depend on other shared libraries from the same package.
11727         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
11728         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
11729         wrapper around the original LIBTOOL.
11730         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
11731         token '@loader_path' instead of '$ORIGIN'.
11732         * build-aux/libtool-reloc: New file.
11733         * modules/relocatable-prog (Files): Add it.
11734         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
11735         the recent changes. Document the need to set the *_LDFLAGS of libraries.
11736         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
11737         Makefile.am, not in configure.ac.
11739 2019-03-04  Bruno Haible  <bruno@clisp.org>
11741         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
11742         * build-aux/install-reloc: Revert change.
11743         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
11745 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
11747         nstrftime: support the ‘+’ flag
11748         * lib/nstrftime.c (add, __strftime_internal):
11749         Add support for the ‘+’ flag introduced in POSIX.1-2017.
11750         (__strftime_internal): New arg ‘width’.  All uses changed.
11751         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
11753 2019-02-24  Bruno Haible  <bruno@clisp.org>
11755         relocatable-prog: Improve verbose output.
11756         * build-aux/install-reloc (func_verbose): Escape characters that would
11757         be interpreted by the shell.
11759 2019-02-24  Bruno Haible  <bruno@clisp.org>
11761         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
11762         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
11763         "sys/stat.h".
11764         * lib/lstat.c: Likewise.
11765         * lib/fstat.c: Likewise.
11766         * lib/fstatat.c: Likewise.
11768 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
11770         long-options: add parse_gnu_standard_options_only
11771         Discussed in https://bugs.gnu.org/33468 .
11773         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
11774         (parse_gnu_standard_options_only): Add function to process
11775         the GNU default options --help and --version and fail for
11776         any other unknown long or short option. See
11777         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
11778         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
11779         * modules/long-options (depends-on): Add stdbool, exitfail.
11780         * top/maint.mk (sc_prohibit_long_options_without_use): Update
11781         syntax-check rule, add new function name.
11783 2019-02-23  Bruno Haible  <bruno@clisp.org>
11785         relocatable-prog: Update documentation.
11786         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
11787         the recent changes.
11789 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
11791         nstrftime: tweak arg order
11792         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
11793         All callers changed.  Suggested by TAMUKI Shoichi in:
11794         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
11796 2019-02-23  Bruno Haible  <bruno@clisp.org>
11798         relocatable-prog: Use wrapper-free installation also on Mac OS X.
11799         Reported by Paul Smith <psmith@gnu.org>.
11800         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
11801         (func_relativize): New function, from gnulib-tool.
11802         Handle mode 'macosx' through invocations of 'otool' and
11803         'install_name_tool'.
11804         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
11805         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
11806         'install-reloc' invocation with mode 'macosx'.
11808 2019-02-23  Bruno Haible  <bruno@clisp.org>
11810         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
11811         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
11812         Hurd with glibc >= 2.27.
11814 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
11816         nstrftime: merge glibc strftime changes
11817         This incorporates:
11818         2019-02-11 Fix a few whitespace arrangement inconsistencies
11819         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
11820         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
11821         2019-01-11 strftime: use the "L_" macro with character literals
11822         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
11823         callers changed.  Default width of %Ey is now 2.  This is needed
11824         for proper handling of Japanese dates starting on 2019-05-01.
11826 2019-02-19  Bruno Haible  <bruno@clisp.org>
11828         relocatable-prog: Use $ORIGIN trick on more platforms.
11829         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
11830         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
11831         Solaris >= 10, Haiku. But don't use it on Android.
11832         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
11833         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
11835 2019-02-19  Bruno Haible  <bruno@clisp.org>
11837         progreloc: Speed up executable lookup on various platforms.
11838         * lib/progreloc.c: Include <errno.h>.
11839         (safe_read, full_read): New functions.
11840         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
11841         prefer the information from the /proc file system to a PATH search.
11843 2019-02-19  Bruno Haible  <bruno@clisp.org>
11845         progreloc: Simplify code for Android.
11846         * lib/progreloc.c (executable_fd): Don't define on Android.
11847         (maybe_executable, find_executable): Don't use executable_fd on Android.
11849 2019-02-15  Bruno Haible  <bruno@clisp.org>
11851         gnulib-tool: Support --import with just a few tests, not --with-tests.
11852         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
11853         'inctests' when generating files; use 'inctests' only for computing the
11854         transitive closure.
11856 2019-02-14  Bruno Haible  <bruno@clisp.org>
11858         gnulib-tool: Improve handling of multiple --local-dir options.
11859         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
11860         options work.
11861         * gnulib-tool (func_path_prepend): Remove function.
11862         (func_path_foreach): Make IFS handling more robust.
11863         (local_gnulib_path): Collect --local-dir values using func_path_append,
11864         not func_path_prepend.
11865         (func_determine_path_separator): Make IFS handling more robust.
11866         (func_lookup_file_cb): New function.
11867         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
11868         func_lookup_local_file. Apply the patches in the reverse order of their
11869         origin in $local_gnulib_path.
11870         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
11871         * NEWS: Mention that the first --local-dir option is the one with
11872         highest priority.
11874 2019-02-10  Bruno Haible  <bruno@clisp.org>
11876         libtextstyle: New module.
11877         * m4/libtextstyle.m4: New file.
11878         * modules/libtextstyle: New file.
11880 2019-02-05  Bruno Haible  <bruno@clisp.org>
11882         declared.sh: Fix bug with variables of pointer type.
11883         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
11884         before the symbol to be omitted if the preceding character is a '*'.
11886 2019-02-04  Bruno Haible  <bruno@clisp.org>
11888         Add script for running tests under valgrind.
11889         * build-aux/run-test: New file, from GNU libunistring.
11890         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
11891         as well.
11893 2019-02-04  Bruno Haible  <bruno@clisp.org>
11895         declared.sh: Fix --version output.
11896         * build-aux/declared.sh (func_version): Update package name.
11898 2019-02-03  Bruno Haible  <bruno@clisp.org>
11900         Add script for determining the set of symbols to export from a library.
11901         * build-aux/declared.sh: New file, from GNU libunistring.
11902         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
11903         Mention it.
11905 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
11907         vla: add commentary about VLA_ELEMS
11908         * lib/vla.h (VLA_ELEMS): Add commentary,
11909         some inspired by Bruno Haible’s proposal in:
11910         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
11912         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
11913         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
11914         assume the C99 signatures for strtod and strtold.  Programs that
11915         require stricter adherence to C99 should also use the strtod and
11916         strtold modules as needed, and we no longer need the
11917         HAVE_C99_STRTOLD macro.
11918         * NEWS: Mention this.
11919         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
11920         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
11921         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
11922         (Files): Remove m4/c-strtod.m4.
11923         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
11924         exists.
11926 2019-02-02  Bruno Haible  <bruno@clisp.org>
11928         fma: Improve code style.
11929         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
11931 2019-02-02  Colin Watson  <cjwatson@debian.org>
11933         *-map tests: Fix compilation error.
11934         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
11935         * tests/test-hash_map.c: Likewise.
11936         * tests/test-linkedhash_map.c: Likewise.
11938 2019-01-31  Bruno Haible  <bruno@clisp.org>
11940         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
11941         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
11942         GNULIB_defined_strtold_function): New macros.
11943         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
11944         (STRTOD): Ignore HAVE_C99_STRTOLD.
11945         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
11946         deemed buggy. But do use it on platforms where uselocale exists and is
11947         usable.
11948         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
11949         deemed buggy. On platforms where uselocale exists and is usable, use
11950         uselocale and strtod/strtold.
11951         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
11952         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
11953         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
11954         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
11955         (Depends-on): Add strtod.
11956         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
11957         (Depends-on): Add strtold.
11959 2019-01-31  Bruno Haible  <bruno@clisp.org>
11961         strtod, strtold: Use the locale's decimal point.
11962         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
11963         (decimal_point_char): New function, copied from lib/vasnprintf.c.
11964         (parse_number): Add a radixchar argument. Use it instead of '.'.
11965         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
11966         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
11967         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
11968         * tests/test-strtod1.c: New file.
11969         * tests/test-strtod1.sh: New file.
11970         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
11971         locale-fr.m4 and its dependencies.
11972         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
11973         (Makefile.am): Arrange to compile test-strtod1.c and run
11974         test-strtod1.sh.
11975         * tests/test-strtold1.c: New file.
11976         * tests/test-strtold1.sh: New file.
11977         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
11978         locale-fr.m4 and its dependencies.
11979         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
11980         (Makefile.am): Arrange to compile test-strtold1.c and run
11981         test-strtold1.sh.
11983 2019-01-31  Bruno Haible  <bruno@clisp.org>
11985         strtod, strtold tests: Simplify tests.
11986         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
11987         * tests/test-strtold.c (main): Likewise.
11989 2019-01-31  Bruno Haible  <bruno@clisp.org>
11991         strtod, strtold: Avoid unnecessary rounding errors.
11992         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
11993         decimal to DOUBLE conversion.
11995 2019-01-31  Bruno Haible  <bruno@clisp.org>
11997         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
11998         * lib/strtod.c (STRTOD): When there is an extra character after the
11999         exponent marker 'p', reparse the number.
12000         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
12001         * doc/posix-functions/strtold.texi: Likewise.
12003 2019-01-29  Bruno Haible  <bruno@clisp.org>
12005         strtold: Add tests.
12006         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
12007         * modules/strtold-tests: New file.
12009 2019-01-29  Bruno Haible  <bruno@clisp.org>
12011         strtold: New module.
12012         * lib/stdlib.in.h (strtold): New declaration.
12013         * lib/strtold.c: New file.
12014         * lib/strtod.c: Consider USE_LONG_DOUBLE.
12015         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
12016         USE_LDEXP): New macros.
12017         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
12018         USE_LONG_DOUBLE.
12019         (underlying_strtod): Remove function. Replace with some macros.
12020         Re-add the code for a missing underlying function that was removed on
12021         2013-02-19.
12022         * m4/strtold.m4: New file.
12023         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
12024         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
12025         REPLACE_STRTOLD.
12026         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
12027         REPLACE_STRTOLD.
12028         * modules/strtold: New file.
12029         * doc/posix-functions/strtold.texi: Document the new module.
12031 2019-01-29  Bruno Haible  <bruno@clisp.org>
12033         strtod: Fix compilation error on IRIX 6.5.
12034         * modules/strtod (Depends-on): Add 'math'.
12036 2019-01-28  Bruno Haible  <bruno@clisp.org>
12038         Fix build error when building a shared libunistring on Android.
12039         * tests/uninorm/test-nfc.c (n): Don't define on Android.
12040         (main): Add 'volatile', to defeat a GCC optimization that would
12041         eliminate the reference.
12042         * tests/uninorm/test-nfd.c (n): Don't define on Android.
12043         (main): Add 'volatile', to defeat a GCC optimization that would
12044         eliminate the reference.
12045         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
12046         (main): Add 'volatile', to defeat a GCC optimization that would
12047         eliminate the reference.
12048         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
12049         (main): Add 'volatile', to defeat a GCC optimization that would
12050         eliminate the reference.
12052 2019-01-27  Bruno Haible  <bruno@clisp.org>
12054         Avoid build errors due to wrong references between modules.
12055         * lib/uninorm/canonical-decomposition.c: Include
12056         "uninorm/decomposition-table.h", not "decomposition-table.h".
12057         * lib/uninorm/decomposition.c: Likewise.
12058         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
12059         not "decompose-internal.h".
12060         * lib/uninorm/u16-normalize.c: Likewise.
12061         * lib/uninorm/u32-normalize.c: Likewise.
12062         * lib/uninorm/uninorm-filter.c: Likewise.
12063         * lib/uninorm/nfkc.c: Likewise.
12064         * lib/uninorm/nfkd.c: Likewise.
12065         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
12066         "caseprop.h".
12067         * lib/unicase/u8-ct-totitle.c: Likewise.
12068         * lib/unicase/u8-prefix-context.c: Likewise.
12069         * lib/unicase/u8-suffix-context.c: Likewise.
12070         * lib/unicase/u16-casemap.c: Likewise.
12071         * lib/unicase/u16-ct-totitle.c: Likewise.
12072         * lib/unicase/u16-prefix-context.c: Likewise.
12073         * lib/unicase/u16-suffix-context.c: Likewise.
12074         * lib/unicase/u32-casemap.c: Likewise.
12075         * lib/unicase/u32-ct-totitle.c: Likewise.
12076         * lib/unicase/u32-prefix-context.c: Likewise.
12077         * lib/unicase/u32-suffix-context.c: Likewise.
12078         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
12079         "unicasemap.h".
12080         * lib/unicase/u8-toupper.c: Likewise.
12081         * lib/unicase/u8-ct-tolower.c: Likewise.
12082         * lib/unicase/u8-ct-toupper.c: Likewise.
12083         * lib/unicase/u16-tolower.c: Likewise.
12084         * lib/unicase/u16-toupper.c: Likewise.
12085         * lib/unicase/u16-ct-tolower.c: Likewise.
12086         * lib/unicase/u16-ct-toupper.c: Likewise.
12087         * lib/unicase/u32-tolower.c: Likewise.
12088         * lib/unicase/u32-toupper.c: Likewise.
12089         * lib/unicase/u32-ct-tolower.c: Likewise.
12090         * lib/unicase/u32-ct-toupper.c: Likewise.
12091         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
12092         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
12093         * lib/unicase/u16-ct-casefold.c: Likewise.
12094         * lib/unicase/u32-ct-casefold.c: Likewise.
12096 2019-01-27  Bruno Haible  <bruno@clisp.org>
12098         gperf: Fix error when this module is required by some test module.
12099         * modules/gperf (Applicability): Set to 'all'.
12101 2019-01-27  Bruno Haible  <bruno@clisp.org>
12103         tmpfile: Add support for Android.
12104         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
12105         works.
12106         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
12107         Android.
12108         * modules/tmpfile (Depends-on): Add 'stdbool'.
12109         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
12110         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
12112 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
12114         bitsetv: allow free on NULL.
12115         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
12117 2019-01-27  Bruno Haible  <bruno@clisp.org>
12119         test-framework-sh: Improve maintainability.
12120         * tests/init.sh: Clarify what belongs together. Reorder definitions.
12122 2019-01-27  Bruno Haible  <bruno@clisp.org>
12124         tests: Don't assume that /tmp exists.
12125         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
12126         * tests/test-copy-acl-1.sh: Likewise.
12127         * tests/test-file-has-acl-1.sh: Likewise.
12128         * tests/test-copy-file-1.sh: Likewise.
12130 2019-01-27  Bruno Haible  <bruno@clisp.org>
12132         tests: Accommodate a shell that is not in /bin/sh.
12133         * tests/init.sh (setup_): Set srcdir and builddir.
12134         (BOURNE_SHELL): New variable.
12135         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
12136         * modules/file-has-acl-tests (Depends-on): Likewise.
12137         * modules/copy-file-tests (Depends-on): Likewise.
12138         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
12139         scripts through $BOURNE_SHELL.
12140         * tests/test-set-mode-acl-2.sh: Likewise.
12141         * tests/test-copy-acl-1.sh: Likewise.
12142         * tests/test-copy-acl-2.sh: Likewise.
12143         * tests/test-file-has-acl-1.sh: Likewise.
12144         * tests/test-file-has-acl-2.sh: Likewise.
12145         * tests/test-copy-file-1.sh: Likewise.
12146         * tests/test-copy-file-2.sh: Likewise.
12147         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
12148         invoker.
12149         * tests/test-copy-acl.sh (builddir): Likewise.
12150         * tests/test-file-has-acl.sh (builddir): Likewise.
12151         * tests/test-copy-file.sh (builddir): Likewise.
12152         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
12153         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
12154         * tests/test-vc-list-files-git.sh: Likewise.
12156 2019-01-27  Bruno Haible  <bruno@clisp.org>
12158         tests: Fix some "unused variable" warnings.
12159         * tests/test-fts.c (fts_dealloc): Remove unused variable.
12160         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
12161         * tests/test-striconveh.c (main): Move some variable into the
12162         '#if HAVE_ICONV'.
12163         * tests/test-striconveha.c (main): Likewise.
12164         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
12165         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
12166         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
12167         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
12168         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
12169         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
12170         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
12171         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
12172         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
12173         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
12174         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
12175         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
12176         * tests/test-tsearch.c (main): Move some variable into the
12177         '#if HAVE_INITSTATE'.
12179 2019-01-27  Bruno Haible  <bruno@clisp.org>
12181         unigbrk/uc-grapheme-breaks: Fix build failure.
12182         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
12183         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
12185 2019-01-27  Bruno Haible  <bruno@clisp.org>
12187         mountlist: Merge two .m4 files.
12188         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
12189         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
12190         * m4/ls-mntd-fs.m4: Remove file.
12191         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
12193 2019-01-27  Bruno Haible  <bruno@clisp.org>
12195         tests: Enable Linux specific tests on Android.
12196         * tests/test-flock.c (main): Treat Android like Linux.
12197         * tests/test-openat-safer.c (main): Likewise.
12199 2019-01-27  Bruno Haible  <bruno@clisp.org>
12201         relocatable-prog: Use Linux code on Android.
12202         * lib/progreloc.c: Treat Android like Linux.
12204 2019-01-26  Bruno Haible  <bruno@clisp.org>
12206         getloadavg: Add support for Android.
12207         * lib/getloadavg.c: Treat Android like Linux.
12209 2019-01-26  Bruno Haible  <bruno@clisp.org>
12211         vma-iter: Add support for Android.
12212         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
12213         * lib/vma-iter.c: Treat Android like Linux.
12214         * lib/get-rusage-data.c (get_rusage_data): Likewise.
12216 2019-01-26  Bruno Haible  <bruno@clisp.org>
12218         fts: Optimize on Android.
12219         * lib/fts.c: Treat Android like Linux.
12221 2019-01-26  Bruno Haible  <bruno@clisp.org>
12223         fts: Add support for Android.
12224         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
12225         defined by this module and the ones in libc.
12226         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
12228 2019-01-26  Bruno Haible  <bruno@clisp.org>
12230         mountlist: Use Linux code on Android.
12231         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
12232         (unescape_tab, read_file_system_list): Enable Linux code on Android
12233         as well.
12234         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
12235         and endmntent.
12236         * modules/mountlist (Depends-on): Add 'getline'.
12238 2019-01-26  Bruno Haible  <bruno@clisp.org>
12240         localename tests: Fix test failure on Android.
12241         * modules/localename-tests (Depends-on): Add 'setlocale'.
12243 2019-01-26  Bruno Haible  <bruno@clisp.org>
12245         mountlist: Port better to Android.
12246         * lib/mountlist.c (MOUNTED): Redefine on Android.
12247         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
12248         Android.
12250 2019-01-26  Bruno Haible  <bruno@clisp.org>
12252         striconveh: Fix use of uninitialized iconv_t.
12253         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
12254         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
12255         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
12257 2019-01-26  Bruno Haible  <bruno@clisp.org>
12259         nonblocking-socket-tests: Fix test failure on Android 4.3.
12260         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
12261         also on Android.
12263 2019-01-26  Bruno Haible  <bruno@clisp.org>
12265         sh-filename: Add support for Android 4.3.
12266         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
12268 2019-01-26  Bruno Haible  <bruno@clisp.org>
12270         ptsname_r: Work around bug on Android 4.3.
12271         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
12272         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
12273         correct.
12274         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
12275         is defined, just fix the return value.
12276         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
12277         The behaviour of musl libc is nothing to be "fixed", since it is
12278         compliant with the next POSIX standard.
12280 2019-01-26  Bruno Haible  <bruno@clisp.org>
12282         ttyname_r: Work around bug on Android 4.3.
12283         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
12284         * lib/ttyname_r.c (ttyname_r): Implement for Android.
12285         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
12286         * doc/posix-functions/ttyname.texi: Likewise.
12288 2019-01-25  Bruno Haible  <bruno@clisp.org>
12290         getprogname: Port to Android 4.3.
12291         * lib/getprogname.c (getprogname): On Android, take only the last
12292         component of __progname.
12294 2019-01-25  Bruno Haible  <bruno@clisp.org>
12296         wcrtomb: Work around bug on Android 4.3.
12297         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
12298         the C locale.
12299         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
12300         which does not have the 'wctomb' function.
12301         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
12302         * tests/test-wcrtomb.c (main): Accept argument '5'.
12303         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
12305 2019-01-25  Bruno Haible  <bruno@clisp.org>
12307         setlocale: Work around bug on Android 4.3.
12308         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
12309         the "C" locale.
12310         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
12311         * doc/posix-functions/setlocale.texi: Mention the Android bug.
12313 2019-01-24  Bruno Haible  <bruno@clisp.org>
12315         memchr: Work around bug on Android <= 5.0.
12316         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
12317         * doc/posix-functions/memchr.texi: Mention the Android bug.
12319 2019-01-24  Bruno Haible  <bruno@clisp.org>
12321         random: Fix compilation error on Android 4.3.
12322         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
12323         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
12324         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
12325         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
12326         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
12327         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
12328         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
12329         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
12330         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
12331         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
12332         REPLACE_INITSTATE, REPLACE_SETSTATE.
12333         * doc/posix-functions/random.texi: Correct the description of the
12334         situation on Android.
12335         * doc/posix-functions/srandom.texi: Likewise.
12336         * doc/posix-functions/rand.texi: Likewise.
12337         * doc/posix-functions/srand.texi: Likewise.
12339 2019-01-24  Bruno Haible  <bruno@clisp.org>
12341         mbtowc: Fix compilation error on Android 4.3.
12342         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
12343         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
12344         HAVE_MBTOWC.
12345         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
12346         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
12347         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
12348         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
12349         * doc/posix-functions/mbtowc.texi: Mention the change.
12351 2019-01-24  Bruno Haible  <bruno@clisp.org>
12353         fdatasync: Fix compilation error on Android 4.3.
12354         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
12355         test whether fdatasync() exists.
12357 2019-01-24  Bruno Haible  <bruno@clisp.org>
12359         unlinkat: Fix compilation error on Android 4.3.
12360         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
12361         also on Android.
12362         * doc/posix-functions/unlinkat.texi: Mention the issue.
12364 2019-01-24  Bruno Haible  <bruno@clisp.org>
12366         renameat: Fix compilation error on Android 4.3.
12367         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
12368         * doc/posix-functions/renameat.texi: Mention the issue.
12370 2019-01-24  Bruno Haible  <bruno@clisp.org>
12372         fchownat: Fix compilation error on Android 4.3.
12373         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
12374         use.
12375         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
12376         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
12377         * doc/posix-functions/fchownat.texi: Mention the issue.
12379 2019-01-23  Bruno Haible  <bruno@clisp.org>
12381         gnulib-tool: Support running testdirs on Android.
12382         * build-aux/test-driver.diff: New file.
12383         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
12384         build-aux/test-driver after running automake.
12386 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
12388         relocatable-prog: avoid warnings from Automake
12389         * modules/relocatable-prog: Don't declare PHONY dependencies in
12390         Automake conditionals.
12392 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
12394         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
12395         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
12397 2019-01-23  Bruno Haible  <bruno@clisp.org>
12399         threadlib: Revert commit from 2018-06-25. We now have a better fix.
12400         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
12401         preceding -Wl,--as-needed option. Don't check whether the linker
12402         supports --as-needed/--no-as-needed and --push-state/--pop-state.
12404 2019-01-23  Bruno Haible  <bruno@clisp.org>
12406         thread: Force linking with -lpthread, even when --as-needed is in use.
12407         Reported by Richard W.M. Jones <rjones@redhat.com> in
12408         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
12409         * lib/glthread/thread.h (pthread_create): Don't declare weak.
12411 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
12412             Bruno Haible  <bruno@clisp.org>
12414         relocatable: avoid compiler warnings (-Wshadow)
12415         * lib/relocatable.c (compute_curr_prefix): Rename local variables
12416         to avoid name collisions with global variables.
12418 2019-01-22  Bruno Haible  <bruno@clisp.org>
12420         vasnprintf: Don't use %n on Android.
12421         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
12422         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
12423         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
12425 2019-01-22  Bruno Haible  <bruno@clisp.org>
12427         *printf: Support cross-compilation to Android.
12428         * m4/printf.m4: Add cross-compilation guesses for Android.
12430 2019-01-21  Bruno Haible  <bruno@clisp.org>
12432         diacrit: Mark deprecated.
12433         * modules/diacrit (Status, Notice): Mark as deprecated.
12434         * NEWS: Mention it.
12436 2019-01-20  Bruno Haible  <bruno@clisp.org>
12438         rintl: Override broken implementation on NetBSD.
12439         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
12440         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
12441         REPLACE_RINTL.
12442         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
12443         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
12444         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
12445         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
12447 2019-01-20  Bruno Haible  <bruno@clisp.org>
12449         log10l: Work around inaccurate implementation on NetBSD.
12450         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
12451         * lib/log10l.c: Comment out too simplistic override.
12452         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
12454 2019-01-20  Bruno Haible  <bruno@clisp.org>
12456         logl: Work around inaccurate implementation on NetBSD.
12457         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
12458         * lib/logl.c: Comment out unused code.
12459         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
12461 2019-01-20  Bruno Haible  <bruno@clisp.org>
12463         expm1l: Work around inaccurate implementation on NetBSD.
12464         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
12465         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
12466         REPLACE_EXPM1L.
12467         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
12468         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
12469         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
12470         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
12472 2019-01-20  Bruno Haible  <bruno@clisp.org>
12474         expl: Work around inaccurate implementation on NetBSD.
12475         * lib/math.in.h (expl): Test also REPLACE_EXPL.
12476         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
12477         REPLACE_EXPL.
12478         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
12479         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
12480         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
12481         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
12483 2019-01-20  Bruno Haible  <bruno@clisp.org>
12485         exp2l: Work around inaccurate implementation on NetBSD.
12486         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
12487         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
12489 2019-01-20  Bruno Haible  <bruno@clisp.org>
12491         floor, floorl: Avoid autoconf warnings.
12492         * modules/floor (configure.ac): Use AC_REQUIRE.
12493         * modules/floorl (configure.ac): Likewise.
12495 2019-01-20  Bruno Haible  <bruno@clisp.org>
12497         Defeat current GCC optimizations in math autoconf tests.
12498         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
12499         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
12500         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12501         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12502         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
12503         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
12504         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
12505         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
12506         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
12507         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
12508         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
12509         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
12510         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
12511         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
12512         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
12513         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
12514         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
12515         * m4/log.m4 (gl_FUNC_LOG): Likewise.
12516         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
12517         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
12518         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
12519         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
12520         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
12521         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
12522         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
12523         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
12524         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
12525         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
12526         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
12527         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
12528         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
12529         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
12530         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12531         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12532         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12533         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12534         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12535         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12537 2019-01-19  Pádraig Brady  <P@draigBrady.com>
12539         gettext: support disabling use of VLAs
12540         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
12542 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
12544         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
12545         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
12547 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
12549         fcntl: Fix syntax error (regression from 2018-10-05).
12550         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
12552 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
12554         relocatable: improve documentation.
12555         * doc/relocatable-maint.texi (Supporting Relocation): For
12556         substitutions performed by config.status, we need more variables
12557         (for instance datarootdir defaults to '${prefix}/share' so we need
12558         prefix).
12560 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
12562         backup: update dependencies
12563         * modules/backup-rename (Depends-on): It now depends on opendirat
12564         instead of opendir.  It also uses stdint, and xalloc-oversized.
12565         But no longer dirfd.
12566         * modules/backupfile (Depends-on): Add xalloc-oversized.
12568 2019-01-13  Bruno Haible  <bruno@clisp.org>
12570         getcwd: Fix test failure when building on a Linux 9p file system.
12571         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
12572         EINVAL from mkdir like ENAMETOOLONG.
12573         * tests/test-getcwd.c (test_long_name): Likewise.
12575 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
12577         Fix typos found by codespell.
12578         * lib/*.[hc]: Fix typos in comments.
12579         * pygnulib/*.py: Fix typos in error messages and comments.
12581 2019-01-12  Bruno Haible  <bruno@clisp.org>
12583         doc: Fix documentation about container data types.
12584         Reported by Werner Lemberg <wl@gnu.org>.
12585         * doc/containers.texi (Container data types): Fix typo.
12587 2019-01-10  Bruno Haible  <bruno@clisp.org>
12589         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
12590         Reported by Reuben Thomas <rrt@sc3d.org>.
12591         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
12593 2019-01-06  Bruno Haible  <bruno@clisp.org>
12595         maintainer-makefile: Make the configure.ac section optional.
12596         * top/maint.mk (GREP, SED): Define if not defined.
12598 2019-01-06  Bruno Haible  <bruno@clisp.org>
12600         localename: Assume setlocale function.
12601         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
12602         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
12604 2019-01-06  Bruno Haible  <bruno@clisp.org>
12606         doc: Add documentation about container data types.
12607         * doc/containers.texi: New file.
12608         * doc/gnulib.texi (Particular Modules): Include it.
12610 2019-01-06  Bruno Haible  <bruno@clisp.org>
12612         doc: Update documentation about 'progname' module.
12613         * doc/progname.texi: Rename from doc/error.texi. Change node name and
12614         title. Rewrite.
12615         * doc/gnulib.texi (Particular Modules): Update.
12617 2019-01-06  Bruno Haible  <bruno@clisp.org>
12619         doc: Document the xstdopen and *-safer modules.
12620         * doc/xstdopen.texi: New file.
12621         * doc/gnulib.texi (Particular Modules): Include it.
12623 2019-01-06  Bruno Haible  <bruno@clisp.org>
12625         xstdopen: Add tests.
12626         * tests/test-xstdopen.c: New file.
12627         * tests/test-xstdopen.sh: New file.
12628         * modules/xstdopen-tests: New file.
12630         xstdopen: New module.
12631         * lib/xstdopen.h: New file.
12632         * lib/xstdopen.c: New file.
12633         * modules/xstdopen: New file.
12635 2019-01-06  Bruno Haible  <bruno@clisp.org>
12637         stdopen: Fix compilation error with IRIX cc.
12638         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
12640 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
12642         xfreopen need not include stdio--.h
12643         * lib/xfreopen.c: Do not include stdio--.h.
12645         xfreopen need not depend on freopen-safer
12646         * modules/xfreopen (Depends-on):
12647         Depend on freopen, not freopen-safer.
12649         stdopen: modernize and simplify
12650         * lib/stdopen.c: Update copyright date
12651         Do not include sys/types.h; no longer needed these days.
12652         (stdopen): Use C99-style decl in loop.  Return int errno
12653         value, rather than just a bool.  Do not worry about fd mismatches,
12654         since the caller cares only if 0, 1, 2 are occupied.
12655         * lib/stdopen.h: No need to include <stdbool.h>.
12656         * m4/stdopen.m4: Remove.
12657         * modules/stdopen: New file.
12659         stdopen: copy from last use in coreutils
12660         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
12661         New files, taken from their last commit in coreutils
12662         2007-07-23T12:35:58Z!jim@meyering.net
12663         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
12665 2019-01-05  Bruno Haible  <bruno@clisp.org>
12667         argp: Don't pass an invalid argument to dgettext().
12668         Reported by He X <xw897002528@gmail.com>.
12669         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
12670         dgettext().
12672 2019-01-05  Bruno Haible  <bruno@clisp.org>
12674         argp: Don't pass an invalid argument to dgettext().
12675         Reported by He X <xw897002528@gmail.com>.
12676         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
12677         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
12678         dgettext().
12680 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
12682         stdioext: port to newer 32-bit Android
12683         Problem reported by Tom Yan in:
12684         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
12685         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
12686         (fp_) [__ANDROID__]: Use it.
12688 2019-01-04  Bruno Haible  <bruno@clisp.org>
12690         lock: Fix link error with --enable-threads=pth.
12691         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
12692         Mark as weak.
12694 2019-01-04  Bruno Haible  <bruno@clisp.org>
12696         Fix link errors in unit tests.
12697         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12698         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
12699         * modules/array-map-tests (Makefile.am): Link test-array_map against
12700         libintl.
12701         * modules/array-set-tests (Makefile.am): Link test-array_set against
12702         libintl.
12703         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
12704         libintl.
12705         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
12706         libintl.
12707         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
12708         against libintl.
12709         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
12710         against libintl.
12712 2019-01-04  Bruno Haible  <bruno@clisp.org>
12714         Fix incorrect 'Link' sections.
12715         * modules/regex (Link): Mention the link requirement of module 'lock'.
12716         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
12718 2019-01-04  Bruno Haible  <bruno@clisp.org>
12720         Fix some 'Link' sections.
12721         * modules/c-stack (Link): Add link directive from the 'gettext-h'
12722         dependency.
12723         * modules/getaddrinfo (Link): Likewise.
12725 2019-01-04  Bruno Haible  <bruno@clisp.org>
12727         Remove redundant 'Link' sections.
12728         * modules/canon-host (Link): Remove section.
12729         * modules/timevar (Link): Likewise.
12731 2019-01-04  Bruno Haible  <bruno@clisp.org>
12733         Remove incorrect 'Link' sections.
12734         * modules/acl (Link): Remove section. Use combined 'Link' sections from
12735         the dependencies instead.
12736         * modules/crypto/md5 (Link): Likewise.
12737         * modules/crypto/sha1 (Link): Likewise.
12738         * modules/crypto/sha256 (Link): Likewise.
12739         * modules/crypto/sha512 (Link): Likewise.
12740         * modules/faccessat (Link): Likewise.
12741         * modules/fdutimensat (Link): Likewise.
12742         * modules/iconv_open-utf (Link): Likewise.
12743         * modules/propername (Link): Likewise.
12744         * modules/qacl (Link): Likewise.
12745         * modules/unicodeio (Link): Likewise.
12746         * modules/utimecmp (Link): Likewise.
12747         * modules/utimensat (Link): Likewise.
12748         * modules/xstriconv (Link): Likewise.
12749         * modules/xstriconveh (Link): Likewise.
12751 2019-01-04  Bruno Haible  <bruno@clisp.org>
12753         gnulib-tool: New option --extract-recursive-link-directive.
12754         * gnulib-tool (func_usage): Document the new options
12755         --extract-recursive-dependencies, --extract-recursive-link-directive.
12756         (func_verify_module): Document output variables.
12757         (func_get_dependencies_recursively): New function.
12758         (func_get_link_directive_recursively): New function.
12759         Use them to implement the new options
12760         --extract-recursive-dependencies, --extract-recursive-link-directive.
12761         * doc/gnulib-tool.texi (Link-time requirements): New section.
12763 2019-01-04  Bruno Haible  <bruno@clisp.org>
12765         Clarify meaning of 'Link' section in module description.
12766         * doc/gnulib.texi (Module description): Clarify the meaning of the
12767         'Link' section versus the one of the dependencies.
12768         * NEWS: Mention the change.
12770 2019-01-04  Bruno Haible  <bruno@clisp.org>
12772         pselect: Fix module description.
12773         * modules/pselect (Link): Put one link option per line.
12775 2019-01-04  Bruno Haible  <bruno@clisp.org>
12777         cosl: Fix module description.
12778         * modules/cosl (Link): Fix typo.
12779         * modules/mathl (configure.ac): Likewise.
12781 2019-01-04  Bruno Haible  <bruno@clisp.org>
12783         c-xvasprintf: Fix module dependencies.
12784         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
12786 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
12788         bootstrap: die when some submodules are not initialized
12789         * build-aux/bootstrap: Make sure all submodules are initialized.
12791 2019-01-04  Bruno Haible  <bruno@clisp.org>
12793         bitsetv: Fix module dependencies.
12794         * lib/bitsetv.c: Include xalloc.h.
12795         * modules/bitsetv (Depends-on): Add 'xalloc'.
12797 2019-01-04  Bruno Haible  <bruno@clisp.org>
12799         xmemdup0: Remove redundant code.
12800         * lib/xmemdup0.h (xalloc_die): Remove declaration.
12802 2019-01-04  Bruno Haible  <bruno@clisp.org>
12804         backupfile: Fix module dependencies.
12805         * modules/backupfile (Depends-on): Add 'xalloc'.
12807 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
12809         bitset, crypto/gc: fix conflicts with Solaris 11
12810         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
12811         avoid clash with Solaris 11 <sys/bitset.h>.
12812         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
12813         with Solaris 11 <xorg/gc.h>.
12815 2019-01-04  Bruno Haible  <bruno@clisp.org>
12817         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
12818         Reported by Andy Fiddaman <andy@omniosce.org>.
12819         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
12821 2019-01-03  Eric Blake  <eblake@redhat.com>
12823         maintainer-makefile: fix typo in previous patch
12824         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
12825         of Roman's work.
12827 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
12829         maintainer-makefile: prefer $(GREP) over grep
12830         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
12831         defined.
12832         * top/maint.mk: Use it everywhere.
12834         maintainer-makefile: split long argument lines
12835         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
12836         it would be too long for exec limits on BSD.
12838 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
12840         mkfifo: bring back HAVE_MKFIFO macro
12841         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
12842         Problem reported by Andrew Janke in:
12843         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
12845 2018-12-21  Bruno Haible  <bruno@clisp.org>
12847         Assume Autoconf >= 2.63.
12848         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
12849         versions < 2.60.
12851 2018-12-21  Bruno Haible  <bruno@clisp.org>
12853         memcmp: Mention the clang bug.
12854         * tests/test-memcmp.c: Add comment about a known test failure.
12855         * doc/posix-functions/memcmp.texi: Mention the clang bug.
12857 2018-12-20  Jim Meyering  <meyering@fb.com>
12859         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
12860         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
12861           echo '123-x'|LC_ALL=C grep -E '.\bx'
12862         The goal is to revert the first, but reverting it requires to restore
12863         the function deleted in the second. I ran this to restore the deleted
12864         function:
12865           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
12866             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
12867             | patch -R -p1
12868         * lib/dfa.c (charclass_context): Restore deleted function.
12869         Reverting the primary commit removes this change:
12870         dfa: Simplify a building state
12871         * lib/dfa.c (build_state): Simplify a building state.
12873 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
12875         version-etc: allow zero authors
12876         * lib/version-etc.c (version_etc_arn): If no authors are given,
12877         omit authorship info instead of dumping core.
12879 2018-12-19  Bruno Haible  <bruno@clisp.org>
12881         lchown tests: Be more permissive regarding errno values.
12882         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
12883         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
12884         alternative to ENOSYS.
12885         * modules/lchown-tests (Depends-on): Add 'errno'.
12886         * modules/fchownat-tests (Depends-on): Likewise.
12888 2018-12-18  Bruno Haible  <bruno@clisp.org>
12890         duplocale: Avoid test failure on AIX 7.
12891         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
12892         (configure.ac): Invoke gt_FUNC_USELOCALE.
12893         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
12894         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
12895         works.
12897 2018-12-18  Bruno Haible  <bruno@clisp.org>
12899         localename: Fix test failure on AIX 7.
12900         Reported by Assaf Gordon in
12901         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
12902         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
12903         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
12904         instead of ac_cv_func_uselocale.
12905         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
12906         HAVE_USELOCALE.
12907         * lib/localename-table.h: Likewise.
12908         * lib/localename-table.c: Likewise.
12909         * tests/test-localename.c: Likewise.
12910         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
12912 2018-12-18  Bruno Haible  <bruno@clisp.org>
12914         localename: Update comments regarding Cygwin.
12915         * lib/localename.c: Update comment.
12916         * doc/posix-functions/uselocale.texi: Update platforms list.
12917         * doc/posix-functions/newlocale.texi: Likewise.
12918         * doc/posix-functions/duplocale.texi: Likewise.
12919         * doc/posix-functions/freelocale.texi: Likewise.
12921 2018-12-16  Bruno Haible  <bruno@clisp.org>
12923         c-stack: Fix for Linux/sparc.
12924         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
12925         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
12927 2018-12-16  Bruno Haible  <bruno@clisp.org>
12929         localename: Avoid test failure on some glibc systems.
12930         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
12931         Unset environment variables that might disturb the first setlocale call,
12932         and verify that this setlocale call succeeds.
12934 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
12936         random: Fix build error on native Windows (regression from 2018-06-21).
12937         * lib/random.c (__srandom, __initstate, __setstate, __random,
12938         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
12939         to the symbols without '__' prefix.
12941 2018-12-16  Bruno Haible  <bruno@clisp.org>
12943         obstack, libc-config: Support HP-UX cc in C99 mode.
12944         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
12945         compiler, even when in C99 mode.
12946         * lib/cdefs.h (__flexarr): Likewise.
12947         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
12949 2018-12-16  Bruno Haible  <bruno@clisp.org>
12951         localename: Fix test failure on OpenBSD >= 6.2.
12952         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
12953         locale system. Define HAVE_FAKE_LOCALES in this case.
12954         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
12955         HAVE_USELOCALE.
12956         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
12957         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
12958         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
12959         platforms list.
12960         * doc/posix-functions/newlocale.texi: Likewise.
12961         * doc/posix-functions/duplocale.texi: Update platforms list.
12962         * doc/posix-functions/freelocale.texi: Likewise.
12964 2018-12-16  Bruno Haible  <bruno@clisp.org>
12966         duplocale tests: Re-enable the test on platforms without <monetary.h>.
12967         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
12968         of the test, on platforms without <monetary.h>.
12970 2018-12-16  Bruno Haible  <bruno@clisp.org>
12972         localename: Update comments.
12973         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
12975 2018-12-15  Jim Meyering  <meyering@fb.com>
12977         regex: fix indentation
12978         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
12980 2018-12-15  Bruno Haible  <bruno@clisp.org>
12982         openat-safer tests: Avoid test failure on NetBSD 8.
12983         * tests/test-openat-safer.c (main): Execute a Linux specific test only
12984         on Linux.
12986 2018-12-15  Jim Meyering  <meyering@fb.com>
12988         regex: work around a bug in glibc-2.27 and prior
12989         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
12990         assertion for /0|()0|\1|0/.
12991         * tests/test-regex.c (main): Add the same test here.
12993 2018-12-15  Bruno Haible  <bruno@clisp.org>
12995         localename: Fix use of uninitialized shell variable.
12996         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
12997         gt_cv_locale_solaris114 always before use. Remove assignment without
12998         effect.
13000 2018-12-15  Bruno Haible  <bruno@clisp.org>
13002         dfa tests: Avoid test failure on Alpine Linux.
13003         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
13004         command found on Alpine Linux.
13006 2018-12-15  Jim Meyering  <meyering@fb.com>
13008         dfa: avoid new warnings from gcc
13009         These would prevent building with -Werror and a Dec snapshot of gcc.
13010         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
13011         Rename each inner instance to "p".
13012         (charclass_context): Remove unused static function.
13014 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
13016         mkdir-p: improve diagnostic for FUSE mounts
13017         Problem reported by Niklas Hambüchen in:
13018         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
13019         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
13020         errno to mkdir errno if the stat errno is likely more interesting.
13022 2018-12-14  Bruno Haible  <bruno@clisp.org>
13024         hash-map: Add tests.
13025         * tests/test-hash_map.c: New file.
13026         * modules/hash-map-tests: New file.
13028         linkedhash-map: Add tests.
13029         * tests/test-linkedhash_map.c: New file.
13030         * modules/linkedhash-map-tests: New file.
13032         array-map: Add tests.
13033         * tests/test-array_map.c: New file.
13034         * modules/array-map-tests: New file.
13036         xmap: New module.
13037         * lib/gl_xmap.h: New file.
13038         * lib/gl_xmap.c: New file.
13039         * modules/xmap: New file.
13041         hash-map: New module.
13042         * lib/gl_hash_map.h: New file.
13043         * lib/gl_hash_map.c: New file.
13044         * modules/hash-map: New file.
13046         linkedhash-map: New module.
13047         * lib/gl_linkedhash_map.h: New file.
13048         * lib/gl_linkedhash_map.c: New file.
13049         * lib/gl_anyhash1.h: Update comments.
13050         * lib/gl_anyhash2.h: Likewise.
13051         * modules/linkedhash-map: New file.
13053         array-map: New module.
13054         * lib/gl_array_map.h: New file.
13055         * lib/gl_array_map.c: New file.
13056         * modules/array-map: New file.
13058         map: New module.
13059         * lib/gl_map.h: New file.
13060         * lib/gl_map.c: New file.
13061         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
13062         conflict with gl_map.h.
13063         * modules/map: New file.
13065 2018-12-13  Bruno Haible  <bruno@clisp.org>
13067         select tests: Avoid test failure on Cygwin.
13068         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
13070 2018-12-13  Bruno Haible  <bruno@clisp.org>
13072         localtime-buffer: Avoid endless recursion in localtime and gmtime.
13073         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
13075 2018-12-13  Bruno Haible  <bruno@clisp.org>
13077         localeconv tests: Avoid test failure on Cygwin.
13078         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
13079         'mon_grouping' tests.
13081 2018-12-11  Bruno Haible  <bruno@clisp.org>
13083         omap: Don't dispose the old value when the function returns it.
13084         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
13085         here.
13086         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
13087         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
13088         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
13089         here.
13091         array-omap, avltree-omap, rbtree-omap: Tweak style.
13092         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
13093         false.
13094         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
13096         rbtree-omap: Add tests.
13097         * tests/test-rbtree_omap.c: New file.
13098         * modules/rbtree-omap-tests: New file.
13100         avltree-omap: Add tests.
13101         * tests/test-avltree_omap.c: New file.
13102         * modules/avltree-omap-tests: New file.
13104         array-omap: Add tests.
13105         * tests/test-array_omap.c: New file.
13106         * modules/array-omap-tests: New file.
13108         xomap: New module.
13109         * lib/gl_xomap.h: New file.
13110         * lib/gl_xomap.c: New file.
13111         * modules/xomap: New file.
13113         rbtree-omap: New module.
13114         * lib/gl_rbtree_omap.h: New file.
13115         * lib/gl_rbtree_omap.c: New file.
13116         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
13117         Parameterize.
13118         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
13119         * modules/rbtree-omap: New file.
13120         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
13121         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
13123         avltree-omap: New module.
13124         * lib/gl_avltree_omap.h: New file.
13125         * lib/gl_avltree_omap.c: New file.
13126         * lib/gl_avltree_ordered.h: Code moved to here from
13127         lib/gl_avltree_oset.c. Parameterize.
13128         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
13129         * lib/gl_anytree_omap.h: New file.
13130         * modules/avltree-omap: New file.
13131         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
13132         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
13134         array-omap: New module.
13135         * lib/gl_array_omap.h: New file.
13136         * lib/gl_array_omap.c: New file.
13137         * modules/array-omap: New file.
13139         omap: New module.
13140         * lib/gl_omap.h: New file.
13141         * lib/gl_omap.c: New file.
13142         * modules/omap: New file.
13144 2018-12-11  Bruno Haible  <bruno@clisp.org>
13146         hash-set, linkedhash-set: Reduce code duplication.
13147         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
13148         lib/gl_anyhash_set1.h.
13149         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
13150         lib/gl_anyhash_set2.h. Parameterize.
13151         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
13152         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
13153         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
13154         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
13155         * lib/gl_rbtreehash_list.c: Likewise.
13156         * lib/gl_linkedhash_list.c: Likewise.
13157         (hash_resize_after_add): Remove function.
13158         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
13159         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
13160         * gl_hash_set.c: Likewise.
13161         * modules/avltreehash-list (Files, Makefile.am): Update file list.
13162         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
13163         * modules/linkedhash-list (Files, Makefile.am): Likewise.
13164         * modules/linkedhash-set (Files, Makefile.am): Likewise.
13165         * modules/hash-set (Files, Makefile.am): Likewise.
13167 2018-12-11  Bruno Haible  <bruno@clisp.org>
13169         array-set: Optimize.
13170         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
13171         outside the loop, not inside the loop.
13173 2018-12-11  Bruno Haible  <bruno@clisp.org>
13175         times: Fix tests.
13176         * tests/test-times.c (doublecmp): Implement a total order.
13178 2018-12-11  Bruno Haible  <bruno@clisp.org>
13180         array-set, linkedhash-set, hash-set: Fix tests.
13181         * tests/test-array_set.c (cmp_objects_in_array): New function.
13182         (check_equals): Use it.
13183         * tests/test-hash_set.c: Likewise.
13184         * tests/test-linkedhash_set.c: Likewise.
13186 2018-12-08  Bruno Haible  <bruno@clisp.org>
13188         Fix comments.
13189         * lib/gl_list.h (gl_list_free): Clarify what it does.
13190         * lib/gl_oset.h (gl_oset_free): Likewise.
13191         * lib/gl_set.h (gl_set_free): Likewise.
13192         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
13193         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
13194         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
13195         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
13197 2018-12-03  Bruno Haible  <bruno@clisp.org>
13199         hash-set: Add tests.
13200         * tests/test-hash_set.c: New file.
13201         * modules/hash-set-tests: New file.
13203         linkedhash-set: Add tests.
13204         * tests/test-linkedhash_set.c: New file.
13205         * modules/linkedhash-set-tests: New file.
13207         array-set: Add tests.
13208         * tests/test-array_set.c: New file.
13209         * modules/array-set-tests: New file.
13211         xset: New module.
13212         * lib/gl_xset.h: New file.
13213         * lib/gl_xset.c: New file.
13214         * modules/xset: New file.
13216         hash-set: New module.
13217         * lib/gl_hash_set.h: New file.
13218         * lib/gl_hash_set.c: New file.
13219         * modules/hash-set: New file.
13221         linkedhash-set: New module.
13222         * lib/gl_linkedhash_set.h: New file.
13223         * lib/gl_linkedhash_set.c: New file.
13224         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
13225         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
13226         * lib/gl_anyhash_primes.h: New file, extracted from
13227         lib/gl_anyhash_list2.h.
13228         * lib/gl_anyhash_list2.h: Include it.
13229         (primes, next_prime): Remove definitions.
13230         * modules/linkedhash-set: New file.
13231         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
13232         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
13233         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
13234         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
13235         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
13236         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
13238         array-set: New module.
13239         * lib/gl_array_set.h: New file.
13240         * lib/gl_array_set.c: New file.
13241         * modules/array-set: New file.
13243         set: New module.
13244         * lib/gl_set.h: New file.
13245         * lib/gl_set.c: New file.
13246         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
13247         gl_set.h.
13248         * modules/set: New file.
13250 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
13252         bison: don't force the Yacc mode
13253         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
13254         errors when Bison features are used in the grammar file.  Some of
13255         these features (such as %expect) were flagged non-yacc recently.  Most
13256         of the time, -y is actually used to please Automake's ylwrap which
13257         expects the output to be y.tab.c.
13258         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
13260 2018-12-01  Bruno Haible  <bruno@clisp.org>
13262         gnupload: Document short options.
13263         * build-aux/gnupload (usage): Document the short options.
13265 2018-11-28  Ben Elliston  <bje@gnu.org>
13267         gnupload: Support option -h as alias of --help.
13268         * build-aux/gnupload: Support -h.
13270 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
13272         memrchr: port better to clang
13273         * lib/memrchr.c (__memrchr): Cast to void * instead of to
13274         longword *, to pacify clang -Wcast-align (Bug#33544).
13276 2018-11-29  Eric Blake  <eblake@redhat.com>
13278         docs: mention printf %m considerations
13279         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
13280         is not portable, and is easy enough to work around.
13281         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
13282         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
13283         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
13284         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
13285         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
13286         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
13287         * doc/posix-functions/printf.texi (printf): Likewise.
13288         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
13289         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
13290         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
13291         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
13292         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
13293         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
13294         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
13295         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13296         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
13297         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
13298         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
13299         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
13301 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
13303         bitset: rename ebitset/expandable.* as tbitset/table.*
13304         See
13305         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
13306         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
13307         * lib/bitset/table.h, lib/bitset/table.c: these.
13308         Rename all the ebitset* symbols as tbitset*.
13309         Adjust dependencies.
13311 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
13313         bitset: check the operations
13314         * tests/test-bitset.c (bitset_random): New.
13315         Use it.
13316         * lib/bitset/expandable.c (ebitset_not): Fix typo.
13318 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
13320         bitset: properly use false/true instead of 0/1 for Booleans
13321         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
13322         0/1, as Booleans.
13324 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
13326         bitset: rename BITSET_VARRAY as BITSET_VECTOR
13327         For consistency with the name of the file.
13328         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
13329         * lib/bitset/stats.c, lib/bitset/vector.c
13330         (BITSET_VARRAY): Rename as...
13331         (BITSET_VECTOR): this.
13333 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
13335         strerror_r-posix: memmove, not memcpy
13336         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
13337         since the source and destination might overlap in the call
13338         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
13339         Simplify.
13341 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
13343         bitsetv: new module
13344         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
13346 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
13348         bitset: add tests and doc
13349         First stabs at providing a documentation and test for the bitset
13350         module.
13351         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
13353 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
13355         bitset: new module
13356         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
13357         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
13358         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
13359         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
13360         * lib/bitset/vector.h, modules/bitset:
13361         New.
13363 2018-11-23  Bruno Haible  <bruno@clisp.org>
13365         localename: Fix gettext test failures on mingw.
13366         * lib/localename.c (gl_locale_name_posix): Convert the result of
13367         gl_locale_name_environ to XPG syntax.
13369 2018-11-23  Karl Berry  <karl@freefriends.org>
13371         * config/srclistvars.txt,
13372         * config/srclist.txt: remove all gettext references;
13373         the gettext maintainers will sync as needed.
13375 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
13377         mktime: add libc-config dependency
13378         I missed this when we synced from glibc.
13379         * modules/mktime (Depends-on): Add libc-config.
13381 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
13383         longlong: fix comment typo
13384         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
13386 2018-11-11  Bruno Haible  <bruno@clisp.org>
13388         havelib: Remove the need to include asm-underscore.m4.
13389         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
13390         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
13391         gl_HOST_CPU_C_ABI.
13392         * modules/havelib (Files): Add host-cpu-c-abi.m4.
13393         (Depends-on): Remove host-cpu-c-abi.
13395 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
13397         parse-datetime: simplify test for mktime failure
13398         * lib/parse-datetime.y (mktime_ok): Simplify.
13399         Remove args TZ and T; no longer needed.  Callers changed.
13401         posixtm: simplify test for mktime failure
13402         * lib/posixtm.c (posixtime): Simplify.
13404         nstrftime: simplify test for mktime failure
13405         * lib/nstrftime.c (__strftime_internal): Simplify.
13407 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
13409         gnulib-common.m4: port _Noreturn to C++
13410         Problem reported by Akim Demaille in:
13411         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
13412         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
13413         Merge adjustments from _Noreturn.h and from glibc into the non-C++
13414         version.
13415         * lib/_Noreturn.h: Match gnulib-common.
13417 2018-10-30  Bruno Haible  <bruno@clisp.org>
13419         gnu-make: Fix for NetBSD 8 'make'.
13420         Reported by Reuben Thomas in
13421         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
13422         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
13423         output, ignoring exit codes.
13425 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
13427         maintainer-makefile: fix syntax-check rule for "same.h"
13428         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
13429         for 'same_nameat', too.
13431 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
13433         havelib: fix nested ‘configure’ chatter
13434         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
13435         AC_CACHE_CHECK calls, which resulted in confusing output like
13436         “checking for the common suffixes of directories in the library
13437         search path... checking for 64-bit host... no lib,lib”.
13439         backupfile: tweak for better code
13440         * lib/backupfile.c: Sort include directives, and remove
13441         unnecessary <limits.h> include.
13442         (FALLTHROUGH): New macro, copied from other modules.
13443         (backupfile_internal): Use it to avoid code duplication.
13444         This lets GCC 8.2.1 generate better code by inlining the
13445         call to check_extension.
13447 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
13449         backupfile: new dir_fd args
13450         New module opendirat with code taken from fts.
13451         Use this module to let backupfile use a directory file descriptor.
13452         * NEWS: Document the incompatible change.
13453         * lib/backup-find.c (find_backup_file_name):
13454         * lib/backup-rename.c (backup_file_rename):
13455         New arg DIR_FD.
13456         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
13457         (SIZE_MAX): Remove.
13458         Include opendirat.h rather than dirent--.h.
13459         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
13460         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
13461         (backupfile_internal): New arg DIR_FD.  All callers changed.
13462         * lib/fts.c: Include opendirat.h.
13463         (opendirat): Move to opendirat.c.
13464         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
13465         * modules/backupfile (Depends-on): Remove dirfd, opendir.
13466         Add opendirat.
13467         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
13468         Add opendirat.
13470 2018-10-23  Bruno Haible  <bruno@clisp.org>
13472         localename: Simplify support for per-thread locales on Solaris 11.4.
13473         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
13474         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
13475         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
13476         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
13477         specific code.
13478         * lib/localename-table.h: Update comments.
13479         * lib/localename-table.c: Update comments.
13480         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
13481         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
13482         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
13483         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
13484         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
13485         HAVE_NAMELESS_LOCALES here.
13486         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
13487         m4/intlsolaris.m4.
13488         * modules/gettext (Files): Likewise.
13490 2018-10-22  Bruno Haible  <bruno@clisp.org>
13492         std-gnu11: Support Autoconf versions < 2.64.
13493         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
13494         when _AC_DO_LIMIT does not exist.
13496 2018-10-22  Bruno Haible  <bruno@clisp.org>
13498         Assume Autoconf >= 2.63.
13499         * DEPENDENCIES: Mention the requirement.
13501         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
13502         (func_get_filelist): Don't list m4/onceonly.m4 any more.
13503         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
13504         * m4/onceonly.m4: Remove file.
13506         * m4/openmp.m4: Remove file.
13507         * modules/openmp (Files): Remove m4/openmp.m4.
13509         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
13510         htmldir, dvidir, pdfdir, psdir, localedir.
13511         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
13513         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
13514         Autoconf < 2.60.
13515         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
13516         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
13518         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
13519         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
13520         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
13522         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
13523         exists.
13524         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
13526         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
13527         Autoconf < 2.61.
13529         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
13530         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
13531         Autoconf >= 2.52.
13533         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
13534         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
13535         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
13537 2018-10-22  Bruno Haible  <bruno@clisp.org>
13539         Assume Automake >= 1.11.
13540         * m4/configmake.m4: Update comments.
13541         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
13542         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
13543         of 'eval'.
13544         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
13545         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
13546         requires Automake >= 1.11.
13548 2018-10-22  Bruno Haible  <bruno@clisp.org>
13550         localename: Fix typo in comment.
13551         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
13553 2018-10-22  Bruno Haible  <bruno@clisp.org>
13555         Fix failure of 'gnulib-tool --create-testdir' with all modules.
13556         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
13558 2018-10-21  Bruno Haible  <bruno@clisp.org>
13560         locale: Ease integration with GNU libintl.
13561         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
13562         GNULIB_defined_freelocale): New macros.
13564 2018-10-21  Bruno Haible  <bruno@clisp.org>
13566         localename: Fine-tune support for per-thread locales on Solaris 11.4.
13567         * lib/localename-table.h: New file, extracted from lib/localename.c.
13568         * lib/localename-table.c: Likewise.
13569         * lib/localename.c: Include localename-table.h.
13570         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
13571         locale_hash_function instead of pointer_hash.
13572         * modules/localename (Files): Add lib/localename-table.h,
13573         lib/localename-table.c.
13574         (lib_SOURCES): Add localename-table.c.
13575         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
13576         for Solaris 11.4 locale system only on Solaris. Test for it
13577         independently whether getlocalename_l exists.
13578         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
13579         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
13580         HAVE_NAMELESS_LOCALES.
13581         * modules/gettext (Files): Add m4/intlsolaris.m4.
13583 2018-10-21  Bruno Haible  <bruno@clisp.org>
13585         Small update from gettext.
13586         * m4/intl.m4: Update from gettext:
13587         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
13588         mode on AIX.
13589         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
13590         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
13592 2018-10-16  Bruno Haible  <bruno@clisp.org>
13594         mountlist: Remove support for Cray with UNICOS 9.
13595         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
13596         MOUNTED_LISTMNTENT.
13597         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
13599 2018-10-16  Bruno Haible  <bruno@clisp.org>
13601         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
13602         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
13603         STAT_STATFS2_FS_DATA.
13604         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
13605         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
13606         MOUNTED_GETMNT.
13607         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
13608         * lib/getloadavg.c (decstation): Remove definition and case.
13609         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
13610         * lib/getgroups.c: Likewise.
13611         * doc/posix-functions/getgroups.texi: Likewise.
13612         * lib/time.in.h: Update comments.
13614 2018-10-16  Bruno Haible  <bruno@clisp.org>
13616         getloadavg: Remove support for ConvexOS.
13617         * lib/getloadavg.c: Remove convex case.
13619 2018-10-16  Bruno Haible  <bruno@clisp.org>
13621         getloadavg: Remove support for Sony NEWS.
13622         * lib/getloadavg.c: Remove sony_news case.
13624 2018-10-16  Bruno Haible  <bruno@clisp.org>
13626         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
13627         * lib/fsusage.c: Remove _SEQUENT_ case.
13628         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
13629         * lib/mountlist.c: Don't test for MNTTABNAME.
13630         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
13631         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
13632         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
13633         * lib/stat-size.h: Don't mention the Sequent bug.
13634         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
13636 2018-10-16  Bruno Haible  <bruno@clisp.org>
13638         fsusage: Remove support for AIX 3.
13639         * lib/fsusage.c: Remove code for AIX 3.
13640         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
13642 2018-10-16  Bruno Haible  <bruno@clisp.org>
13644         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
13645         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
13646         * lib/fsusage.c: Remove code for AIX PS/2.
13647         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
13648         * lib/getloadavg.c: Likewise.
13650 2018-10-16  Bruno Haible  <bruno@clisp.org>
13652         getloadavg: Remove support for HP-UX on m68k.
13653         * lib/getloadavg.c: Remove hp9000s300 case.
13655 2018-10-16  Bruno Haible  <bruno@clisp.org>
13657         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
13658         * lib/fsusage.c: Remove DOLPHIN case.
13659         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
13660         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
13662 2018-10-16  Bruno Haible  <bruno@clisp.org>
13664         getloadavg: Remove support for Alliant FX/2800.
13665         * lib/getloadavg.c: Remove alliant case.
13667 2018-10-16  Bruno Haible  <bruno@clisp.org>
13669         getloadavg: Remove support for tek4300.
13670         * lib/getloadavg.c: Remove tek4300 case.
13672 2018-10-16  Bruno Haible  <bruno@clisp.org>
13674         getloadavg: Remove support for Ardent.
13675         * lib/getloadavg.c: Remove ardent case.
13677 2018-10-16  Bruno Haible  <bruno@clisp.org>
13679         mountlist: Remove support for SVR2.
13680         Reported by Andrew Borodin <aborodin@vmail.ru> in
13681         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
13682         * lib/mountlist.c: Remove MOUNTED_FREAD case.
13683         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
13684         MOUNTED_FREAD.
13686 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
13688         libc-config: merge from glibc
13689         * lib/cdefs.h (__glibc_has_attribute): New macro.
13691         regex: depend on libc-config
13692         * modules/regex (Depends-on): Add libc-config.
13693         This is needed after the recent autoupdate from glibc.
13695 2018-10-14  Bruno Haible  <bruno@clisp.org>
13697         localename: Add support for per-thread locales on Solaris 11.4.
13698         * lib/locale.in.h (newlocale, freelocale): New declarations.
13699         (duplocale): Declare also when the 'localename' module requests it.
13700         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
13701         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
13702         (struniq): Update.
13703         (struct locale_categories_names, struct locale_hash_node): New types.
13704         (LOCALE_HASH_TABLE_SIZE): New constant.
13705         (locale_hash_table, locale_lock): New variables.
13706         (pointer_hash, get_locale_t_name): New functions.
13707         (newlocale, duplocale, freelocale): New overridden functions.
13708         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
13709         * m4/intlsolaris.m4: New file.
13710         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
13711         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
13712         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
13713         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
13714         declared.
13715         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
13716         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
13717         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
13718         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
13719         * modules/localename (Files): Add intlsolaris.m4.
13720         (Depends-on): Add 'locale'.
13721         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
13722         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
13723         the signatures.
13725 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
13727         timevar: use gethrxtime to get wall clock time
13728         clock_gettime is not portable.  gethrxtime takes the best available
13729         option to get the wall clock time, including clock_gettime (monotonic
13730         clock), and gettime (non monotonic).
13731         Also, using xtime_t instead of float preserves the precision.
13732         Suggested by Bruno Haible.
13733         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
13734         * modules/timevar (Depends-on): We need gethrxtime.
13735         We no longer use times().
13736         (Link): Update.
13737         * lib/timevar.h (timevar_time_def): Use xtime_t.
13738         * lib/timevar.c (set_to_current_time): Use gethrxtime.
13739         (timevar_print): Instead of checking whether the timings themselves
13740         are large enough for the timevar to be printed, check the percentages.
13742 2018-10-14  Bruno Haible  <bruno@clisp.org>
13744         wcsnrtombs: Work around Solaris 11.4 bug.
13745         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
13746         macro.
13747         (gl_FUNC_WCSNRTOMBS): Invoke it.
13748         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
13750 2018-10-14  Bruno Haible  <bruno@clisp.org>
13752         mbsnrtowcs: Work around Solaris 11.4 bug.
13753         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
13754         macro.
13755         (gl_FUNC_MBSNRTOWCS): Invoke it.
13756         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
13758 2018-10-14  Bruno Haible  <bruno@clisp.org>
13760         doc: Update for Solaris 11.4.
13761         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
13762         mention Solaris 11.4.
13763         * m4/printf.m4: Update comments about Solaris.
13764         * m4/log.m4: Likewise.
13765         * m4/log10.m4: Likewise.
13766         * m4/logb.m4: Likewise.
13767         * m4/logbf.m4: Likewise.
13768         * m4/logbl.m4: Likewise.
13769         * m4/rename.m4: Likewise.
13770         * m4/wcrtomb.m4: Likewise.
13771         * m4/hostent.m4: Likewise.
13772         * m4/servent.m4: Likewise.
13774 2018-10-14  Bruno Haible  <bruno@clisp.org>
13776         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
13777         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
13778         pointer.
13779         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
13780         pointer.
13781         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
13782         pointer.
13783         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
13784         pointer.
13785         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
13786         pointer.
13788 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
13790         bootstrap: fix wget command for po files.
13791         * build-aux/bootstrap (po_download_command_format): Fix comment,
13792         and adjust callers.
13794 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
13796         timevar: improve the output format
13797         Suggested by Bruno Haible.
13798         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
13799         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
13800         wall, since its resolution is much higher.
13802 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
13804         timevar: expect that getrusage is available.
13805         Don't keep both times and getrusage as backend: both are guaranteed by
13806         gnulib, a single one suffices.  Using getrusage is open to possibly
13807         tracking other types of resources in the future.
13808         * modules/timevar (Depends-on): Add getrusage.
13809         (configure.ac): Remove gl_TIMEVAR.
13810         (Files): Remove m4/timevar.m4.
13811         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
13812         * lib/timevar.h (timevar_enabled): Clarify documentation.
13813         * lib/timevar.c: Remove all the code about times.
13814         Remove all the CPP guards about getrusage: expect it to be present
13815         (courtesy of gnulib).
13817 2018-10-12  Bruno Haible  <bruno@clisp.org>
13819         mountlist: Improve support for Solaris in 64-bit mode.
13820         Reported by David Wood <David.Wood@deshaw.com> in
13821         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
13822         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
13823         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
13824         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
13826 2018-10-12  Bruno Haible  <bruno@clisp.org>
13828         mountlist: Add support for Minix.
13829         Reported by Assaf Gordon in
13830         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
13831         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
13832         AC_CHECK_FUNCS to check for 'getmntinfo'.
13833         * lib/mountlist.c: Update comments.
13835 2018-10-12  Bruno Haible  <bruno@clisp.org>
13837         Make better use of Autoconf.
13838         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
13839         * m4/manywarnings.m4: Likewise.
13840         * m4/manywarnings-c++.m4: Likewise.
13841         * m4/socklen.m4: Likewise.
13842         * m4/sockpfaf.m4: Likewise.
13843         * m4/stdarg.m4: Likewise.
13844         * m4/visibility.m4: Likewise.
13845         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
13846         indentation.
13847         * m4/ls-mntd-fs.m4: Likewise.
13849 2018-10-11  Bruno Haible  <bruno@clisp.org>
13851         mountlist: Modernize platform lists.
13852         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
13853         platforms, deemphasizing the obsolete ones.
13854         * lib/mountlist.c: Likewise.
13856 2018-10-11  Bruno Haible  <bruno@clisp.org>
13858         getprogname: Add support for 32-bit programs on HP-UX.
13859         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
13860         try the similar functions 32-bit programs on 64-bit HP-UX.
13862 2018-10-11  Bruno Haible  <bruno@clisp.org>
13864         getprogname: Work around program name truncation when possible.
13865         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
13866         possibly use pst_cmd instead.
13868 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
13870         fts: cleanup after FTS_NOATIME removal
13871         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
13872         (FTS_STOP): Shrink to minimal values.  We don’t need to
13873         worry about binary compatibility in Gnulib, and the old way
13874         of doing things had a hole in the user options that caused
13875         FTS_OPTIONMASK to not work as desired.
13877 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
13879         fts: remove FTS_NOATIME
13880         This reverts commit da4d6974013c822af1498941e32db774b2031765.
13881         We cannot guarantee that O_NOATIME works: e.g. openat fails
13882         with EPERM if the effective user ID of the caller does not match
13883         the owner of the file and the caller is not privileged.
13884         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
13885         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
13886         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
13887         (FTS_OPTIONMASK): Adjust.
13888         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
13889         (fd_ring_check): Likewise.
13891 2018-10-08  Bruno Haible  <bruno@clisp.org>
13893         csharpcomp*, csharpexec*: Remove support for pnet.
13894         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
13895         HAVE_CSCC.
13896         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
13897         Don't test HAVE_CSCC.
13898         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
13899         (compile_csharp_class): Don't invoke it.
13900         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
13901         HAVE_ILRUN.
13902         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
13903         Don't test HAVE_ILRUN.
13904         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
13905         (execute_csharp_program): Don't invoke it.
13906         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
13907         any more.
13909 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
13911         renameatu: prefer renameat2 to syscall
13912         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
13913         Use renameat2 instead of syscall (Bug#32796).
13914         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
13916 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
13918         bootstrap, gnulib-tool: use https instead of insecure rsync
13919         * build-aux/bootstrap (download_po_files, po_download_command_format):
13920         Don't try using rsync; always use wget over https to fetch PO files.
13921         * gnulib-tool (func_import): Likewise.
13922         * pygnulib/GLImport.py (GLImport.execute): Likewise.
13924 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
13926         bootstrap, gnulib-tool: correct the translations wget command
13927         * build-aux/bootstrap (po_download_command_format2): Restrict
13928         recursion to a single level.
13929         * gnulib-tool (func_import): Likewise.
13930         * pygnulib/GLImport.py (GLImport.execute): Likewise.
13932 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
13934         doc: the gnulib snapshots are not maintained
13935         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
13937 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
13939         timevar: add to lib_SOURCES
13940         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
13942 2018-10-07  Bruno Haible  <bruno@clisp.org>
13944         dirent: Update documentation.
13945         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
13947 2018-10-05  Bruno Haible  <bruno@clisp.org>
13949         strpbrk: Make it possible to namespace the defined symbol.
13950         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
13952 2018-10-05  Bruno Haible  <bruno@clisp.org>
13954         strcspn: Make it possible to namespace the defined symbol.
13955         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
13957 2018-10-05  Bruno Haible  <bruno@clisp.org>
13959         raise: Make it possible to namespace the defined symbol.
13960         * lib/raise.c (raise): Undefine only after the replacement function has
13961         been defined.
13962         (raise): Renamed from rpl_raise.
13963         (raise_nothrow): Move to the end of the compilation unit.
13965 2018-10-05  Bruno Haible  <bruno@clisp.org>
13967         memcmp: Make it possible to namespace the defined symbol.
13968         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
13970 2018-10-05  Bruno Haible  <bruno@clisp.org>
13972         explicit_bzero: Make it possible to namespace the defined symbol.
13973         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
13974         glibc.
13976 2018-10-05  Bruno Haible  <bruno@clisp.org>
13978         mkdir-p: Depend on 'mkdir'.
13979         * modules/mkdir-p (Depends-on): Add 'mkdir'.
13981 2018-10-05  Bruno Haible  <bruno@clisp.org>
13983         tempname: Depend on 'mkdir'.
13984         Reported by Maarten Bosmans <mkbosmans@gmail.com>
13985         at <https://savannah.gnu.org/bugs/?33379>.
13986         * modules/tempname (Depends-on): Add 'mkdir'.
13988 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
13990         timevar: rely on gnulib modules for time portability.
13991         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
13992         * m4/timevar.m4: Don't check for clock_t and struct tms,
13993         guaranteed by gnulib.
13994         * lib/timevar.h: Use extern "C" protection.
13995         Include <stdio.h> for FILE.
13996         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
13997         they are guaranteed by gnulib.
13998         Remove uses of clock as (now useless) fallback.
14000 2018-10-04  Bruno Haible  <bruno@clisp.org>
14002         sh-filename: New module.
14003         * m4/sh-filename.m4: New file.
14004         * modules/sh-filename: New file.
14005         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
14006         "/bin/sh".
14007         * tests/test-posix_spawn1.c (main): Likewise.
14008         * tests/test-posix_spawn2.c (main): Likewise.
14009         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
14010         is_envjavac_gcj43): Likewise.
14011         * lib/javaexec.c (execute_java_class): Likewise.
14012         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
14013         * modules/posix_spawnp-tests (Depends-on): Likewise.
14014         * modules/javacomp (Depends-on): Likewise.
14015         * modules/javaexec (Depends-on): Likewise.
14017 2018-10-04  Bruno Haible  <bruno@clisp.org>
14019         spawn-pipe tests: Avoid test failure on native Windows.
14020         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
14021         that fd 2 is closed.
14023 2018-10-04  Bruno Haible  <bruno@clisp.org>
14025         fcntl: Make it possible to namespace the defined symbol.
14026         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
14027         been defined.
14028         (fcntl): Renamed from rpl_fcntl.
14029         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
14030         from fcntl.
14031         (klibc_fcntl): Move to the end of the compilation unit.
14033 2018-10-02  Bruno Haible  <bruno@clisp.org>
14035         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
14036         * tests/test-vasnprintf.c (test_function): Change the test added on
14037         2018-09-23 to check only the 18 most significant digits.
14039         vasnprintf tests: Avoid test failure on Cygwin.
14040         * tests/test-vasnprintf.c (test_function): Change the test added on
14041         2018-09-23 to check only the 42 most significant digits.
14043 2018-10-01  Bruno Haible  <bruno@clisp.org>
14045         mkostemp, mkostemps: Update documentation.
14046         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
14047         * doc/glibc-functions/mkostemps.texi: Likewise.
14049 2018-10-01  Tom Tromey  <tom@tromey.com>
14051         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
14052         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
14053         on OS X.
14055 2018-09-30  Pádraig Brady  <P@draigBrady.com>
14057         hmac-*: refactor to remove repetitive code
14058         * lib/hmac.c: A new parameterized single implementation.
14059         * lib/hmac-md5.c: Define parameters and include implementation.
14060         * lib/hmac-sha1.c: Likewise.
14061         * lib/hmac-sha256.c: Likewise.
14062         * lib/hmac-sha512.c: Likewise.
14063         * modules/crypto/hmac-md5: Reference the new implementation file.
14064         * modules/crypto/hmac-sha1: Likewise.
14065         * modules/crypto/hmac-sha256: Likewise.
14066         * modules/crypto/hmac-sha512: Likewise.
14067         * tests/test-hmac-md5.c: Refactor common code to a single function.
14068         * tests/test-hmac-sha1.c: Likewise.
14069         * tests/test-hmac-sha256.c: Likewise.
14070         * tests/test-hmac-sha512.c: Likewise.
14072 2018-09-30  Zhang Qing  <zhangqingl@126.com>
14074         hmac-sha512: fix hash for keys > blocksize (128 bytes)
14075         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
14076         key length to that output by sha512, not the blocksize.
14077         Otherwise uninitialized data from the stack
14078         is used when computing the hash.
14079         * tests/test-hmac-sha512.c: Add a shortened key test case.
14080         Reported at https://github.com/coreutils/gnulib/pull/5
14082 2018-09-30  Bruno Haible  <bruno@clisp.org>
14084         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
14085         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
14086         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
14087         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
14088         'unsigned int' before comparison with an unsigned value.
14090 2018-09-30  Bruno Haible  <bruno@clisp.org>
14092         grantpt: Remove unnecessary dependency.
14093         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
14095 2018-09-30  Bruno Haible  <bruno@clisp.org>
14097         timevar: Small tweaks.
14098         * lib/timevar.h: Fix comments. Add parameter names to function
14099         declarations.
14100         * lib/timevar.c: Include timevar.h immediately after config.h.
14101         * lib/timevar.def: Fix comments.
14102         * modules/timevar (Maintainer): List Akim Demaille.
14104 2018-09-30  Bruno Haible  <bruno@clisp.org>
14106         timevar: Include documentation in gnulib manual.
14107         * doc/timevar.texi: Change node and section name to 'Profiling of
14108         program phases'.
14109         In the code snippets, tweak the #includes and use GNU coding style.
14110         * doc/gnulib.texi: Include timevar.texi.
14112 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
14114         timevar: import from Bison.
14115         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
14116         New files.
14117         * lib/timevar.def: New file.
14118         * doc/timevar.texi: New file.
14120 2018-09-26  Bruno Haible  <bruno@clisp.org>
14122         javacomp-script, javacomp: Add preliminary support for Java 12..17.
14123         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
14124         * lib/javacomp.c (default_target_version): Likewise.
14126 2018-09-26  Bruno Haible  <bruno@clisp.org>
14128         javacomp-script, javacomp: Add support for Java 11.
14129         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
14130         target-version 11.
14131         * lib/javaversion.h: Update comments.
14132         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
14133         source_version_index, get_goodcode_snippet, get_failcode_snippet,
14134         TARGET_VERSION_BOUND, target_version_index,
14135         corresponding_classfile_version): Accept source_version 11 and
14136         target_version 11.
14137         * lib/javacomp.h: Update comments accordingly.
14139 2018-09-23  Bruno Haible  <bruno@clisp.org>
14141         vasnprintf: Fix heap memory overrun bug.
14142         Reported by Ben Pfaff <blp@cs.stanford.edu> in
14143         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
14144         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
14145         memory.
14146         * tests/test-vasnprintf.c (test_function): Add another test.
14148 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
14150         maint: mktime.c now shared with glibc
14151         * config/srclist.txt: intprops.h, timegm.c and mktime.c
14152         are now the same in Gnulib and glibc.
14154         mktime: fix _LIBC typo
14155         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
14157 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
14159         dfa: optimization for state merge
14160         * lib/dfa.c (merge2): New function.
14161         (merge_nfa_state): Use it.
14163 2018-09-18  Jim Meyering  <meyering@fb.com>
14165         dfa: trivial comment fix: s/is/if/
14166         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
14168 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
14170         dfa: use more-informative function name
14171         * lib/dfa.c (maybe_disable_superset_dfa):
14172         Rename from dfautf8noss.  Use change.
14174         dfa: tweak allocation performance
14175         * lib/dfa.c (merge_nfa_state, dfaoptimize):
14176         Prefer ptrdiff_t for indexes some more.
14177         Use char for flags, as it’s wide enough.
14178         Allocate queue and flags together, with one malloc call.
14179         No need to use xnmalloc since the multiplication and
14180         addition cannot overflow (it’s already been checked by
14181         earlier allocation).  Prefer memset to open-coding.
14183         dfa: prune states as we go
14184         * lib/dfa.c (prune): Remove.
14185         dfa: reorder enum for efficiency
14186         (merge_nfa_state): Prune as we go instead of at the end.
14187         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
14189         * lib/dfa.c (END): Now -1 again.  Reorder other elements
14190         of the enumeration to make it easier for GCC to generate
14191         efficient code by using fewer comparisons to check for
14192         ranges of values.
14193         (atom): Take advantage of the reordering.
14195 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
14197         dfa: optimize alternation in NFA
14198         Even when similar states exist in alternation, the DFA treats them
14199         as separate items, which may complicate the transition in NFA and
14200         cause slowdown.  This change assembles the states into one.  For
14201         example, ab|ac is changed into a(b|c).  This change speeds-up
14202         matching for many branched patterns.  For example, grep speeds up
14203         more than 30× in:
14205           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
14206           time -p env LC_ALL=C grep -vf in in
14208         * lib/dfa.c (prune): New function.
14209         (merge_nfa_state): New function.  It merges similar NFA states.
14210         (dfaoptimize): New function.  It seeks merged and removed nodes.
14211         (dfaanalyze): Call new function.
14212         (dfautf8noss): Change name from dfaoptimize because of addition of new
14213         function.
14214         (dfacomp): Update caller.
14216         dfa: simplify initial state
14217         Simplifying the initial state enables easier optimization of the NFA.
14218         * lib/dfa.c (enum token): Add new element BEG.
14219         (prtok): Adjust due to adding element BEG.
14220         (dfaparse): Put BEG at a head of tokens.
14221         (state_index): Adjust due to adding element BEG.
14222         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
14223         build initial state.
14224         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
14226 2018-09-18  Bruno Haible  <bruno@clisp.org>
14228         file-has-acl: Fix test failure on Cygwin 2.9.
14229         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
14230         * lib/acl-internal.h: Likewise.
14231         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
14232         * lib/acl-internal.c: Update comments regarding Cygwin.
14233         * lib/acl_entries.c: Likewise.
14234         * lib/file-has-acl.c: Likewise.
14235         (file_has_acl): For Cygwin, use a different way to determine whether
14236         the "default" ACL of a directory is nontrivial.
14237         * lib/get-permissions.c: Update comments regarding Cygwin.
14238         * lib/set-permissions.c: Likewise.
14240 2018-09-18  Bruno Haible  <bruno@clisp.org>
14242         stat-time tests: Fix test failure on Cygwin.
14243         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
14245 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
14247         doc: OS X 10.11 lacked ns time functions
14248         According to <https://github.com/zeromq/libzmq/issues/2175>,
14249         nanosecond-resolution timestamp functions were introduced
14250         in macOS 10.12, so document the last version (OS X 10.11)
14251         where they were absent.
14253         gettime: nanotime never existed
14254         Problem reported by Bruno Haible in:
14255         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
14256         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
14257         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
14259 2018-09-18  Bruno Haible  <bruno@clisp.org>
14261         doc: Update statement about target platforms.
14262         Reported by Simon Sobisch.
14263         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
14264         restrictions on MSVC versions.
14266 2018-09-18  Bruno Haible  <bruno@clisp.org>
14268         posix_spawn tests: Fix link error on 64-bit Cygwin.
14269         * tests/test-posix_spawn1.c (environ): Remove declaration.
14270         * tests/test-posix_spawn2.c (environ): Likewise.
14271         * tests/test-posix_spawn3.c (environ): Likewise.
14272         * tests/test-posix_spawn4.c (environ): Likewise.
14273         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
14274         * modules/posix_spawnp-tests (Depends-on): Likewise.
14276 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
14278         timespec: new function current_timespec
14279         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
14280         and don’t worry about it failing on a CLOCK_REALTIME arg.
14281         POSIX requires it to succeed and I don’t know of any
14282         counterexamples where the fallbacks would work.
14283         (current_timespec): New function, taken from Emacs.  It is more
14284         convenient than gettime, and can help register allocation.
14285         * lib/timespec.h: Include arg-nonnull.h.
14286         (current_timespec): New declaration.
14287         (gettime, settime): Declare args to be nonnull.
14288         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
14290 2018-09-16  Bruno Haible  <bruno@clisp.org>
14292         setlocale: Improve locale handling on macOS 10.12 or newer.
14293         * lib/setlocale.c: Include header files for CoreFoundation. Declare
14294         gl_locale_name_canonicalize.
14295         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
14296         and LC_MESSAGES.
14297         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
14299 2018-09-16  Bruno Haible  <bruno@clisp.org>
14301         Update list of locale names with scripts on macOS.
14302         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
14303         match Mac OS X 10.13 and recent glibc.
14305 2018-09-16  Bruno Haible  <bruno@clisp.org>
14307         gettext: Use newer macOS APIs when possible.
14308         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
14309         CFLocaleCopyPreferredLanguages.
14311 2018-09-16  Bruno Haible  <bruno@clisp.org>
14313         localename: Revisit macOS specific code.
14314         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
14315         Fix comments about Mac OS X versions.
14317 2018-09-15  Bruno Haible  <bruno@clisp.org>
14319         setlocale: Improve support for locales not supported by libc.
14320         Reported by Dapeng Gao <peter@dpgao.cc> at
14321         <https://savannah.gnu.org/bugs/?54479>.
14322         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
14323         (libintl_setlocale): Use a more error-tolerant strategy when the locale
14324         to be set is not supported by libc: Emit warnings instead of failing.
14326 2018-09-15  Bruno Haible  <bruno@clisp.org>
14328         strstr, strcasestr: Add workaround against glibc-2.28 bug.
14329         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
14330         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
14331         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
14332         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
14333         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
14334         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
14335         * doc/glibc-functions/strcasestr.texi: Likewise.
14337 2018-09-14  Bruno Haible  <bruno@clisp.org>
14339         doc: Fix bottom of top-level page.
14340         Reported by Akim Demaille <akim.demaille@gmail.com> in
14341         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
14342         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
14343         mode.
14344         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
14345         accordingly.
14347 2018-09-12  Bruno Haible  <bruno@clisp.org>
14349         Add test case from a recent glibc bug.
14350         * tests/test-strstr.c (main): Add test of long needle.
14351         * tests/test-strcasestr.c (main): Likewise.
14352         * tests/test-c-strstr.c (main): Likewise.
14353         * tests/test-c-strcasestr.c (main): Likewise.
14354         * tests/test-memmem.c (main): Likewise.
14356 2018-09-12  Bruno Haible  <bruno@clisp.org>
14358         Apply Eric Blake's improvements from 2011-02-25 to more tests.
14359         * tests/test-c-strstr.c (main): Add the same tests here as well.
14361 2018-09-12  Bruno Haible  <bruno@clisp.org>
14363         Apply Jim Meyering's fix from 2015-01-11 to more tests.
14364         * tests/test-memmem.c (main): Free haystack.
14365         * tests/test-strcasestr.c (main): Likewise.
14366         * tests/test-c-strcasestr.c (main): Likewise.
14368 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
14370         xstrtol: fix missing-TYPE_SIGNED typo
14371         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
14373 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
14375         timespec: fix resolution confusion
14376         In normal usage, clock resolution is given in seconds, but the
14377         code was mistakenly using inverse seconds and calling it
14378         “resolution”.  Fix this, partly by renaming two identifiers.
14379         The old names will be kept for a bit, to ease transition.
14380         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
14381         New constants, replacing TIMESPEC_RESOLUTION and
14382         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
14383         All uses changed.
14385 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
14387         mktime: simplify in prep for glibc merge
14388         * lib/mktime.c, lib/timegm.c [_LIBC]:
14389         Include mktime-internal.h (a small file just for glibc)
14390         instead of using a typedef.
14392 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
14394         intprops: minor clarification of code
14395         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
14396         Use _GL_INT_CONVERT rather than reinventing it.
14398 2018-09-07  Bruno Haible  <bruno@clisp.org>
14400         Fix a comment.
14401         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
14403 2018-09-07  Bruno Haible  <bruno@clisp.org>
14405         posix_spawn_file_actions_addchdir: Add tests.
14406         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
14407         * tests/test-posix_spawn4.c: New file.
14408         * modules/posix_spawn_file_actions_addchdir-tests: New file.
14410 2018-09-07  Bruno Haible  <bruno@clisp.org>
14412         posix_spawn_file_actions_addchdir: New module.
14413         Suggested by Eric Blake in
14414         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
14415         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
14416         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
14417         union member 'chdir_action'.
14418         * lib/spawn_faction_addchdir.c: New file.
14419         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
14420         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
14421         HAVE_WORKING_POSIX_SPAWN.
14422         * lib/spawn_faction_adddup2.c: Likewise.
14423         * lib/spawn_faction_addopen.c: Likewise.
14424         * m4/posix_spawn_faction_addchdir.m4: New file.
14425         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
14426         'posix_spawn_file_actions_addchdir' is present and whether
14427         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
14428         instead of HAVE_WORKING_POSIX_SPAWN.
14429         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
14430         posix_spawn_file_actions_addchdir is declared.
14431         (gl_SPAWN_H_DEFAULTS): Initialize
14432         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
14433         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
14434         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
14435         * modules/spawn (Makefile.am): Substitute
14436         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
14437         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
14438         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
14439         * modules/posix_spawn_file_actions_addchdir: New file.
14440         * modules/posix_spawn_file_actions_addclose (Depends-on,
14441         configure.ac): Test also REPLACE_POSIX_SPAWN.
14442         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
14443         configure.ac): Likewise.
14444         * modules/posix_spawn_file_actions_addopen (Depends-on,
14445         configure.ac): Likewise.
14446         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
14447         signature.
14448         * doc/posix-functions/posix_spawn.texi: Mention the new module.
14449         * doc/posix-functions/posix_spawnp.texi: Likewise.
14451 2018-09-06  Bruno Haible  <bruno@clisp.org>
14453         stddef: Override max_align_t on NetBSD 8.0/x86.
14454         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
14455         the value of __alignof__ (max_align_t).
14456         * doc/posix-headers/stddef.texi: Mention the issue.
14458 2018-09-06  Bruno Haible  <bruno@clisp.org>
14460         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
14461         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
14462         system fcntl.
14463         * doc/posix-functions/fcntl.texi: Document the issue.
14465 2018-09-06  Bruno Haible  <bruno@clisp.org>
14467         count-trailing-zeros tests: Rely on limits-h module.
14468         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
14469         definition.
14470         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
14472 2018-09-06  Bruno Haible  <bruno@clisp.org>
14474         count-leading-zeros tests: Rely on limits-h module.
14475         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
14476         definition.
14477         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
14479 2018-09-06  Bruno Haible  <bruno@clisp.org>
14481         count-one-bits tests: Rely on limits-h module.
14482         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
14483         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
14485 2018-09-06  Bruno Haible  <bruno@clisp.org>
14487         xstrtoll: Rely on limits-h module.
14488         * lib/xstrtol.c: Don't include intprops.h.
14489         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
14490         * modules/xstrtol (Depends-on): Remove 'intprops'.
14491         * modules/xstrtoll (Depends-on): Add 'limits-h'.
14493 2018-09-06  Bruno Haible  <bruno@clisp.org>
14495         strtoll, strtoull: Rely on limits-h module.
14496         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
14497         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
14498         * modules/strtoll (Depends-on): Add limits-h.
14499         * modules/strtoull (Depends-on): Likewise.
14501 2018-09-06  Bruno Haible  <bruno@clisp.org>
14503         intprops tests: Fix compilation error with pre-C99 compiler.
14504         * tests/test-intprops.c (verify_stmt): New macro.
14505         (VERIFY, main): Use it.
14507 2018-09-06  Bruno Haible  <bruno@clisp.org>
14509         limits-h: Provide numerical limits macros.
14510         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
14511         IRIX and for GCC.
14512         (WORD_BIT, LONG_BIT): Define.
14513         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
14514         <limits.h> does not define LLONG_MAX or WORD_BIT.
14515         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
14516         TYPE_MAXIMUM): New macros, from intprops.h.
14517         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
14518         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
14519         provides.
14521 2018-09-05  Bruno Haible  <bruno@clisp.org>
14523         fcntl: Don't access nonexistent optional argument.
14524         Reported by Frank Busse <f.busse@imperial.ac.uk> in
14525         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
14526         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
14527         don't consume an argument. For actions that take an 'int' argument,
14528         consume an 'int' argument.
14530 2018-09-05  Eric Blake  <eblake@redhat.com>
14532         doc: mention environ pitfall
14533         * doc/posix-functions/environ.texi (environ): Assigning NULL to
14534         environ is a glibc extension.
14536 2018-09-03  Bruno Haible  <bruno@clisp.org>
14538         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
14539         Reported by Antoine Luong <antoine.luong@c-s.fr> in
14540         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
14541         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
14542         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
14543         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
14545 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
14547         mktime: fix unlikely race+overflow bug
14548         Problem reported by Alexandre Oliva in:
14549         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
14550         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
14551         to avoid an unlikely race if the compiler delays a load and
14552         if this cascades into a signed integer overflow.
14554 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
14556         mktime, timegm: simplify glibc time64_t
14557         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
14558         Now long int, not time_t, since long int is the longstanding type
14559         for this in glibc and there is no need to change it even if time_t
14560         becomes 64 bits - even int would do, though this would be a change
14561         to the glibc generated code.  When this change is merged into
14562         glibc, it should simplify the time_t vs time64_t situation.
14564         mktime, timegm: simplify merge to glibc
14565         Move code around to make a merge to glibc easier to audit.
14566         This should not change behavior.
14567         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
14568         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
14569         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
14570         simplify later conditionals; default the others to zero.  In uses
14571         of these conditionals, explicitly spell out how _LIBC affects
14572         things, so it’s easier to review from a glibc viewpoint.
14573         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
14574         compartmentalize tzset issues.  Move system-dependent tzsettish
14575         code here from mktime.
14576         (mktime): Move tzsettish code to my_tzset, and move
14577         localtime_offset to within mktime so that it doesn’t
14578         need a separate ifdef.
14580 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
14582         intprops: avoid evaluation of some expressions
14583         This makes EXPR_SIGNED (e) easier to use, as it no longer
14584         evaluates the expression E.  Formerly, E was required to be free
14585         of side effects.
14586         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
14587         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
14588         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
14590 2018-08-23  Bruno Haible  <bruno@clisp.org>
14592         getcwd: Add cross-compilation guesses.
14593         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
14594         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
14595         Based on a patch by Paul Eggert.
14596         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
14597         guesses for all GNU systems.
14599 2018-08-19  Bruno Haible  <bruno@clisp.org>
14601         glob-h: Formalize side effects from other modules.
14602         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
14603         * m4/glob.m4 (gl_GLOB): Invoke it.
14605         fnmatch-h: Formalize side effects from other modules.
14606         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
14607         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
14609         limits-h: Formalize side effects from other modules.
14610         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
14611         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
14613 2018-08-19  Bruno Haible  <bruno@clisp.org>
14615         getpass: Move declaration to <unistd.h>.
14616         * lib/unistd.in.h (getpass): New declaration.
14617         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
14618         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
14619         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
14620         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
14621         On glibc systems, don't set REPLACE_GETPASS to 1.
14622         * modules/getpass (Depends-on): Add 'unistd'.
14623         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
14624         (Include): Specify <unistd.h> instead of "getpass.h".
14625         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
14626         (configure.ac): Sync with the configure.ac section of modules/getpass.
14627         (Include): Specify <unistd.h> instead of "getpass.h".
14628         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
14629         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
14630         REPLACE_GETPASS.
14631         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
14632         REPLACE_GETPASS.
14633         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
14634         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
14635         and musl.
14636         * NEWS: Mention the change.
14638 2018-08-19  Bruno Haible  <bruno@clisp.org>
14640         glob: Fix over-optimization due to attribute __nonnull__.
14641         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
14643 2018-08-19  Bruno Haible  <bruno@clisp.org>
14645         glob: Fix another compilation error when glob.h is not replaced.
14646         Reported by Reuben Thomas <rrt@sc3d.org> in
14647         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
14648         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
14649         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
14651 2018-08-18  Bruno Haible  <bruno@clisp.org>
14653         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
14654         Reported by Reuben Thomas <rrt@sc3d.org> in
14655         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
14656         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
14657         in config.h.
14659 2018-08-18  Bruno Haible  <bruno@clisp.org>
14661         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
14662         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
14663         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
14664         Solution proposed by Eli Zaretskii.
14665         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
14666         * lib/gettimeofday.c (GetProcAddress): Likewise.
14667         * lib/link.c (GetProcAddress): Likewise.
14668         * lib/physmem.c (GetProcAddress): Likewise.
14669         * lib/poll.c (GetProcAddress): Likewise.
14670         * lib/select.c (GetProcAddress): Likewise.
14671         * lib/stat-w32.c (GetProcAddress): Likewise.
14673 2018-08-18  Bruno Haible  <bruno@clisp.org>
14675         glob: Fix another compilation error when glob.h is not replaced.
14676         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
14677         * lib/globfree.c: Include <libc-config.h>.
14679 2018-08-18  Bruno Haible  <bruno@clisp.org>
14681         glob: Fix compilation error when glob.h is not replaced.
14682         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
14683         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
14684         * lib/glob_pattern_p.c: Include <libc-config.h>.
14685         * modules/glob (Depends-on): Add libc-config.
14687 2018-08-18  Bruno Haible  <bruno@clisp.org>
14689         scratch_buffer: Add tests.
14690         * tests/test-scratch-buffer.c: New file.
14691         * modules/scratch_buffer-tests: New file.
14693 2018-08-18  Bruno Haible  <bruno@clisp.org>
14695         scratch_buffer: Fix include file.
14696         Reported by Reuben Thomas <rrt@sc3d.org> in
14697         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
14698         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
14699         double-inclusion guard.
14701 2018-08-18  Bruno Haible  <bruno@clisp.org>
14703         glob-h: Revert Paul Eggert's revert.
14704         * m4/glob_h.m4: Revert to previous state.
14705         * modules/glob-h: Likewise.
14707 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
14709         glob-h: always build glob.h
14710         This works around a problem reported by Reuben Thomas in:
14711         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
14712         This workaround always builds glob.h, even on platforms that
14713         do not need it; perhaps this could be improved someday.
14714         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
14715         is always created now.
14716         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
14718 2018-08-13  Bruno Haible  <bruno@clisp.org>
14720         monetary: Simplify m4 code.
14721         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
14722         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
14724 2018-08-13  Bruno Haible  <bruno@clisp.org>
14726         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
14727         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
14728         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
14729         and by Paul J. Lucas <paul@lucasmail.org> in
14730         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
14731         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
14733 2018-08-11  Bruno Haible  <bruno@clisp.org>
14735         setlocale: Trivial simplification.
14736         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
14738 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
14740         verify: port 'assume' to traditional tools
14741         * lib/verify.h (assume): Port better to Oracle Studio 12.6
14742         and other tools that use /*NOTREACHED*/ comments.
14744 2018-08-10  Bruno Haible  <bruno@clisp.org>
14746         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
14747         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
14748         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
14749         'fnmatch-gnu' is in use.
14751 2018-08-07  Bruno Haible  <bruno@clisp.org>
14753         glob-h: Add tests.
14754         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
14755         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
14756         tests/test-glob-h.c.
14757         * modules/glob-h-tests: New file.
14758         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
14759         conditions.
14760         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
14761         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
14763 2018-08-07  Bruno Haible  <bruno@clisp.org>
14765         glob-h: New module.
14766         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
14767         replacements.
14768         * lib/glob.c: Include <config.h>.
14769         * m4/glob_h.m4: New file.
14770         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
14771         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
14772         REPLACE_GLOB_PATTERN_P as appropriate.
14773         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
14774         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
14775         * modules/glob-h: New file.
14776         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
14777         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
14778         lstat, sys_stat. Change conditions.
14779         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
14780         REPLACE_GLOB_PATTERN_P. Set module indicator.
14781         (Makefile.am): Remove code that is moved to glob-h.
14782         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
14783         * modules/posixcheck (Depends-on): Add glob-h.
14785 2018-08-06  Bruno Haible  <bruno@clisp.org>
14787         Force generation of substitute .h file when C++ support is enabled.
14788         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
14789         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
14790         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
14791         FNMATCH_H to non-empty.
14792         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
14793         ICONV_H to non-empty.
14794         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
14795         MONETARY_H to non-empty.
14796         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
14797         non-empty.
14799 2018-08-06  Bruno Haible  <bruno@clisp.org>
14801         fnmatch-h: Fix test compilation error on mingw (regression from today).
14802         * lib/fnmatch.in.h: Fix conditions.
14804 2018-08-06  Bruno Haible  <bruno@clisp.org>
14806         sys_resource: Relicense under LGPLv2+.
14807         John Malmberg's approval is in
14808         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
14809         * modules/sys_resource (License): Change to LGPLv2+.
14811 2018-08-06  Bruno Haible  <bruno@clisp.org>
14813         fnmatch-h: Add tests.
14814         * tests/test-fnmatch-h.c: New file.
14815         * modules/fnmatch-h-tests: New file.
14816         * tests/test-fnmatch-h-c++.cc: New file.
14817         * modules/fnmatch-h-c++-tests: New file.
14819 2018-08-06  Bruno Haible  <bruno@clisp.org>
14821         fnmatch-h: New module.
14822         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
14823         replacements.
14824         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
14825         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
14826         'posixcheck' warning.
14827         * m4/fnmatch_h.m4: New file.
14828         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
14829         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
14830         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
14831         as appropriate.
14832         * modules/fnmatch-h: New file.
14833         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
14834         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
14835         conditions.
14836         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
14837         indicator.
14838         (Makefile.am): Remove code that is moved to fnmatch-h.
14839         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
14840         REPLACE_FNMATCH.
14841         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
14842         * modules/posixcheck (Depends-on): Add fnmatch-h.
14844 2018-08-06  Bruno Haible  <bruno@clisp.org>
14846         Enable more C++ tests.
14847         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
14848         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
14849         * modules/strings-tests (Depends-on): Add strings-c++-tests.
14850         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
14851         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
14853 2018-08-06  Bruno Haible  <bruno@clisp.org>
14855         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
14856         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
14857         getopt.h.
14858         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
14860 2018-08-05  Bruno Haible  <bruno@clisp.org>
14862         utime-h: Generate header file when module 'posixcheck' is in use.
14863         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
14864         UTIME_H to non-empty.
14866 2018-08-05  Bruno Haible  <bruno@clisp.org>
14868         monetary: Generate header file when module 'posixcheck' is in use.
14869         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
14870         use, set MONETARY_H to non-empty.
14872 2018-08-05  Bruno Haible  <bruno@clisp.org>
14874         iconv-h: Generate header file when module 'posixcheck' is in use.
14875         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
14876         set ICONV_H to non-empty.
14878 2018-08-05  Bruno Haible  <bruno@clisp.org>
14880         Optimize the "checking whether ... is declared without a macro" checks.
14881         Suggested by Paul Eggert in
14882         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
14883         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
14884         Gnulib module 'posixcheck' is not in use.
14886 2018-08-05  Bruno Haible  <bruno@clisp.org>
14888         iconv-h: Enable 'posixcheck' warnings.
14889         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
14890         iconv_open.
14891         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
14893 2018-08-05  Bruno Haible  <bruno@clisp.org>
14895         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
14896         * m4/extern-inline.m4: Add more comments.
14897         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
14898         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
14899         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
14901 2018-08-04  Bruno Haible  <bruno@clisp.org>
14903         New module 'posixcheck'.
14904         * modules/posixcheck: New file.
14905         * m4/posixcheck.m4: New file.
14906         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
14907         (Which modules?): Reference it.
14909 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
14911         dfa: fix memory leak
14912         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
14914 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
14916         ieee754-h: new module
14917         It looks like Emacs can use this for some NaN processing.
14918         Emacs uses it only on double NaNs so it should be safe.
14919         * MODULES.html.sh (func_all_modules): Add ieee754-h.
14920         * config/srclist.txt: Mention ieee754.h in a comment.
14921         * doc/glibc-headers/ieee754.texi (ieee754.h):
14922         Gnulib now has a substitute that should work
14923         except for long double and for non-IEEE platforms.
14924         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
14925         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
14927 2018-07-27  Bruno Haible  <bruno@clisp.org>
14929         iswcntrl: Mention minor problem on macOS.
14930         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
14932 2018-07-26  Colin Watson  <cjwatson@debian.org>
14934         bootstrap, gnulib-tool: fix translations rsync
14935         Previously, we created files such as $pobase/Makefile.in.in and then the
14936         subsequent rsync would immediately delete them.
14937         * build-aux/bootstrap (po_download_command_format): Avoid deleting
14938         non-.po files in target directory when rsyncing translations.
14939         * gnulib-tool (func_import): Likewise.
14940         * pygnulib/GLImport.py (GLImport.execute): Likewise.
14942 2018-07-25  Jim Meyering  <meyering@fb.com>
14944         bootstrap: reinstate definition fo gnulib_mk.
14945         That variable is used at least by cppi.
14946         * build-aux/bootstrap (gnulib_mk): Restore definition.
14947         This reverts the deletion from v0.1-1844-gc66dba9ba.
14949 2018-07-23  Bruno Haible  <bruno@clisp.org>
14951         doc: For module names, use texinfo markup @code{} or @samp{}.
14952         * doc/alloca.texi: Mark gnulib module names with @code.
14953         * doc/alloca-opt.texi: Likewise.
14954         * doc/quote.texi: Likewise.
14955         * doc/posix-functions/freopen.texi: Likewise.
14956         * doc/posix-functions/open.texi: Likewise.
14957         * doc/posix-functions/readlink.texi: Likewise.
14958         * doc/posix-functions/readlinkat.texi: Likewise.
14959         * doc/posix-functions/stdout.texi: Likewise.
14960         * doc/posix-functions/stderr.texi: Likewise.
14961         * doc/posix-functions/unlink.texi: Likewise.
14962         * doc/posix-functions/unlinkat.texi: Likewise.
14963         * doc/posix-functions/utime.texi: Likewise.
14964         * doc/posix-functions/utimensat.texi: Likewise.
14965         * doc/posix-functions/utimes.texi: Likewise.
14966         * doc/posix-headers/stdint.texi: Likewise.
14967         * doc/glibc-functions/futimesat.texi: Likewise.
14968         * doc/glibc-functions/lutimes.texi: Likewise.
14969         * doc/glibc-functions/memmem.texi: Likewise.
14971 2018-07-23  Werner LEMBERG  <wl@gnu.org>
14973         doc: Avoid some overfull lines in the TeX output.
14974         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
14975         @example.
14976         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
14977         newline before the long URL.
14978         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
14979         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
14980         Add line breaks in code snippets.
14982 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
14984         hard-locale: simplify by removing hard-locale.m4
14985         * m4/hard-locale.m4: Remove.
14986         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
14987         (configure.ac): Do not call gl_HARD_LOCALE.
14989         gnulib-tool: limit line length for git send-email
14990         * gnulib-tool (func_import): Break actioncmd log line
14991         into multiple lines.
14993 2018-07-16  Bruno Haible  <bruno@clisp.org>
14995         ffs: Ensure declaration on mingw.
14996         Reported by Daniel P. Berrangé <berrange@redhat.com>
14997         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
14998         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
14999         also declared.
15001 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
15003         regex-tests: add dependency
15004         * modules/regex-tests (Depends-on): Add gettext-h.
15005         This is needed given the recent changes to regex,
15006         which no longer depends on gettext-h.
15008 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15010         regex: now in sync with glibc
15011         * config/srclist.txt: Gnulib and glibc regex code
15012         are synchronized again.
15014 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
15016         renameatu: rename from renameat2
15017         It's looking like Glibc will add a renameat2 function
15018         that is incompatible with Gnulib renameat2; see:
15019         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
15020         To help avoid future confusion, rename renameat2 to something else.
15021         Use the name 'renameatu', as the Gnulib function is close to the
15022         Glibc function.  Perhaps someday there will also be a renameat2
15023         Gnulib module, which mimicks the future glibc renameat2, but that
15024         can wait as nobody seems to need such a module now.
15025         * NEWS: Mention this.
15026         * lib/renameatu.c: Rename from lib/renameat2.c.
15027         * lib/renameatu.h: Rename from lib/renameat2.h.
15028         * modules/renameatu: Rename from modules/renameat2.
15029         * modules/renameatu-tests: Rename from modules/renameat2-tests.
15030         All uses of "renameat2" in identifiers or file name
15031         changed to "renameatu", except for two instances in
15032         lib/renameatu.c that deal with the Linux kernel's
15033         renameat2 syscall.
15035 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
15037         gnulib-tool: minor tweaks for --gnu-make
15038         * gnulib-tool: Do not allow --gnu-make in test modes,
15039         since they all require automake.
15040         (func_emit_lib_Makefile_am): Don’t emit automake comment
15041         if --gnu-make.
15043         regex: work around conditional-dependencies glitch
15044         * modules/regex (Depends-on): Add langinfo.
15045         Without this change, I had problems building an experimental
15046         version of GNU Emacs.  The symptom of the bug was a message
15047         ‘./configure: line 12726: test: =: unary operator expected’.
15048         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
15049         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
15050         was unset.  Although gl_FUNC_NL_LANGINFO has
15051         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
15052         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
15053         --conditional-dependencies sometimes arranges for the
15054         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
15055         code.  Since the regex code includes <langinfo.h> it should be
15056         depending on the langinfo module anyway, and this happens to work
15057         around the bug, so install that as a workaround for now.  To
15058         reproduce the original problem, run the following shell script on
15059         the version of Gnulib just before this patch was installed.
15060                 rm -fr foo
15061                 mkdir foo
15062                 cat >foo/configure.ac <<'EOF'
15063                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
15064                 gl_EARLY
15065                 gl_INIT
15066                 AC_OUTPUT
15067                 EOF
15068                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
15069                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
15070                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
15071                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
15072                 cd foo
15073                 aclocal -I m4
15074                 autoconf
15075                 ./configure --with-included-regex
15077 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
15079         wchar: fix bug when checking for ‘inline’
15080         I discovered this when looking into using the regex module
15081         with Emacs.
15082         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
15083         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
15084         conftest1.c and conftest2.c but these files were not created.
15085         As far as I can see, this check never worked and nobody reported
15086         it until now, which is a bit worrisome.
15088 2018-06-30  Jim Meyering  <meyering@fb.com>
15090         bootstrap: s/--option val/--option=val/
15091         * build-aux/bootstrap (gnulib_tool_options): Change the
15092         spelling of "--option val" pairs to "--option=val", for
15093         aesthetics, and also so that this file no longer triggers
15094         a common help2man syntax-check warning when copied into
15095         projects like grep, gzip, etc.
15097 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
15099         manywarnings: omit -Wswitch-default
15100         This should make things more consistent, as we already ignore
15101         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
15102         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
15103         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
15104         Add -Wswitch-default.
15105         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
15106         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
15107         Remove -Wswitch-default.
15109         regex: revert most trimming
15110         Problems reported by Bruno Haible in:
15111         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
15112         * modules/regex (Depends-on): Add lock, memcmp, memmove,
15113         and wctype back in.  lock because regex users shouldn’t
15114         need to know that regex needs locking, and the rest because
15115         gnulib-tool should ordinarily ignore them anyway.
15117 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
15119         regex: trim module dependencies
15120         * modules/regex (Depends-on): Remove gettext-h and lock,
15121         since the regex code should work OK without these modules,
15122         and Emacs uses it that way.  Also remove memcmp, memmove,
15123         and wctype, as these modules are obsolete and should not be
15124         needed any more.
15126 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
15128         regex: glibc does not use intprops.h
15129         Maybe we can talk glibc into using intprops.h someday, but
15130         now doesn’t seem to be a good time.
15131         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
15132         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
15133         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
15135 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
15137         regex: port to recently proposed glibc regex merge
15138         This patch is inspired by Adhemerval Zanella's recent proposal
15139         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
15140         to merge glibc and Gnulib regex.  It aims to simplify the merge on
15141         the glibc side, without keeping Gnulib portable.
15142         * lib/regex.h: Fix a problem with glibc installed-header checking,
15143         as follows:
15144         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
15145         (_Restrict_arr_): Prefer __restrict_arr if defined,
15146         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
15147         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
15148         (build_wcs_upper_buffer, build_upper_buffer)
15149         (re_string_translate_buffer, re_string_context_at):
15150         Move decls here from lib/regex_internal.h, for glibc internal tests.
15151         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
15152         glibc BZ #18496.
15153         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
15154         -Wunused-value.
15155         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
15156         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
15157         (bitset_mask): Now static inline, and without any __attribute__
15158         ((unused)) decoration, for glibc internal tests.
15160 2018-06-25  Bruno Haible  <bruno@clisp.org>
15162         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
15163         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
15164         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
15165         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
15166         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
15167         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
15168         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
15169         / -lthread / -lpth does not get optimized away by a preceding
15170         --as-needed option.
15172 2018-06-25  Bruno Haible  <bruno@clisp.org>
15174         Continue to use spaces for indentation, not tabs.
15175         * MODULES.html.sh: Untabify.
15176         * doc/regex.texi: Likewise.
15177         * lib/acl-internal.c: Likewise.
15178         * lib/dfa.c: Likewise.
15179         * lib/exclude.c: Likewise.
15180         * lib/exclude.h: Likewise.
15181         * lib/get-permissions.c: Likewise.
15182         * lib/gettimeofday.c: Likewise.
15183         * lib/parse-datetime.y: Likewise.
15184         * lib/pselect.c: Likewise.
15185         * lib/set-permissions.c: Likewise.
15186         * lib/time.in.h: Likewise.
15187         * m4/canonicalize.m4: Likewise.
15188         * m4/gc.m4: Likewise.
15189         * m4/gnulib-common.m4: Likewise.
15190         * m4/pthread_sigmask.m4: Likewise.
15191         * m4/vararrays.m4: Likewise.
15192         * tests/test-digest.h: Likewise.
15193         * tests/test-fcntl-h.c: Likewise.
15194         * tests/test-timespec.c: Likewise.
15195         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
15197 2018-06-25  Bruno Haible  <bruno@clisp.org>
15199         manywarnings: Don't enable -Wjump-misses-init warnings by default.
15200         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
15201         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
15202         -Wjump-misses-init.
15204 2018-06-25  Jim Meyering  <meyering@fb.com>
15206         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
15207         * lib/acl-internal.h (free_permission_context): Remove that
15208         attribute directive.  Otherwise, it would provoke this from GCC 9:
15209         lib/acl-internal.h:300:3: error: 'const' attribute on function \
15210           returning 'void' [-Werror=attributes]
15212 2018-06-24  Jim Meyering  <meyering@fb.com>
15214         parse-datetime: accommodate gcc-4.8.5
15215         Bruno Haible reported the build failure in
15216         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
15217         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
15218         on declaration of new local.
15220 2018-06-24  Bruno Haible  <bruno@clisp.org>
15222         af_alg: Fail in continuable manner on Linux/powerpc64le.
15223         Reported by Assaf Gordon <assafgordon@gmail.com>
15224         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
15225         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
15226         byte send() as the first round.
15228 2018-06-24  Bruno Haible  <bruno@clisp.org>
15230         af_alg: Fix state of stream after sendfile() succeeds.
15231         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
15232         the stream is correctly positioned afterwards.
15233         * modules/crypto/af_alg (Depends-on): Add fflush.
15234         * tests/test-digest.h (test_digest_on_files): Verify that after the
15235         operation the stream is positioned at end of file.
15237 2018-06-24  Jim Meyering  <meyering@fb.com>
15239         canon-host: take GCC9's advice rather than ignoring warning
15240         Pádraig Brady suggested not to ignore this GCC9 advice.
15241         * lib/canon-host.c: Undo preceding change.
15242         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
15244         parse-datetime.y: avoid spurious GCC 9 warning
15245         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
15246         a function local prior to the first "goto fail".  The prior use would
15247         evoke this:
15248         parse-datetime.y: In function 'parse_datetime2':
15249         parse-datetime.y:1791:19: error: jump skips variable initialization \
15250           [-Werror=jump-misses-init]
15251         parse-datetime.y:2385:2: note: label 'fail' defined here
15252         parse-datetime.y:188:43: note: '({anonymous})' declared here
15253         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
15255         canon-host.c: avoid spurious GCC 9 warning
15256         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
15258         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
15259         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
15260         * m4/manywarnings.m4: Remove them.
15261         Otherwise, building coreutils, I would see this:
15262         cc1: error: deprecated command line option '-Wchkp' [-Werror]
15263         cc1: error: -Wabi won't warn about anything [-Werror=abi]
15264         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
15265           which is also used by default
15266         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
15268 2018-06-24  Bruno Haible  <bruno@clisp.org>
15270         af_alg tests: Add another test.
15271         * tests/test-digest.h (test_digest_on_files): Also check a large file
15272         with a skipped header.
15273         * tests/test-md5.c: Include macros.h.
15274         * tests/test-sha1.c: Likewise.
15275         * tests/test-sha256.c: Likewise.
15276         * tests/test-sha512.c: Likewise.
15277         * modules/crypto/md5-tests (Files): Add tests/macros.h.
15278         * modules/crypto/sha1-tests (Files): Likewise.
15279         * modules/crypto/sha256-tests (Files): Likewise.
15280         * modules/crypto/sha512-tests (Files): Likewise.
15282 2018-06-24  Pádraig Brady  <P@draigBrady.com>
15284         maint: clarify comments about sticky EOF
15285         * lib/af_alg.c: Be more direct that we can't
15286         assume stickiness of EOF for portability reasons.
15287         * lib/md5.c: Clarify that this isn't just a glibc issue.
15288         * lib/sha1.c: Likewise.
15289         * lib/sha256.c: Likewise.
15290         * lib/sha512.c: Likewise.
15292 2018-06-24  Bruno Haible  <bruno@clisp.org>
15294         af_alg: Comment and style improvements.
15295         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
15296         (afalg_buffer, afalg_stream): Improve comments.
15298 2018-06-24  Pádraig Brady  <P@draigBrady.com>
15300         af_alg: disable kernel hash functions by default
15301         All the kernel routines were seen to be significantly slower
15302         with these relatively recent components on an i3-2310M system:
15303           kernel-4.10.6-200.fc25.x86_64
15304           openssl-1.0.2m-1.fc25.x86_64
15305         sha1 was nearly twice as slow in the kernel for example.
15306         Further considerations why this should not be the default, at:
15307         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
15309         * m4/af_alg.m4: Require --with-linux-crypto to enable.
15310         * m4/gl-openssl.m4: Tweak accordingly.
15312 2018-06-24  Pádraig Brady  <P@draigBrady.com>
15314         af_alg: avoid hangs when reading from streams
15315         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
15316         and thus avoid doing a fread() when feof() is set.
15317         * lib/md5.c: Ensure feof() is called before fread().
15318         * lib/sha1.c: Likewise.
15319         * lib/sha256.c: Likewise.
15320         * lib/sha512.c: Likewise.
15322 2018-06-24  Pádraig Brady  <P@draigBrady.com>
15324         af_alg: fix error handling when hash not returned
15325         * lib/af_alg.c (afalg_stream): Handle the case where we've
15326         successfully written data to the kernel in the read/write loop,
15327         but the kernel doesn't respond with the hash.
15329 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
15331         libc-config: merge from glibc
15332         * lib/cdefs.h (__inline, __restrict):
15333         Copy from current glibc.  This fixes glibc bug 17721,
15334         which Gnulib had already fixed in a different way.
15335         (__nonnull): Lessen the distance from glibc by using the
15336         glibc definition inside an ‘#ifndef __nonnull’.
15337         (__attribute_nonstring__): New macro, copied from
15338         current glibc.
15339         * lib/libc-config.h (__attribute_nonstring__): New undef.
15340         (__restrict): Remove; workaround no longer needed.
15341         Keep the __inline workaround, though, as it uses HAVE___INLINE to
15342         support more compilers than the glibc __inline can.
15344 2018-06-24  Bruno Haible  <bruno@clisp.org>
15346         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
15347         * lib/mbrtowc.c (enc_t): New enum type.
15348         (locale_enc, locale_enc_cached): New functions.
15349         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
15350         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
15351         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
15352         instead.
15353         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
15354         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
15355         * modules/wcwidth (configure.ac): Invoke it.
15357 2018-06-24  Bruno Haible  <bruno@clisp.org>
15359         wchar-single: Fix test failure in wcwidth tests.
15360         * tests/test-wcwidth.c (main): If the wchar-single module is present,
15361         skip the tests in the C locale.
15363 2018-06-23  Pádraig Brady  <P@draigBrady.com>
15365         crypto: mention --without-linux-crypto in --with-openssl --help
15366         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
15367         routines take precedence in --with-openssl help output.
15369 2018-06-23  Pádraig Brady  <P@draigBrady.com>
15371         wchar-single: a new module to enable optimizations in wchar replacements
15372         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
15373         GNULIB_WCHAR_SINGLE is enabled.
15374         * lib/wcwidth.c (wcwidth): Likewise.
15376 2018-06-23  Bruno Haible  <bruno@clisp.org>
15378         libc-config: Fix conflict with FreeBSD include files.
15379         * lib/cdefs.h (__nonnull): Remove definition.
15380         * lib/libc-config.h (__nonnull): Remove undefinition.
15382 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
15384         random_r: do not crash if state is unaligned
15385         Problem reported by Bruce Korb in:
15386         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
15387         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
15388         with 'cc -O2 -xmemalign=8s'.
15389         * lib/random_r.c: Include string.h, for memcpy.
15390         (get_int32, set_int32): New functions.
15391         (__srandom_r, __initstate_r, __setstate_r, __random_r):
15392         Use them to avoid assumption that state pointer is aligned.
15393         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
15394         * tests/test-random_r.c (test_failed): New function.
15395         (main): Use it, to test for alignment bugs.
15397         random_r: omit unnecessary include
15398         * lib/random_r.c: Do not include limits.h.
15400         random, random_r: merge from glibc
15401         * lib/random.c, lib/random_r.c:
15402         Include libc-config.h if !_LIBC, not config.h unilaterally.
15403         * lib/random.c:
15404         Do not include stdint.h or time.h; not needed.
15405         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
15406         (unsafe_state): Rename from generator.  All uses changed.
15407         Use C99-style initializers.
15408         (__random, __srandom, __initstate, __setstate): Rename from
15409         non-underscored version, but define it to non-underscored version
15410         on Gnulib.  Add a lock.
15411         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
15412         Likewise.
15413         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
15414         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
15415         (__srandom_r): Use int32_t instead of long int where int32_t will do.
15416         (__random_r): Use uint32 to fix glibc bug 17343.
15417         * modules/random, modules/random_r (Depends-on): Add libc-config.
15418         Depend on stdint only if $HAVE_RANDOM = 0.
15420 2018-06-19  Jim Meyering  <meyering@fb.com>
15422         README-release: also run any check-very-expensive tests
15423         * top/README-release: Adjust instructions so they run the
15424         check-very-expensive tests when there is such a target.
15426 2018-06-18  Bruno Haible  <bruno@clisp.org>
15428         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
15429         * m4/pthread_rwlock_rdlock.m4: Add comment.
15430         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
15431         are reader-preferring in glibc.
15432         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
15433         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
15435 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
15437         crypto: use byteswap
15438         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
15439         * lib/sm3.c: Include <byteswap.h>.
15440         (SWAP): Use its macros rather than reinventing the wheel.
15441         * modules/crypto/md4, modules/crypto/md5-buffer:
15442         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
15443         * modules/crypto/sha512-buffer, modules/crypto/sm3:
15444         (Depends-on): Add byteswap.
15446 2018-06-17  Pádraig Brady  <P@draigBrady.com>
15448         gendocs.sh: fix support for legacy --texi2html
15449         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
15450         to the default makeinfo invocation.
15451         Reported by Bruce Korb
15453 2018-06-17  Bruno Haible  <bruno@clisp.org>
15455         gettext po infrastructure: Update from current gettext git.
15456         Reported by Akim Demaille <akim@lrde.epita.fr>.
15457         * build-aux/po/Makefile.in.in: Update from current gettext git.
15458         * build-aux/po/remove-potcdate.sin: Likewise.
15459         * config/srclist.txt: Temporarily disable sync for these files.
15461 2018-06-17  Bruno Haible  <bruno@clisp.org>
15463         getloadavg: Return 0 on Windows without Cygwin.
15464         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
15466 2018-06-17  Paul Smith  <psmith@gnu.org>
15468         getloadavg: Allow building on Windows without Cygwin
15469         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
15470         * m4/getloadavg.m4: Check for unistd.h.
15472 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
15474         Port crypto/af_alg to GCC 4.8.4
15475         Problem reported by Peter Simons in:
15476         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
15477         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
15479 2018-05-27  Colin Watson  <cjwatson@debian.org>
15481         bootstrap: document source fetching in --help
15482         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
15484 2018-04-09  Colin Watson  <cjwatson@debian.org>
15486         bootstrap: allow non-submodule control of gnulib
15487         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
15488         bootstrap.conf when fetching gnulib using "git clone" or via
15489         GNULIB_SRCDIR.
15491 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
15493         crypto: omit stream ops Emacs doesn’t need
15494         * lib/md5.c (md5_stream):
15495         * lib/sha1.c (sha1_stream):
15496         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
15497         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
15498         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
15499         defined.  Emacs needs this, as it does not use the stream
15500         operations and doesn’t need all the af_alg stuff we’ve recently
15501         added.  Perhaps a similar change is needed to the other crypto
15502         modules, but this patch changes only those needed for Emacs.
15503         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
15504         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
15505         New modules, used by Emacs.
15506         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
15507         * modules/crypto/sha512: Rewrite to depend on the new modules.
15509 2018-05-20  Pádraig Brady  <P@draigBrady.com>
15511         fts: avoid a memory leak edge case
15512         * lib/fts.c (fts_open): Set an appropriate fts_level
15513         so that an immediate fts_close() will free the allocation.
15514         * tests/test-fts.c (fts_dealloc): Add a test case which
15515         will trigger under valgrind or address sanitizer.
15516         Fixes https://bugs.gnu.org/31439
15518 2018-05-20  Bruno Haible  <bruno@clisp.org>
15520         wcwidth tests: Fix link error.
15521         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
15522         $(LIBUNISTRING).
15524 2018-05-20  Bruno Haible  <bruno@clisp.org>
15526         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
15527         * modules/regex (Files): Add m4/glibc21.m4.
15529 2018-05-20  Bruno Haible  <bruno@clisp.org>
15531         localcharset: Optimize.
15532         * lib/localcharset.c (alias_table): Comment out no-op mappings for
15533         platforms where these don't matter. This reduces the table size,
15534         which in turn reduces the lookup time.
15536 2018-05-19  Bruno Haible  <bruno@clisp.org>
15538         localcharset: Map the locale encodings found in newer OSes.
15539         * lib/localcharset.c (alias_table): Add mapping for locale encodings
15540         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
15541         IRIX 6.5, Minix 3.3.
15542         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
15544 2018-05-19  Bruno Haible  <bruno@clisp.org>
15546         localcharset: Move mapping tables into the code. Use a binary search.
15547         * lib/localcharset.h: Document the GNU canonical names for character
15548         encodings here.
15549         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
15550         relocatable.h, configmake.h.
15551         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
15552         macros.
15553         (charset_aliases): Remove variable.
15554         (get_charset_aliases): Remove function.
15555         (struct table_entry): New type.
15556         (alias_table, locale_table): New constants.
15557         (locale_charset): Use the alias_table or locale_table to get the
15558         canonicalized encoding name.
15559         * lib/config.charset: Remove file.
15560         * lib/ref-add.sin: Remove file.
15561         * lib/ref-del.sin: Remove file.
15562         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
15563         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
15564         * modules/localcharset (Notice): Remove.
15565         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
15566         glibc21.m4.
15567         (Depends-on): Remove configmake.
15568         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
15569         (Makefile.am): Simplify.
15570         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
15572 2018-05-19  Bruno Haible  <bruno@clisp.org>
15574         localcharset: Add a manual test.
15575         * tests/test-localcharset.c: New file.
15576         * modules/localcharset-tests: New file.
15578 2018-05-19  Bruno Haible  <bruno@clisp.org>
15580         localcharset: Remove support for obsolete platforms.
15581         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
15582         Mac OS X 10.2. Comment out dubious entry for Solaris.
15584 2018-05-19  Jim Meyering  <meyering@fb.com>
15586         gnupload: adjust comment
15587         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
15588         more likely we'll remove the just-added code in a year or two.
15590 2018-05-19  Bruno Haible  <bruno@clisp.org>
15592         gnupload: Fix "gpg-agent is not available in this session" error.
15593         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
15595 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15597         crypto/af_alg: fix --help
15598         * m4/af_alg.m4: Avoid spurious newline in --help output.
15600 2018-05-13  Bruno Haible  <bruno@clisp.org>
15602         nl_langinfo: Fix compilation error on Android.
15603         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
15604         INT_CURR_SYMBOL, etc. only if these items are defined.
15606 2018-05-13  Bruno Haible  <bruno@clisp.org>
15608         truncate: Fix compilation error on Android.
15609         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
15610         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
15611         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
15612         HAVE_TRUNCATE.
15613         * modules/truncate: Likewise.
15614         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
15615         not HAVE_TRUNCATE.
15616         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
15617         HAVE_TRUNCATE.
15618         * doc/posix-functions/truncate.texi: Mention the issue.
15620 2018-05-13  Bruno Haible  <bruno@clisp.org>
15622         pthread: Fix compilation error on Android.
15623         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
15624         recursive inclusion of this file.
15626 2018-05-13  Bruno Haible  <bruno@clisp.org>
15628         posix_spawn: Fix compilation error on Android.
15629         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
15630         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
15631         (posix_spawn_file_actions_t): Consider also the case
15632         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
15634 2018-05-13  Bruno Haible  <bruno@clisp.org>
15636         tsearch: Move from K&R C to ANSI C.
15637         * lib/tsearch.c (tfind): Convert definition to ANSI C.
15639 2018-05-13  Bruno Haible  <bruno@clisp.org>
15641         tsearch: Fix compilation error on Android.
15642         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
15643         is 0.
15644         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
15645         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
15646         GNULIB_defined_tsearch is true.
15647         (twalk): Define only if GNULIB_defined_twalk is true.
15648         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
15649         is 0.
15650         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
15651         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
15652         * modules/search (Makefile.am): Substitute HAVE_TWALK.
15654 2018-05-13  Bruno Haible  <bruno@clisp.org>
15656         imaxdiv: Fix compilation error on Android.
15657         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
15658         is not defined.
15659         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
15660         HAVE_DECL_IMAXDIV, is 0.
15661         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
15662         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
15664 2018-05-13  Bruno Haible  <bruno@clisp.org>
15666         Support selective inclusion mechanism of recent mingw.org header files.
15667         Reported by Eli Zaretskii <eliz@gnu.org>.
15668         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
15669         __need_ssize_t, or __need_time_t is defined, just include the system's
15670         <sys/types.h>.
15671         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
15672         include the system's <locale.h>.
15674 2018-05-13  Bruno Haible  <bruno@clisp.org>
15676         Avoid compilation error due to 'mmap' on Android.
15677         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
15678         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
15679         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
15680         Undefine on Android.
15682 2018-05-13  Bruno Haible  <bruno@clisp.org>
15684         Add cross-compilation guesses for Linux systems without glibc.
15685         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
15686         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
15687         * m4/link.m4 (gl_FUNC_LINK): Likewise.
15688         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
15689         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
15690         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
15691         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
15692         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
15693         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
15694         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
15695         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
15696         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
15697         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
15698         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15699         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
15700         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
15701         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15702         * m4/utimens.m4 (gl_UTIMENS): Likewise.
15704 2018-05-13  Bruno Haible  <bruno@clisp.org>
15706         getpagesize: Fix compilation error on Android.
15707         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
15708         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
15709         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
15710         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
15711         HAVE_GETPAGESIZE accordingly.
15712         * modules/getcwd (Files): Add m4/getpagesize.m4.
15714 2018-05-13  Bruno Haible  <bruno@clisp.org>
15716         tcgetsid: Fix compilation error on Android.
15717         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
15718         AC_CHECK_FUNC.
15720 2018-05-13  Bruno Haible  <bruno@clisp.org>
15722         getpass: Fix configure test for Android.
15723         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
15724         AC_CHECK_FUNC.
15726 2018-05-13  Bruno Haible  <bruno@clisp.org>
15728         ffs: Fix compilation error on Android.
15729         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
15731 2018-05-13  Bruno Haible  <bruno@clisp.org>
15733         mkfifo: Fix compilation error on Android.
15734         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
15735         AC_CHECK_FUNC.
15737 2018-05-13  Bruno Haible  <bruno@clisp.org>
15739         c-strtod: Fix configure test for Android.
15740         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
15741         AC_CHECK_FUNC.
15743 2018-05-13  Bruno Haible  <bruno@clisp.org>
15745         random: Fix compilation error on Android.
15746         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
15747         AC_CHECK_FUNC.
15749 2018-05-13  Bruno Haible  <bruno@clisp.org>
15751         grantpt: Fix compilation error on Android.
15752         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
15753         AC_CHECK_FUNC.
15755 2018-05-13  Bruno Haible  <bruno@clisp.org>
15757         stdioext: Fix compilation errors with newer Android headers.
15758         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
15759         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
15760         fallbacks for Android.
15761         * lib/fpending.c: Update comments.
15762         * lib/fpurge.c: Likewise.
15763         * lib/freadable.h: Likewise.
15764         * lib/freadable.c: Likewise.
15765         * lib/freadahead.c: Likewise.
15766         * lib/freading.h: Likewise.
15767         * lib/freadptr.c: Likewise.
15768         * lib/fseterr.c: Likewise.
15769         * lib/fwritable.h: Likewise.
15770         * lib/fwritable.c: Likewise.
15771         * lib/fwriting.h: Likewise.
15772         * lib/fwriting.c: Likewise.
15774 2018-05-13  Bruno Haible  <bruno@clisp.org>
15776         doc: Add info about Android versions 2.0 to 8.1.
15777         * doc/**/*.texi: Add info about functions in all released versions of
15778         Bionic.
15780 2018-05-12  Bruno Haible  <bruno@clisp.org>
15782         fseeko: On mingw, don't use the hidden function _fseeki64.
15783         Reported by Eli Zaretskii <eliz@gnu.org>.
15784         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
15785         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
15787 2018-05-12  Bruno Haible  <bruno@clisp.org>
15789         glob: Choose 'dirent_type' in a way that works better on mingw.
15790         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
15791         * lib/glob.c (dirent_type): Define as uint_fast32_t.
15793 2018-05-12  Bruno Haible  <bruno@clisp.org>
15795         execute, spawn-pipe: Avoid warning about redefining 'close'.
15796         Reported by Eli Zaretskii <eliz@gnu.org>.
15797         * lib/execute.c: Undefine 'close' before redefining it.
15798         * lib/spawn-pipe.c: Likewise.
15800 2018-05-12  Bruno Haible  <bruno@clisp.org>
15802         nanosleep: Avoid test failure on mingw when it has nanosleep.
15803         Reported by Eli Zaretskii <eliz@gnu.org>.
15804         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
15805         If it does not exist, use a simpler test program that does not call
15806         alarm().
15808 2018-05-10  Bruno Haible  <bruno@clisp.org>
15810         lock, cond, thread, tls: Use a different symbol as libpthread witness.
15811         Reported by Devin Hussey <husseydevin@gmail.com>.
15812         Based on a patch by Paul Eggert.
15813         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
15814         as witness of libpthread.
15815         * lib/glthread/cond.h (pthread_in_use): Likewise.
15816         * lib/glthread/thread.h (pthread_in_use): Likewise.
15817         * lib/glthread/tls.h (pthread_in_use): Likewise.
15819 2018-05-10  Bruno Haible  <bruno@clisp.org>
15821         cond tests: Fix compilation error on Solaris.
15822         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
15823         macro.
15825 2018-05-10  Bruno Haible  <bruno@clisp.org>
15827         doc: Add partial info about Android 4.3.
15828         * doc/*-functions/*.texi: Add info about functions that were added
15829         to Bionic between Android 4.3 and Android 9.0.
15831 2018-05-10  Bruno Haible  <bruno@clisp.org>
15833         doc: Add info about Android 9.0.
15834         * doc/**/*.texi: Add info about functions and headers in Bionic from
15835         Android 9.0.
15837 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
15839         af_alg: fix my typo in afalg_buffer
15840         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
15841         (afalg_stream): Simplify and avoid the need for a runtime test
15842         at the end.
15844         af_alg: recover better from crypto failures
15845         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
15846         input stream is seekable, by repositioning the stream back to
15847         where it was, possibly by just calling sendfile with an offset
15848         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
15849         cases, which lets our callers try again with user-mode code.
15850         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
15851         instead of on fflush and lseek.
15853         af_alg: distiguish I/O errors better
15854         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
15855         not -EIO, if it’s OK for the caller to try again with user-mode code.
15856         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
15857         some other error number) if fflush fails, as the caller should not
15858         try again that case.
15860         af_alg: avoid gotos
15861         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
15862         gotos, as they were a source of unreliability and made the code a
15863         bit harder to follow.
15865         af_alg: don’t leak file descriptors into children
15866         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
15867         This code should be compiled only on recent GNU/Linux platforms
15868         so we shouldn’t have to also depend on the accept4 module.
15870         af_alg: coalesce socket creation
15871         * lib/af_alg.c (alg_socket): New function.
15872         (afalg_buffer, afalg_stream): Use it.  This avoids some
15873         code duplication and gotos.
15875         af_alg: fix file descriptor leak
15876         * lib/af_alg.c (afalg_stream): Close leak.
15878         af_alg: Pacify --enable-gcc-warnings on GCC 8
15879         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
15880         and checking to pacify gcc -Wjump-misses-init on GCC 8.
15882 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
15884         af_alg: Pacify --enable-gcc-warnings
15885         Problem reported by Assaf Gordon in:
15886         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
15887         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
15888         gcc -Wjump-misses-init.
15889         * lib/sha512.c (shaxxx_stream): Now static.
15891 2018-05-06  Bruno Haible  <bruno@clisp.org>
15893         af_alg: Add ability to use Linux kernel crypto API on data in memory.
15894         * lib/af_alg.h (afalg_buffer): New declaration.
15895         * lib/af_alg.c (afalg_buffer): New function.
15897 2018-05-06  Bruno Haible  <bruno@clisp.org>
15899         af_alg: Avoid warnings.
15900         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
15901         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
15903 2018-05-06  Bruno Haible  <bruno@clisp.org>
15905         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
15906         * tests/bench-digest.h: New file.
15907         * tests/bench-md5.c: New file.
15908         * tests/bench-sha1.c: New file.
15909         * tests/bench-sha224.c: New file.
15910         * tests/bench-sha256.c: New file.
15911         * tests/bench-sha384.c: New file.
15912         * tests/bench-sha512.c: New file.
15913         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
15914         tests/bench-digest.h.
15915         (Depends-on): Add getrusage, gettimeofday.
15916         (Makefile.am): Add variables to build bench-md5.
15917         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
15918         tests/bench-digest.h.
15919         (Depends-on): Add getrusage, gettimeofday.
15920         (Makefile.am): Add variables to build bench-sha1.
15921         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
15922         tests/bench-sha256.c, tests/bench-digest.h.
15923         (Depends-on): Add getrusage, gettimeofday.
15924         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
15925         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
15926         tests/bench-sha512.c, tests/bench-digest.h.
15927         (Depends-on): Add getrusage, gettimeofday.
15928         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
15930 2018-05-06  Bruno Haible  <bruno@clisp.org>
15932         af_alg: Fix a resource leak.
15933         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
15934         New local variable 'result'.
15936 2018-05-06  Bruno Haible  <bruno@clisp.org>
15938         af_alg: Fix bug with streams that are not at position 0.
15939         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
15940         assume that the stream is positioned at position 0.
15941         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
15942         of the stream.
15943         * lib/md5.h (md5_stream): Likewise.
15944         * lib/sha1.h (sha1_stream): Likewise.
15945         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
15946         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
15947         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
15949         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
15950         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
15951         stream that is not positioned at the beginning.
15953 2018-05-06  Bruno Haible  <bruno@clisp.org>
15955         af_alg: Add configure option to enable/disable use of Linux crypto API.
15956         Suggested by Assaf Gordon <assafgordon@gmail.com>.
15957         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
15958         USE_LINUX_CRYPTO_API.
15959         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
15960         * lib/af_alg.c: Likewise.
15962 2018-05-06  Bruno Haible  <bruno@clisp.org>
15964         Followup to 'af_alg: New module.'.
15965         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
15966         * modules/crypto/sha1 (Depends-on): Likewise.
15967         * modules/crypto/sha256 (Depends-on): Likewise.
15968         * modules/crypto/sha512 (Depends-on): Likewise.
15970 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15972         crypto/{md5,sha1,sha256,sha512}: simplify
15973         * lib/md5.c (md5_stream):
15974         * lib/sha1.c (sha1_stream):
15975         * lib/sha256.c (shaxxx_stream):
15976         Simplify, partly by assuming C99.
15977         * lib/sha256.c (shaxxx_stream):
15978         New function, which implements both sha256 and sha224.
15979         Simplify, partly by assuming C99.
15980         (sha256_stream, sha224_stream):
15981         Use it to avoid code duplication, removing a FIXME.
15982         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
15983         Likewise.
15985         af_alg: Improve comments.
15986         * lib/af_alg.h: Use imperatives and tighten up wording.
15988 2018-05-05  Bruno Haible  <bruno@clisp.org>
15990         af_alg: Improve comments.
15991         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
15993 2018-05-05  Bruno Haible  <bruno@clisp.org>
15995         af_alg: New module.
15996         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
15997         * lib/af_alg.c: Include "af_alg.h" before the other header files.
15998         * lib/md5.c: Include "af_alg.h" unconditionally.
15999         (md5_stream): Invoke afalg_stream unconditionally.
16000         * lib/sha1.c: Include "af_alg.h" unconditionally.
16001         (sha1_stream): Invoke afalg_stream unconditionally.
16002         * lib/sha256.c: Include "af_alg.h" unconditionally.
16003         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
16004         * lib/sha512.c: Include "af_alg.h" unconditionally.
16005         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
16006         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
16007         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
16008         * modules/crypto/af_alg: New file.
16009         * modules/crypto/md5 (Files): Remove files that are now in the
16010         'crypto/af_alg' module.
16011         (Depends-on): Add crypto/af_alg.
16012         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
16013         (Makefile.am): Don't mention af_alg.c here.
16014         * modules/crypto/sha1 (Files): Remove files that are now in the
16015         'crypto/af_alg' module.
16016         (Depends-on): Add crypto/af_alg.
16017         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
16018         (Makefile.am): Don't mention af_alg.c here.
16019         * modules/crypto/sha256 (Files): Remove files that are now in the
16020         'crypto/af_alg' module.
16021         (Depends-on): Add crypto/af_alg.
16022         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
16023         (Makefile.am): Don't mention af_alg.c here.
16024         * modules/crypto/sha512 (Files): Remove files that are now in the
16025         'crypto/af_alg' module.
16026         (Depends-on): Add crypto/af_alg.
16027         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
16028         (Makefile.am): Don't mention af_alg.c here.
16030 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16032         crypto tests: pacify GCC
16033         * tests/test-digest.h (test_digest_on_files):
16034         Don’t assume digest size fits in int (!).
16036         af_alg: minor style improvements
16037         * lib/af_alg.c (afalg_stream): Prefer C99 style
16038         decl-after-statement, since we’re already assuming C99.  Clarify
16039         by strengthening the bind test and omit unnecessary assignment.
16041 2018-05-05  Bruno Haible  <bruno@clisp.org>
16043         af_alg: Fix bug on empty files.
16044         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
16045         stream is empty.
16047 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16049         sys-limits.h: new file for crypto and safe I/O
16050         * lib/af_alg.c: Include sys-limits.h.
16051         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
16052         (afalg_stream): Also reject negative sizes for sendfile; they
16053         should not happen and the code is a bit cleaner and faster this way.
16054         * lib/safe-read.c: Include sys-limits.h.
16055         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
16056         * lib/sys-limits.h: New file, with values and commentary derived
16057         from the old safe-read.c and from GNU Emacs sysdep.c.
16058         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
16059         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
16060         Add lib/sys-limits.h to Files section.
16062 2018-05-05  Bruno Haible  <bruno@clisp.org>
16064         af_alg: Improve function signature.
16065         * lib/af_alg.h (afalg_stream): Swap second and third argument.
16066         * lib/af_alg.c (afalg_stream): Likewise.
16067         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
16069 2018-05-05  Bruno Haible  <bruno@clisp.org>
16071         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
16072         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
16073         * modules/crypto/sha1 (Depends-on): Likewise.
16074         * modules/crypto/sha256 (Depends-on): Likewise.
16075         * modules/crypto/sha512 (Depends-on): Likewise.
16077 2018-05-05  Bruno Haible  <bruno@clisp.org>
16079         crypto/{md5,sha1,sha256,sha512}: Fix module description.
16080         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
16081         * modules/crypto/sha1 (Depends-on): Likewise.
16082         * modules/crypto/sha256 (Depends-on): Likewise.
16083         * modules/crypto/sha512 (Depends-on): Likewise.
16085 2018-05-05  Bruno Haible  <bruno@clisp.org>
16087         af_alg: Add documentation.
16088         * lib/af_alg.h: Add comments.
16090 2018-05-05  Bruno Haible  <bruno@clisp.org>
16092         sha512: Add tests.
16093         * tests/test-sha512.c: New file.
16094         * modules/crypto/sha512-tests: New file.
16096 2018-05-05  Bruno Haible  <bruno@clisp.org>
16098         sha256: Add tests.
16099         * tests/test-sha256.c: New file.
16100         * modules/crypto/sha256-tests: New file.
16102 2018-05-05  Bruno Haible  <bruno@clisp.org>
16104         sha1 tests: Add test for sha1_stream.
16105         * tests/test-sha1.c: Include test-digest.h.
16106         (main): Invoke test_digest_on_files on 'sha1_stream'.
16107         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
16109 2018-05-05  Bruno Haible  <bruno@clisp.org>
16111         md5 tests: Add test for md5_stream.
16112         * tests/test-digest.h: New file.
16113         * tests/test-md5.c: Include test-digest.h.
16114         (main): Invoke test_digest_on_files on 'md5_stream'.
16115         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
16117 2018-04-28  Matteo Croce  <mcroce@redhat.com>
16119         md5sum: Use AF_ALG when available.
16120         * lib/md5.c: Include af_alg.h.
16121         (md5_stream): Use afalg_stream when available.
16122         * modules/crypto/md5 (Files): Add the af_alg files.
16123         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
16124         (Makefile.am): Add af_alg.c.
16126 2018-04-28  Matteo Croce  <mcroce@redhat.com>
16128         sha512sum: Use AF_ALG when available.
16129         * lib/sha512.c: Include af_alg.h.
16130         (sha512_stream, sha384_stream): Use afalg_stream when available.
16131         * modules/crypto/sha512 (Files): Add the af_alg files.
16132         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
16133         (Makefile.am): Add af_alg.c.
16135 2018-04-28  Matteo Croce  <mcroce@redhat.com>
16137         sha256sum: Use AF_ALG when available.
16138         * lib/sha256.c: Include af_alg.h.
16139         (sha256_stream, sha224_stream): Use afalg_stream when available.
16140         * modules/crypto/sha256 (Files): Add the af_alg files.
16141         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
16142         (Makefile.am): Add af_alg.c.
16144 2018-04-28  Matteo Croce  <mcroce@redhat.com>
16146         sha1sum: Use AF_ALG when available.
16147         * lib/af_alg.h: New file.
16148         * lib/af_alg.c: New file.
16149         * lib/sha1.c: Include af_alg.h.
16150         (sha1_stream): Use afalg_stream when available.
16151         * m4/linux-if-alg.m4: New file.
16152         * modules/crypto/sha1 (Files): Add the new files.
16153         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
16154         (Makefile.am): Add af_alg.c.
16156 2018-05-05  Bruno Haible  <bruno@clisp.org>
16158         all: Replace more http URLs by https URLs.
16159         * lib/localename.c: Use https: URL.
16160         * lib/timespec.h: Likewise.
16162 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
16164         maint: port more modules to GCC 8
16165         * lib/dirname.h (base_name):
16166         * lib/exclude.h (new_exclude):
16167         * lib/xstrndup.h (xstrndup):
16168         Add malloc attribute.
16169         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
16170         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
16171         This pacifies GCC 8.
16172         * m4/gnulib-common.m4 (gl_COMMON_BODY):
16173         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
16175 2018-05-03  Bruno Haible  <bruno@clisp.org>
16177         Simplify code. Drop support for Borland C++ on Windows.
16178         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
16179         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
16180         'defined _WIN32'.
16181         * lib/canonicalize-lgpl.c: Likewise.
16182         * lib/classpath.c: Likewise.
16183         * lib/clean-temp.c: Likewise.
16184         * lib/csharpexec.c: Likewise.
16185         * lib/ctime.c: Likewise.
16186         * lib/dosname.h: Likewise.
16187         * lib/dup2.c: Likewise.
16188         * lib/errno.in.h: Likewise.
16189         * lib/error.c: Likewise.
16190         * lib/euidaccess.c: Likewise.
16191         * lib/execute.c: Likewise.
16192         * lib/fcntl.in.h: Likewise.
16193         * lib/fcntl.c: Likewise.
16194         * lib/filename.h: Likewise.
16195         * lib/findprog.c: Likewise.
16196         * lib/flock.c: Likewise.
16197         * lib/fopen.c: Likewise.
16198         * lib/freopen.c: Likewise.
16199         * lib/fstat.c: Likewise.
16200         * lib/fsync.c: Likewise.
16201         * lib/gc-gnulib.c: Likewise.
16202         * lib/get-rusage-data.c: Likewise.
16203         * lib/getaddrinfo.c: Likewise.
16204         * lib/getdelim.c: Likewise.
16205         * lib/getdtablesize.c: Likewise.
16206         * lib/gethostname.c: Likewise.
16207         * lib/getlogin.c: Likewise.
16208         * lib/getlogin_r.c: Likewise.
16209         * lib/getopt.c: Likewise.
16210         * lib/getpagesize.c: Likewise.
16211         * lib/getpass.c: Likewise.
16212         * lib/getrusage.c: Likewise.
16213         * lib/gettimeofday.c: Likewise.
16214         * lib/glob.c: Likewise.
16215         * lib/inttypes.in.h: Likewise.
16216         * lib/isapipe.c: Likewise.
16217         * lib/javaexec.c: Likewise.
16218         * lib/link.c: Likewise.
16219         * lib/localcharset.c: Likewise.
16220         * lib/localename.h: Likewise.
16221         * lib/localename.c: Likewise.
16222         * lib/localtime.c: Likewise.
16223         * lib/lseek.c: Likewise.
16224         * lib/mbsinit.c: Likewise.
16225         * lib/mkdir.c: Likewise.
16226         * lib/msvc-nothrow.h: Likewise.
16227         * lib/nanosleep.c: Likewise.
16228         * lib/nl_langinfo.c: Likewise.
16229         * lib/nonblocking.c: Likewise.
16230         * lib/nproc.c: Likewise.
16231         * lib/open.c: Likewise.
16232         * lib/openpty.c: Likewise.
16233         * lib/pathmax.h: Likewise.
16234         * lib/pipe-filter-aux.c: Likewise.
16235         * lib/pipe-filter-gi.c: Likewise.
16236         * lib/pipe-filter-ii.c: Likewise.
16237         * lib/pipe.c: Likewise.
16238         * lib/pipe2.c: Likewise.
16239         * lib/poll.c: Likewise.
16240         * lib/popen.c: Likewise.
16241         * lib/posix_openpt.c: Likewise.
16242         * lib/printf-parse.c: Likewise.
16243         * lib/progreloc.c: Likewise.
16244         * lib/putenv.c: Likewise.
16245         * lib/read.c: Likewise.
16246         * lib/relocatable.c: Likewise.
16247         * lib/rename.c: Likewise.
16248         * lib/same-inode.h: Likewise.
16249         * lib/secure_getenv.c: Likewise.
16250         * lib/select.c: Likewise.
16251         * lib/sethostname.c: Likewise.
16252         * lib/setlocale.c: Likewise.
16253         * lib/sigaction.c: Likewise.
16254         * lib/sigprocmask.c: Likewise.
16255         * lib/sleep.c: Likewise.
16256         * lib/spawn-pipe.h: Likewise.
16257         * lib/spawn-pipe.c: Likewise.
16258         * lib/spawni.c: Likewise.
16259         * lib/stat-time.h: Likewise.
16260         * lib/stat-w32.c: Likewise.
16261         * lib/stat.c: Likewise.
16262         * lib/stdio.in.h: Likewise.
16263         * lib/stdio-impl.h: Likewise.
16264         * lib/stdio-read.c: Likewise.
16265         * lib/stdio-write.c: Likewise.
16266         * lib/stdlib.in.h: Likewise.
16267         * lib/strerror_r.c: Likewise.
16268         * lib/strftime-fixes.c: Likewise.
16269         * lib/sys_stat.in.h: Likewise.
16270         * lib/sys_types.in.h: Likewise.
16271         * lib/sys_wait.in.h : Likewise.
16272         * lib/system-quote.h: Likewise.
16273         * lib/system-quote.c: Likewise.
16274         * lib/tmpdir.c: Likewise.
16275         * lib/tzset.c: Likewise.
16276         * lib/uname.c: Likewise.
16277         * lib/unistd.in.h: Likewise.
16278         * lib/utime.in.h: Likewise.
16279         * lib/utime.c: Likewise.
16280         * lib/utimecmp.c: Likewise.
16281         * lib/utimens.c: Likewise.
16282         * lib/vasnprintf.c: Likewise.
16283         * lib/vma-iter.h: Likewise.
16284         * lib/vma-iter.c: Likewise.
16285         * lib/wait-process.c: Likewise.
16286         * lib/wcsftime.c: Likewise.
16287         * lib/wctype.in.h: Likewise.
16288         * lib/write.c: Likewise.
16289         * tests/nap.h: Likewise.
16290         * tests/test-cloexec.c: Likewise.
16291         * tests/test-dup-safer.c: Likewise.
16292         * tests/test-dup2.c: Likewise.
16293         * tests/test-dup3.c: Likewise.
16294         * tests/test-fcntl.c: Likewise.
16295         * tests/test-get-rusage-data.c: Likewise.
16296         * tests/test-getaddrinfo.c: Likewise.
16297         * tests/test-getlogin.h: Likewise.
16298         * tests/test-isatty.c: Likewise.
16299         * tests/test-localename.c: Likewise.
16300         * tests/test-mbrtowc-w32.c: Likewise.
16301         * tests/test-nonblocking.c: Likewise.
16302         * tests/test-nonblocking-pipe-main.c: Likewise.
16303         * tests/test-nonblocking-socket-main.c: Likewise.
16304         * tests/test-nonblocking-socket.h: Likewise.
16305         * tests/test-pipe.c: Likewise.
16306         * tests/test-pipe2.c: Likewise.
16307         * tests/test-poll.c: Likewise.
16308         * tests/test-pthread_sigmask1.c: Likewise.
16309         * tests/test-select.h: Likewise.
16310         * tests/test-sethostname2.c: Likewise.
16311         * tests/test-sigprocmask.c: Likewise.
16312         * tests/test-spawn-pipe-child.c: Likewise.
16313         * tests/test-stat-time.c: Likewise.
16314         * tests/test-system-quote-main.c: Likewise.
16315         * tests/test-utimens-common.h: Likewise.
16316         * tests/test-wcrtomb-w32.c: Likewise.
16317         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
16318         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
16319         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
16320         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
16321         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
16322         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
16323         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
16324         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
16325         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16326         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
16327         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
16328         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
16329         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
16330         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
16331         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
16332         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16334 2018-05-02  Bruno Haible  <bruno@clisp.org>
16336         localename: Fix test failures on mingw.
16337         * lib/localename.c (gl_locale_name_thread): Remove code specific to
16338         native Windows.
16339         (gl_locale_name_posix): Move code specific to native Windows here.
16340         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
16341         Accept result without charset suffix, as it appears on mingw.
16343 2018-04-28  Paul Smith  <psmith@gnu.org>
16345         bootstrap: Avoid gnulib operations if not needed
16346         * build-aux/bootstrap: Remove unused variable gnulib_mk.
16347         Set $gnulib_extra_files early so it can be overridden in .conf.
16348         Remove redundant --import flag from $gnulib_tool_options.
16349         Set $use_gnulib to false if no gnulib modules or files are needed.
16350         If $use_gnulib is false, don't do anything related to gnulib.
16351         A lot of this is just whitespace (indentation) changes.
16353 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
16355         manywarnings: port to GCC 8.0
16356         * build-aux/gcc-warning.spec: Add -Wcatch-value,
16357         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
16358         fact that the GCC help message now mentions operands for
16359         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
16360         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
16361         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
16362         and -Wunused-const-variable.
16363         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
16364         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
16365         -Wmissing-attributes, -Wmultistatement-macros,
16366         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
16367         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
16369 2018-04-24  Bruno Haible  <bruno@clisp.org>
16371         sys_socket: Make SO_REUSEPORT available across platforms.
16372         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16373         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
16374         * doc/posix-headers/sys_socket.texi: Mention the issue.
16375         * tests/test-poll.c (SO_REUSEPORT): Remove.
16376         * tests/test-select.h: Include <sys/socket.h>.
16377         (SO_REUSEPORT): Remove.
16378         * modules/select-tests (Depends-on): Add 'sys_socket'.
16380 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
16382         localcharset: short-circuit the search for an alias on a Mac
16383         * lib/localcharset.c (get_charset_aliases): Add a tautological
16384         UTF-8 entry to speed up the search for this case.
16385         Most machines default to a UTF-8 locale nowadays, so begin the
16386         list of aliases with a dummy UTF-8 entry so it will be found
16387         immediately and a time-consuming search through the rest of
16388         the list is avoided.
16390 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
16392         fts: add comment
16393         * lib/fts.c (fts_build): Explain why ==, not >.
16394         See remark by Bernhard Voelker in:
16395         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
16397         fts: fix bug in find across filesystems
16398         This fixes a bug I introduced last summer.
16399         Problem reported by Kamil Dudka in:
16400         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
16401         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
16402         (leaf_optimization):
16403         New arg for file descriptor.  All callers changed.
16404         (fts_build): Check for whether inodes should be sorted
16405         before closing the directory.
16407 2018-04-07  Bruno Haible  <bruno@clisp.org>
16409         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
16410         Reported by Genki Sky <sky@genki.is>.
16411         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
16412         version 0.9.10 or newer.
16413         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
16414         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
16415         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
16416         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
16417         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
16419 2018-04-07  Bruno Haible  <bruno@clisp.org>
16421         execute: Update comment.
16422         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
16424 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
16426         fts: treat CIFS like NFS
16427         Problem reported by Kamil Dudka in:
16428         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
16429         * lib/fts.c (S_MAGIC_CIFS): New macro.
16430         (dirent_inode_sort_may_be_useful, leaf_optimization):
16431         Treat CIFS like NFS.
16433 2018-03-28  Bruno Haible  <bruno@clisp.org>
16435         c-stack: Fix possible build failure on some platforms.
16436         * lib/c-stack.c (die): Define whenever this function is referenced.
16438 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
16440         time_rz: fix workaround for Mac OS X 10.6 infloop
16441         Problems reported by Charles A. Roelli (Bug#27736#117).
16442         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
16443         Also, discard output, which clutters the 'configure' log.
16445 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
16447         havelib: port to Solaris 10 /bin/sh
16448         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
16449         instead of '! test EXPR'.
16451 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
16453         time_rz: work around Mac OS X 10.6 infloop
16454         * doc/posix-functions/localtime.texi:
16455         * doc/posix-functions/localtime_r.texi: Mention the bug.
16456         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
16457         better to fix localtime and localtime_r instead, but that would be
16458         more work and is not needed to fix the Emacs problem.
16459         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
16461 2018-03-24  Jim Meyering  <meyering@fb.com>
16463         test-version-etc.sh: don't use diff directly: use init.sh's compare
16464         We'd rather not sacrifice readable "diff -u" output even for
16465         "diff -c" output (not supported by busybox) or for even less
16466         readable ed-style "diff" output.  So use init.sh's compare function
16467         * tests/test-version-etc.sh: Source init.sh and add "." to path.
16468         Remove "./" from invocation of test-version-etc, so we use path.
16469         And s/diff/compare/.
16470         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
16471         to get init.sh.
16472         Prompted by Eric Blake's comments in
16473         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
16475 2018-03-24  Bruno Haible  <bruno@clisp.org>
16477         javacomp-script, javacomp: Add support for Java 10.
16478         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
16479         target-version 10.
16480         * lib/javaversion.h: Update comments.
16481         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
16482         source_version_index, get_goodcode_snippet, get_failcode_snippet,
16483         TARGET_VERSION_BOUND, target_version_index,
16484         corresponding_classfile_version): Accept source_version 10 and
16485         target_version 10.
16486         * lib/javacomp.h: Update comments accordingly.
16488 2018-03-24  Bruno Haible  <bruno@clisp.org>
16490         javacomp-script, javacomp: Update comments.
16491         * m4/javacomp.m4: Update comments regarding gcj.
16492         * lib/javacomp.h: Likewise.
16494 2018-03-24  Bruno Haible  <bruno@clisp.org>
16496         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
16497         * lib/javaversion.h: Update comments.
16498         * lib/javacomp.h: Likewise.
16499         * lib/javacomp.c (default_target_version, source_version_index,
16500         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
16501         "1.9".
16502         (TARGET_VERSION_BOUND): Bump to 9.
16503         (target_version_index, corresponding_classfile_version): Recognize "9"
16504         instead of "1.9".
16505         (get_source_version_for_javac): New function.
16506         (is_envjavac_nongcj_usable, is_javac_usable): Add
16507         source_version_for_javac argument.
16508         (compile_java_class): Determine and pass source_version_for_javac.
16509         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
16510         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
16511         appropriate.
16513 2018-03-23  Jim Meyering  <meyering@fb.com>
16515         test-version-etc.sh: port to diff without -c
16516         * tests/test-version-etc.sh: Don't use diff's -c option.
16517         This caused spurious test failure on Alpine Linux, which
16518         uses busybox's diff. Reported by Assaf Gordon in
16519         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
16521 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
16523         c-stack: port to recent GCC build
16524         Problem reported by The Fireplace (Bug#30913).
16525         * lib/c-stack.c (die): Define only if used.
16527 2018-03-20  Bruno Haible  <bruno@clisp.org>
16529         euidaccess: Port to native Windows.
16530         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
16531         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
16533 2018-03-19  Bruno Haible  <bruno@clisp.org>
16535         javacomp: Add support for Java 7, 8, 9.
16536         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
16537         source_version_index, get_goodcode_snippet, get_failcode_snippet,
16538         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
16539         and target_version 1,7, 1.8, 1.9.
16540         * lib/javacomp.h: Update comments accordingly.
16542 2018-03-19  Bruno Haible  <bruno@clisp.org>
16544         javacomp-script: Add support for Java 9.
16545         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
16546         target-version 1.9.
16548 2018-03-16  Bruno Haible  <bruno@clisp.org>
16550         glob: Don't compile replacements on recent glibc systems.
16551         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
16552         REPLACE_GLOB is 0, include the system's <glob.h> and use
16553         _GL_CXXALIAS_SYS.
16554         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
16555         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
16556         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
16557         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
16558         Remove snippet/warn-on-use.
16559         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
16560         (Makefile.am): Create glob.h always. Update list of substitutions in
16561         glob.h. Don't depend on $(WARN_ON_USE_H).
16563 2018-03-16  Bruno Haible  <bruno@clisp.org>
16565         glob: Fix link error on native Windows.
16566         * modules/glob (Depends-on): Add 'lstat'.
16568 2018-03-15  Bruno Haible  <bruno@clisp.org>
16570         glob: Fix compilation error in C++ mode.
16571         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
16573 2018-03-15  Bruno Haible  <bruno@clisp.org>
16575         host-cpu-c-abi: Support for RISC-V CPU.
16576         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
16577         riscv32 and riscv64 ABIs.
16578         References:
16579         https://github.com/riscv/riscv-toolchain-conventions
16580         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
16581         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
16583 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
16585         fflush: be more paranoid about libio.h change
16586         Suggested by Eli Zaretskii in:
16587         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
16588         * lib/fbufmode.c (fbufmode):
16589         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
16590         (disable_seek_optimization, rpl_fflush):
16591         * lib/fpending.c (__fpending):
16592         * lib/fpurge.c (fpurge):
16593         * lib/freadable.c (freadable):
16594         * lib/freadahead.c (freadahead):
16595         * lib/freading.c (freading):
16596         * lib/freadptr.c (freadptr):
16597         * lib/freadseek.c (freadptrinc):
16598         * lib/fseeko.c (fseeko):
16599         * lib/fseterr.c (fseterr):
16600         * lib/fwritable.c (fwritable):
16601         * lib/fwriting.c (fwriting):
16602         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
16604 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
16606         maint: write-file-hooks -> before-save-hook
16607         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
16608         it's time to use the recommended replacement.
16609         Problem reported by Glenn Morris in:
16610         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
16611         * build-aux/announce-gen, build-aux/bootstrap:
16612         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
16613         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
16614         * build-aux/gnu-web-doc-update, build-aux/gnupload:
16615         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
16616         * build-aux/update-copyright, build-aux/useless-if-before-free:
16617         * build-aux/vc-list-files:
16618         Update hook usage for files where Gnulib is the canonical source.
16620 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
16622         binary-io: pacify gcc -Wunused-parameter
16623         Problem reported by Reuben Thomas in:
16624         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
16625         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
16626         Use _GL_UNUSED where appropriate.
16628         fflush: adjust to glibc 2.28 libio.h removal
16629         Problem reported by Daniel P. Berrangé in:
16630         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
16631         * lib/fbufmode.c (fbufmode):
16632         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
16633         (disable_seek_optimization, rpl_fflush):
16634         * lib/fpending.c (__fpending):
16635         * lib/fpurge.c (fpurge):
16636         * lib/freadable.c (freadable):
16637         * lib/freadahead.c (freadahead):
16638         * lib/freading.c (freading):
16639         * lib/freadptr.c (freadptr):
16640         * lib/freadseek.c (freadptrinc):
16641         * lib/fseeko.c (fseeko):
16642         * lib/fseterr.c (fseterr):
16643         * lib/fwritable.c (fwritable):
16644         * lib/fwriting.c (fwriting):
16645         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
16646         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
16647         Define if not already defined.
16649 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
16651         environ: fix link error on 32-bit Cygwin
16652         Problem reported for GNU Emacs by Ken Brown in:
16653         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
16654         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
16656 2018-02-24  Bruno Haible  <bruno@clisp.org>
16658         mbrtowc tests: Fix regression on glibc.
16659         Reported by Bernhard Voelker.
16660         * tests/test-mbrtowc.c (main): Fix expected value of wc.
16662 2018-02-24  Bruno Haible  <bruno@clisp.org>
16664         striconveha, uniconv/*: Avoid test failures on musl libc.
16665         * tests/iconvsupport.c: New file.
16666         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
16667         does not support the ISO-2022-JP-2 encoding.
16668         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
16669         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
16670         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
16671         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
16672         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
16673         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
16674         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
16675         (Makefile.am): Link test-striconveha with iconvsupport.o.
16676         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
16677         tests/iconvsupport.c.
16678         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
16679         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
16680         tests/iconvsupport.c.
16681         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
16682         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
16683         tests/iconvsupport.c.
16684         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
16685         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
16686         tests/iconvsupport.c.
16687         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
16688         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
16689         tests/iconvsupport.c.
16690         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
16691         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
16692         tests/iconvsupport.c.
16693         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
16695 2018-02-24  Bruno Haible  <bruno@clisp.org>
16697         localename: Add support for musl libc.
16698         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
16699         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
16700         on Linux platforms which define NL_LOCALE_NAME.
16702 2018-02-24  Bruno Haible  <bruno@clisp.org>
16704         mbrtowc tests: Don't make assumptions about the charset the C locale.
16705         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
16706         particular mapping in the C locale.
16708 2018-02-24  Bruno Haible  <bruno@clisp.org>
16710         ptsname_r: Don't expect that this function sets errno.
16711         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
16712         from ptsname_r().
16713         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
16715 2018-02-23  Bruno Haible  <bruno@clisp.org>
16717         xmalloca: pacify gcc -Wbad-function-cast
16718         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
16720 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
16722         nl_langinfo: pacify gcc -Wunused-function
16723         * lib/nl_langinfo.c (ctype_codeset): Do not define if
16724         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
16725         this case.  Without this change, I got a diagnostic when building
16726         coreutils on Fedora 27 with gcc 7.3.1 20180130.
16728         same: pacify gcc -Wunused-variable
16729         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
16730         Omit unused variable.
16732         malloca: pacify gcc -Wbad-function-cast
16733         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
16734         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
16735         To pacify GCC, I had to cast alloca’s result to some type other
16736         than void * before casting that to uintptr_t.
16738 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
16740         utimecmp: new function utimecmpat
16741         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
16742         Do not include utimens.h.
16743         (utimecmpat): New function, generalizing utimecmp.
16744         (utimecmp): Now a thin layer around utimecmpat.
16745         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
16746         utimensat instead of on lstat and utimens.
16748         same: new function same_nameat
16749         * lib/same.c: Include fcntl.h.
16750         * lib/same.c (same_nameat): New function, generalizing same_name.
16751         (same_name): Now a thin layer around same_nameat.
16752         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
16753         * modules/same (Depends-on): Depend on fstatat, openat.
16755 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
16757         warnings: Add support for Objective C.
16758         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
16759         macro.
16761 2018-02-17  Bruno Haible  <bruno@clisp.org>
16763         lock: Fix test-once1 crash on FreeBSD11.
16764         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
16765         'pthread_create', not 'pthread_cancel'.
16767 2018-02-17  Bruno Haible  <bruno@clisp.org>
16769         lock: Add test of gl_once.
16770         * tests/test-once.c: New file.
16771         * modules/lock-tests (Files): Add it.
16772         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
16774 2018-02-17  Bruno Haible  <bruno@clisp.org>
16776         thread: Fix compilation error on IRIX.
16777         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
16778         needed; include it outside the C++ extern "C" {} block.
16779         * doc/posix-headers/pthread.texi: Mention the problem with
16780         pthread_atfork on IRIX.
16782 2018-02-04  Bruno Haible  <bruno@clisp.org>
16784         nl_langinfo: Override the system's nl_langinfo() when needed.
16785         Reported by Jim Meyering.
16786         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
16787         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
16789 2018-02-04  Bruno Haible  <bruno@clisp.org>
16791         signal-h, monetary, strings: Fix build failure in some cases.
16792         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
16793         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
16794         as delimiter in sed command, not '|'.
16795         * modules/monetary (Makefile.am): Likewise.
16796         * modules/strings (Makefile.am): Likewise.
16798 2018-02-03  Jim Meyering  <meyering@fb.com>
16800         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
16801         * top/maint.mk (sc_file_system): Don't complain about
16802         "/proc/filesystems".
16804 2018-02-03  Bruno Haible  <bruno@clisp.org>
16806         stdlib: Fix compilation error on OpenIndiana.
16807         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
16808         <sys/time.h>.
16809         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
16810         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
16812 2018-02-03  Bruno Haible  <bruno@clisp.org>
16814         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
16815         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
16816         and use $EGREP instead of 'grep -E'.
16817         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
16818         'grep -E'.
16820 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
16822         malloca: Add a compile-time verification.
16823         * lib/malloca.c (small_t): Verify that it is wide enough.
16824         * modules/malloca (Depends-on): Add verify.
16826 2018-02-02  Bruno Haible  <bruno@clisp.org>
16828         malloca: Add an argument check.
16829         Suggested by Paul Eggert.
16830         * lib/malloca.c (freea): Check against an invalid argument.
16832 2018-02-02  Bruno Haible  <bruno@clisp.org>
16834         localename: Add support for OpenIndiana.
16835         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
16836         Solaris 11 variants with uselocale() but without getlocalename_l().
16838 2018-02-02  Bruno Haible  <bruno@clisp.org>
16840         malloca, xmalloca: Make multithread-safe.
16841         Reported by Florian Weimer <fweimer@redhat.com>.
16842         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
16843         * lib/malloca.h (malloca): In the stack allocation case, return a
16844         pointer that is a multiple of 2 * sa_alignment_max.
16845         (sa_increment): Remove enum item.
16846         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
16847         a pointer that is a multiple of 2 * sa_alignment_max.
16848         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
16849         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
16850         HASH_TABLE_SIZE, mmalloca_results): Remove.
16851         (small_t): New type.
16852         (mmalloca, free): Rewritten.
16853         * lib/malloca.valgrind: Remove file.
16854         * modules/malloca (Files): Remove it.
16855         (Depends-on): Remove verify.
16857 2018-01-31  Bruno Haible  <bruno@clisp.org>
16859         environ: Fix link error on 64-bit Cygwin.
16860         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
16861         __declspec(dllimport) attribute.
16862         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
16864 2018-01-30  Bruno Haible  <bruno@clisp.org>
16866         get-rusage-data: Add support for Minix 3.
16867         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
16869 2018-01-30  Bruno Haible  <bruno@clisp.org>
16871         vma-iter: Add support for Minix 3.
16872         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
16873         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
16875 2018-01-27  Bruno Haible  <bruno@clisp.org>
16877         Fix malfunction of socket functions on HP-UX in 64-bit mode.
16878         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
16879         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
16880         _HPUX_ALT_XOPEN_SOCKET_API.
16881         * modules/accept (Depends-on): Add 'extensions'.
16882         * modules/getpeername (Depends-on): Likewise.
16883         * modules/getsockname (Depends-on): Likewise.
16884         * modules/getsockopt (Depends-on): Likewise.
16885         * modules/recvfrom (Depends-on): Likewise.
16886         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
16887         * doc/posix-functions/getpeername.texi: Likewise.
16888         * doc/posix-functions/getsockname.texi: Likewise.
16889         * doc/posix-functions/getsockopt.texi: Likewise.
16890         * doc/posix-functions/recvfrom.texi: Likewise.
16892 2018-01-27  Bruno Haible  <bruno@clisp.org>
16894         getsockname tests: More tests.
16895         * tests/test-getsockname.c (open_server_socket): New function, mostly
16896         copied from test-poll.c.
16897         (main): Check that getsockname fills in addr.
16898         * modules/getsockname-tests (Depends-on): Add the necessary
16899         dependencies.
16900         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
16902 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
16904         manywarnings: fix maintainer comment
16905         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
16906         it does not mistakenly think that ‘-1)’ is an option.
16908 2018-01-26  Bruno Haible  <bruno@clisp.org>
16910         langinfo: Fix last commit.
16911         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
16912         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
16914 2018-01-24  Bruno Haible  <bruno@clisp.org>
16916         langinfo, nl_langinfo: Add support for alternative month names.
16917         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
16918         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
16919         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
16920         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
16921         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
16922         * doc/posix-functions/nl_langinfo.texi: Likewise.
16924 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16926         Merge strftime.c changes from glibc
16927         This incorporates:
16928         2017-11-14 [BZ #10871] Implement alternative month names
16929         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
16930         2017-06-20 Use locale_t, not __locale_t, throughout glibc
16931         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
16932         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
16933         Use locale_t, not __locale_t.
16934         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
16935         (__strftime_internal): Add support for alternate months.
16937 2018-01-23  Bruno Haible  <bruno@clisp.org>
16939         doc: Mention another prerequisite for using Gnulib.
16940         Reported at <https://stackoverflow.com/questions/48378214/>.
16941         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
16942         AC_CONFIG_HEADERS.
16944 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
16946         build: GuixSD doesn't have /bin/bash
16947         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
16949 2018-01-21  Bruno Haible  <bruno@clisp.org>
16951         Avoid test failures on Microsoft Windows Subsystem for Linux.
16952         * tests/test-fcntl.c (main): Allow a different errno.
16953         * tests/test-rename.h (test_rename): Likewise.
16954         * tests/test-renameat.c (main): Likewise.
16955         * tests/test-renameat2.c (main): Likewise.
16957 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
16959         filenamecat: make base a suffix of result
16960         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
16961         (mfile_name_concat): Always make BASE a suffix of the result, as
16962         cp expects this.  To implement this, separate with '.' instead of
16963         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
16964         * tests/test-filenamecat.c (main): Adjust tests to match
16965         current behavior.  Check that BASE_IN_RESULT points to
16966         a copy of BASE and is a suffix of the resultk, and that DIR
16967         is a prefix of the result that is no longer than the prefix
16968         indicated by BASE_IN_RESULT.
16970 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
16972         update-copyright: Handle use of ©
16973         * build-aux/update-copyright ($circle_c_re): Update regex to
16974         handle use of © in headers.
16976 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
16978         Fix -Wundef warning in user-included header lib/cdefs.h.
16979         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
16981 2018-01-04  Bruno Haible  <bruno@clisp.org>
16983         pthread_sigmask: Avoid compilation error on mingw.
16984         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
16985         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
16986         macro.
16988 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
16990         test-framework-sh: ‘ps -ef’, not ‘ps ef’
16991         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
16992         Suggested by Bob Proulx (Bug#29968).
16993         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
16995 2018-01-02  Eric Blake  <eblake@redhat.com>
16997         stat-time: silence -Wunused-parameter regression
16998         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
16999         Prefer attribute over cast-to-void.
17000         (stat_time_normalize): Mark st as potentially unused.
17002 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
17004         test-framework-sh: avoid netstat
17005         Problem reported by Kristýna Streitová (Bug#29947).
17006         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
17007         deprecated on SuSE and it's not that important anyway.
17009 2018-01-01  Jim Meyering  <meyering@fb.com>
17011         update-copyright: add code to handle more special cases
17012         After running "make update-copyright" this year, five files
17013         required additional manual changes.  Automate those adjustments
17014         for next year.
17015         * Makefile (_year_and_prev): Define.
17016         (update-copyright): Add perl commands to induce this year's post-
17017         update-copyright adjustments.
17019 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
17021         version-etc: new year
17022         * build-aux/gendocs.sh (version):
17023         * doc/gendocs_template:
17024         * doc/gendocs_template_min:
17025         * doc/gnulib.texi:
17026         * lib/version-etc.c (COPYRIGHT_YEAR):
17027         Update copyright dates by hand in templates and the like.
17029         maint: fix 'make update-copyright'
17030         * Makefile (update-copyright): Adjust to 2016-11-23 change
17031         to config/srclist-update, which changed the format of srclist.txt.
17033 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
17035         chdir-safer: remove this module
17036         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
17037         * NEWS: Document removal.
17038         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
17039         * modules/chdir-safer: Remove these files.
17041 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
17043         Add cross-compilation results for GNU/Hurd.
17044         * m4/calloc.m4: Add GNU/Hurd guess.
17045         * m4/cbrtl.m4: Likewise.
17046         * m4/ceil.m4: Likewise.
17047         * m4/ceilf.m4: Likewise.
17048         * m4/ceill.m4: Likewise.
17049         * m4/chown.m4: Likewise.
17050         * m4/duplocale.m4: Likewise.
17051         * m4/exp2l.m4: Likewise.
17052         * m4/expm1.m4: Likewise.
17053         * m4/fchdir.m4: Likewise.
17054         * m4/floor.m4: Likewise.
17055         * m4/floorf.m4: Likewise.
17056         * m4/fmod.m4: Likewise.
17057         * m4/fmodf.m4: Likewise.
17058         * m4/fmodl.m4: Likewise.
17059         * m4/getcwd.m4: Likewise.
17060         * m4/getgroups.m4: Likewise.
17061         * m4/gettimeofday.m4: Likewise.
17062         * m4/hypot.m4: Likewise.
17063         * m4/hypotf.m4: Likewise.
17064         * m4/hypotl.m4: Likewise.
17065         * m4/link-follow.m4: Likewise.
17066         * m4/link.m4: Likewise.
17067         * m4/linkat.m4: Likewise.
17068         * m4/log.m4: Likewise.
17069         * m4/log10.m4: Likewise.
17070         * m4/log10f.m4: Likewise.
17071         * m4/log1p.m4: Likewise.
17072         * m4/log1pf.m4: Likewise.
17073         * m4/log1pl.m4: Likewise.
17074         * m4/log2.m4: Likewise.
17075         * m4/log2f.m4: Likewise.
17076         * m4/logf.m4: Likewise.
17077         * m4/lstat.m4: Likewise.
17078         * m4/malloc.m4: Likewise.
17079         * m4/mbrlen.m4: Likewise.
17080         * m4/mbrtowc.m4: Likewise.
17081         * m4/mkdir.m4: Likewise.
17082         * m4/mkfifo.m4: Likewise.
17083         * m4/mknod.m4: Likewise.
17084         * m4/mkstemp.m4: Likewise.
17085         * m4/modf.m4: Likewise.
17086         * m4/modff.m4: Likewise.
17087         * m4/modfl.m4: Likewise.
17088         * m4/printf.m4: Likewise.
17089         * m4/pselect.m4: Likewise.
17090         * m4/ptsname.m4: Likewise.
17091         * m4/putenv.m4: Likewise.
17092         * m4/readlink.m4: Likewise.
17093         * m4/realloc.m4: Likewise.
17094         * m4/remainder.m4: Likewise.
17095         * m4/remainderf.m4: Likewise.
17096         * m4/remainderl.m4: Likewise.
17097         * m4/rmdir.m4: Likewise.
17098         * m4/round.m4: Likewise.
17099         * m4/roundf.m4: Likewise.
17100         * m4/roundl.m4: Likewise.
17101         * m4/select.m4: Likewise.
17102         * m4/setenv.m4: Likewise.
17103         * m4/signbit.m4: Likewise.
17104         * m4/sleep.m4: Likewise.
17105         * m4/stat.m4: Likewise.
17106         * m4/strerror.m4: Likewise.
17107         * m4/strtok_r.m4: Likewise.
17108         * m4/symlink.m4: Likewise.
17109         * m4/symlinkat.m4: Likewise.
17110         * m4/trunc.m4: Likewise.
17111         * m4/truncf.m4: Likewise.
17112         * m4/truncl.m4: Likewise.
17113         * m4/tzset.m4: Likewise.
17114         * m4/ungetc.m4: Likewise.
17115         * m4/usleep.m4: Likewise.
17116         * m4/wcwidth.m4: Likewise.
17118 2017-12-28  Bruno Haible  <bruno@clisp.org>
17120         gnulib-tool: Make --conditional-dependencies work better.
17121         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
17122         * gnulib-tool (Options): Don't reject the combination of
17123         --conditional-dependencies with --with-tests.
17124         (func_emit_autoconf_snippets): Add argument referenceable_modules.
17125         Don't reference $modules.
17126         (func_import, func_create_testdir): Pass it.
17128 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
17130         regex: use re_malloc etc. consistently
17131         Problem and original patch reported by Arnold Robbins in:
17132         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
17133         * lib/regcomp.c (re_comp):
17134         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
17135         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
17137 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
17138             Paul Eggert  <eggert@cs.ucla.edu>
17140         glob: Silence warning about void pointer arithmetic.
17141         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
17142         arithmetic.
17144 2017-12-15  Bruno Haible  <bruno@clisp.org>
17146         spawn-pipe: Silence a clang warning.
17147         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
17148         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
17149         in this file.
17151 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
17153         explicit_bzero: port to macOS + Clang 9.0.0
17154         Problem reported by Marcus Johnson (Bug#29658).
17155         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
17156         Don’t use asm.
17158 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
17160         doc: Improve explanation of supporting relocatable libraries.
17161         * doc/relocatable-maint.texi (Supporting Relocation): Explain
17162         properly how to build the relocatable module for
17163         libraries. (Method and example code from Bruno Haible.)
17165 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
17167         doc: Use better texinfo tags in a few cases.
17168         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
17169         instead of @samp in a few places.
17171 2017-12-11  Bruno Haible  <bruno@clisp.org>
17173         unistr/base: Update comment.
17174         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
17176 2017-12-10  Pádraig Brady  <P@draigBrady.com>
17178         test-faccessat.c: unlink temp file to avoid subsequent test failure
17179         * tests/test-faccessat.c: Remove the file to avoid failure
17180         to open the file on subsequent runs due to being created
17181         with no permissions.
17183 2017-12-10  Bruno Haible  <bruno@clisp.org>
17185         doc: New sect. "Modifying the build rules of a Gnulib import directory".
17186         * doc/gnulib-tool.texi (Modified build rules): New node.
17188 2017-12-10  Bruno Haible  <bruno@clisp.org>
17190         doc: Tweak wording.
17191         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
17192         "binaries".
17194 2017-12-05  Sam Steingold  <sds@gnu.org>
17195             Bruno Haible  <bruno@clisp.org>
17197         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
17198         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
17199         AC_EGREP_CPP pattern.
17201 2017-12-03  Bruno Haible  <bruno@clisp.org>
17203         all: Replace more http URLs by https URLs.
17204         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
17205         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
17206         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
17207         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
17209 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
17211         Port better to CentOS 5
17212         Problems reported by Tom G. Christensen in:
17213         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
17214         * doc/glibc-functions/strverscmp.texi (strverscmp):
17215         Document strverscmp bug with glibc 2.9 and earlier.
17216         * doc/posix-functions/tzset.texi (tzset):
17217         Document that TZ with angle brackets is POSIX-2001 and later.
17218         * tests/test-nstrftime.c: Include unistd.h.
17219         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
17220         (TZ): Use it to skip tests with angle brackets in TZ,
17221         for older systems.
17223         stat: add missing module dependencies
17224         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
17225         Add stat-time.
17227 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
17229         stat: fix compilation failure on macOS Sierra
17230         Reported by Marius Schamschula <mschamschula@gmail.com> in:
17231         https://savannah.gnu.org/bugs/?52546
17232         * lib/stat.c: Add missing include of stat-time.h.
17234 2017-11-28  Jim Meyering  <meyering@fb.com>
17236         test-faccessat.c: correct BASE definition to avoid parallel test failure
17237         * tests/test-faccessat.c (BASE): Define using this file's name, not
17238         that of test-lstat.c.  Using the latter caused this test to fail
17239         sometimes when run concurrently with test-lstat.
17241 2017-11-27  Daiki Ueno  <ueno@gnu.org>
17243         unicase: fix VPATH build
17244         * modules/unicase/special-casing (Makefile.am): Ensure that the
17245         base directory is created when generating
17246         unicase/special-casing.h.
17248 2017-11-27  Daiki Ueno  <ueno@gnu.org>
17250         libunistring: update to Unicode 9.0.0
17251         * lib/gen-uni-tables.c (fill_properties): Recognize
17252         Sentence_Terminal and Prepended_Concatenation_Mark.
17253         (is_property_default_ignorable_code_point): Exclude U+08E2.
17254         (fill_arabicshaping): Allow missing whitespace when parsing;
17255         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
17256         (output_blocks): Increase the element size of the level1 table to
17257         accommodate more blocks.
17258         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
17259         Update each class according to the standard.
17260         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
17261         E_Base_GAZ characters.
17262         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
17263         Glue_After_Zwj, and E_Base_GAZ characters.
17264         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
17265         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
17266         enum value.
17267         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
17268         value.
17269         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
17270         LBP_ZWJ, LBP_EB, and LBP_EM.
17271         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
17272         enum value.
17273         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
17274         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
17275         declaration.
17276         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
17277         (uniwbrk_table): Implement WB14.
17278         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
17279         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
17280         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
17281         uc-is-grapheme-break.
17282         * modules/unigbrk/uc-grapheme-breaks: New module.
17283         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
17284         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
17285         enum value.
17286         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
17287         * lib/unigbrk/u-grapheme-breaks.h: New file.
17288         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
17289         u-grapheme-breaks.h instead of uc_is_grapheme_break.
17290         * lib/unigbrk/uc-grapheme-breaks.c: New file.
17291         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
17292         29.
17293         * tests/unigbrk/test-uc-gbrk-prop.c
17294         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
17295         GBP_GAZ, and GBP_EBG.
17296         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
17297         * tests/unigbrk/test-uc-is-grapheme-break.c
17298         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
17299         GBP_GAZ, and GBP_EBG.
17300         (main): Skip unsupported rules involving 3 or more characters,
17301         namely GB10, GB12, and GB13.
17302         * lib/uniwidth/width.c (nonspacing_table_data): Update.
17303         * all generated files under lib/uni* and tests/uni*: Regenerate.
17304         * all the affected modules: Bump version.
17306 2017-11-26  Bruno Haible  <bruno@clisp.org>
17308         strfmon_l: Fix compilation error with glibc 2.5.
17309         Reported by Tom G. Christensen <tgc@jupiterrise.com>
17310         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
17311         * lib/monetary.in.h: Include also <locale.h>.
17313 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
17315         posixtm: remove PDS_LEADING_YEAR
17316         This changes the API slightly, in a hopefully-innocuous way.
17317         Without this change the code had undefined behavior when a
17318         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
17319         Problem reported by Pádraig Brady in:
17320         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
17321         * NEWS: Mention this.
17322         * lib/posixtm.c (posix_time_parse): Treat the absence of
17323         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
17324         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
17325         present, but define it as zero, for compatibility with existing
17326         source code).  All other PDS_* values moved up.
17327         * tests/test-posixtm.c (LY): New macro.
17328         (T): Use it.  Do not expect a particular numeric encoding
17329         for PDS_CENTURY etc.
17331 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
17333         stat: work around Solaris bug with tv_nsec < 0
17334         * doc/posix-functions/fstat.texi (fstat):
17335         * doc/posix-functions/fstatat.texi (fstatat):
17336         * doc/posix-functions/lstat.texi (lstat):
17337         * doc/posix-functions/stat.texi (stat):
17338         Mention Solaris 11 bug.
17339         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
17340         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
17341         * lib/lstat.c (rpl_lstat):
17342         * lib/stat.c (rpl_stat):
17343         Normalize resulting timestamps.
17344         * lib/fstatat.c (normal_fstatat): New function.
17345         (rpl_fstatat): Use it.
17346         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
17347         (stat_time_normalize): New function.
17348         * m4/fstat.m4 (gl_FUNC_FSTAT):
17349         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
17350         * m4/lstat.m4 (gl_FUNC_LSTAT):
17351         * m4/stat.m4 (gl_FUNC_STAT):
17352         Replace on Solaris.
17353         * modules/fstat (Depends-on):
17354         * modules/fstatat (Depends-on):
17355         Add stat-time.
17356         * modules/stat-time (Depends-on): Add errno, intprops.
17358 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
17360         regex: merge from glibc
17361         * lib/regcomp.c (init_word_char): Add comments.
17363 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
17365         regex: merge from glibc
17366         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
17367         * lib/regex_internal.h (internal_function): Remove.
17368         All uses removed.
17370 2017-11-20  Bruno Haible  <bruno@clisp.org>
17372         crypto/gc-sm3: Fix buffer overrun.
17373         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
17374         Reported by Coverity.
17376 2017-11-12  Jim Meyering  <meyering@fb.com>
17378         maint: shorten https://lists.gnu.org/archive/html/... links
17379         Each /archive/html/ part can be replace with /r/.
17380         Run this to induce the change:
17381         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
17382         * ChangeLog: Perform that substitution.
17383         * Makefile: Likewise.
17384         * STATUS-libposix: Likewise.
17385         * build-aux/bootstrap: Likewise.
17386         * doc/maintain.texi: Likewise.
17387         * gnulib-tool: Likewise.
17388         * lib/allocator.h: Likewise.
17389         * lib/argp-ba.c: Likewise.
17390         * lib/argp-pv.c: Likewise.
17391         * lib/canon-host.c: Likewise.
17392         * lib/canonicalize-lgpl.c: Likewise.
17393         * lib/float.in.h: Likewise.
17394         * lib/fstat.c: Likewise.
17395         * lib/getdelim.c: Likewise.
17396         * lib/getprogname.c: Likewise.
17397         * lib/glthread/thread.h: Likewise.
17398         * lib/intprops.h: Likewise.
17399         * lib/mbsrtowcs-state.c: Likewise.
17400         * lib/safe-read.c: Likewise.
17401         * lib/signal.in.h: Likewise.
17402         * lib/stat.c: Likewise.
17403         * lib/stdbool.in.h: Likewise.
17404         * lib/stdio-impl.h: Likewise.
17405         * lib/stdio.in.h: Likewise.
17406         * lib/sysexits.in.h: Likewise.
17407         * lib/timespec.h: Likewise.
17408         * lib/wcsrtombs-state.c: Likewise.
17409         * m4/alloca.m4: Likewise.
17410         * m4/extern-inline.m4: Likewise.
17411         * m4/fstatat.m4: Likewise.
17412         * m4/gnulib-common.m4: Likewise.
17413         * m4/lib-ignore.m4: Likewise.
17414         * m4/printf.m4: Likewise.
17415         * m4/regex.m4: Likewise.
17416         * m4/stat-size.m4: Likewise.
17417         * m4/std-gnu11.m4: Likewise.
17418         * m4/stdbool.m4: Likewise.
17419         * m4/sys_types_h.m4: Likewise.
17420         * m4/threadlib.m4: Likewise.
17421         * m4/vararrays.m4: Likewise.
17422         * pygnulib/GLImport.py: Likewise.
17423         * tests/test-exp.h: Likewise.
17424         * tests/test-exp2.h: Likewise.
17425         * tests/test-expm1.h: Likewise.
17426         * tests/test-fflush2.c: Likewise.
17427         * tests/test-getopt_long.h: Likewise.
17428         * tests/test-intprops.c: Likewise.
17429         * tests/test-log.h: Likewise.
17430         * tests/test-log10.h: Likewise.
17431         * tests/test-log1p.h: Likewise.
17432         * tests/test-log2.h: Likewise.
17433         * tests/test-printf-posix.h: Likewise.
17434         * tests/test-regex.c: Likewise.
17435         * tests/test-snprintf-posix.h: Likewise.
17436         * tests/test-sprintf-posix.h: Likewise.
17437         * tests/test-stdalign.c: Likewise.
17438         * tests/test-stdbool.c: Likewise.
17439         * tests/test-vasnprintf-posix.c: Likewise.
17440         * tests/test-vasprintf-posix.c: Likewise.
17441         * top/maint.mk: Likewise.
17443 2017-11-12  Bruno Haible  <bruno@clisp.org>
17445         faccessat: Make the last change more robust.
17446         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
17447         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
17449 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
17451         faccessat: port to macOS (Bug#29231)
17452         macOS faccessat has the same bug that lstat does: if the file
17453         name ends in '/' it ignores the trailing slash.
17454         Problem reported for Emacs by Vincent Zhang.
17455         * doc/posix-functions/faccessat.texi (faccessat): Document this.
17456         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
17457         around the initial includes.  Include errno.h, string.h, sys/stat.h.
17458         (orig_faccessat) [HAVE_FACCESSAT]: New function.
17459         Include "unistd.h" after defining it.
17460         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
17461         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
17462         Handle in the usual way.
17463         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
17464         lstat dereferences symlinks, since faccessat is likely to
17465         have the same problem.
17466         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
17467         * modules/faccessat (Depends-on): Add fstatat.
17468         Depend if REPLACE_FACCESSAT is 1, too.
17469         (configure.ac): Link if REPLACE_FACCESSAT is 1.
17470         * modules/faccessat-tests (Depends-on): Add symlink.
17471         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
17472         * tests/test-faccessat.c (main): Test for the bug.
17474 2017-11-11  Bruno Haible  <bruno@clisp.org>
17476         getprogname: Fix compilation error on IRIX.
17477         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
17478         'namesize'.
17480 2017-11-11  Bruno Haible  <bruno@clisp.org>
17482         year2038: Tweak last patch.
17483         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
17485 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
17487         year2038: be more insistent about 64-bit time_t
17488         Applications requiring access to arbitrary files should not be
17489         built with 32-bit time_t on hosts that have 64-bit timestamps,
17490         as this can lead to real trouble at runtime.
17491         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
17492         Check on all systems, not just MinGW.  Use a heuristic involving
17493         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
17494         output a failure or just a warning, to make it more likely that
17495         builders will select 64-bit time_t.
17497 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
17499         havelib: fix typo in previous change
17500         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
17502         Don’t use AC_EGREP_CPP if affected by CFLAGS
17503         * m4/float_h.m4 (gl_FLOAT_H):
17504         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
17505         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
17506         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
17507         * m4/year2038.m4 (gl_YEAR2038):
17508         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
17509         likely to be affected by the choice of CFLAGS, since CFLAGS are
17510         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
17511         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
17513         fstatat: pacify GCC on unusual platform
17514         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
17515         Omit, as it’s unused in this case.
17517 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
17519         timespec: prefer ‘assume’ to ‘assure’
17520         This avoids some runtime tests.  The rest of the module makes
17521         similar assumptions and there is little point to testing here.
17522         * lib/timespec.h: Include verify.h instead of assure.h.
17523         (timespec_cmp): Use ‘assume’, not ‘assure’.
17524         Also, remove an unnecessary cast to ‘int’, as lots of other
17525         code in this module now causes -Wconversion to complain, and
17526         this is a problem with -Wconversion not with the code.
17528         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
17530         Port recent gnulib-tool change to Dash
17531         * gnulib-tool (func_create_testdir): Don't assume that the shell
17532         retokenizes after expanding "$@" inside the call to
17533         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
17535 2017-10-27  Jim Meyering  <meyering@fb.com>
17537         timespec.h: use "assure" to avoid a spurious warning
17538         * lib/timespec.h: Include "assure.h" and use it to help
17539         gcc7's -Wstrict-overflow avoid a false positive warning
17540         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
17541         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
17542         * modules/timespec (Depends-on): Add assure.
17544 2017-10-29  Bruno Haible  <bruno@clisp.org>
17546         Avoid several test failures with traditional locales on Haiku.
17547         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
17548         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
17549         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
17550         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
17551         LOCALE_ZH_CN=none.
17553 2017-10-29  Bruno Haible  <bruno@clisp.org>
17555         strerror_r-posix: Fix behaviour and test failure on Haiku.
17556         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
17557         are positive. Work around return value 0 instead of ERANGE on Haiku.
17558         For unknown error numbers, use a format string consistent with perror().
17559         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
17560         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
17561         are positive.
17563 2017-10-29  Bruno Haible  <bruno@clisp.org>
17565         get-rusage-data: Avoid crash on Haiku.
17566         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
17568 2017-10-29  Bruno Haible  <bruno@clisp.org>
17570         get-rusage-as: Avoid crash on Haiku.
17571         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
17573 2017-10-29  Bruno Haible  <bruno@clisp.org>
17575         ilogbl: Ensure replacement on Haiku.
17576         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
17577         REPLACE_ILOGBL if ilogbl does not work.
17578         (gl_FUNC_ILOGBL_WORKS): New macro.
17579         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
17580         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
17581         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
17582         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
17583         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
17585 2017-10-29  Bruno Haible  <bruno@clisp.org>
17587         expl: Ensure replacement on Haiku.
17588         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
17589         zero.
17590         * doc/posix-functions/expl.texi: Mention the Haiku problem.
17592 2017-10-29  Bruno Haible  <bruno@clisp.org>
17594         math: Fix test failure on Haiku.
17595         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
17596         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
17597         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
17598         * doc/posix-headers/math.texi: Mention the Haiku problem.
17600 2017-10-29  Bruno Haible  <bruno@clisp.org>
17602         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
17603         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
17604         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
17606 2017-10-29  Bruno Haible  <bruno@clisp.org>
17608         crypto/*: Verify that the header file is self-contained.
17609         * tests/test-gc-*.c: Include the module's header file immediately after
17610         <config.h>.
17611         * tests/test-hmac-*.c: Likewise.
17612         * tests/test-arcfour.c: Likewise.
17613         * tests/test-arctwo.c: Likewise.
17614         * tests/test-des.c: Likewise.
17615         * tests/test-md2.c: Likewise.
17616         * tests/test-md4.c: Likewise.
17617         * tests/test-md5.c: Likewise.
17618         * tests/test-rijndael.c: Likewise.
17619         * tests/test-sha1.c: Likewise.
17620         * tests/test-sm3.c: Likewise.
17622 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
17623             Bruno Haible  <bruno@clisp.org>
17625         crypto/gc: fix build failure with -Werror=suggest-attribute=const
17626         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
17628 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
17630         New module: crypto/gc-sm3
17631         * lib/gc.h: Declare SM3-related stuffs.
17632         * lib/gc-gnulib.c: Support sm3 in internal functions.
17633         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
17634         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
17635         * modules/crypto/gc-sm3: Define gc-sm3 module.
17636         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
17637         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
17638         * MODULES.html.sh: List gc-sm3 module.
17640 2017-10-29  Bruno Haible  <bruno@clisp.org>
17642         random, random_r: Mention different prototypes on Haiku.
17643         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
17644         * doc/glibc-functions/random_r.texi: Likewise.
17645         * doc/glibc-functions/initstate_r.texi: Likewise.
17646         * doc/glibc-functions/setstate_r.texi: Likewise.
17648 2017-10-28  Bruno Haible  <bruno@clisp.org>
17650         posix_spawn: Avoid spurious message in configure output.
17651         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
17652         'cmp' command.
17654 2017-10-28  Bruno Haible  <bruno@clisp.org>
17656         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
17657         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
17658         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
17660 2017-10-28  Bruno Haible  <bruno@clisp.org>
17662         ioctl: Override non-POSIX declaration on Haiku.
17663         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
17664         * lib/sys_ioctl.in.h: Add comment about Haiku.
17665         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
17666         * doc/glibc-headers/sys_ioctl.texi: Likewise.
17668 2017-10-28  Bruno Haible  <bruno@clisp.org>
17670         crypto/sm3: Add overview documentation to the .h file.
17671         * lib/sm3.h: Add comments.
17673 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
17675         New module: crypto/sm3
17676         This new module can be used to compute SM3 message digest of files or
17677         memory blocks according to the specification GM/T 004-2012
17678         Cryptographic Hash Algorithm SM3, published by State Cryptography
17679         Administration, China.
17680         The official SM3 cryptographic hash algorithm specification is
17681         available at
17682         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
17683         * lib/sm3.h: Declare the APIs of sm3 module.
17684         * lib/sm3.c: Implement SM3 hash algorithm.
17685         * m4/sm3.m4: m4 file for sm3 module.
17686         * modules/crypto/sm3: Define sm3 module.
17687         * tests/test-sm3.c: Implement SM3 test case.
17688         * modules/crypto/sm3-tests: Define sm3 test module.
17689         * MODULES.html.sh: List sm3 module.
17691 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
17693         gc-libgcrypt: fix undefined enum type in switch statement
17694         Resolve the following build failure:
17695         lib/gc-libgcrypt.c: In function 'gc_hash_open':
17696         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
17697         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
17698              case 0:
17699              ^~~~
17700         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
17701         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
17703 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
17705         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
17706         Resolve the following build failure:
17707         lib/gc-libgcrypt.c: In function 'gc_hash_read':
17708         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
17709         in signedness [-Werror=pointer-sign]
17710             digest = gcry_md_read (ctx->gch, 0);
17711                    ^
17712         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
17714 2017-10-26  Bruno Haible  <bruno@clisp.org>
17716         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
17717         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
17718         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
17720 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
17722         glob: fix another heap buffer overflow
17723         Problem reported by Tim Rühsen in:
17724         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
17725         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
17727 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
17729         quotearg: pacify compiler re unsigned
17730         * lib/quotearg.c (quotearg_n_options):
17731         Rewrite to avoid diagnostic from overly-picky compiler.
17732         Problem reported by Sami Kerola in:
17733         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
17735         glob: fix heap buffer overflow
17736         * lib/glob.c (glob): Fix off-by-one error introduced into
17737         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
17738         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
17739         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
17740         Fix suggested by Bruno Haible.
17742 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
17744         glob: pacify fuzzer for mempcpy
17745         Problem reported by Tim Rühsen in:
17746         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
17747         * lib/glob.c (glob): Do not pass NULL to mempcpy.
17749 2017-10-12  Bruno Haible  <bruno@clisp.org>
17751         doc: Fix syntax error (regression from 2017-10-03).
17752         * doc/posix-functions/strncpy.texi: Fix syntax error.
17754 2017-10-12  Bruno Haible  <bruno@clisp.org>
17756         doc: Update for Solaris 11.3.
17757         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
17758         mention Solaris 11.3.
17759         * m4/log2.m4: Fix comments.
17760         * m4/log2f.m4: Likewise.
17761         * m4/printf.m4: Update comments.
17762         * m4/rename.m4: Likewise.
17763         * m4/strncat.m4: Likewise.
17765         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
17767 2017-10-10  Bruno Haible  <bruno@clisp.org>
17769         doc: Improve doc about ioctl.
17770         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
17771         prototype.
17773 2017-10-09  Bruno Haible  <bruno@clisp.org>
17775         wcwidth: Don't use obsolete syntax of 'test'.
17776         Reported by Eric Blake.
17777         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
17778         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
17780 2017-10-09  Bruno Haible  <bruno@clisp.org>
17782         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
17783         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
17784         and Daniel P. Berrange <berrange@redhat.com>.
17785         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
17786         on glibc systems. The getopt-pfx-core.h file declares exactly what
17787         unistd.h needs, nothing more.
17789 2017-10-08  Bruno Haible  <bruno@clisp.org>
17791         vma-iter: Improve support for FreeBSD.
17792         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
17793         vma_iterate.
17794         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
17796 2017-10-08  Bruno Haible  <bruno@clisp.org>
17798         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
17799         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
17801 2017-10-07  KO Myung-Hun  <komh@chollian.net>
17803         test-framework-sh: Fix 'invalid path dir' error.
17804         On OS/2, a path separator is ';' not ':'. And ':' is used as a
17805         separator between a drive letter and directory parts.
17806         As a result, an absolute path such as x:/path/to/dir on OS/2 is
17807         treated as an invalid path dir.
17808         * tests/init.sh (PATH_SEPARATOR): Set at startup.
17809         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
17810         instead of hard coded ':'.
17812 2017-10-07  Bruno Haible  <bruno@clisp.org>
17814         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
17815         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
17816         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
17817         (rof_open): On Linux, do multiple read() calls and make sure
17818         MIN_LEFTOVER bytes are left when read() returns.
17820 2017-10-07  Bruno Haible  <bruno@clisp.org>
17822         vma-iter: Improve support for GNU/Hurd.
17823         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
17824         API, not the /proc file system.
17826 2017-10-07  Bruno Haible  <bruno@clisp.org>
17828         test-framework-sh: Don't require bash on Windows and OS/2.
17829         Reported by KO Myung-Hun.
17830         * tests/test-init.sh: Use 'shopt' only when running in bash.
17832 2017-10-06  KO Myung-Hun  <komh@chollian.net>
17834         wcwidth: check a macro version of wcwidth () as well
17835         * lib/wchar.in.h: Revert commit from 2016-01-14.
17836         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
17838 2017-10-06  Bruno Haible  <bruno@clisp.org>
17840         getopt-posix: Clarify copyright header.
17841         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
17842         * lib/getopt-pfx-core.h: Likewise.
17843         * lib/getopt-pfx-ext.h: Likewise.
17844         * lib/getopt-cdefs.in.h: Likewise.
17846 2017-10-03  Bruno Haible  <bruno@clisp.org>
17848         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
17849         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
17850         gl_HOST_CPU_C_ABI.
17852 2017-10-03  Bruno Haible  <bruno@clisp.org>
17854         doc: warn about misuse of strncpy and wcsncpy.
17855         * doc/posix-functions/strcpy.texi: Describe requirements on prior
17856         memory allocation.
17857         * doc/posix-functions/wcscpy.texi: Likewise.
17858         * doc/posix-functions/strncpy.texi: Describe what this function is not
17859         useful for.
17860         * doc/posix-functions/wcsncpy.texi: Likewise.
17862 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
17864         fsuage: fix typo in previous change
17865         * lib/fsusage.c: Remove stray include of full-read.h.
17866         Problem reported by Sam Steingold for macOS (Bug#28669).
17868 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
17870         fsusage: remove SVR2 support
17871         SVR2 was obsolete by 1986 and is no longer supported by anybody,
17872         and its code was getting in the way of use of this module by
17873         Emacs, which has its own ‘read’ function anyway.
17874         * lib/fsusage.c: Do not include sys/filsys.h.
17875         (get_fs_usage): Remove SVR2-specific code.
17876         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
17877         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
17878         * modules/fsusage (Depends-on): Do not depend on full-read.
17880         Simplify autoupdate of licenses
17881         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
17882         place.
17884 2017-10-01  Bruno Haible  <bruno@clisp.org>
17886         vma-iter: Add support for GNU/Hurd.
17887         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
17888         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
17890 2017-09-30  Bruno Haible  <bruno@clisp.org>
17892         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
17893         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
17894         fail when module 'largefile' is in use.
17895         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
17896         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
17897         Don't test HAVE_SYS_PROCFS_H.
17899 2017-09-30  Bruno Haible  <bruno@clisp.org>
17901         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
17902         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
17903         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
17904         * modules/havelib (Depends-on): Add host-cpu-c-abi.
17906 2017-09-30  Bruno Haible  <bruno@clisp.org>
17908         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
17909         * lib/uniname/uniname.c (unicode_name_character): Add braces around
17910         scope of local variables.
17912 2017-09-28  Bruno Haible  <bruno@clisp.org>
17914         string: code style
17915         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
17916         substitutable variables.
17917         * modules/string (Makefile.am): Likewise.
17919 2017-09-26  Bruno Haible  <bruno@clisp.org>
17921         uniname/uniname-tests: Tighten code.
17922         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
17923         local variables into one.
17925 2017-09-26  Bruno Haible  <bruno@clisp.org>
17927         vma-iter: Improvements for Linux and BSD platforms.
17928         - Add support for DragonFly BSD.
17929         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
17930         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
17931         Read the entire file into memory in a single system call.
17932         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
17933         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
17935 2017-09-26  Bruno Haible  <bruno@clisp.org>
17937         vma-iter: Provide the protection flags on FreeBSD.
17938         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
17939         skip three fields between the addresses and the protection flags.
17941 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
17943         glob: remove bogus extern decl
17944         * lib/glob.c (__glob_pattern_type): Remove now-spurious
17945         extern declaration.  Problem reported by Adhemerval Zanella in:
17946         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
17948 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
17950         uniname/uniname-tests: integer overflow fix
17951         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
17952         Check for integer overflow.
17954         duplocale-tests: fix unlikely crash
17955         * tests/test-duplocale.c (get_locale_dependent_values):
17956         Don’t crash with absurdly long month names.
17958         maint: fix overflow checking in nap.h
17959         * modules/chown-tests:
17960         * modules/fchownat-tests, modules/fdutimensat-tests:
17961         * modules/futimens-tests, modules/lchown-tests:
17962         * modules/stat-time-tests, modules/utime-tests:
17963         * modules/utimens-tests, modules/utimensat-tests:
17964         Depend on intprops.
17965         * tests/nap.h: Include intprops.h.
17966         (diff_timespec): Handle overflow properly.
17968         sys_types: update URL
17969         * m4/sys_types_h.m4: Use https: URL.
17971         parse-datetime: fix dependency
17972         * modules/parse-datetime (Depends-on): Depend
17973         on nstrftime, not strftime.
17975         parse-datetime, posixtm: avoid uninit access
17976         * lib/parse-datetime.y (parse_datetime2):
17977         * lib/posixtm.c (posixtime):
17978         Do not access uninitialized storage, even though the resulting
17979         value is never used.
17981 2017-09-25  Bruno Haible  <bruno@clisp.org>
17983         vma-iter: Improvements for BSD platforms.
17984         - Add support for GNU/kFreeBSD.
17985         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
17986         - Speed up on OpenBSD.
17987         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
17988         (vma_iterate_bsd): New function.
17989         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
17990         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
17991         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
17992         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
17994 2017-09-23  Bruno Haible  <bruno@clisp.org>
17996         strfmon_l: New module.
17997         * modules/strfmon_l: New file.
17998         * lib/strfmon_l.c: New file.
17999         * m4/strfmon_l.m4: New file.
18000         * doc/posix-functions/strfmon_l.texi: Mention the new module.
18001         * modules/strfmon_l-tests: New file.
18002         * tests/test-strfmon_l.c: New file.
18004         monetary: New module.
18005         * modules/monetary: New file.
18006         * lib/monetary.in.h: New file.
18007         * m4/monetary_h.m4: New file.
18008         * doc/posix-headers/monetary.texi: Mention the new module.
18009         * modules/monetary-tests: New file.
18010         * tests/test-monetary.c: New file.
18011         * modules/monetary-c++-tests: New file.
18012         * tests/test-monetary-c++.cc: New file.
18013         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
18015 2017-09-23  Bruno Haible  <bruno@clisp.org>
18017         duplocale tests: Fix test crash on Linux/x86.
18018         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
18019         locale from the current thread before freeing it.
18021 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
18023         mktime: port to OpenVMS
18024         Problem reported by John E. Malmberg in:
18025         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
18026         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
18028 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
18030         manywarnings: port to GCC on 64-bit MS-Windows
18031         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
18032         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
18033         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
18035 2017-09-13  Bruno Haible  <bruno@clisp.org>
18037         all: Replace many more http URLs by https URLs. Update stale URLs.
18038         * users.txt: Remove mention of 'newts'.
18039         * lib/localename.c: Update comment about LANG_SOTHO.
18041 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
18043         all: Replace many http URLs by https URLs.
18045 2017-09-12  Bruno Haible  <bruno@clisp.org>
18047         doc: Prefer https URLs where possible.
18048         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
18049         * doc/ld-output-def.texi: Remove unavailable URL.
18051 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
18053         maintainer-makefile: FTP -> HTTPS
18054         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
18055         of FTP, which is planned to be decommissioned on 2017-11-01.
18057 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
18059         libc-config: Fix __GNUC_PREREQ macro.
18060         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
18061         __GNUC_MINOR.
18063 2017-09-09  Bruno Haible  <bruno@clisp.org>
18065         gnulib-tool: Simplify commit from 2015-08-20.
18066         * gnulib-tool (func_add_or_update): Remove local variable
18067         is_binary_file.
18069 2017-09-08  Bruno Haible  <bruno@clisp.org>
18071         stddef: Avoid conflict with system-defined max_align_t.
18072         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
18073         Reported by Werner Lemberg <wl@gnu.org> in
18074         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
18075         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
18076         (max_align_t): Define as a macro.
18077         (GNULIB_defined_max_align_t): New macro. Guards against multiple
18078         definitions of rpl_max_align_t in different copies of gnulib-generated
18079         <stddef.h>.
18081 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
18083         libc-config: port to MSVC
18084         Problems reported by Gisle Vanem in:
18085         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
18086         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
18087         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
18088         * m4/__inline.m4: New file.
18089         * modules/libc-config (Files): Add it.
18090         (Depends-on): Use it.
18092         glob: Use enum for __glob_pattern_type result
18093         From a patch proposed by Adhemerval Zanella in:
18094         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
18095         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
18096         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
18097         * lib/glob_internal.h (__glob_pattern_type):
18098         * lib/glob.c (glob):
18099         * lib/glob_pattern_p.c (__glob_pattern_p):
18100         Use them.
18102         glob: fix for use in glibc
18103         Problem reported by Adhemerval Zanella in:
18104         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
18105         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
18106         Do not redefine if _LIBC.
18108 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
18110         glob: fix bugs with long login names
18111         Problem reported by Adhemerval Zanella in:
18112         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
18113         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
18114         (glob): Use the same scratch buffer for both getlogin_r and
18115         getpwnam_r.  Don’t require preallocation of the login name.  This
18116         simplifies storage allocation, and corrects the handling of
18117         long login names.
18119 2017-09-02  Bruno Haible  <bruno@clisp.org>
18121         dirent: Update doc.
18122         * doc/posix-headers/dirent.texi: More concrete list of platforms.
18124 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
18126         glob: fix getpwnam_r errno typo
18127         * lib/glob.c (glob): Fix longstanding misuse of errno after
18128         getpwnam_r, which returns an error number rather than setting
18129         errno.
18131         glob: fix typo in recent change
18132         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
18133         Fix recently-introduced typo.
18135 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
18137         glob: don't save and restore errno unnecessarily
18138         * lib/glob.c (glob): Don't save and restore errno
18139         merely because we have getpwnam_r.
18141         glob: don't assume getpwnam_r
18142         * lib/glob.c (glob): Port recent patches to platforms
18143         lacking getpwnam_r.
18145         scratch_buffer: don’t use private glibc API
18146         Suggested by Florian Weimer in:
18147         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
18148         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
18149         * lib/scratch_buffer_grow.c: Rename to
18150         lib/malloc/scratch_buffer_grow.c.
18151         * lib/scratch_buffer_grow_preserve.c: Rename to
18152         lib/malloc/scratch_buffer_grow_preserve.c.
18153         * lib/scratch_buffer_set_array_size.c: Rename to
18154         lib/malloc/scratch_buffer_set_array_size.c.
18155         * lib/scratch_buffer.h: New file.
18156         * modules/scratch_buffer (Files, Makefile.am):
18157         Adjust to source-file renaming.
18159 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
18161         glob: use scratch_buffer instead of extend_alloca
18162         Much of the lib/glob.c part of this patch comes from a glibc patch
18163         proposed by Adhemerval Zanella in:
18164         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
18165         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
18166         included via glob.h, does this for us now.
18167         (__set_errno): Remove, as libc-config does this for us now.
18168         Include <scratch_buffer.h>.
18169         (GETPW_R_SIZE_MAX): Remove.
18170         (glob): Use struct scratch_buffer instead of extend_alloca.
18171         * lib/glob.in.h: Include libc-config.h rather than
18172         including <sys/cdefs.h> conditionally.
18173         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
18174         (__glibc_unlikely, __restrict, weak_alias):
18175         Remove, as libc-config does this for us now.
18176         * m4/glob.m4 (gl_PREREQ_GLOB):
18177         Remove sys/cdefs.h tests; no longer needed.
18178         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
18179         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
18181         scratch_buffer: new module
18182         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
18183         * lib/scratch_buffer_grow_preserve.c:
18184         * lib/scratch_buffer_set_array_size.c:
18185         New files, copied from glibc with very minor changes that can be
18186         copied back.
18187         * modules/scratch_buffer: New file.
18189         libc-config: new module
18190         * MODULES.html.sh: Add libc-config.
18191         * lib/cdefs.h: New file, copied from the GNU C Library with very
18192         minor changes that can be copied back.
18193         * lib/libc-config.h, modules/libc-config: New files.
18195 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18197         glob: match dangling symlinks
18198         This fixes a bug I inadvertently introduced to Gnulib when I
18199         merged glibc glob back into gnulib on 2007-10-16.  This fix is
18200         inspired by a patch proposed for glibc by Adhemerval Zanella in:
18201         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
18202         * doc/posix-functions/glob.texi: Update list of affected platforms.
18203         * lib/glob.c (__lstat64): New macro.
18204         (is_dir): New function.
18205         (glob, glob_in_dir): Match symlinks even if they are dangling.
18206         (link_stat, link_exists_p): Remove.  All uses removed.
18207         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
18208         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
18209         * modules/glob-tests (Depends-on): Add symlink.
18210         * tests/test-glob.c: Include errno.h, unistd.h.
18211         (BASE): New macro.
18212         (main): Test dangling symlinks, if symlinks are supported.
18214         glob, backupfile: inode 0 is a valid inode number
18215         * doc/posix-functions/readdir.texi (readdir):
18216         * doc/posix-headers/dirent.texi (dirent.h):
18217         Document more readdir portability issues.
18218         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
18219         (numbered_backup): Don’t treat inode 0 any differently from
18220         other inode values.
18221         * lib/glob.c (struct readdir_result): Remove skip_entry member.
18222         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
18223         All uses removed.
18224         * modules/glob (Depends-on): Remove d-ino.
18226         glob: simplify symlink detection
18227         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
18228         uint8_t, as C99 does not require uint8_t.
18229         (struct readdir_result): Use it.  Do not define skip_entry unless
18230         it is needed; this saves a byte on platforms lacking d_ino.
18231         (readdir_result_type, readdir_result_skip_entry):
18232         New functions, replacing ...
18233         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
18234         ... these functions, which were removed.  This makes the callers
18235         easier to read.  All callers changed.
18236         (D_INO_TO_RESULT): Now empty if there is no d_ino.
18238 2017-08-30  Pádraig Brady  <P@draigBrady.com>
18240         fts-tests: tag as a longrunning-test so not included by default
18241         * modules/fts-tests: This test takes about 20s on current systems,
18242         and uses about 285M of space on ext4.
18244 2017-08-30  Pádraig Brady  <P@draigBrady.com>
18246         renameat2: fix compilation on alpine linux
18247         * m4/renameat.m4: Check for <linux/fs.h> presence.
18248         * lib/renameat2.h: Only include <linux/fs.h> if present.
18249         Reported by Assaf Gordon on Alpine Linux.
18251 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18253         glob: try to port recent changes to MS-Windows
18254         Problem reported by Bruno Haible in:
18255         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
18256         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
18257         * lib/glob.in.h (__glob_pattern_p): ... to here.
18259 2017-08-24  Eric Blake  <eblake@redhat.com>
18261         warnings: fix compilation with old autoconf
18262         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
18263         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
18264         AC_DEFUN.
18265         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
18266         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
18268 2017-08-24  Bruno Haible  <bruno@clisp.org>
18270         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
18271         * modules/glob (Depends-on): Add c99.
18273 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18275         glob: fix typo that broke platforms lacking d_ino
18276         This typo also hurt performance on GNU/Linux and similar hosts.
18277         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
18278         in previous change.
18280 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
18282         glob: merge from glibc with Zanella glob changes
18283         Merge glob from glibc, with changes for glob proposed
18284         by Adhemerval Zanella in the thread starting here:
18285         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
18286         plus some fixes for this merge.
18287         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
18288         New files, ported from glibc.
18289         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
18290         with __restrict.
18291         (__size_t): Remove.  All uses replaced by size_t.
18292         (size_t): Define by defining __need_size_t and including <stddef.h>.
18293         This should work even in non-glibc platforms, where any name
18294         pollution is OK.
18295         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
18296         (struct stat64): Don’t worry about __GLOB_GNULIB.
18297         (glob, globfree, glob_pattern_p): Remove macros for
18298         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
18299         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
18300         but set errno.
18301         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
18302         removed since the glibc behavior works on null pointers.
18303         Do not include stdio.h; old SunOS is irrelevant now.
18304         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
18305         Include glob_internal.h.
18306         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
18307         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
18308         worked only coincidentally.
18309         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
18310         Remove macros; now done in glob.in.h.
18311         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
18312         (glob): Properly initialize glob structure with
18313         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
18314         Remove old code using SHELL since Bash no longer
18315         uses this.
18316         (glob, prefix_array): Separate MS code better.
18317         (glob, glob_in_dir): Use C99 decls before statements when glibc
18318         does.
18319         (glob_in_dir): Remove old Amiga and VMS code.
18320         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
18321         separate files.
18322         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
18323         (__glibc_unlikely):
18324         Move here from glob.c.
18325         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
18326         (weak_alias): New macro.
18327         (__size_t): Remove.  All uses replaced by size_t.
18328         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
18329         * modules/glob (Files): Add +lib/glob_internal.h,
18330         lib/glob_pattern_p.c, lib/globfree.c.
18331         (Depends-on): Remove snippet/arg-nonnull.
18333 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
18335         glob: port to clang's Undefined Sanitizer
18336         Problem reported by Tim Rühsen in:
18337         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
18338         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
18339         (glob_in_dir): Do not rely on undefined behavior in accessing
18340         struct members beyond their bounds.  Use a flexible array member
18341         instead.
18343 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
18345         vc-list-files: port to Solaris 10
18346         * build-aux/vc-list-files: Don't assume test -e works.
18348 2017-08-21  Karl Berry  <karl@freefriends.org>
18350         * doc/posix-functions/srandom.texi (srandom): typo }.
18352 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
18354         git-version-gen: port to Solaris 10
18355         Problem reported by Dagobert Michelsen in:
18356         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
18357         * build-aux/git-version-gen (v_from_git):
18358         Use expr instead of shell substitution.
18360 2017-08-19  Bruno Haible  <bruno@clisp.org>
18362         host-cpu-c-abi: Improve detection of MIPS ABI.
18363         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
18364         _MIPS_SIM.
18366 2017-08-17  Bruno Haible  <bruno@clisp.org>
18368         hypot tests: Fix test failure on FreeBSD 11.0/x86.
18369         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
18371 2017-08-17  Bruno Haible  <bruno@clisp.org>
18373         float: Fix LDBL_MIN value on FreeBSD/x86.
18374         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
18376 2017-08-17  Bruno Haible  <bruno@clisp.org>
18378         random: Fix test compilation failure on Cygwin 1.5.25.
18379         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
18380         HAVE_DECL_SETSTATE.
18381         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
18382         declared.
18383         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
18384         HAVE_DECL_SETSTATE.
18385         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
18386         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
18387         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
18388         * doc/posix-functions/random.texi: Likewise.
18389         * doc/posix-functions/setstate.texi: Likewise.
18390         * doc/posix-functions/srandom.texi: Likewise.
18392 2017-08-16  Bruno Haible  <bruno@clisp.org>
18394         stdnoreturn: Fix test compilation failure on Cygwin.
18395         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
18396         <stdnoreturn.h> replacement.
18397         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
18398         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
18400 2017-08-16  Bruno Haible  <bruno@clisp.org>
18402         thread: Fix conflict with pthread_sigmask module.
18403         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
18404         it's defined as a macro.
18405         * modules/thread (Depends-on): Add pthread_sigmask.
18407 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
18409         rename: port better to NetBSD
18410         * doc/posix-functions/rename.texi (rename): NetBSD 7
18411         does not have the link-count bug.
18412         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
18413         broken merely because rename ("a", "b") removes "a" when the two
18414         names are hard links to the same file.
18416 2017-08-16  Bruno Haible  <bruno@clisp.org>
18418         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
18419         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
18420         the target file names with '$(srcdir)/'.
18421         * modules/unicase/locale-language (Makefile.am): Likewise.
18422         * modules/unicase/special-casing (Makefile.am): Likewise.
18423         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
18424         * modules/unictype/category-byname (Makefile.am): Likewise.
18425         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
18426         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
18427         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
18428         * modules/unictype/property-byname (Makefile.am): Likewise.
18429         * modules/unictype/scripts (Makefile.am): Likewise.
18430         * modules/uninorm/composition (Makefile.am): Likewise.
18432 2017-08-16  Bruno Haible  <bruno@clisp.org>
18434         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
18435         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
18436         value for OpenBSD.
18438 2017-08-16  Bruno Haible  <bruno@clisp.org>
18440         rename, renameat: Update doc regarding NetBSD.
18441         * doc/posix-functions/rename.texi: Clarify that when using
18442         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
18443         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
18444         version.
18446 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
18448         renameat2: port better to macOS
18449         * lib/renameat2.c (renameat2): Use renameatx_np if available.
18451         futimens: don’t assume struct timespec layout
18452         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
18453         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
18454         * tests/test-fdutimensat.c (main):
18455         * tests/test-futimens.h (test_futimens):
18456         * tests/test-lutimens.h (test_lutimens):
18457         * tests/test-utimens.h (test_utimens):
18458         * tests/test-utimensat.c (main):
18459         Don’t assume that struct timespec is a two-member structure in
18460         tv_sec, tv_nsec order.  Although this is true on all platforms we
18461         know about, POSIX does not guarantee it.
18463         rename: document+test NetBSD rename
18464         Test failure reported by Bruno Haible in:
18465         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
18466         This is an area where NetBSD is better-behaved than POSIX,
18467         so allow the NetBSD behavior in tests.
18468         * doc/posix-functions/rename.texi:
18469         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
18470         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
18472 2017-08-15  Bruno Haible  <bruno@clisp.org>
18474         renameat: Ensure declaration in <stdio.h> on NetBSD.
18475         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
18476         * doc/posix-functions/renameat.texi: Mention this problem.
18478 2017-08-15  Bruno Haible  <bruno@clisp.org>
18480         duplocale: Work around NetBSD 7.0 bug.
18481         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
18482         * lib/duplocale.c: Add comment about NetBSD problem.
18483         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
18485 2017-08-15  Bruno Haible  <bruno@clisp.org>
18487         duplocale tests: Verify use with *_l functions.
18488         * modules/duplocale-tests (configure.ac): Test for uselocale and
18489         some *_l functions.
18490         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
18491         from main.
18492         (get_locale_dependent_values_from, test_with_locale_parameter): New
18493         functions.
18494         (main): Test both test_with_uselocale and test_with_locale_parameter.
18496 2017-08-15  Bruno Haible  <bruno@clisp.org>
18498         extensions: Enable NetBSD specific extensions.
18499         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
18501 2017-08-14  Bruno Haible  <bruno@clisp.org>
18503         open, openat: Update doc about O_CLOEXEC.
18504         * doc/posix-functions/open.texi: More concrete list of platforms.
18505         * doc/posix-functions/openat.texi: Likewise.
18507 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
18509         open: support O_CLOEXEC
18510         * NEWS, doc/posix-functions/open.texi:
18511         * doc/posix-functions/openat.texi: Document this.
18512         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
18513         (GNULIB_defined_O_CLOEXEC): New symbol.
18514         * lib/open.c: Include cloexec.h.
18515         (open): Support O_CLOEXEC.
18516         * lib/openat.c: Include cloexec.h.
18517         (rpl_openat): Support O_CLOEXEC.
18518         * lib/popen-safer.c: Do not include cloexec.h.
18519         (open_noinherit): Remove.
18520         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
18521         * lib/save-cwd.c: Do not include cloexec.h.
18522         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
18523         * m4/open-cloexec.m4: New file.
18524         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
18525         Replace 'open' if O_CLOEXEC is not present.
18526         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
18527         Replace 'openat' if O_CLOEXEC is not present.
18528         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
18529         * modules/open (Files): Add m4/open-cloexec.m4.
18530         (Depends-on): Depend on cloexec if replacing 'open'.
18531         * modules/openat (Files): Add m4/open-cloexec.m4.
18532         (Depends-on): Depend on cloexec if replacing openat.
18533         * modules/popen-safer (Depends-on): Remove cloexec.
18534         * modules/save-cwd (Depends-on): Remove cloexec, and add
18535         fd-safer-flag and 'open'.
18537 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
18539         reallocarray: minor fixes
18540         * doc/glibc-functions/reallocarray.texi: Update version numbers.
18541         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
18542         * modules/reallocarray (License): Change from GPL to LGPL.
18543         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
18544         Indent properly and don't use tabs.
18546 2017-08-13  Darshit Shah  <darnir@gnu.org>
18548         reallocarray: New module
18549         reallocarray is a new function in glibc 2.26 to safely allocate an array
18550         of memory locations with integer overflow protection.
18551         * MODULES.html.sh: Add reallocarray.
18552         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
18553         * lib/reallocarray.c: New file to implement module reallocarray.
18554         * lib/stdlib.in.h: Add function declarations for reallocarray.
18555         * m4/reallocarray.m4: New file.
18556         * m4/stdlib_h.m4: Declare reallocarray.
18557         * modules/reallocarray: New file.
18558         * modules/reallocarray-test: New file.
18559         * modules/stdlib: Coerce stdlib.h to export reallocarray.
18560         * tests/test-reallocarray.c: New test.
18562 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
18564         dirent-safer: fix cloexec race
18565         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
18566         (opendir_safer): Use F_DUPFD_CLOEXEC.
18567         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
18568         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
18569         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
18570         instead of dup_safer.
18572         fts: fix cloexec races
18573         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
18574         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
18575         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
18576         (fd_ring_check): Set cloexec flag on new file descriptors.
18577         (fts_build, fd_ring_check): While we’re at it, make sure the
18578         resulting file descriptor is not 0, 1, or 2, since that is easy.
18580 2017-08-11  Bruno Haible  <bruno@clisp.org>
18582         fts tests: Fix link error.
18583         Reported by Tom G. Christensen in
18584         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
18585         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
18587 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
18589         fts: port recent changes to CentOS 6
18590         Problem reported by Tom G. Christensen in:
18591         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
18592         * lib/fts.c (fsword): New type.
18593         (struct dev_type, filesystem_type): Use it.
18594         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
18595         Also, check for f_type only if fstatfs and sys/vfs.h work.
18597 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
18599         tempname: do not depend on secure_getenv
18600         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
18601         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
18602         * modules/tempname (Depends-on): Remove secure_getenv.
18604 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
18606         extensions: add _OPENBSD_SOURCE
18607         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
18609 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
18610             Bruno Haible  <bruno@clisp.org>
18612         manywarnings: Add support for C++.
18613         * build-aux/g++-warning.spec: New file.
18614         * m4/manywarnings-c++.m4: New file.
18615         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
18616         redirects to manywarnings-c++.m4.
18617         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
18619 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
18621         git-version-gen: another fix for tags with "-"
18622         * build-aux/git-version-gen: Improve fix for tags containing "-".
18623         Suggested by Markus Armbruster in:
18624         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
18626 2017-08-06  Bruno Haible  <bruno@clisp.org>
18628         warnings, manywarnings: Add support for multiple languages, not just C.
18629         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
18630         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
18631         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
18632         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
18633         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
18634         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
18635         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
18636         of the current language. If C++ is the current language, modify
18637         WARN_CXXFLAGS instead of WARN_CFLAGS.
18638         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
18639         gl_MANYWARN_ALL_GCC.
18640         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
18642 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
18644         git-version-gen: Fix for tags containing '-'
18646         Really old versions of git-describe (before v1.5.0, Feb 2007)
18647         don't have the number of commits in their long format output,
18648         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
18649         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
18650         recognizes both patterns, and normalizes the old format to the new one.
18652         Unfortunately, this normalization code gets confused when the tag
18653         contains '-'.  Reproducer:
18655             $ git-tag -m test v0.2-rc1
18656             $ build-aux/git-version-gen .tarball-version; echo
18657             build-aux/git-version-gen: WARNING: git rev-list failed
18658             UNKNOWN
18660         We take exact tag "v0.2-rc1" for the old format, extract the presumed
18661         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
18662         commits since tha tag.  Fails, because tag "v0.2" does not exist.
18664         * git-version-gen: We could perhaps drop support for versions from
18665         more than a decade ago.  But tightening the pattern match is easy
18666         enough, so do that.  Still breaks when you use version tags ending in
18667         something matching -g????, but you arguably get what you deserve then.
18669 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
18671         valgrind-tests: use ls, and cache
18672         * m4/valgrind-tests.m4: Test ls, not bash.
18673         Problem reported by Reuben Thomas.
18674         Also, cache the result so that it can be overridden.
18676 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
18678         manywarnings: port to 64-bit GCC builds of Emacs
18679         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
18680         object size rather than hardwiring 2147483647.  This is needed to
18681         build GNU Emacs, which has one conditional (and used
18682         only-in-theory) call to malloc with a literal greater than
18683         2147483647.
18685 2017-08-04  Bruno Haible  <bruno@clisp.org>
18687         Relax the license of some modules with no runtime code.
18688         * modules/std-gnu11 (License): Set to 'unlimited'.
18689         * modules/c99 (License): Likewise.
18690         Reported by Reuben Thomas <rrt@sc3d.org>.
18691         * modules/d-ino (License): Set to 'LGPL'.
18692         * modules/host-os (License): Likewise.
18693         * modules/longlong (License): Likewise.
18695 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
18697         renameat2: port to RHEL 7 + NFS
18698         * lib/renameat2.c (renameat2) [SYS_renameat2]:
18699         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
18700         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
18702 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
18704         renameat2: port to non-renameat platforms
18705         Problem reported for MSVC-2015 by Gisle Vanem in:
18706         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
18707         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
18708         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
18710 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
18712         manywarnings: port to 32-bit GCC bug
18713         Problem reported by Pino Toscano in:
18714         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
18715         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
18716         not 2**63 - 1, to work around the following GCC bug:
18717         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
18719 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
18721         backupfile: new function to validate backup suffix
18722         * lib/backupfile.c (set_simple_backup_suffix): New function.
18723         (backupfile_internal): Use it.
18725         canonicalize: fix EOVERFLOW commentary
18726         Problem reported by Bruno Haible in:
18727         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
18728         * lib/canonicalize.c (canonicalize_filename_mode):
18729         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
18731         Don't interpret EOVERFLOW to mean nonexistence
18732         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
18733         may be EOVERFLOW; this is likely more useful than reporting the
18734         stat errno.
18735         * lib/glob.c (link_stat): Rename from link_exists2_p and
18736         return -1/0 instead of 0/1.  Caller changed.
18737         * lib/glob.c (link_exists_p):
18738         * lib/renameat2.c (rename_noreplace, renameat2):
18739         * lib/tempname.c (try_nocreate):
18740         If errno == EOVERFLOW then the directory entry exists, so do not
18741         act as if it does not exist.
18743         backup-rename: new module
18744         It is like backupfile, except it avoids some race conditions,
18745         and it does not output to stderr or exit.
18746         * MODULES.html.sh: Add backup-rename.
18747         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
18748         * modules/backup-rename: New files.
18749         * lib/backupfile.c: Turn this into an internals file, which
18750         contains code common to backupfile and backup_rename.  Include
18751         backupfile-internal.h instead of backupfile.h.  Do not include
18752         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
18753         renameat2.h and fcntl.h.
18754         (BACKUP_NOMEM): New constant.
18755         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
18756         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
18757         (backupfile_internal): Rename from find_backup_file_name.
18758         Support new arg RENAME.
18759         (backup_args, backup_types, get_version, xget_version):
18760         Move to lib/backup-find.c.
18761         * lib/backupfile.h (backup_file_rename): New decl.
18762         * modules/backupfile (Files): Add lib/backup-internal.h,
18763         lib/backup-find.c.
18764         (Depends-on): Add dirfd, fcntl, renameat2.
18765         (lib_SOURCES): Add backup-find.c.
18767         renameat2: port better to older Solaris
18768         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
18769         Add goto to use a label, to silence picky compilers.
18771         fts-tests: port to gcc -Wwrite-strings
18772         * tests/test-fts.c (base, base_d): New static vars.
18773         (argv, remove_tree, main): Use them.
18775 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
18777         relocatable-lib{,-lgpl}: improve documentation
18778         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
18779         Various other updates.
18781 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
18782             Bruno Haible  <bruno@clisp.org>
18784         relocatable-lib{,-lgpl}: add Valgrind suppressions
18785         * lib/relocatable.valgrind: New file.
18786         * modules/relocatable-lib (Files): Add relocatable.valgrind.
18787         * modules/relocatable-lib-lgpl: Likewise.
18789 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
18791         relocatable: Make the license on the sources the GPL.
18792         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
18793         LGPL, which was a special case so that the relocatable source files
18794         could be used without gnulib-tool, to GPL. They can still be used under
18795         the LGPL, using the --lgpl option to gnulib-tool.
18797 2017-07-30  Bruno Haible  <bruno@clisp.org>
18799         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
18800         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
18801         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
18802         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
18803         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
18805 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
18807         faccessat: document AT_SYMLINK_NOFOLLOW issue
18808         * doc/posix-functions/faccessat.texi: Modernize platform list.
18809         Document AT_SYMLINK_NOFOLLOW limitation.
18811         renameat2: port to Solaris 10
18812         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
18813         with AT_SYMLINK_NOFOLLOW (which is not portable).
18814         (renameat): Undef before using, to avoid endless recursion when
18815         the replacement renameat calls renameat2 which calls the
18816         replacement renameat.
18817         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
18818         * modules/renameat2 (Depends-on): Remove faccessat.
18819         * modules/renameat-tests (test_renameat_LDADD):
18820         * modules/renameat2-tests (test_renameat2_LDADD):
18821         Remove $(LIB_EACCESS).
18823         renameat2: new module
18824         Although the Linux syscall renameat2 is not in glibc (yet?), it is
18825         useful to have access to its RENAME_NOREPLACE flag.
18826         * MODULES.html.sh (func_all_modules): Add renameat2.
18827         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
18828         * modules/renameat2-tests, tests/test-renameat2.c: New files.
18829         * lib/renameat.c (renameat): Move most of the implementation
18830         to renameat2, and just call renameat2.
18831         * modules/renameat (Files): Remove lib/at-func2.c.
18832         (Depends-on): Depend only on renameat2.
18833         (Include): Remove <fcntl.h>.
18834         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
18835         since renameat (via renameat2) might use faccessat.
18837 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
18839         vc-list-files: Adjust the script to support git worktrees
18840         * build-aux/vc-list-files: Require existence, not directory.
18842 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
18844         doc: bring MODULES.html.sh up to date
18845         Somehow a few months ago we stopped updating MODULES.html.sh.
18846         I don’t recall explicitly deciding this, so I updated it now.
18847         Alternatively I suppose we could remove it.
18848         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
18849         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
18850         truncate, utime, utime-h, windows-stat-inodes,
18851         windows-stat-override, windows-stat-timespec, year2038.  Sort.
18853 2017-07-26  Jim Meyering  <meyering@fb.com>
18855         fprintftime: fix build-break caused by recent renaming
18856         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
18857         "strftime.c".
18858         * modules/fprintftime: Depend directly on nstrftime.
18860 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
18862         regex: work with GCC7's -Werror=implicit-fallthrough=
18863         * lib/regex_internal.h (FALLTHROUGH): New macro.
18864         * lib/regcomp.c (peek_token_bracket, parse_expression):
18865         * lib/regexec.c (check_node_accept): Use it.
18867 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
18869         fts: simplify fts_build
18870         * lib/fts.c (fts_build): Simplify, and be lazier about
18871         calling leaf_optimization.
18873         fts: three levels of leaf optimization
18874         * lib/fts.c (enum leaf_optimization): New type with three values.
18875         (S_MAGIC_AFS): New macro.  Sort them.
18876         (leaf_optimization): Rename from leaf_optimization_applies, and
18877         return enum leaf_optimization instead of bool.  All uses changed.
18878         Add cases for unknown type and for AFS.
18879         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
18881         fts: cache dirent_inode_sort_may_be_useful too
18882         * lib/fts.c (struct dev_type): New struct.
18883         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
18884         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
18885         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
18886         Now takes FTSENT const *, not int.  All uses changed.  Use
18887         filesystem_type to cache.
18888         (link_count_optimize_ok): Remove.  Caller changed to use
18889         leaf_optimization_applies, which now uses shared cache.
18891         fts: introduce MIN_DIR_NLINK
18892         * lib/fts.c (MIN_DIR_NLINK): New constant.
18893         Use it instead of 2, whenever we are talking about link counts.
18895         fts: nlink_t signedness fixups
18896         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
18897         so that root need not be a special case later.
18898         (fts_read): Remove now-redundant test for fts_level.
18899         Do not assume that nlink_t is signed.
18900         (fts_build): Remove useless decrement of nlinks.
18901         (fts_stat): Avoid unlikely signed integer overflow later, if
18902         nlink_t is signed.
18904         fts-tests: new module
18905         * modules/fts-tests, tests/test-fts.c: New files.
18907 2017-07-23  Bruno Haible  <bruno@clisp.org>
18909         Rename module 'strftime' to 'nstrftime'.
18910         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
18911         * lib/nstrftime.c: Renamed from lib/strftime.c.
18912         * modules/nstrftime: Renamed from modules/strftime.
18913         (Files, Makefile.am): Update.
18914         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
18915         Fix comment.
18916         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
18917         (Files, Makefile.am): Update.
18918         * modules/strftime: New file, an obsolete indirection.
18919         * doc/posix-functions/strftime.texi: Update reference.
18920         * config/srclist.txt: Update info.
18921         * NEWS: Mention the change.
18923 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
18925         malloca: Silence a warning from clang's memory sanitizer.
18926         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
18927         (freea): Use it.
18929 2017-07-18  Bruno Haible  <bruno@clisp.org>
18931         host-cpu-c-abi: Fix detection of MIPS ABI.
18932         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
18933         ABI, not the CPU instruction set.
18935 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
18937         explicit_bzero: new module
18938         The explicit_bzero function has been added to glibc.
18939         This module is intended to supports its use in GNU programs.
18940         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
18941         * m4/explicit_bzero.m4, modules/explicit_bzero:
18942         New files.
18943         * doc/gnulib.texi (Glibc string.h): Link to new doc.
18944         * lib/string.in.h (explicit_bzero): Declare.
18945         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
18946         * modules/string (string.h): Substitute its vars.
18948 2017-07-16  Bruno Haible  <bruno@clisp.org>
18950         threadlib: Support static linking.
18951         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
18952         set gl_cv_have_weak to 'no'.
18954 2017-07-16  Bruno Haible  <bruno@clisp.org>
18956         unicase/locale-language: Fix link dependencies.
18957         * modules/unicase/locale-language (Link): New section.
18958         * modules/unicase/locale-language-tests (Makefile.am): Link
18959         test-locale-language program with $(LIBTHREAD).
18961 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
18963         sys_socket: Add support for OpenVMS.
18964         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
18965         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
18967 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
18969         sys_resource: Add support for OpenVMS.
18970         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
18971         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
18973 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
18974             Bruno Haible  <bruno@clisp.org>
18976         math: Add support for OpenVMS.
18977         * lib/math.in.h [__VMS]: Include <fp.h>.
18978         * doc/posix-headers/math.texi: Mention OpenVMS issues.
18980 2017-07-15  Bruno Haible  <bruno@clisp.org>
18982         getdtablesize: Add minimal support for OpenVMS.
18983         Reported by John E. Malmberg <wb8tyw@qsl.net>.
18984         * modules/getdtablesize (Description): Fix.
18985         * lib/getdtablesize.c: Fix comment.
18986         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
18987         getdtablesize() function, even though the test fails.
18988         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
18989         limitation on OpenVMS.
18991 2017-07-13  Bruno Haible  <bruno@clisp.org>
18993         Revisit cross-compilation guesses.
18994         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
18996 2017-07-13  Bruno Haible  <bruno@clisp.org>
18998         Improve cross-compilation guesses for native Windows.
18999         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
19000         Windows.
19001         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
19002         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
19003         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
19004         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
19005         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
19006         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
19007         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
19008         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
19009         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
19010         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
19011         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
19012         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
19013         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
19014         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
19015         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
19016         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
19017         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
19018         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
19019         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
19020         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
19021         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
19022         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
19023         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
19024         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
19025         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
19026         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
19027         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
19028         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
19029         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
19030         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
19031         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19032         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
19033         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
19034         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
19035         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
19036         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
19037         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
19038         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
19039         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
19040         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
19041         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
19042         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
19043         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
19044         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
19045         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
19046         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
19047         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
19048         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
19049         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
19050         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
19051         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
19052         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
19053         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
19054         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
19055         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
19056         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
19057         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
19058         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
19059         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
19060         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
19061         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
19062         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
19063         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
19064         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
19065         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
19066         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19067         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
19068         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
19069         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
19070         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
19071         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
19072         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
19073         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
19074         * m4/regex.m4 (gl_REGEX): Likewise.
19075         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
19076         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
19077         gl_FUNC_REMAINDERF_WORKS): Likewise.
19078         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
19079         gl_FUNC_REMAINDERL_WORKS): Likewise.
19080         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
19081         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
19082         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19083         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
19084         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
19085         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
19086         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
19087         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
19088         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
19089         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19090         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
19091         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
19092         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19093         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
19094         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
19095         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
19096         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
19097         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19098         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
19099         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
19100         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
19101         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
19102         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19103         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
19104         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
19105         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19106         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
19107         Likewise.
19108         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19109         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
19110         Windows. Enable also on Autoconf 2.70.
19111         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
19112         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
19113         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
19114         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
19115         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
19116         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
19117         for native Windows.
19118         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
19119         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
19121 2017-07-13  Bruno Haible  <bruno@clisp.org>
19123         Improve cross-compilation guesses for native Windows.
19124         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
19125         Windows.
19126         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
19127         memchr.m4.
19128         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
19130 2017-07-13  Bruno Haible  <bruno@clisp.org>
19132         Improve cross-compilation guesses for native Windows.
19133         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
19134         native Windows.
19135         (gl_FUNC_FFLUSH): Update accordingly.
19136         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
19137         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
19139 2017-07-11  Bruno Haible  <bruno@clisp.org>
19141         More systematic m4 quoting and indentation.
19142         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
19143         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
19144         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
19145         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
19146         * m4/host-os.m4 (gl_HOST_OS): Likewise.
19147         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
19148         gl_WINSIZE_IN_PTEM): Likewise.
19149         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
19150         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
19151         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
19152         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
19153         Correct indentation.
19154         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
19155         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
19156         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
19157         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
19158         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
19159         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
19161 2017-07-10  Bruno Haible  <bruno@clisp.org>
19163         round, roundf: Avoid compiler warning in configure test.
19164         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
19165         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
19167 2017-07-10  Bruno Haible  <bruno@clisp.org>
19169         getlogin tests: Avoid #ifdefs when sharing code between modules.
19170         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
19171         * modules/getlogin-tests (Files): Likewise. Remove
19172         tests/test-getlogin_r.c.
19173         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
19174         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
19175         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
19176         getlogin().
19178 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
19180         getlogin: don’t assume one name per uid
19181         Problem reported by Wolfgang F. Muthmann (Bug#27640).
19182         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
19183         (ttyname): Remove test.
19184         * modules/getlogin_r-tests (ttyname): Remove test.
19185         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
19186         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
19187         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
19188         getlogin rather than getlogin_r.  This avoids code duplication.
19189         (main): Use isatty and fstat rather than ttyname and stat.
19190         Use getpwnam instead of getpwuid, to be portable to test platforms
19191         that have multiple login names for the same uid.
19193 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
19194             Bruno Haible  <bruno@clisp.org>
19196         glob: Fix more memory leaks.
19197         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
19198         returning.
19199         Reported by Tim Rühsen.
19201 2017-07-10  Bruno Haible  <bruno@clisp.org>
19203         Make sure $host and $host_os are defined when used.
19204         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
19205         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
19206         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
19207         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
19208         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
19209         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
19210         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
19211         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
19212         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
19213         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
19214         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
19215         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
19216         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
19217         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
19218         m4_ifdef block.
19220 2017-07-09  Bruno Haible  <bruno@clisp.org>
19222         *printf: Fix cross-compilation guess for Solaris.
19223         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
19224         2010-12-21.
19226 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
19227             Bruno Haible  <bruno@clisp.org>
19229         vasnprintf: port to macOS 10.13
19230         Problem reported by comex in:
19231         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
19232         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
19234 2017-07-06  Bruno Haible  <bruno@clisp.org>
19236         imaxdiv tests: Fix logic.
19237         * tests/test-imaxdiv.c (main): Use == instead of =.
19238         Reported by Coverity.
19240 2017-07-06  Bruno Haible  <bruno@clisp.org>
19242         uninorm/filter: Fix use-after-free bug.
19243         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
19244         sortbuf == filter->sortbuf invariant.
19245         Reported by Coverity.
19247 2017-07-06  Bruno Haible  <bruno@clisp.org>
19249         glob: Fix more memory leaks.
19250         * lib/glob.c (glob): Free dirname before returning.
19251         Reported by Coverity and Tim Rühsen.
19253 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
19255         parse-datetime: fix uninit var bug
19256         Reported by Bruno Haible in:
19257         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
19258         * lib/parse-datetime.y (parse_datetime2): Do not use
19259         uninitialized.
19261 2017-07-05  Bruno Haible  <bruno@clisp.org>
19263         doc: Update for MSVC 14.
19264         * doc/posix-headers/*.texi: Add info about MSVC 14.
19265         * doc/posix-functions/*.texi: Likewise.
19266         * doc/pastposix-functions/*.texi: Likewise.
19267         * doc/glibc-headers/*.texi: Likewise.
19268         * doc/glibc-functions/*.texi: Likewise.
19270 2017-07-05  Bruno Haible  <bruno@clisp.org>
19272         sched: Fix build failure on native Windows (regression from 2017-06-19).
19273         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
19275 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
19277         stdioext: Port to OpenVMS.
19278         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
19279         * lib/fpending.c (fpending): Remove non-working VMS specific code.
19280         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
19281         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
19282         * lib/fpurge.c (fpurge): Likewise.
19283         * lib/freadable.c (freadable): Likewise.
19284         * lib/freadahead.c (freadahead): Likewise.
19285         * lib/freading.c (freading): Likewise.
19286         * lib/freadptr.c (freadptr): Likewise.
19287         * lib/freadseek.c (freadseek): Likewise.
19288         * lib/fseeko.c (fseeko): Likewise.
19289         * lib/fseterr.c (fseterr): Likewise.
19290         * lib/fwritable.c (fwriteable): Likewise.
19291         * lib/fwriting.c (fwriting): Likewise.
19293 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
19295         glob: Declare variables at the very start of their scope.
19296         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
19297         its separate scope, so the functions will compile on Haiku.
19299 2017-07-01  Bruno Haible  <bruno@clisp.org>
19301         logbl: Work around a glibc bug on PowerPC64LE.
19302         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
19303         numbers.
19304         * doc/posix-functions/logbl.texi: Update.
19306 2017-06-29  Bruno Haible  <bruno@clisp.org>
19308         stat, fstat: Compile stat-w32.c only on platforms that need it.
19309         Suggested by Paul Eggert.
19310         * modules/stat (configure.ac): Request stat-w32.o only on native
19311         Windows.
19312         * modules/fstat (configure.ac): Likewise.
19314 2017-06-25  Bruno Haible  <bruno@clisp.org>
19316         stat: Improve last change.
19317         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
19319 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
19321         stat: port to xlc 12.01
19322         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
19323         12.01 complains "Compilation unit is empty."
19325 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
19327         xalloc-oversized: port to icc
19328         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
19329         __builtin_mul_overflow if ICC is defined, as this results in
19330         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
19331         20170213.
19333 2017-06-19  Bruno Haible  <bruno@clisp.org>
19335         classpath: Avoid including config.h twice, as it produces warnings.
19336         Reported by John E. Malmberg <wb8tyw@gmail.com>.
19337         * lib/classpath.h: Conditionalize the include of config.h.
19339 2017-06-19  Bruno Haible  <bruno@clisp.org>
19340             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
19342         sched: Fix compilation failure on OpenVMS.
19343         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
19344         test whether <pthread.h> exists and defines struct sched_param.
19345         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
19347 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
19349         diffseq: port to GCC 7 with --enable-gcc-warnings
19350         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
19351         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
19352         not complain about big_snake being defined but not used.
19354 2017-06-15  Bruno Haible  <bruno@clisp.org>
19356         gettext-h: Update theoretical condition for use of variable size arrays.
19357         Reported by Paul Eggert.
19358         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
19359         to include the theoretical condition for availability of variable size
19360         arrays, if we could trust the value of __STDC_VERSION__.
19362 2017-06-12  Bruno Haible  <bruno@clisp.org>
19364         Relicense some modules under LGPLv2+.
19365         Daiki Ueno's approval is in
19366         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
19367         * modules/uniwidth/base (License): Change to LGPLv2+.
19368         * modules/uniwidth/width (License): Likewise.
19370 2017-06-11  Bruno Haible  <bruno@clisp.org>
19372         localename: Fix test failure on DragonFly BSD.
19373         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
19374         like FreeBSD.
19376 2017-06-11  Bruno Haible  <bruno@clisp.org>
19378         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
19379         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
19380         * lib/float.in.h: Likewise.
19381         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
19383 2017-06-11  Bruno Haible  <bruno@clisp.org>
19385         gnulib-tool: Clean up after autotools.
19386         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
19387         useless directory left over by the Autotools.
19389 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
19391         getopt-posix: port to glibc 2.25.90
19392         Problem reported by Daniel P. Berrange in:
19393         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
19394         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
19395         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
19396         #undef if __GETOPT_PREFIX is defined.
19398 2017-06-11  Bruno Haible  <bruno@clisp.org>
19400         strtod-obsolete: Fix license.
19401         * modules/strtod-obsolete (License): Change to LGPL.
19403 2017-06-10  Jim Meyering  <meyering@fb.com>
19405         maint: update to work with GCC7's -Werror=implicit-fallthrough=
19406         * lib/savewd.c (FALLTHROUGH): Define.
19407         (savewd_save, savewd_restore): Use this, rather than a comment,
19408         whenever one switch case falls through into the next.
19410 2017-06-08  Bruno Haible  <bruno@clisp.org>
19412         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
19413         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
19414         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
19415         case.
19417 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
19419         doc: remove robots, add prereqs
19420         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
19421         builds.  Simon's robot site does not seem to be up, so remove
19422         mentions of it for now.
19424 2017-06-08  Bruno Haible  <bruno@clisp.org>
19426         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
19427         * gnulib-tool (func_symlink_target): New function, extracted from
19428         func_symlink.
19429         (func_symlink, func_symlink_if_changed): Use it.
19431 2017-06-08  Bruno Haible  <bruno@clisp.org>
19433         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
19434         * gnulib-tool (func_ln_s): Determine cp_src correctly.
19436 2017-06-07  Bruno Haible  <bruno@clisp.org>
19438         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
19439         Reported by John E. Malmberg <wb8tyw@gmail.com> in
19440         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
19441         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
19442         override, pass 2 arguments to getcwd, not 3.
19444 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
19446         same-inode: port better to VMS 8.2 and later
19447         Problem reported by John E. Malmberg in:
19448         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
19449         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
19450         Use the usual POSIX definition.
19451         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
19453 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
19455         error: fix POSIX violation for va_end
19456         Problem reported by Bruno Haible in:
19457         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
19458         * lib/error.c (error_tail): Do not call va_end here.
19459         (error, error_at_line): Call it here instead.
19461 2017-05-28  Bruno Haible  <bruno@clisp.org>
19463         c-strtod: Make it usable in C++ mode.
19464         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
19466 2017-05-25  Jim Meyering  <meyering@fb.com>
19468         quotearg: fix compilation failure due to FALLTHROUGH misuse
19469         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
19470         macro back to /* fall through */ comment.  The macro can apply only
19471         to a following case statement.  Reported by Assaf Gordon.
19473 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
19475         intprops: port to recent icc
19476         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
19477         but does not support __builtin_add_overflow etc.
19478         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
19479         Define to 0.
19481 2017-05-23  Karl Berry  <karl@freefriends.org>
19483         * config/srclist.txt (iconv.m4): sync broken, comment out
19484         until (hopefully) the next gettext release.
19486 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
19488         Remove repeated words in comments.
19490 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
19492         fallthrough: reinstate a FALLTHROUGH instance in quotearg
19493         quotearg.c: Reinstate this instance which is significant
19494         when the if branch is not taken.
19496 2017-05-21  Bruno Haible  <bruno@clisp.org>
19498         gnulib-tool: Add options to create hard links.
19499         * gnulib-tool (func_usage): Document options --hardlink,
19500         --local-hardlink, --more-hardlinks.
19501         (func_symlink): Renamed from func_ln.
19502         (func_symlink_if_changed): Renamed from func_ln_if_changed.
19503         (func_hardlink): New function.
19504         (copymode, lcopymode): New variables.
19505         (symbolic, lsymbolic): Remove variables.
19506         (Options): Implement options --hardlink, --local-hardlink,
19507         --more-hardlinks.
19508         (func_should_link): Renamed from func_should_symlink. Set copyaction.
19509         (func_add_file, func_update_file): Update invocation of
19510         func_should_link. Invoke func_hardlink when appropriate.
19511         (func_import): Update comments.
19512         (func_create_testdir): Update invocation of func_should_link. Invoke
19513         func_hardlink when appropriate.
19514         Finally, invoke 'git update-index --refresh' to mitigate the effects of
19515         the hard links on git.
19517 2017-05-20  Bruno Haible  <bruno@clisp.org>
19519         argp: Simplify bit manipulation.
19520         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
19521         on a signed integer type.
19523 2017-05-20  Bruno Haible  <bruno@clisp.org>
19525         Avoid wrong configure results with gcc -fsanitize=address.
19526         This completes the work done on 2016-02-06 on this topic.
19527         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
19528         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
19529         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19530         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19531         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
19532         returning.
19533         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
19534         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
19535         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19536         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
19537         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
19538         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
19539         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
19540         free allocated memory before returning.
19541         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19542         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
19543         objects before returning.
19544         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
19545         returning.
19547 2017-05-20  Bruno Haible  <bruno@clisp.org>
19549         gnulib-tool: Don't create hard links between gnulib and its testdirs.
19550         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
19552 2017-05-20  Bruno Haible  <bruno@clisp.org>
19554         argp, tsearch tests: Fix file list.
19555         * modules/argp-tests (Files): Add tests/macros.h.
19556         * modules/tsearch-tests (Files): Likewise.
19558 2017-05-20  Bruno Haible  <bruno@clisp.org>
19560         getopt-posix tests: Remove redundant include.
19561         * tests/test-getopt.h: Don't include "macros.h". It's already included
19562         by tests/test-getopt-main.h.
19564 2017-05-19  Jim Meyering  <meyering@fb.com>
19566         dfa: two small simplifications
19567         * lib/dfa.c (build_state): Avoid repeating longer expressions.
19569 2017-05-18  Jim Meyering  <meyering@fb.com>
19571         fallthrough: update for GCC 7/8
19572         * lib/quotearg.c (FALLTHROUGH): New macro.
19573         Use it whenever one switch case falls through into the next,
19574         replacing "/* Fall through */" comments.  This exposed one
19575         instance of an unwarranted "fall through" comment: unwarranted
19576         because it preceded a "goto" label not a case statement.
19577         * lib/freopen-safer.c (freopen_safer): Likewise.
19578         * lib/fts.c (leaf_optimization_applies): Likewise.
19579         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
19580         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
19581         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
19582         tests/macros.h for the definition.
19583         * tests/test-argp.c (group1_parser): Likewise.
19584         * tests/test-getopt.h (getopt_loop): Likewise.
19586 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19588         argp: fix shift bug
19589         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
19590         behavior on shift overflow, caught by gcc -fsanitize=undefined.
19592         argp: fix pointer-subtraction bug
19593         * lib/argp-help.c (hol_append): Don’t subtract pointers to
19594         different arrays, as this can run afoul of -fcheck-pointer-bounds.
19595         See the thread containing Bruno Haible’s report in:
19596         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
19598 2017-05-19  Bruno Haible  <bruno@clisp.org>
19600         printf-posix tests: Avoid test failure with "gcc --coverage".
19601         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19602         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
19603         than 5000000.
19604         * tests/test-fprintf-posix2.c (main): Likewise.
19606 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19608         closeout: don’t close stderr when sanitizing
19609         * NEWS: Document this.
19610         * lib/closeout.c (__has_feature): New macro, if not already defined.
19611         (SANITIZE_ADDRESS): New constant.
19612         (close_stdout): Don’t close stderr if sanitizing addresses.
19614 2017-05-19  Bruno Haible  <bruno@clisp.org>
19616         get-rusage-data tests: Avoid failure on Linux/glibc.
19617         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
19618         on glibc systems.
19620 2017-05-18  Bruno Haible  <bruno@clisp.org>
19622         localename: Include necessary header files on Cygwin.
19623         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
19624         where NL_LOCALE_NAME is defined.
19626 2017-05-18  Bruno Haible  <bruno@clisp.org>
19628         gettext: Update macros from gettext git.
19629         * m4/intldir.m4: Require Autoconf >= 2.60.
19630         * m4/progtest.m4: Fix typos in copyright notice.
19632 2017-05-18  Bruno Haible  <bruno@clisp.org>
19634         copy-file tests: Fix link error (regression from 2017-05-01).
19635         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19636         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
19637         $(LIB_CLOCK_GETTIME).
19639 2017-05-18  Bruno Haible  <bruno@clisp.org>
19641         unicase/special-casing: Fix incompatibility with gperf-3.0.4
19642         (regression from 2017-02-13).
19643         * lib/unicase/special-casing.in.h: Renamed from
19644         lib/unicase/special-casing.h.
19645         * modules/unicase/special-casing (Files): Add
19646         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
19647         (Makefile.am): Add rule for generating unicase/special-casing.h.
19648         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
19649         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
19650         not "special-casing.h".
19651         * lib/unicase/u*.c: Likewise.
19653 2017-05-17  Bruno Haible  <bruno@clisp.org>
19655         README: Don't ask people to read a TeXinfo file.
19656         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19657         * README: Tell people how to read the HTML formatted manual.
19659 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
19661         parse-datetime: Fix memleak
19662         * lib/parse-datetime.y (parse_datetime2): Cleanup on
19663         localtime_rz() failure.
19665 2017-05-16  Bruno Haible  <bruno@clisp.org>
19667         javacomp: Fix handle leak.
19668         Found by Coverity.
19669         * lib/javacomp.c (get_classfile_version): Close fd before returning.
19671 2017-05-16  Bruno Haible  <bruno@clisp.org>
19673         relocate: Make it easier to reclaim allocated memory.
19674         * lib/relocatable.h (relocate2): New declaration/macro.
19675         * lib/relocatable.c (relocate2): New function.
19676         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
19677         relocate2 function.
19678         * lib/localcharset.c (relocate2): Define fallback.
19679         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
19680         allocated memory.
19681         * lib/javaversion.c (relocate2): Define fallback.
19682         (javaexec_version): Invoke relocate2 instead of relocate. Free the
19683         allocated memory.
19685 2017-05-16  Bruno Haible  <bruno@clisp.org>
19687         relocate: Simplify EMX specific code.
19688         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
19689         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
19691 2017-05-16  Bruno Haible  <bruno@clisp.org>
19693         sigpipe tests: Fix file list.
19694         * modules/sigpipe-tests (Files): Add tests/macros.h.
19696 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19698         manywarnings: update for GCC 7
19699         * build-aux/gcc-warning.spec:
19700         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
19701         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
19702         requires a non-comment fallthrough attribute.  This is a bit
19703         cleaner than the comment versions.
19704         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
19705         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
19706         Use it whenever one switch case falls through into the next.
19707         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
19708         Use FALLTHROUGH macro.
19710 2017-05-15  Bruno Haible  <bruno@clisp.org>
19712         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
19713         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
19714         @ALLOCA@, not @LTALLOCA@.
19716 2017-05-15  Bruno Haible  <bruno@clisp.org>
19718         sys_select: Avoid "was expanded before it was required" warning.
19719         * modules/sys_select (configure.ac): Require, not invoke,
19720         gl_HEADER_SYS_SELECT.
19722 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
19724         gnulib-tool: improve GNU Make debugging
19725         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
19726         Report autoconf diagnostics when it fails, in the output makefile.
19728 2017-05-14  Bruno Haible  <bruno@clisp.org>
19730         stat-time tests: Improve comment.
19731         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
19733 2017-05-14  Bruno Haible  <bruno@clisp.org>
19735         same-inode: Adapt for windows-stat-inodes.
19736         * lib/same-inode.h: Include <sys/types.h>.
19737         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
19738         * modules/same-inode (Depends-on): Add sys_types.
19740 2017-05-14  Bruno Haible  <bruno@clisp.org>
19742         windows-stat-inodes: New module.
19743         * m4/windows-stat-inodes.m4: New file.
19744         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
19745         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
19746         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
19747         (_GL_WINDOWS_STAT_INODES): New macro.
19748         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
19749         (GetFileInformationByHandleExFunc): New variable.
19750         (initialize): Initialize it.
19751         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
19752         st_ino appropriately.
19753         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
19754         a fallback, because it does not provide st_dev and st_ino values.
19755         * modules/fstat (Depends-on): Add 'verify'.
19756         * modules/windows-stat-inodes: New file.
19757         * doc/windows-stat-inodes.texi: New file.
19758         * doc/gnulib.texi: Include it.
19759         * doc/posix-headers/sys_stat.texi: Mention the new module.
19761 2017-05-14  Bruno Haible  <bruno@clisp.org>
19763         stat-time tests: Workaround for native Windows.
19764         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
19765         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
19766         New variables.
19767         (initialize_filenames): New function.
19768         (main): Invoke it.
19769         (cleanup, prepare_test): Update.
19771 2017-05-14  Bruno Haible  <bruno@clisp.org>
19773         stat-time: Adapt for windows-stat-timespec.
19774         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
19775         entire st_ctim field.
19777 2017-05-13  Jim Meyering  <meyering@fb.com>
19779         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
19780         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
19781         file that uses the assume macro, claiming that verify.h is unused.
19783 2017-05-13  Bruno Haible  <bruno@clisp.org>
19785         Use symbolic values for _WIN32_WINNT.
19786         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
19787         * lib/sethostname.c (_WIN32_WINNT): Likewise.
19789 2017-05-13  Bruno Haible  <bruno@clisp.org>
19791         year2038: New module.
19792         * m4/year2038.m4: New file.
19793         * modules/year2038: New file.
19794         * doc/year2038.texi: New file.
19795         * doc/gnulib.texi: Include it.
19797 2017-05-13  Bruno Haible  <bruno@clisp.org>
19799         largefile: Simplify.
19800         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
19801         of _GL_WINDOWS_64_BIT_ST_SIZE.
19803 2017-05-13  Bruno Haible  <bruno@clisp.org>
19805         largefile: Improve and document.
19806         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
19807         the mingw headers already define 'stat' appropriately.
19808         * modules/largefile (Description): Clarify.
19809         * doc/largefile.texi: New file.
19810         * doc/gnulib.texi: Include it.
19811         * doc/posix-headers/sys_types.texi: Update.
19813 2017-05-13  Bruno Haible  <bruno@clisp.org>
19815         truncate: New module.
19816         * lib/unistd.in.h (truncate): New declaration.
19817         * lib/truncate.c: New file.
19818         * m4/truncate.m4: New file.
19819         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
19820         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
19821         REPLACE_TRUNCATE.
19822         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
19823         HAVE_TRUNCATE, REPLACE_TRUNCATE.
19824         * modules/truncate: New file.
19825         * tests/test-unistd-c++.cc (truncate): Test signature.
19826         * doc/posix-functions/truncate.texi: Mention the new module.
19828         * tests/test-truncate.c: New file.
19829         * modules/truncate-tests: New file.
19831 2017-05-13  Bruno Haible  <bruno@clisp.org>
19833         windows-stat-timespec: New module.
19834         * modules/windows-stat-timespec: New file.
19835         * m4/windows-stat-timespec.m4: New file.
19836         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
19837         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
19838         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
19839         fields st_atim, st_mtim, st_ctim.
19840         (st_atime, st_mtime, st_ctime): Define as macros.
19841         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
19842         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
19843         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
19844         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
19845         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
19846         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
19847         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
19848         FILETIME to 'struct timespec', not 'time_t'.
19849         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
19850         FILETIME to 'struct timespec', not 'time_t'.
19851         * lib/stat-time.h (STAT_TIMESPEC): Define also if
19852         _GL_WINDOWS_STAT_TIMESPEC.
19853         * doc/windows-stat-timespec.texi: New file.
19854         * doc/gnulib.texi: Include it.
19856 2017-05-13  Bruno Haible  <bruno@clisp.org>
19858         windows-stat-override: New module.
19859         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
19860         definition. Define GNULIB_defined_struct_stat.
19861         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
19862         link error if this symbol is used and the corresponding module is not
19863         in use.
19864         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
19865         GNULIB_OVERRIDES_STRUCT_STAT.
19866         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
19867         GNULIB_OVERRIDES_STRUCT_STAT.
19868         * modules/sys_stat (Makefile.am): Substitute
19869         GNULIB_OVERRIDES_STRUCT_STAT.
19870         * modules/windows-stat-override: New file.
19872 2017-05-13  Bruno Haible  <bruno@clisp.org>
19874         fstat: Fix module dependency conditions.
19875         * modules/fstat (Depends-on): Fix typo.
19877 2017-05-13  Bruno Haible  <bruno@clisp.org>
19879         stat, fstat: Complete removal of old native Windows code.
19880         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
19881         * lib/fstat.c: Likewise.
19882         * lib/stat-w32.c: Likewise.
19884 2017-05-13  Bruno Haible  <bruno@clisp.org>
19886         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
19887         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
19889 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
19891         getopt-posix: port to mingw
19892         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
19893         Problem reported by Daniel P. Berrage in:
19894         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
19896 2017-05-11  Bruno Haible  <bruno@clisp.org>
19898         gettimeofday: Increase precision on mingw.
19899         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
19900         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
19901         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
19902         GetSystemTimePreciseAsFileTime based implementation always.
19903         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
19904         mingw.
19906 2017-05-11  Bruno Haible  <bruno@clisp.org>
19908         poll: Fix confusion between SOCKETs and FDs on native Windows.
19909         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
19910         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
19912 2017-05-11  Bruno Haible  <bruno@clisp.org>
19914         doc: Clarify doc about socket functions on native Windows.
19915         This reworks doc that was added on 2008-09-29.
19916         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
19917         clearer wording.
19918         * doc/posix-functions/accept.texi: Use clearer wording.
19919         * doc/posix-functions/bind.texi: Likewise.
19920         * doc/posix-functions/connect.texi: Likewise.
19921         * doc/posix-functions/getpeername.texi: Likewise.
19922         * doc/posix-functions/getsockname.texi: Likewise.
19923         * doc/posix-functions/getsockopt.texi: Likewise.
19924         * doc/posix-functions/ioctl.texi: Likewise.
19925         * doc/posix-functions/listen.texi: Likewise.
19926         * doc/posix-functions/recv.texi: Likewise.
19927         * doc/posix-functions/recvfrom.texi: Likewise.
19928         * doc/posix-functions/send.texi: Likewise.
19929         * doc/posix-functions/sendto.texi: Likewise.
19930         * doc/posix-functions/setsockopt.texi: Likewise.
19931         * doc/posix-functions/shutdown.texi: Likewise.
19932         * doc/posix-functions/socket.texi: Likewise.
19934 2017-05-10  Bruno Haible  <bruno@clisp.org>
19936         poll: Fix link error on native Windows.
19937         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
19939 2017-05-10  Bruno Haible  <bruno@clisp.org>
19941         time: Fix missing initialization of HAVE_TIMEZONE_T.
19942         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
19943         here...
19944         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
19945         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
19946         gl_HEADER_SYS_TIME_H_DEFAULTS.
19947         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
19948         (configure.ac): Remove useless quoting.
19950 2017-05-10  Bruno Haible  <bruno@clisp.org>
19952         Implement a way to opt out from MSVC support, part 2.
19953         * modules/msvc-inval (Include): Document recommended idiom.
19954         * modules/msvc-nothrow (Include): Likewise.
19956         Implement a way to opt out from MSVC support.
19957         This is useful for Emacs.
19958         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
19959         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
19960         * lib/error.c: Likewise.
19961         * lib/fcntl.c: Likewise.
19962         * lib/flock.c: Likewise.
19963         * lib/fstat.c: Likewise.
19964         * lib/fsync.c: Likewise.
19965         * lib/ioctl.c: Likewise.
19966         * lib/isapipe.c: Likewise.
19967         * lib/lseek.c: Likewise.
19968         * lib/nonblocking.c: Likewise.
19969         * lib/poll.c: Likewise.
19970         * lib/select.c: Likewise.
19971         * lib/sockets.h: Likewise.
19972         * lib/sockets.c: Likewise.
19973         * lib/stdio-read.c: Likewise.
19974         * lib/stdio-write.c: Likewise.
19975         * lib/utimens.c: Likewise.
19976         * lib/w32sock.h: Likewise.
19977         * lib/w32spawn.h: Likewise.
19978         * tests/test-cloexec.c: Likewise.
19979         * tests/test-dup-safer.c: Likewise.
19980         * tests/test-dup2.c: Likewise.
19981         * tests/test-dup3.c: Likewise.
19982         * tests/test-fcntl.c: Likewise.
19983         * tests/test-pipe.c: Likewise.
19984         * tests/test-pipe2.c: Likewise.
19985         * lib/ftruncate.c: Likewise.
19986         (chsize_nothrow): Renamed from chsize.
19987         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
19988         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
19989         * lib/close.c: Likewise.
19990         * lib/dup.c: Likewise.
19991         * lib/fclose.c: Likewise.
19992         * lib/raise.c: Likewise.
19993         * tests/test-fgetc.c: Likewise.
19994         * tests/test-fputc.c: Likewise.
19995         * tests/test-fread.c: Likewise.
19996         * tests/test-fwrite.c: Likewise.
19997         * lib/getdtablesize.c: Likewise.
19998         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
19999         * lib/isatty.c: Don't include msvc-inval.h if
20000         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
20001         Include <io.h> as an alternative to msvc-nothrow.h.
20002         * lib/read.c: Likewise.
20003         * lib/write.c: Likewise.
20004         * lib/dup2.c: Likewise.
20005         (dup2_nothrow): New function.
20006         (ms_windows_dup2): Use it.
20007         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
20008         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
20009         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
20010         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
20011         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
20012         * m4/read.m4 (gl_FUNC_READ): Likewise.
20013         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
20014         * doc/windows-without-msvc.texi: New file.
20015         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
20016         section.
20018 2017-05-10  Bruno Haible  <bruno@clisp.org>
20020         wait-process: Adjust native Windows support.
20021         * lib/wait-process.c: Use the usual condition for recognizing a native
20022         Windows platform.
20024 2017-05-10  Bruno Haible  <bruno@clisp.org>
20026         doc: New chapter "Native Windows Support".
20027         * doc/gnulib.texi (Native Windows Support): New chapter.
20028         * doc/windows-libtool.texi: Small wording changes.
20029         * doc/windows-sockets.texi: Small wording and formatting changes.
20031 2017-05-10  Bruno Haible  <bruno@clisp.org>
20033         doc: Move section "Library version handling".
20034         * doc/gnulib.texi: Move section "Library version handling"
20035         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
20037 2017-05-10  Bruno Haible  <bruno@clisp.org>
20039         doc: Move section "Running self-tests under valgrind".
20040         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
20041         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
20043 2017-05-10  Bruno Haible  <bruno@clisp.org>
20045         doc: New chapter "Build Infrastructure Modules".
20046         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
20048 2017-05-10  Bruno Haible  <bruno@clisp.org>
20050         Prepare for reordering sections in the manual.
20051         * doc/gnulib.texi: Move several sections to separate files. Include
20052         these files.
20053         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
20054         * doc/obsolete.texi: Likewise.
20055         * doc/extra-tests.texi: Likewise.
20056         * doc/transversal.texi: Likewise.
20057         * doc/namespace.texi: Likewise.
20058         * doc/check-version.texi: Likewise.
20059         * doc/windows-sockets.texi: Likewise.
20060         * doc/windows-libtool.texi: Likewise.
20061         * doc/licenses-texi.texi: Likewise.
20062         * doc/build-automation.texi: Likewise.
20063         * doc/c-locale.texi: Likewise.
20065 2017-05-10  Bruno Haible  <bruno@clisp.org>
20067         Fix instructions how to update manual on www.gnu.org.
20068         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
20070 2017-05-09  Bruno Haible  <bruno@clisp.org>
20072         tzset: Expand comment about TZ problem on native Windows.
20073         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
20074         Paul Eggert.
20075         * lib/ctime.c (rpl_ctime): Likewise.
20076         * lib/localtime.c (rpl_localtime): Likewise.
20077         * lib/mktime.c (mktime): Likewise.
20078         * lib/strftime-fixes.c (rpl_strftime): Likewise.
20079         * lib/wcsftime.c (rpl_wcsftime): Likewise.
20081 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
20083         intprops: don’t depend on ‘verify’
20084         Problem reported by Ævar Arnfjörð Bjarmason in:
20085         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
20086         * lib/intprops.h: Do not include verify.h, and move compile-time
20087         checks from here ...
20088         * tests/test-intprops.c (main): ... to here, if they’re not here
20089         already.  Check widths of other standard integer types.
20090         * modules/intprops (Depends-on): Remove ‘verify’.
20092 2017-05-07  Bruno Haible  <bruno@clisp.org>
20094         utimens: On native Windows, support 100ns resolution also if fd < 0.
20095         * lib/utime.in.h: Include <time.h>.
20096         (_gl_utimens_windows): New declaration.
20097         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
20098         (utime): Invoke it.
20099         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
20100         instead of utime.
20101         * modules/utime (Depends-on): Add 'time'.
20103 2017-05-07  Bruno Haible  <bruno@clisp.org>
20105         utimens: Improve error code on native Windows.
20106         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
20107         error code EACCES, not EINVAL.
20109 2017-05-07  Bruno Haible  <bruno@clisp.org>
20111         utime: Handle more Windows error codes.
20112         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
20113         Based on explanations by Billy O'Neal.
20115 2017-05-05  Bruno Haible  <bruno@clisp.org>
20117         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
20118         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
20119         union.
20120         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
20121         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
20122         value of cipher->IV.
20124 2017-05-05  Bruno Haible  <bruno@clisp.org>
20126         wctype-h-c++-tests: Update.
20127         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
20129 2017-05-05  Bruno Haible  <bruno@clisp.org>
20131         wchar-c++-tests: Update.
20132         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
20134 2017-05-05  Bruno Haible  <bruno@clisp.org>
20136         utime-h-c++-tests: New module.
20137         * tests/test-utime-h-c++.cc: New file.
20138         (utime): Declare, missing since 2017-04-30.
20139         * modules/utime-h-c++-tests: New file.
20141 2017-05-05  Bruno Haible  <bruno@clisp.org>
20143         unistd-c++-tests: Update.
20144         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
20145         (read): Declare, missing since 2011-04-15.
20146         (sethostname): Declare, missing since 2011-12-03.
20148 2017-05-05  Bruno Haible  <bruno@clisp.org>
20150         time-c++-tests: Update.
20151         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
20152         (localtime, gmtime): Declare, missing since 2017-04-30.
20153         (ctime): Declare, missing since 2017-04-30.
20154         (strftime): Declare, missing since 2017-04-30.
20155         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
20156         2015-07-24.
20158 2017-05-05  Bruno Haible  <bruno@clisp.org>
20160         sys_resource-c++-tests: New module.
20161         * tests/test-sys_resource-c++.cc: New file.
20162         (getrusage): Declare, missing since 2012-04-13.
20163         * modules/sys_resource-c++-tests: New file.
20165 2017-05-05  Bruno Haible  <bruno@clisp.org>
20167         strings-c++-tests: New module.
20168         * tests/test-strings-c++.cc: New file.
20169         (ffs): Declare, missing since 2011-07-12.
20170         * modules/strings-c++-tests: New file.
20172 2017-05-05  Bruno Haible  <bruno@clisp.org>
20174         string-c++-tests: Update.
20175         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
20176         (ffsll): Declare, missing since 2011-07-15.
20178 2017-05-05  Bruno Haible  <bruno@clisp.org>
20180         stdlib-c++-tests: Update.
20181         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
20182         2011-10-18.
20183         (ptsname_r): Declare, missing since 2011-11-07.
20184         (qsort_r): Declare, missing since 2014-08-29.
20185         (random, srandom, initstate, setstate): Declare, missing since
20186         2012-01-14.
20187         (secure_getenv): Declare, missing since 2013-02-05.
20189 2017-05-05  Bruno Haible  <bruno@clisp.org>
20191         stdio-c++-tests: Update.
20192         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
20194 2017-05-05  Bruno Haible  <bruno@clisp.org>
20196         signal-h-c++-tests: Update.
20197         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
20199 2017-05-05  Bruno Haible  <bruno@clisp.org>
20201         math-c++-tests: Update.
20202         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
20203         (fma): Declare, missing since 2011-10-17.
20204         (fmal): Declare, missing since 2011-10-17.
20206 2017-05-05  Bruno Haible  <bruno@clisp.org>
20208         locale-c++-tests: Update.
20209         * tests/test-locale-c++.cc (localeconv): Declare, missing since
20210         2012-03-25.
20212 2017-05-05  Bruno Haible  <bruno@clisp.org>
20214         inttypes-c++-tests: New module.
20215         * tests/test-inttypes-c++.cc: New file.
20216         (strtoimax): Declare, missing since 2012-01-05.
20217         (strtoumax): Declare, missing since 2012-01-05.
20218         * modules/inttypes-c++-tests: New file.
20220 2017-05-05  Bruno Haible  <bruno@clisp.org>
20222         dirent-c++-tests: Update.
20223         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
20224         (rewinddir): Declare, missing since 2011-09-13.
20225         (dirfd): Declare, missing since 2010-03-08.
20227 2017-05-04  Bruno Haible  <bruno@clisp.org>
20229         argp: Fix mistake in 2017-04-23 commit.
20230         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
20231         assume that strerror_r returns 'int', not 'char *'.
20233 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
20235         argp: Fix typo.
20236         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
20238 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
20240         utimens: port to Emacs + MS-Windows
20241         Skip the new MS-Windows-specific code if Emacs.
20242         * lib/utimens.c [EMACS_CONFIGUATION]:
20243         Avoid new MS-Windows-specific code.
20244         (USE_SETFILETIME): New macro.
20245         (fdutimens): Use it.
20247 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
20249         tzset: update doc for TZ problems on MS-Windows
20250         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
20251         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
20252         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
20253         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
20254         * doc/posix-functions/wcsftime.texi:
20255         Mention some issues with TZ under MS-Windows.
20257 2017-05-01  Bruno Haible  <bruno@clisp.org>
20259         copy-file: Fix build error on mingw.
20260         * modules/copy-file (Depends-on): Add 'close'.
20262 2017-05-01  Bruno Haible  <bruno@clisp.org>
20264         tzset: Work around TZ problem on native Windows.
20265         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
20266         Windows, set REPLACE_TZSET to 1.
20267         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
20268         invoke '_tzset' instead of 'tzset'.
20269         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
20271         * modules/time_rz (Depends-on): Add tzset.
20272         * lib/time_rz.c (tzset): Remove fallback definition.
20273         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
20275 2017-05-01  Bruno Haible  <bruno@clisp.org>
20277         mktime: Fix dependencies.
20278         * modules/mktime (Depends-on): Add 'time'.
20280 2017-05-01  Bruno Haible  <bruno@clisp.org>
20282         New module 'localtime-buffer', split off from module 'gettimeofday'.
20283         * lib/localtime-buffer.h: New file.
20284         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
20285         * lib/time.in.h (tzset): New declaration.
20286         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
20287         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
20288         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
20289         moved to lib/localtime-buffer.c or lib/tzset.c.
20290         * m4/localtime-buffer.m4: New file.
20291         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
20292         HAVE_TZSET, REPLACE_TZSET.
20293         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
20294         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
20295         gl_LOCALTIME_BUFFER_NEEDED.
20296         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
20297         since 2007-01-18.
20298         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
20299         tzset.
20300         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
20301         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
20302         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
20303         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
20304         * modules/localtime-buffer: New file.
20305         * modules/time (Depends-on): Remove 'gettimeofday'.
20306         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
20307         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
20308         * modules/tzset (Description): Enable hyperlink to POSIX spec.
20309         (Files): Add lib/tzset.c.
20310         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
20311         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
20312         gl_TIME_MODULE_INDICATOR.
20313         * modules/gettimeofday (Depends-on): Add localtime-buffer.
20315 2017-05-01  Bruno Haible  <bruno@clisp.org>
20317         copy-file: Preserve sub-second time stamps.
20318         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
20319         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
20320         transport the time stamps from the original file to the destination
20321         file.
20322         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
20323         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
20324         utime-h.
20326 2017-05-01  Bruno Haible  <bruno@clisp.org>
20328         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
20329         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
20330         also on MSVC.
20331         Reported by Eli Zaretskii <eliz@gnu.org>.
20333 2017-05-01  Bruno Haible  <bruno@clisp.org>
20335         wchar: Fix compilation error with the original mingw.org mingw.
20336         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
20337         <stddef.h> instead.
20338         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
20339         gl_WCTYPE_H.
20340         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
20341         gl_TYPE_WINT_T_PREREQ instead.
20342         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
20343         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
20344         Reported by Eli Zaretskii <eliz@gnu.org>.
20346 2017-04-30  Bruno Haible  <bruno@clisp.org>
20348         utimecmp: Add support for native Windows.
20349         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
20351 2017-04-30  Bruno Haible  <bruno@clisp.org>
20353         utimens: Add support for native Windows.
20354         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
20355         (fdutimens): Provide a native Windows implementation, like utime.c with
20356         added tv_nsec support.
20357         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
20358         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
20360 2017-04-30  Bruno Haible  <bruno@clisp.org>
20362         wcsftime: New module.
20363         * lib/wchar.in.h (wcsftime): New declaration.
20364         * lib/wcsftime.c: New file.
20365         * m4/wcsftime.m4: New file.
20366         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
20367         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
20368         HAVE_WCSFTIME, REPLACE_WCSFTIME.
20369         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
20370         HAVE_WCSFTIME, REPLACE_WCSFTIME.
20371         * modules/wcsftime: New file.
20372         * doc/posix-functions/wcsftime.texi: Mention the new module.
20374 2017-04-30  Bruno Haible  <bruno@clisp.org>
20376         strftime-fixes: New module.
20377         * lib/time.in.h (strftime): New declaration.
20378         * lib/strftime-fixes.c: New file.
20379         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
20380         (gl_FUNC_STRFTIME): Remove macro.
20381         * m4/strftime-fixes.m4: New file.
20382         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
20383         REPLACE_STRFTIME.
20384         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
20385         REPLACE_STRFTIME.
20386         * modules/strftime-fixes: New file.
20387         * doc/posix-functions/strftime.texi: Mention the new module.
20389 2017-04-30  Bruno Haible  <bruno@clisp.org>
20391         mktime: Work around TZ problem on native Windows.
20392         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
20393         from the native Windows workaround.
20394         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
20395         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
20396         'guessing no'.
20397         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
20398         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
20399         NEED_MKTIME_WINDOWS.
20400         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
20401         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
20402         NEED_MKTIME_INTERNAL.
20403         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
20404         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
20405         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
20406         not REPLACE_MKTIME.
20407         * doc/posix-functions/mktime.texi: Mention the native Windows
20408         workaround.
20410 2017-04-30  Bruno Haible  <bruno@clisp.org>
20412         localtime: New module.
20413         * lib/time.in.h (localtime): Declare also if requested by module
20414         'localtime'.
20415         * lib/localtime.c: New file.
20416         * m4/localtime.m4: New file.
20417         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
20418         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
20419         * modules/localtime: New file.
20420         * doc/posix-functions/localtime.texi: Mention the new module.
20422 2017-04-30  Bruno Haible  <bruno@clisp.org>
20424         ctime: New module.
20425         * lib/time.in.h (ctime): New declaration.
20426         * lib/ctime.c: New file.
20427         * m4/ctime.m4: New file.
20428         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
20429         REPLACE_CTIME.
20430         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
20431         * modules/ctime: New file.
20432         * doc/posix-functions/ctime.texi: Mention the new module.
20434 2017-04-30  Bruno Haible  <bruno@clisp.org>
20436         gettimeofday: Provide higher resolution on native Windows.
20437         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
20438         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
20439         (initialize): Initialize it.
20440         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
20441         'struct timeval'. Don't use _ftime().
20442         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
20443         <sys/timeb.h> and _ftime.
20445 2017-04-30  Bruno Haible  <bruno@clisp.org>
20447         Document the problem with the Cygwin environment variable TZ.
20448         * doc/posix-functions/tzset.texi: Add note about TZ.
20449         * doc/posix-functions/ctime.texi: Likewise.
20450         * doc/posix-functions/localtime.texi: Likewise.
20451         * doc/posix-functions/mktime.texi: Likewise.
20452         * doc/posix-functions/strftime.texi: Likewise.
20453         * doc/posix-functions/wcsftime.texi: Likewise.
20454         * doc/pastposix-functions/ftime.texi: Likewise.
20456 2017-04-30  Bruno Haible  <bruno@clisp.org>
20458         utime-tests: New module.
20459         * tests/test-utime.c: New file, based on tests/test-utimens.h.
20460         * tests/test-utimens-common.h: Include <sys/stat.h>.
20461         * modules/utime-tests: New file.
20463 2017-04-29  Bruno Haible  <bruno@clisp.org>
20465         utime: New module.
20466         * lib/utime.in.h: Add comment for snippets.
20467         (utime): New declaration.
20468         * lib/utime.c: New file.
20469         * m4/utime.m4: New file.
20470         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
20471         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
20472         REPLACE_UTIME.
20473         * modules/utime-h (Depends-on): Add snippets.
20474         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
20475         Insert snippets.
20476         * modules/utime: New file.
20477         * doc/posix-functions/utime.texi: Mention the new module.
20479 2017-04-29  Bruno Haible  <bruno@clisp.org>
20481         utime-h: Modernize handling of 'struct utimbuf'.
20482         * lib/utime.in.h: Include next <utime.h> if it exists.
20483         (utimbuf): Define to _utimbuf on native Windows.
20484         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
20485         Set UTIME_H on native Windows.
20486         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
20487         * modules/utime-h (Depends-on): Add include_next.
20488         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
20489         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
20491         * lib/utimens.c (utimbuf): Remove fallback definition.
20492         * m4/utimens.m4 (gl_UTIMENS): Don't require
20493         gl_CHECK_TYPE_STRUCT_UTIMBUF.
20494         * m4/utimbuf.m4: Remove file.
20495         * modules/utimens (Files): Remove m4/utimbuf.m4.
20497 2017-04-29  Bruno Haible  <bruno@clisp.org>
20499         Make use of module 'utime-h'.
20500         * modules/copy-file (Depends-on): Add utime-h.
20501         * lib/copy-file.c: Assume that <utime.h> exists.
20502         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
20504         * modules/utimens (Depends-on): Add utime-h.
20505         * lib/utimens.c: Assume that <utime.h> exists.
20507 2017-04-29  Bruno Haible  <bruno@clisp.org>
20509         utime-h: New module.
20510         * m4/utime_h.m4: New file.
20511         * lib/utime.in.h: New file.
20512         * modules/utime-h: New file.
20513         * doc/posix-headers/utime.texi: Mention the new module.
20515         * tests/test-utime-h.c: New file.
20516         * modules/utime-h-tests: New file.
20518 2017-04-30  Bruno Haible  <bruno@clisp.org>
20520         Fix a few typos.
20521         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
20522         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
20523         * doc/posix-functions/fstat.texi: Fix a plural typo.
20524         * doc/posix-functions/stat.texi: Likewise.
20525         * m4/include_next.m4: Update comments.
20527 2017-04-29  Bruno Haible  <bruno@clisp.org>
20529         error: Fix mistake in 2017-04-23 commit.
20530         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
20531         assume that strerror_r returns 'int', not 'char *'.
20533 2017-04-29  Bruno Haible  <bruno@clisp.org>
20535         stat: Fix time_t values and other problems on native Windows platforms.
20536         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
20537         implementations of stat().
20538         * lib/stat.c: Include filename.h instead of dosname.h. Include
20539         malloca.h, stat-w32.h.
20540         (is_unc_root): New function.
20541         (rpl_stat): New implementation for native Windows. Remove
20542         REPLACE_FUNC_STAT_DIR code.
20543         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
20544         Don't define REPLACE_FUNC_STAT_DIR.
20545         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
20546         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
20547         (Depends-on): Remove dosname. Add filename, malloca.
20548         (configure.ac): Also compile lib/stat-w32.c.
20550 2017-04-29  Bruno Haible  <bruno@clisp.org>
20552         fstat: Fix time_t values on native Windows platforms.
20553         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
20554         * lib/stat-w32.h: New file.
20555         * lib/stat-w32.c: New file.
20556         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
20557         stat-w32.h instead.
20558         (fstat_nothrow): Remove function.
20559         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
20560         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
20561         always.
20562         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
20563         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
20564         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
20565         (configure.ac): Also compile lib/stat-w32.c.
20567 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
20569         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
20570         Problem reported by Assaf Gordon and Gavin Smith in:
20571         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
20572         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
20573         #define this, too.
20575 2017-04-29  Bruno Haible  <bruno@clisp.org>
20577         strerror_r-posix: Fixes for MSVC 14.
20578         * lib/strerror_r.c: Include <stdarg.h>.
20579         (strerror_r): Provide error messages for errno values 100...140.
20580         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
20582 2017-04-28  Bruno Haible  <bruno@clisp.org>
20584         noreturn: New module.
20585         * lib/noreturn.h: New file.
20586         * modules/noreturn: New file.
20587         * tests/test-noreturn.c: New file.
20588         * modules/noreturn-tests: New file.
20589         * tests/test-noreturn-c++.cc: New file.
20590         * modules/noreturn-c++-tests: New file.
20592 2017-04-27  Bruno Haible  <bruno@clisp.org>
20594         wctype-h: Fix compilation error with the original mingw.org mingw.
20595         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
20596         HAVE_CRTDEFS_H.
20597         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
20598         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
20599         <stddef.h> instead.
20600         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
20602 2017-04-26  Pádraig Brady  <P@draigBrady.com>
20604         nap.h: Fix compilation on non windows platforms
20605         * tests/nap.h: Move misplaced endif.
20607 2017-04-26  Pádraig Brady  <P@draigBrady.com>
20608         and Paul Eggert  <eggert@cs.ucla.edu>
20610         time_rz: fix heap buffer overflow vulnerability
20611         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
20612         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
20613         whether there is enough buffer space available, thus avoiding
20614         the problematic promotion of signed to unsigned causing an invalid
20615         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
20616         the start of the buffer.
20617         * tests/test-parse-datetime.c (main): Add a test case written by
20618         Paul Eggert, which overwrites enough of the heap so that
20619         standard glibc will fail with "free(): invalid pointer"
20620         without the patch applied.
20622 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
20624         xalloc: add missing integer overflow check
20625         * lib/xalloc.h (x2nrealloc): Also check for multiplication
20626         overflow when P is null.
20628 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
20630         parse-datetime: make it standalone
20631         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
20632         (_GL_ATTRIBUTE_FORMAT): New macro.
20633         These are needed to get './gnulib-tool --test parse-datetime' to work.
20635 2017-04-23  Bruno Haible  <bruno@clisp.org>
20637         nap.h: Port to native Windows.
20638         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
20639         use nap_fd instead. On native Windows, close and reopen nap_fd.
20640         (nap_works): Don't compare the ctimes, because on native Windows, these
20641         are the creation times.
20642         (nap): Update.
20644 2017-04-23  Bruno Haible  <bruno@clisp.org>
20646         nap.h: Fix logic.
20647         * tests/nap.h (nap): Avoid signed integer overflow in loop.
20649 2017-04-23  Bruno Haible  <bruno@clisp.org>
20651         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
20652         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
20653         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
20654         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
20655         * lib/argp-help.c (__argp_failure): Likewise.
20657 2017-04-23  Bruno Haible  <bruno@clisp.org>
20659         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
20660         * m4/strerror_r.m4: Revert changes since 2016-10-16.
20661         * lib/strerror_r.c: Likewise.
20663 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
20665         Target a C99 subset, not a C89 subset
20666         For many years Gnulib has targeted C89 and has resisted using C99
20667         features, as some Gnulib-using programs still wanted to target
20668         C89.  As this no longer seems to be the case, relax the porting
20669         requirements to allow some C99 features.  This is merely a change
20670         to the documentation, to give other Gnulib developers a chance to
20671         weigh in on the topic.
20672         * doc/extern-inline.texi (extern inline):
20673         * doc/gnulib-readme.texi (Portability guidelines):
20674         * doc/gnulib-tool.texi (Initial import):
20675         * doc/gnulib.texi (Header files):
20676         Modernize to talk about C99 and C11 instead of C89 and C99.
20677         * doc/gnulib-readme.texi (Portability guidelines):
20678         Now a section, not merely a subsection, so that it
20679         can be split up.  Modernize a bit.
20680         (C language versions, C99 features assumed)
20681         (C99 features avoided):
20682         New sections.
20684 2017-04-23  Bruno Haible  <bruno@clisp.org>
20686         doc: New section "Modules that modify the way other modules work".
20687         * doc/gnulib.texi (Modules that modify the way other modules work): New
20688         section.
20690 2017-04-23  Bruno Haible  <bruno@clisp.org>
20692         stat-time: Update comments.
20693         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
20694         * tests/test-utimens-common.h: Add reference regarding st_ctime on
20695         Windows.
20697 2017-04-01  Bruno Haible  <bruno@clisp.org>
20699         glob: Fix more memory leaks.
20700         * lib/glob.c (glob): Free allocated memory before returning.
20701         Reported by Coverity via Tim Rühsen.
20703 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20705         poll: improve fast check for out-of-range NFD
20706         * lib/poll.c: Do not include intprops.h.
20707         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
20708         * modules/poll (Depends-on): Remove intprops.
20710         ftoastr: cite a newer paper
20711         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
20712         instead of Loitsch 2010.
20714 2017-04-22  Bruno Haible  <bruno@clisp.org>
20716         poll: Enable argument check also in the Windows implementation.
20717         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
20718         Reported by Paul Eggert.
20720 2017-04-22  Bruno Haible  <bruno@clisp.org>
20722         getlogin_r: Work around bug in Mac OS X 10.12.
20723         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
20724         bug.
20725         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
20726         given size minus 1, call getlogin_r a second time, on a larger buffer.
20727         * modules/getlogin_r (Depends-on): Add malloca.
20728         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
20730 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20732         parse-datetime: fix %z and prefer signed int
20733         %z problem reported by Pádraig Brady in:
20734         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
20735         While fixing it, I decided to prefer signed ints to size_t, as
20736         they are less error-prone (e.g., ubsan catches overflow).
20737         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
20738         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
20739         counts, since signed integers make for better debugging.
20740         (date): Don’t assume %z works in printf formats.
20741         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
20742         sizes of buffers known to be small, e.g., because we’re using snprintf.
20743         (parse_datetime2): Simplify call to debug_mktime_not_ok.
20745 2017-04-22  Bruno Haible  <bruno@clisp.org>
20747         *printf: Work around rounding bug on Mac OS X.
20748         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
20749         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
20750         Mac OS X and FreeBSD.
20751         * doc/glibc-functions/*printf.texi: Likewise.
20753 2017-04-22  Bruno Haible  <bruno@clisp.org>
20755         vasnprintf tests: Avoid warnings.
20756         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
20757         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
20758         test.
20760 2017-04-22  Bruno Haible  <bruno@clisp.org>
20762         sys_file tests: Avoid warning.
20763         * tests/test-sys_file.c (main): Add a default clause to the switch
20764         statement.
20766 2017-04-22  Bruno Haible  <bruno@clisp.org>
20768         sethostname: Update doc.
20769         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
20770         Mac OS X.
20772 2017-04-22  Bruno Haible  <bruno@clisp.org>
20774         quotearg tests: Avoid warnings.
20775         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
20776         false.
20778 2017-04-22  Bruno Haible  <bruno@clisp.org>
20780         poll: Enable argument check.
20781         * lib/poll.c: Include intprops.h.
20782         (poll): Check value of nfd correctly.
20783         * modules/poll (Depends-on): Add intprops.
20785 2017-04-22  Bruno Haible  <bruno@clisp.org>
20787         get-rusage-data: Avoid warnings on Mac OS X.
20788         * lib/get-rusage-data.c: On Mac OS X, don't define
20789         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
20790         (get_rusage_data) [Mac OS X]: Just return 0.
20792 2017-04-22  Bruno Haible  <bruno@clisp.org>
20794         xbinary-io: Fix build error.
20795         * modules/xbinary-io (Depends-on): Add gettext-h.
20796         * lib/xbinary-io.c: Include gettext.h and define _().
20797         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
20798         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
20800 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20802         parse-datetime: overflow and debug cleanups
20803         This long patch was triggered by this bug report from Ruediger Meier:
20804         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
20805         I fixed the bug he noted, then found some others nearby, and then
20806         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
20807         up some of the code to follow GNU standards while I was at it.
20808         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
20809         use c_isdigit.
20810         (EPOCH_YEAR): Remove; unused.
20811         (TM_YEAR_BASE): Now an enum rather than a macro.
20812         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
20813         time zone offset, since timezones now are in terms of seconds and
20814         not minutes.
20815         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
20816         appropriate.  Verify that intmax_t is wide enough.
20817         (time_overflow, time_zone_str): New functions, used to deal
20818         more reliably with overflow.
20819         (dbg_printf): Add printf attribute, to help catch integer width errors.
20820         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
20821         (%union, to_hour, yylex, parse_datetime2):
20822         Use intmax_t instead of long int and/or long_time_t.
20823         All uses changed.
20824         (DBGBUFSIZE): Move earlier.
20825         (relative_time, set_hhmmss, parser_control):
20826         Just use int for nanoseconds and for time zones; that’s wide enough.
20827         (parser_control): Use bool for members like year_seen that can
20828         be booleans instead of counters.  All uses changed.
20829         Remove debug_default_input_timezone; no longer needed.
20830         All uses removed.
20831         (apply_relative_time): Return a bool overflow flag.
20832         All uses changed to check for overflow.
20833         (apply_relative_time, zone, date, relunit, relunit_snumber)
20834         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
20835         Check for integer overflow portably.
20836         (str_days): Use just int for N, as it’s wide enough.
20837         Prefer 2D char arrays to arrays of char * when it looks like
20838         2D is a win on typical platforms.
20839         Prefer snprintf to strncpy/strncat, for simplicity;
20840         all buffers are smaller than INT_MAX so this is safe.
20841         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
20842         (debug_print_current_time): Don’t assume tv_nsec is of type long,
20843         as this is not true on x32.  Output "." before any nanoseconds.
20844         (debug_print_current_time, parse_datetime2):
20845         Output local zones using a more-consistent format.
20846         (debug_print_current_time, date, parse_datetime2):
20847         (main) [TEST]:
20848         Don’t assume time_t is the same width as long.
20849         (print_rel_part): New function, replacing ...
20850         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
20851         (debug_print_relative_time): Use bool for boolean.
20852         (local_zone): dsts_seen now counts only tDST instances.
20853         (date): Fix printf of size_t to use %z.  Do not assume numeric
20854         tokens have negative values merely because the context suggests
20855         a syntax with "-" separating tokens.
20856         (time_zone_hhmm): Return bool success indicator, which checks for
20857         overflow.  Store result into PC->time_zone instead.  All callers
20858         changed.
20859         (tm_year_str): New function.  Return a bool success indicator and
20860         store the result into a buffer.  All callers changed.  Output the
20861         numerically correct string even if adding 1900 to the year would
20862         overflow.
20863         (to_tm_year): New function, replacing the old to_year.  All
20864         callers changed.
20865         (tm_diff): Sync with glibc.
20866         (lookup_word): Use to_uchar instead of doing it by hand.
20867         (TZBUFSIZE): Now local to the only function that needs it.
20868         (debug_strfdatetime): Simplify now that time zones are int seconds.
20869         (debug_strfdate): Work even if tm_year + 1900 would overflow.
20870         (get_effective_timezone): Remove.  All uses removed.
20871         (parse_datetime2): Use fprintf in pieces instead of snprintfing
20872         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
20873         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
20874         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
20875         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
20876         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
20877         * modules/parse-datetime (Depends-on): Add inttypes.
20879 2017-04-21  Bruno Haible  <bruno@clisp.org>
20881         gettext-h: Avoid -Wundef warning.
20882         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
20883         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
20884         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
20886 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
20888         error: Avoid "function declaration isn't a prototype" warning.
20889         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
20891 2017-04-21  Bruno Haible  <bruno@clisp.org>
20893         vasnprintf: Fix for MSVC 14.
20894         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
20895         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
20896         of !HAVE_SNPRINTF_RETVAL_C99.
20898 2017-04-21  Bruno Haible  <bruno@clisp.org>
20900         mbrtowc tests: Fix test failures on MSVC 14.
20901         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
20902         behaviour for invalid input.
20904 2017-04-21  Bruno Haible  <bruno@clisp.org>
20906         mbsinit: Fix for MSVC 14.
20907         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
20908         implementation that is in sync with mbrtowc.c. On other platforms, use
20909         an adequate ad-hoc implementation.
20911 2017-04-21  Bruno Haible  <bruno@clisp.org>
20913         Fix test-mbrtowc5.sh failure on native Windows.
20914         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
20915         "C".
20917 2017-04-21  Bruno Haible  <bruno@clisp.org>
20919         Avoid accidental use of native Windows APIs on Cygwin.
20920         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
20921         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
20922         * lib/localename.c (WINDOWS_NATIVE): Likewise.
20924 2017-04-20  Bruno Haible  <bruno@clisp.org>
20926         Remove red warnings from the generated MODULES.html.
20927         * modules/fcntl (Description): Disambiguate function references.
20928         * modules/getcwd-lgpl (Description): Likewise.
20929         * modules/hostent (Description): Likewise.
20930         * modules/servent (Description): Likewise.
20931         * modules/tempname (Description): Likewise.
20933 2017-04-20  Bruno Haible  <bruno@clisp.org>
20935         verify tests: Fix spurious failure with parallel make.
20936         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
20937         EXTRA_PROGRAMS.
20938         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
20939         * tests/test-verify-try.c: New file.
20940         * modules/verify-tests (Files): Add it.
20941         (EXTRA_PROGRAMS): Add test-verify-try.
20942         (MOSTLYCLEANFILES): Update accordingly.
20943         Reported by Adam James Stewart <ajstewart@anl.gov>.
20945 2017-04-18  Bruno Haible  <bruno@clisp.org>
20947         vma-iter: Fix compilation error on Solaris 7.
20948         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
20949         like on IRIX, OSF/1.
20950         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20952 2017-04-18  Bruno Haible  <bruno@clisp.org>
20954         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
20955         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
20956         included.
20957         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
20958         <sys/procfs.h>.
20959         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
20960         <sys/procfs.h> cannot be included.
20961         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20963 2017-04-18  Bruno Haible  <bruno@clisp.org>
20965         getopt-gnu: Add comments.
20966         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
20967         * modules/getopt-gnu (configure.ac): Likewise.
20969 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
20971         regex: port better to Solaris 10
20972         Solaris 10 <locale.h> includes <libintl.h>, which #defines
20973         gettext, and this causes a double #define.
20974         Problem reported by Gavin Smith in:
20975         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
20976         * lib/regex_internal.h (gettext): #undef before #defining.
20978 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
20980         intprops: improve comments
20981         * lib/intprops.h: Improve and shorten commentary.
20982         For the record, if we ever run into a pedantic compiler that
20983         behaves differently from GCC when converting an out-of-range value
20984         to a signed integer, we can work around the problem with something
20985         like the following code, where UCT is the signed counterpart of T
20986         (UCT is sometimes narrower than UT) and all callers are changed
20987         accordingly:
20988         #if __SUNPRO_C <= 0x5120
20989         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
20990            ((t) ((ut) (a) op (ut) (b)))
20991         #else
20992         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
20993            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
20994             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
20995                + TYPE_MINIMUM (t)) \
20996             : (t) (uct) ((ut) (a) op (ut) (b)))
20997         #endif
20999 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
21001         intprops: try to avoid tickling similar bugs
21002         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
21003         needs to be the same width as T; it can be wider.
21004         Change callers so that UT is at least as wide as unsigned int,
21005         as I suspect that this is less likely to run into compiler bugs.
21007         intprops: port to Oracle Studio 12.3 x86
21008         Problem reported by Gavin Smith in:
21009         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
21010         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
21011         Convert unsigned to signed via the usual rather than the standard way,
21012         to avoid a compiler bug in Oracle Studio 12.3 x86.
21014 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
21016         getopt: prefer - to _ in new file names
21017         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
21018         * lib/getopt-core.h: Rename from lib/getopt_core.h.
21019         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
21020         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
21021         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
21022         All uses changed.
21024         getopt: port recent getopt changes to macOS
21025         Problem reported by Harald Maier (Bug#26398).
21026         The macOS C compiler uses __nonnull for its own purposes and that
21027         clashes with glibc's __nonnull.
21028         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
21029         * lib/getopt_cdefs.in.h (__nonnull): Remove.
21030         * lib/getopt_core.h (getopt):
21031         * lib/getopt_ext.h (getopt_long, getopt_long_only):
21032         Use _GL_ARG_NONNULL, not __nonnull.
21033         * lib/unistd.in.h: Move snippet hooks to before where the getopt
21034         .h files are included, so that _GL_ARG_NONNULL is defined in time.
21035         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
21036         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
21038 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
21040         getopt-gnu: omit some duplicate code
21041         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
21042         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
21043         gnulib-tool already does this.
21044         * modules/getopt-gnu (configure.ac): Omit code duplicated from
21045         getopt-posix, which we depend on.
21047         getopt-posix: use angle-bracket include
21048         * lib/getopt1.c: Include <config.h>, not "config.h".
21050 2017-04-06  Zack Weinberg  <zackw@panix.com>
21052         getopt: annotate files with relationship to glibc
21054         As the final act in this patchset, adjust the message at the top of
21055         each file to indicate which files are synced with glibc.  (This has
21056         already been done for most of the headers.)
21058         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
21059         Mention in top-of-file boilerplate that these files are shared
21060         between glibc and gnulib.
21063         getopt: split up getopt.in.h and eliminate __need_getopt
21065         Over in glibc, all of the __need macros are being phased out in favor
21066         of small headers that declare only the necessary components, as this
21067         is much simpler and less prone to bugs.  As getopt is shared with
21068         glibc, gnulib needs to do the same for __need_getopt.
21070         __need_getopt is misnamed; what it really means is "we want only the
21071         getopt features specified in POSIX, not the GNU extensions".  glibc
21072         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
21073         these files can be shared verbatim with gnulib.  The portability
21074         wrapper, on the other hand, they have renounced altogether; glibc's
21075         getopt.h will no longer be shared with gnulib at all.  In exchange,
21076         certain glibc-specific quirks (having to do with __posix_getopt) no
21077         longer need appear in gnulib's headers at all.
21079         This patch merges getopt_core.h and getopt_ext.h from glibc, and
21080         splits up the current gnulib-side portability wrapper into three
21081         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
21082         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
21083         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
21084         unistd.in.h just use them.  All new files are clearly marked with
21085         whether they are shared with glibc.
21087         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
21088         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
21089         with glibc, and ...
21090         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
21091         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
21092         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
21093         instead of defining __need_getopt and including the full getopt.h.
21095         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
21096         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
21097         * modules/getopt-posix (Files): Add new headers and sort list.
21098         (Depends-on): No longer need snippet/arg-nonnull.
21099         (Makefile.am): Generate getopt_cdefs.h.
21102         getopt: better handling of ambiguous options
21104         glibc's getopt uses alloca to construct a linked list of possibilities
21105         for an "ambiguous" long option.  In gnulib, malloc should be used
21106         instead.  Providing for both cases complicates things a fair bit.
21108         This patch rewrites ambiguous-option handling to use a boolean vector
21109         instead of a linked list.  There is then only one allocation that
21110         might need freeing; in glibc it can honor __libc_use_alloca as usual,
21111         and in gnulib we define __libc_use_alloca to always be false, so we
21112         don't need ifdefs in the middle of the function.  This should also be
21113         slightly more efficient in the normal case of long options being fully
21114         spelled out -- I think most people aren't even aware they _can_
21115         sometimes abbreviate long options.
21117         One interesting consequence is that the list of possibilities is now
21118         printed in exactly the order they appear in the list of long options,
21119         instead of the first possibility being shuffled to the end.
21121         (The patch looks bigger than it really is because there's a fair bit
21122         of reindentation and code rearrangement.)
21124         * lib/getopt.c: When used standalone, define __libc_use_alloca
21125         as always false and alloca to abort if called.
21126         (process_long_option): Rewrite handling of ambiguous long options
21127         to use a single boolean vector, not a linked list; use
21128         __libc_use_alloca to decide whether to allocate this using alloca.
21131         getopt: refactor long-option handling
21133         There were two copies of the bulk of the code to handle long options.
21134         Now there is only one.
21136         This change temporarily removes the logic to avoid using alloca when
21137         standalone; the next patch in the series will restore it.
21139         * lib/getopt.c (process_long_option): New function split out
21140         from _getopt_internal_r.
21141         (_getopt_internal_r): Replace both copies of the long-option
21142         processing code with calls to process_long_option.
21145         getopt: tidy up _getopt_initialize a bit
21147         _getopt_data.__posixly_correct is completely redundant to
21148         _getopt_data.__ordering, and some work that logically belongs in
21149         _getopt_initialize was being done by _getopt_internal_r, making the
21150         code harder to understand.
21152         As a side effect, getenv will no longer be called if the first
21153         character of the options string is '+' or '-', which is probably a
21154         Good Thing.  (Perhaps we should have a flag character that
21155         specifically asks for the permutation behavior?)
21157         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
21158         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
21159         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
21162         getopt: merge from glibc: repetition reduction
21164         The definitions of the entry point functions 'getopt' and
21165         '__posix_getopt' can be made substantially less repetitive with a
21166         helper macro.
21168         While I was merging the const-correctness changes from gnulib into
21169         glibc I noticed there are still some unnecessary casts in
21170         _getopt_internal_r.
21172         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
21173         a macro.  Consistently cast 'argv' to 'char **' when calling
21174         _getopt_internal.
21175         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
21178         getopt: clean up error reporting
21180         getopt can print a whole bunch of error messages, and when used
21181         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
21182         cancellation point and getopt isn't, and also applying fprintf to a
21183         stream in wide-character mode is not allowed.  So every single error
21184         reporting case has an #ifdef _LIBC block in which it calls internal
21185         libc functions instead.  The counterpart patch series in glibc makes
21186         it possible to simplify all of that down to a set of #defines at the
21187         top of the file; core code is written as if it is safe to just call
21188         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
21189         call any *other* stdio functions.)
21191         * lib/getopt.c: When _LIBC is defined, define fprintf to
21192         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
21193         to _IO_funlockfile.  When neither _LIBC nor
21194         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
21195         funlockfile as no-ops.
21196         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
21197         standalone error-printing code can now be used for libc as well.
21198         Add an flockfile/funlockfile pair around one case where the error
21199         message is printed in several chunks.  Don't use fputc.
21202         getopt: fix fencepost error in ambiguous-W-option handling
21204         getopt_long contains an undocumented (AFAICT) feature in which, if you
21205         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
21206         treated as equivalent to '--foo'.  This is implemented with a partial
21207         second copy of the code for handling long options, and that code
21208         increments optind one too many times when recovering from an ambiguous
21209         abbreviated option, which can cause the main loop to walk past the end
21210         of argv and crash.
21212         I discovered this while writing a test case that tries to exercise all
21213         of getopt's error reporting paths; I wouldn't be surprised to learn
21214         that this feature is never used by real applications.
21216         * lib/getopt.c (_getopt_internal_r): Don't increment
21217         d->optind a second time when reporting ambiguous -W options.
21220         getopt: clean up getopt.c and getopt1.c file headers
21222         In getopt.c, there is no need to include wchar.h at all, and it is
21223         safe nowadays to assume that stdlib.h does declare getenv (several
21224         other gnulib modules make this assumption).
21226         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
21227         by using "" inclusions consistently, and there is no actual need to
21228         include stdlib.h (except in the #ifdef TEST block, where it should be
21229         unconditional), nor to provide a backup definition of NULL at all.
21231         * lib/getopt1.c: Simplify #ifdeffage at top of file.
21232         Move inclusion of stdlib.h to #ifdef TEST block and make
21233         unconditional.  Do not define NULL.
21234         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
21235         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
21236         * modules/getopt-gnu, modules/getopt-posix: Don't call
21237         gl_PREREQ_GETENV.
21240         getopt: harmonize comments with glibc
21242         The comments explaining how the behavior of 'getopt' varies depending
21243         on whether it's the standalone version and whether there are special
21244         characters at the beginning of the options string were inconsistent
21245         between gnulib and glibc, and also out of sync with the code.
21247         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
21250         getopt: remove USE_NONOPTION_FLAGS
21252         getopt includes code to parse an environment variable named
21253         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
21254         in decimal); but all of it has been #ifdefed out since 2001, with no
21255         official way to turn it back on.
21257         According to commentary in glibc's config.h.in, bash version 2.0
21258         set this environment variable to indicate argv elements that were
21259         the result of glob expansion and therefore should not be treated
21260         as options, but the feature was "disabled later" because "it
21261         caused problems".  According to bash's CHANGES file, "later" was
21262         release 2.01; it gives no more detail about what the problems
21263         were.
21265         Version 2.0 of bash was released on the last day of 1996, and version
21266         2.01 in June of 1997.  Twenty years later, I think it is safe to
21267         assume that this environment variable isn't coming back.
21269         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
21270         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
21271         __libc_argc and __libc_argv externs, which were only used by
21272         #ifdef USE_NONOPTION_FLAGS blocks.
21275         getopt: tabify, in preparation for merge with glibc
21277         glibc sticks to the GNU default of indenting with a mix of
21278         8-column tabs and spaces; make the gnulib copy match.
21280         getopt.h is not included because it is *not* going to be merged in its
21281         present form.
21283         * getopt.c, getopt1.c, getopt_int.h: Tabify.
21285 2017-04-02  Bruno Haible  <bruno@clisp.org>
21287         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
21288         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
21289         like it was done in modules/relocatable-lib on 2011-05-21 and in
21290         modules/relocatable-prog on 2011-08-15.
21291         Reported by Reuben Thomas <rrt@sc3d.org>.
21293 2017-03-31  Bruno Haible  <bruno@clisp.org>
21295         glob: Fix invalid free() call.
21296         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
21297         static storage to home_dir.
21298         Reported by Coverity via Tim Rühsen.
21300 2017-03-31  Bruno Haible  <bruno@clisp.org>
21302         glob: Fix memory leaks.
21303         * lib/glob.c (glob): Free allocated memory before returning.
21304         Reported by Coverity via Tim Rühsen.
21306 2017-03-31  Bruno Haible  <bruno@clisp.org>
21308         md5, sha1, sha256, sha512: Add comments regarding correctness.
21309         * lib/md5.h (buflen): Add comments regarding range.
21310         * lib/sha1.h (buflen): Likewise.
21311         * lib/sha256.h (buflen): Likewise.
21312         * lib/sha512.h (buflen): Likewise.
21313         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
21314         * lib/sha1.c (sha1_process_bytes): Likewise.
21315         * lib/sha256.c (sha256_process_bytes): Likewise.
21316         * lib/sha512.c (sha512_process_bytes): Likewise.
21317         Reported by Coverity via Tim Rühsen.
21319 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
21321         getopt: merge from glibc
21322         This does not change anything substantial; it merely simplifies
21323         hypothetical merges back to glibc.
21324         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
21325         Change copyright notice to match what is in glibc.
21326         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
21327         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
21328         __open_memstream rather than open_memstream and __glibc_likely
21329         instead of __builtin_expect.
21330         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
21332 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
21334         dfa: make [0-9] faster in non-C locales
21335         Problem reported by John P. Linderman (Bug#26193).
21336         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
21337         If both ends of the range are ASCII digits, do not worry about
21338         multi-character collating sequences and the like.  Be consistent
21339         about using isalpha as a precondition for setbit_case_fold_c.
21341 2017-03-19  Bruno Haible  <bruno@clisp.org>
21343         lock: Fix compilation error with HP-UX IA64 cc.
21344         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
21345         weak on non-glibc platforms.
21347 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21349         stdalign: tweak version# and test for HP-UX IA64
21350         Problems reported by Bruno Haible in:
21351         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
21352         * lib/stdalign.in.h (_Alignas):
21353         * m4/stdalign.m4 (gl_STDALIGN_H):
21354         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
21355         used octal (as that is how they document it), but it is decimal in
21356         practice now and the ancient implementations no longer matter.
21357         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
21359 2017-03-19  Bruno Haible  <bruno@clisp.org>
21361         vma-iter: Add support for Solaris.
21362         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
21363         approach.
21364         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
21365         * lib/get-rusage-as.c: Update comment about Solaris.
21366         * lib/get-rusage-data.c: Likewise.
21368 2017-03-19  Bruno Haible  <bruno@clisp.org>
21370         vma-iter: Prefer HP-UX specific API on HP-UX.
21371         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
21372         * lib/vma-iter.h: Update.
21373         Just in case HP-UX ever implements mquery().
21375 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
21377         stdalign: restore previous behavior for HP-UX IA64
21378         See Bruno Haible's email in:
21379         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
21380         which cites p 150 of a manual saying that 'aligned' works on Itanium.
21381         * lib/stdalign.in.h (_Alignas):
21382         Assume the '061200' applies to Itanium, not to PA-RISC.
21383         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
21385 2017-03-17  Bruno Haible  <bruno@clisp.org>
21387         stat-time, timespec: Support use of the header files in C++ mode.
21388         * lib/stat-time.h: Add "C" linkage declaration.
21389         * lib/timespec.h: Likewise.
21391 2017-03-17  Bruno Haible  <bruno@clisp.org>
21393         stdalign: Make it work with HP-UX cc.
21394         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
21395         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
21396         for HP-UX cc.
21398 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
21400         flexmember: try to detect HP-UX 11.31 cc bug
21401         Problem reported by Bruno Haible in:
21402         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
21403         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
21404         Attempt to detect bug in HP-UX 11.31 cc.
21406 2017-03-16  Bruno Haible  <bruno@clisp.org>
21408         stdint: Fix test compilation failure with HP-UX 11 cc.
21409         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
21410         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
21411         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
21412         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
21414 2017-03-14  Bruno Haible  <bruno@clisp.org>
21416         gnulib-tool: Don't produce a tests directory with only snippet .h files.
21417         * gnulib-tool (func_modules_transitive_closure_separately): If
21418         testsrelated_modules ends up with no "real" modules, aside from
21419         modules with applicability 'all', set it to empty.
21421 2017-03-14  Bruno Haible  <bruno@clisp.org>
21423         vma-iter: Add support for HP-UX.
21424         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
21425         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
21426         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
21427         * lib/get-rusage-as.c: Update comment about HP-UX.
21428         * lib/get-rusage-data.c: Likewise.
21429         (get_rusage_data): Use get_rusage_data_via_setrlimit.
21431 2017-03-14  Bruno Haible  <bruno@clisp.org>
21433         limits-h: Make it work with HP-UX cc.
21434         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
21435         defined.
21437 2017-03-14  Bruno Haible  <bruno@clisp.org>
21439         Fix test failures on DragonFlyBSD.
21440         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
21441         * tests/test-select.h (test_bad_fd): Likewise.
21442         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
21444 2017-03-14  Bruno Haible  <bruno@clisp.org>
21446         freadahead: Silence warning on DragonFlyBSD.
21447         * lib/freadahead.c (__sreadahead): Declare ourselves.
21449 2017-03-14  Bruno Haible  <bruno@clisp.org>
21451         vma-iter: Add comment about AIX.
21452         * lib/vma-iter.c: Add comment about why this module is not implemented
21453         on AIX.
21455 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
21457         snippets: move unadjusted snippet sources to lib
21458         Problem reported by Michal Privoznik in:
21459         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
21460         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
21461         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
21462         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
21463         * lib/unused-parameter.h: Rename from
21464         build-aux/snippet/unused-parameter.h.
21465         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
21466         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
21467         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
21468         * modules/snippet/c++defs (Files:, CXXDEFS_H):
21469         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
21470         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
21471         Adjust to file renamings.
21473 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
21475         gnulib-tool: don't automatically distribute files from top/
21476         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
21477         not distribute top/README-release by default, don't distribute files
21478         from top/ unconditionally.
21479         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
21480         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
21482 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
21484         gnulib-tool: fix typo in comment output
21485         * gnulib-tool (func_import): Fix typo with previous change.
21487         snippets: work around GNU Make 3.82 VPATH
21488         When using 'gnulib-tool --gnu-make' on Emacs, and building
21489         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
21490         an out-of-source (VPATH) build failed because the sans-copyright
21491         snippet file was not built before the file that used it.
21492         Presumably this is some sort of VPATH thing.  Work around the
21493         problem by using the original snippet, i.e., don’t bother to
21494         remove its copyright notice.
21495         * modules/snippet/_Noreturn, modules/snippet/link-warning:
21496         Don’t assume Automake in comments.  Omit long-incorrect comment.
21497         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
21498         (MOSTLYCLEANFILES):
21499         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
21500         (MOSTLYCLEANFILES):
21501         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
21502         (MOSTLYCLEANFILES):
21503         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
21504         (MOSTLYCLEANFILES):
21505         Remove.
21506         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
21507         * modules/snippet/c++defs (CXXDEFS_H):
21508         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
21509         * modules/snippet/warn-on-use (WARN_ON_USE_H):
21510         Don’t bother to remove the copyright notice; just use the
21511         original snippet as-is.
21513 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
21515         gnulib-tool: minor --gnu-make fixups
21516         * gnulib-tool (func_emit_lib_Makefile_am):
21517         Remove useless code that was a blind alley during implementation.
21518         Problem reported by Thien-Thi Nguyen in:
21519         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
21520         (func_import): Note the "--gnu-make" option in the output comment.
21522 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
21524         gnulib-tool: new option --gnu-make
21525         This is for applications like GNU Emacs that use GNU Make
21526         features instead of Automake.
21527         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
21528         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
21529         Do not assume Automake.
21530         * gnulib-tool (func_determine_path_separator)
21531         (func_modules_transitive_closure, func_update_file)
21532         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
21533         (func_import): Add support for --gnu-make.
21535 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
21537         gnulib-common.m4: avoid aclocal.m4 bloat
21538         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
21539         Hide AM_PROG_AR from aclocal, so that aclocal does not
21540         install irrelevant macro definitions into aclocal.m4.
21542 2017-03-10  Bruno Haible  <bruno@clisp.org>
21544         vma-iter: Let callers know about error.
21545         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
21546         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
21548 2017-03-05  Bruno Haible  <bruno@clisp.org>
21550         Fix value of LD for 64-bit compilers on AIX.
21551         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
21552         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
21554 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
21556         dtotimespec: simplify
21557         * lib/dtotimespec.c (dtotimespec): Simplify.
21559 2017-03-04  Bruno Haible  <bruno@clisp.org>
21561         test-calloc-gnu: Reenable test also for GCC 7.
21562         * tests/test-calloc-gnu.c (eight): New function.
21563         (main): Don't skip test; use eight() instead.
21565 2017-03-04  Jim Meyering  <meyering@fb.com>
21567         test-calloc-gnu: port to GCC7
21568         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
21569         that attempts to calloc more than SIZE_MAX bytes, because GCC7
21570         and newer would detect that at compilation time.
21572 2017-03-04  Bruno Haible  <bruno@clisp.org>
21574         tests: Avoid compiler warning about uses of null_ptr.
21575         * tests/null-ptr.h: New file.
21576         * tests/test-canonicalize.c: Include null-ptr.h.
21577         (null_ptr): Remove function.
21578         * tests/test-canonicalize-lgpl.c: Likewise.
21579         * tests/test-memmem.c: Likewise.
21580         * tests/test-ptsname_r.c: Likewise.
21581         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
21582         * modules/canonicalize-lgpl-tests: Likewise.
21583         * modules/memmem-tests: Likewise.
21584         * modules/ptsname_r-tests: Likewise.
21585         Reported by Jim Meyering.
21587 2017-03-03  Bruno Haible  <bruno@clisp.org>
21589         doc: Mention Mac OS X deficiencies regarding semaphores.
21590         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
21591         * doc/posix-functions/sem_destroy.texi: Likewise.
21592         * doc/posix-functions/sem_getvalue.texi: Likewise.
21594 2017-03-03  Bruno Haible  <bruno@clisp.org>
21596         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
21597         Reported by Assaf Gordon <assafgordon@gmail.com> via
21598         Pádraig Brady <P@draigBrady.com>.
21599         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
21600         semaphores.
21601         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
21602         (atomic_int_semaphore): New macro.
21604 2017-02-28  Bruno Haible  <bruno@clisp.org>
21606         perror tests: Tweak for z/OS.
21607         Reported by Daniel Richard G. <skunk@iskunk.org>.
21608         * tests/test-perror.sh: Don't fail z/OS style perror output.
21610 2017-02-26  Bruno Haible  <bruno@clisp.org>
21612         nproc: Refactor large function.
21613         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
21614         from num_processors.
21615         (num_processors): In this function, only deal with OMP.
21617 2017-02-26  Pádraig Brady  <P@draigBrady.com>
21619         nproc: adjust handling of OpenMP environment variables
21620         to match the return value from omp_get_num_threads(), i.e.:
21621          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
21622          - Treat 0 as an invalid value and ignore
21623         Also remove the call to omp_get_num_threads() because
21624         it's ineffective without the omp pragmas in place.
21625         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
21626         so that it can be ignored.
21627         (num_processors): Honor OMP_THREAD_LIMIT even without
21628         OMP_NUM_THREADS being set.  Also fix a typo in the environment
21629         variable being checked, from the previous recent commit.
21631 2017-02-26  Pádraig Brady  <P@draigBrady.com>
21633         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
21634         * lib/nproc.c (parse_omp_threads): A new function refactored
21635         from num_processors() to support parsing both of the
21636         above environment variables.
21637         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
21638         to accurately reflect the current OpenMP nesting level.
21639         Also support the OMP_THREAD_LIMIT environment variable
21640         to limit the max value determined from OMP_NUM_THREADS.
21641         * modules/nproc: Depend on minmax header.
21642         Suggested by Oliver Heimlich.
21644 2017-02-25  Bruno Haible  <bruno@clisp.org>
21646         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
21647         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
21649 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
21651         ftoastr: port to -Wdouble-promotion
21652         Work around -Wdouble-promotion false alarm in recent GCCs.
21653         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
21654         (ftoastr_snprintf, FTOASTR): Use it.
21656 2017-02-21  Bruno Haible  <bruno@clisp.org>
21658         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
21659         Reported by Rene Saavedra <rennes@openmailbox.org> in
21660         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
21661         * lib/glthread/lock.h: On glibc systems without
21662         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
21663         implementation of rwlocks.
21664         * lib/glthread/lock.c: Likewise.
21666 2017-02-20  Bruno Haible  <bruno@clisp.org>
21668         lock tests: Fix build failure on z/OS.
21669         Reported by Daniel Richard G. <skunk@iskunk.org>.
21670         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
21671         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
21672         exist.
21674 2017-02-19  Bruno Haible  <bruno@clisp.org>
21676         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
21677         This helps when CC=clang.
21678         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
21679         of /usr/bin/gcc.
21681         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
21682         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
21684 2017-02-19  Bruno Haible  <bruno@clisp.org>
21686         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
21687         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
21688         --with-tests --single-configure is specified.
21690 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
21692         users.txt: Update links, use HTTPS where possible
21693         * users.txt: Updated to HTTPS where possible,
21694         fixed some links to new locations.
21696 2017-02-16  Bruno Haible  <bruno@clisp.org>
21698         xbinary-io: Fix inlining.
21699         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
21701 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
21703         xbinary-io: rename from xsetmode
21704         This patch is taken from suggestions by Bruno Haible in:
21705         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
21706         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
21707         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
21708         not ENOTTY, when it is an inappropriate device.
21709         * lib/binary-io.h (SET_BINARY): Resurrect.
21710         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
21711         (xset_binary_mode_error): Rename from xsetmode_error.
21712         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
21713         (xset_binary_mode): Rename from xsetmode.
21714         All uses changed.
21715         * modules/xbinary-io: Rename from modules/xsetmode.
21716         Update file names.
21717         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
21718         * NEWS: Update to match revised behavior.
21720 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
21722         tests: Adjust to recent SET_BINARY change
21723         * tests/test-binary-io.c (main):
21724         * tests/test-binary-io.sh: Remove test for SET_BINARY.
21725         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
21726         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
21727         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
21729         xsetmode: new module
21730         This is to fix a problem noted by Eric Blake.
21731         Code was using xfreopen to change files to binary mode, but this
21732         fails for stdout when in append mode.  Such code should use
21733         xsetmode instead.
21734         * NEWS: Document incompatible changes to binary-io module.
21735         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
21736         New function.
21737         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
21738         (set_binary_mode): New function, which also checks for tty.
21739         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
21741 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
21743         headers: fix begin-end typos
21744         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
21745         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
21747         selinux-h: port to PGI 16.10
21748         * lib/se-selinux.in.h: Don't assume that include_next skips over
21749         duplicate -I DIR options.
21751         argp: port to PGI 16.10
21752         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
21754 2017-02-13  Darshit Shah  <darnir@gnu.org>
21756         unicase: Update function protoype to match definition.
21757         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
21758         uses 'size_t' as the datatype for the 'len' parameter in the functions
21759         it generates. Update the prototype specified here to match the newly
21760         generated function.
21762 2017-02-12  Bruno Haible  <bruno@clisp.org>
21764         times test: Avoid gcc warnings on Linux/x32.
21765         * tests/test-times.c (main): Really cast printf arguments from clock_t
21766         to 'long int'.
21768 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
21770         glob: port better to emscripten
21771         Problem reported by Bruno Haible in:
21772         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
21773         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
21775 2017-02-11  Bruno Haible  <bruno@clisp.org>
21777         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
21778         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
21779         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
21780         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
21781         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
21782         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
21783         Distinguish hppa64 from hppa.
21785 2017-02-10  Bruno Haible  <bruno@clisp.org>
21787         search: Don't assume that tsearch() exists if 'VISIT' is defined.
21788         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
21789         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
21790         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
21792 2017-02-09  Bruno Haible  <bruno@clisp.org>
21794         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
21795         * doc/gnulib.texi (Libtool and Windows): Recommend
21796         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
21797         Reported by Reuben Thomas <rrt@sc3d.org>.
21799 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
21801         stddef-tests: port to SIZE_MAX <= INT_MAX
21802         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
21803         Do not assume that INT_MAX < SIZE_MAX.
21805 2017-02-01  Bruno Haible  <bruno@clisp.org>
21807         lock tests: Fix link error.
21808         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
21809         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21811 2017-01-31  Bruno Haible  <bruno@clisp.org>
21813         lock: Fix link error (regression from 2017-01-05).
21814         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
21815         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
21816         pthread_rwlockattr_destroy weak.
21817         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21819 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
21821         Port to PGI 16.10 x86-64
21822         This patch fixes one real bug in gl_anylinked_list2.h, along with
21823         some minor glitches that are not bugs.  It does not silence PGI’s
21824         thousands of bogus warnings when compiling test-intprops.c.
21825         Fortunately, the warnings do not cause a failure.
21826         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
21827         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
21828         My goodness, PGI goes back a long ways - this predates C89!
21829         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
21830         For example, ASYNCSAFE (const void *) should expand to
21831         ‘const void *volatile’, not to ‘volatile const void *’.
21832         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
21833         * lib/verify.h (verify) [!__GNUC__]:
21834         Use shorter albeit meaningless string to bypass silly compiler limits.
21835         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
21836         * tests/nan.h (NaNf, NaNd, NaNl):
21837         Use static functions to avoid misguided compiler diagnostics.
21838         Is there some reason we don’t use static functions on all platforms?
21840 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
21842         parse-datetime: handle timezones reentrantly
21843         This API change was prompted by a report by Pádraig Brady in:
21844         https://bug.debian.org/851934#10
21845         To help fix the bug, make parse_datetime2 more reentrant.
21846         * NEWS: Document this incompatible change.
21847         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
21848         Add two arguments, the timezone and the timezone name.
21849         All callers changed.  If TZ="..." is specified, use it for
21850         calculating defaults.
21851         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
21852         this code should be usable in a library.
21853         (mktime_ok, get_effective_timezone):
21854         Accept timezone arg too.  All callers changed.
21855         (get_tz): Remove.
21856         (get_effective_timezone): Check for failures.
21858 2017-01-20  Eric Blake  <eblake@redhat.com>
21860         localename: port to cygwin 2.6
21861         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
21862         Cygwin.
21863         * modules/localename (Depends-on): Add extensions, since
21864         NL_LOCALE_NAME() is not visible without it.
21866 2017-01-17  Pádraig Brady  <P@draigBrady.com>
21868         parse-datetime: fix dependence on AC_PROG_SED
21869         * modules/parse-datetime: Use `sed` directly like all other modules.
21870         Reported by J William Piggott
21872 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
21874         intprops: update doc URLs
21875         * doc/intprops.texi (Integer Range Overflow): Update URLs.
21877 2017-01-16  Bruno Haible  <bruno@clisp.org>
21879         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
21880         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
21881         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
21882         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
21883         distinguish s390 and s390x.
21884         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
21885         * NEWS: Mention the change regarding 'armel'.
21887 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
21889         localeinfo: case_folded_counterparts and WEOF
21890         * NEWS: Document this.
21891         * lib/localeinfo.c (case_folded_counterparts):
21892         First arg is now wint_t, not wchar_t.  This generalizes the
21893         function to also work on WEOF, where it returns 0.
21895         dfa: port to gcc -fsanitize=undefined
21896         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
21897         as this runs afoul of gcc -fsanitize=undefined.
21899 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
21901         strftime: %z is -00 if unknown
21902         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
21903         the caller's responsibility to set 'negative_number'.  All uses changed.
21904         (__strftime_internal): Put '-' before a zero UTC offset if the time
21905         zone abbreviation starts with "-", which is the recently-introduced
21906         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
21907         * tests/test-strftime.c: Test for this.
21909 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
21911         dfa: port to older GCC
21912         Problem reported by Assaf Gordon in:
21913         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
21914         * modules/c99: New module.  This merely attempts to use the latest
21915         C version, which should be enough to solve this particular problem.
21916         The idea is to document which Gnulib modules assume C99 or later.
21917         * modules/dfa (Depends-on): Add it.
21919 2017-01-10  Bruno Haible  <bruno@clisp.org>
21921         Update DEPENDENCIES.
21922         * DEPENDENCIES: List only https URLs. Update recommended version for
21923         autoconf, automake, gperf.
21925 2017-01-10  Jim Meyering  <meyering@fb.com>
21927         maint.mk: enforce spelling of "timestamp" (i.e., no space)
21928         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
21929         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
21931 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
21933         dfa: minor simplification with emptyset
21934         * lib/dfa.c (build_state): Simplify by using emptyset.
21936 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
21938         dfa: shrink constraints from 4 bits to 3
21939         * lib/dfa.c (newline_constraint, letter_constraint)
21940         (other_constraint, prev_newline_dependent)
21941         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
21942         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
21943         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
21944         Constraints need only 3 bits, not 4.  Using smaller integers
21945         shrinks the code a bit and makes grep a tad faster on x86-64.
21947         dfa: omit unnecessary ptrdiff_t check
21948         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
21949         overflow, since xnmalloc does that now.
21951         dfa: omit unnecessary allocation
21952         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
21953         an all-zero follow set works just fine.
21955         dfa: omit unused local
21956         * lib/dfa.c (build_state): Fix up recent change.
21958         maint: remove stray .texi files
21959         Although these were superseded by other files like
21960         doc/posix-functions/ctime.texi, the old files were not removed.
21961         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
21963 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
21965         getprogname: fix port to IRIX
21966         * lib/getprogname.c (getprogname) [__sgi]:
21967         Don't dump core if malloc returns NULL.
21969         dfa: fix reallocation bug when matching newlines
21970         Problem reported for sed by S. Gilles (Bug#25390).
21971         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
21972         (dfastate): Reallocate before moving any newline transition ...
21973         (build_state): ... instead of reallocating here, where it is too late.
21975 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
21977         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
21978         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
21980 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
21982         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
21983         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
21985 2017-01-07  Bruno Haible  <bruno@clisp.org>
21987         stdioext: Port to Minix 3.2 and newer.
21988         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
21989         * lib/fseeko.c (fseeko): Likewise.
21990         Reported by Nelson Beebe via Paul Eggert.
21992 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
21994         getprogname: port to IRIX
21995         * lib/getprogname.c (getprogname): Port to IRIX.
21996         Based on an idea by Bastien Roucariès at:
21997         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
21998         via code from Bruno Haible at:
21999         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
22001         localename-tests: port to NetBSD 7
22002         Problem reported by Nelson H. F. Beebe.
22003         * tests/test-localename.c:
22004         Test newlocale and uselocale only if both exist.
22006         glob, intprops, xalloc: work around Clang bug
22007         Work around LLVM bug 16404, which is still not fixed.
22008         https://llvm.org/bugs/show_bug.cgi?id=16404
22009         Problem reported by Nelson H. F. Beebe.
22010         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
22011         Remove.
22012         * lib/glob.c (size_add_wrapv):
22013         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
22014         * lib/xalloc-oversized.h (xalloc_oversized):
22015         Do not use overflow builtins if Clang.
22017         dfa: fix 'return' typo
22018         Problem reported by Nelson H. F. Beebe.
22019         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
22021 2017-01-05  Pádraig Brady  <P@draigBrady.com>
22023         parse-datetime: fix generated paths for coverage files
22024         * modules/parse-datetime: Adjust the paths for parse-datetime.y
22025         within parse-datetime.c, so that gcc generates appropriate .gcno
22026         files, allowing lcov to proceed without error.  Previously it
22027         would error trying to find "lib/lib/parse-datetime.y".
22029 2017-01-05  Pádraig Brady  <P@draigBrady.com>
22031         maint.mk: support parallel execution of coverage
22032         * top/maint.mk (coverage): Run dependencies serially,
22033         thus supporting parallel processing of each one,
22034         particularly build-coverage, which builds and runs tests.
22036 2017-01-05  Bruno Haible  <bruno@clisp.org>
22038         lock tests: Prefer semaphore over mutex.
22039         * tests/test-lock.c (USE_SEMAPHORE): New constant.
22040         (struct atomic_int, init_atomic_int, get_atomic_int_value,
22041         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
22042         Suggested by Torvald Riegel <triegel@redhat.com>.
22044 2017-01-05  Bruno Haible  <bruno@clisp.org>
22046         lock: Provide guarantee to avoid writer starvation for rwlocks.
22047         The rationale is: 1) Read-preferring read-write locks are prone to
22048         writer starvation if the number of reader threads multiplied by the
22049         percentage of time they have the lock held is too high. 2) Write-
22050         preferring read-write locks are the only reliable way to avoid this.
22051         3) There have been reports of 'test-lock' hanging on glibc systems
22052         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
22053         and glibc indeed implements read-preferring rwlocks by default, see
22054         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
22055         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
22056         * m4/pthread_rwlock_rdlock.m4: New file.
22057         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
22058         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
22059         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
22060         of rwlock initialization on glibc systems without
22061         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
22062         of rwlocks altogether on non-glibc systems without
22063         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
22064         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
22065         * lib/glthread/lock.c [USE_POSIX_THREADS]
22066         (glthread_rwlock_init_for_glibc): New function.
22067         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
22068         comment.
22069         [USE_PTH_THREADS]: New implementation of rwlocks.
22070         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
22071         readers.
22072         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
22073         (Depends-on): Add 'extensions'.
22074         * tests/test-rwlock1.c: New file.
22075         * lock-tests (Files): Add it.
22076         (Depends-on): Add usleep.
22077         (Makefile.am): Add test-rwlock1 to the tests.
22079 2017-01-05  Bruno Haible  <bruno@clisp.org>
22081         thread: Fix pth port.
22082         * lib/glthread/thread.h (pth_init): Declare weak.
22083         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
22084         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
22085         function.
22087 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
22089         parse-datetime: fix debug message on lone year number
22090         Input dates such as
22091           date -d "Apr 11 22:59:00 2011"
22092         are parsed as date (Apr 11, with default year 2016), then time, then a
22093         number (2011). Based on the combination of previously seen tokens,
22094         'digits_to_date_time' determines 2011 to be a year value.
22095         This fixes the debug messages to correctly show the updated year.
22096         Before:
22097             $ date --debug -d 'Apr 11 22:59:00 2011'
22098             date: parsed date part: (Y-M-D) 2016-04-11
22099             date: parsed time part: 22:59:00
22100             date: parsed number part: today/this/now
22101         After:
22102             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
22103             date: parsed date part: (Y-M-D) 2016-04-11
22104             date: parsed time part: 22:59:00
22105             date: parsed number part: year: 2011
22106         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
22107         'debug_year_seen' member fields.
22108         (digits_to_date_time): Update 'year_seen' as needed.
22109         (debug_print_current_time): Inform about year updates.
22110         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
22112         parse-datetime: fix local timezone debug messages
22113         "Local timezones" are strings that affect only DST relative to the
22114         default timezone. The debug messages in parse-datetime.y printed
22115         wrong information when encountering local timezones.
22116         Examples:
22117         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
22118              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
22119              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
22120         When the default timezone relates to the zone strings, EET/EEST are
22121         parsed as local timezones (tLOCAL_ZONE), and only change the DST
22122         value (0/1, respectively):
22123              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
22124              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
22125         * lib/parse-datetime.y (debug_print_current_time): If local timezone
22126         was seen, inform about DST change, don't print actual timezone.
22127         (debug_strfdatetime): If local timezone was seen, use default timezone
22128         (and adjust as needed) instead of using incorrect timezone.
22129         (parse_datetime2): Use correct time-zone source string, and adjust
22130         default timezone as needed.
22132         parse-datetime: add debug warning about DST changes
22133         Incorrect date arithmetic due to daylight saving time (DST) are a
22134         common (false) bug report in coreutils.
22135         Detect two such cases and print a warning:
22136         1. year/month/day adjustments (performed on 'struct tm'),
22137            where 'mktime' returns a different isdst value.
22138         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
22139            where the result of 'localtime(3)' on the value will return a
22140            different isdst value.
22141         Note: DST changes could be harmless or unnoticeable.
22142         Examples (with 'TZ=America/New_York'):
22143         Unnoticeable: result is 2016-Dec-14
22144            $ date -d '2016-06-15 EDT + 6 months' +%b
22145            Dec
22146         Unnoticeable: result is 2016-Dec-15 11:00:00
22147            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
22148            2016-12-15
22149         This is unexpected:
22150            $ date -d '2016-06-01 EDT + 6 months' +%F
22151            2016-11-30
22152         The new debug warnings will show:
22153            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
22154            ...
22155            date: warning: daylight saving time changed after date adjustment
22156            ...
22157         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
22158         print an appropriate warning message.
22160         parse-datetime: add debug warning about date arithmetic
22161         Date arithmetic are done directly on the fields of 'struct tm',
22162         which can result in invalid dates. Normalization with 'mktime(3)'
22163         will then produce a different date - which might cause unexpected
22164         results.
22165         Examples:
22166           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
22167           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
22168         Note that date normalization is not inherently wrong and not rejected,
22169         as it has legitimate uses:
22170           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
22171         If the user asked to adjust months but 'mday' changed,
22172         or user asked to adjust years but 'month' changed - warn about it.
22173             $ ./src/date --debug -d '2016-10-31 - 1 month'
22174             ...
22175             date: warning: when adding relative months/years, \
22176                            it is recommended to specify the 15th of the month
22177             ...
22178             date: warning: month/year adjustment resulted in shifted dates:
22179             date:      adjusted Y M D: 2016 09 31
22180             date:    normalized Y M D: 2010 10 01
22181             ...
22182         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
22183         a warning message. Improve recommendation of when to use 15 of the
22184         month or noon for date arithmetic.
22186         parse-datetime: fix debug message of relative part after timezone
22187         Relative part (e.g '+8 days') after a timezone string was not
22188         reported (was only reported after a timezone number). Due to the
22189         parser's structure, timezone strings with numbers were handled
22190         separately.
22191         before:
22192              # Timezone number + relative part: OK
22193              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
22194              ...
22195              date: parsed relative part: -8 day(s)
22196              # Timezone string + relative part: missing
22197              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
22198              [ missing message ]
22199         After: messages are printed in both cases.
22200         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
22202         parse-datetime: fix incorrect debug message on lone number
22203         A lone number is an absolute value, not a relative time part.
22204         before:
22205            $ date --debug -d '20130101'
22206            date: parsed number part: today/this/now
22207         After:
22208            $ ./src/date --debug -d '20130101'
22209            date: parsed number part: (Y-M-D) 2013-01-01
22210         * lib/parse-datetime.y ('item'/'number' tokens): Call
22211         'debug_print_current_time' instead of 'debug_print_relative_time'.
22213 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
22215         doc: modernize for C11 etc.
22216         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
22217         for C11, MinGW, etc.  This responds to Paul Smith's question in:
22218         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
22220         dfa: prefer functions to FETCH_WC macro
22221         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
22222         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
22223         wint_t result into DFA->lex.wctok instead of to a separate arg.
22224         All callers changed.  Move more local decls closer to where
22225         they're used.
22227         dfa: narrow more local var scopes
22228         * lib/dfa.c: Move more local decls to be more local.
22230         dfa: remove duplicate assignment
22231         Problem reported by Bruno Haible in:
22232         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
22233         * lib/dfa.c (parse_bracket_exp): Simplify.
22235 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
22237         dfa: simplify constraint-dependency checking
22238         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
22239         (prev_other_constraint): Remove.
22240         (prev_newline_dependent, prev_letter_dependent):
22241         Simplify, to avoid an unnecessary bitwise AND operation.
22243         dfa: prefer functions and constants to macros
22244         * lib/dfa.c: Prefer constants to macros where either will do.
22245         (streq, isasciidigit, newline_constraint)
22246         (letter_constraint, other_constraint, succeeds_in_context)
22247         (prev_newline_constraint, prev_letter_constraint)
22248         (prev_other_constraint, prev_newline_dependent)
22249         (prev_letter_dependent, accepting, accepts_in_context):
22250         Now static functions instead of function-like macros.
22251         Use lower-case names accordingly.  All uses changed.
22253         dfa: narrow more local var scopes
22254         * lib/dfa.c: Move some more local decls down to nearer where
22255         they're needed.
22257 2016-12-31  Jim Meyering  <meyering@fb.com>
22259         dfa: narrow the scope of many local variables
22260         * lib/dfa.c: Now that we are no longer constrained to c89, move
22261         declarations of many variables (often indices) "down" into the
22262         scope(s) where used or to the point of definition.  This is a
22263         no-semantic-change diff.
22265 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
22267         version-etc: new year
22268         * build-aux/gendocs.sh (version):
22269         * doc/gendocs_template:
22270         * doc/gendocs_template_min:
22271         * doc/gnulib.texi:
22272         * lib/version-etc.c (COPYRIGHT_YEAR):
22273         Update copyright dates by hand in templates and the like.
22274         * all files: Run 'make update-copyright'.
22276 2016-12-31  Eric Blake  <eblake@redhat.com>
22278         do-release-commit-and-tag: avoid shell syntax error
22279         * build-aux/do-release-commit-and-tag (curr_br): $branch can
22280         contain spaces when rebasing.
22282         maint.mk: hoist gnulib_dir definition earlier
22283         * top/maint.mk (gnulib_dir): Move near top of file.
22285 2016-12-31  Jim Meyering  <meyering@fb.com>
22287         maint.mk: do not always evaluate intprops-related shell
22288         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
22289         using gnulib_dir undefined (gnulib_dir is defined later in the
22290         file, which will be fixed separately), and besides, there is no
22291         need to incur the cost of this shell invocation for every single
22292         use of this .mk file.  Reported by Eric Blake in
22293         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
22295 2016-12-30  Jim Meyering  <meyering@fb.com>
22297         maint.mk: improve sc_prohibit_intprops_without_use
22298         * top/maint.mk (_intprops_names): Don't hard-code the list of
22299         symbol names.  Instead, derive it on the fly.
22301 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
22303         dfa: shorten sbit, success
22304         * lib/dfa.c (struct regex_syntax.sbit):
22305         (struct dfa.success): Use char, not int, for array elements, since
22306         they are all in the range 0..7.
22308         dfa: simplify multibyte_prop etc.
22309         This follows up on a change made when dfa.c was in grep, namely grep
22310         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
22311         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
22312         That earlier simplification allows for some more simplification
22313         and trimming down here.
22314         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
22315         (struct lexer_state): New mamber brack.
22316         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
22317         since they must be in the range 0..3 now.
22318         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
22319         the brack member now supersedes them.
22320         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
22321         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
22322         (dfaparse): Remove unnecessary initializations of already-0 storage.
22323         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
22324         (dfassbuild): No need to clear sup->mbcsets.
22326         dfa: minor performance tweak
22327         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
22329         dfa: wrap charclass inside a struct
22330         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
22331         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
22332         about 5% faster, where list.txt is generated by 'aspell dump
22333         master | head -n 100000 >list.txt'.  See Bug#22239.
22334         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
22335         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
22336         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
22337         Adjust to this, e.g., by using charclass * rather than charclass.
22338         All callers changed as needed.
22339         (copyset): Remove.  All uses changed to simple assignment.
22340         (parse_bracket_exp): Use zeroset instead of memset.
22342 2016-12-30  Jim Meyering  <meyering@fb.com>
22344         maint.mk: update list of intprops.h symbol names
22345         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
22346         This avoids a false failure of the sc_prohibit_intprops_without_use
22347         rule in grep.
22349 2016-12-29  Eric Blake  <eblake@redhat.com>
22351         getopt: fix parallel test failure
22352         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
22353         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
22354         * tests/test-getopt-main.h (main): Use different file names
22355         in case test-getopt-gnu and test-getopt-posix run in parallel.
22357 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
22359         xalloc: x2nrealloc check for ptrdiff_t overflow
22360         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
22361         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
22363 2016-12-24  Bruno Haible  <bruno@clisp.org>
22365         lock test: Fix performance problem on multi-core machines.
22366         * tests/test-lock.c (USE_VOLATILE): New macro.
22367         (struct atomic_int): New type.
22368         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
22369         functions.
22370         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
22371         as 'struct atomic_int'.
22372         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
22373         reclock_checker_thread, test_recursive_lock): Use the new functions.
22374         Reported by Eric Blake in
22375         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
22376         and by Pádraig Brady in
22377         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
22379 2016-12-19  Bruno Haible  <bruno@clisp.org>
22381         vma-iter: Fix endless loop on 64-bit Windows.
22382         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
22383         'unsigned long'.
22385 2016-12-19  Bruno Haible  <bruno@clisp.org>
22387         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
22388         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
22389         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
22390         Invoke gt_TYPE_WINT_T instead.
22391         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
22392         * modules/stdint (Files): Add m4/wint_t.m4.
22393         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
22394         * modules/wctype-h (Makefile.am): Likewise.
22395         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
22396         not only on MSVC.
22397         * lib/wctype.in.h (wint_t): Likewise.
22399 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
22401         getopt-posix-tests: fix Makefile typo
22402         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
22403         Fix typo: the last ‘_’ was missing in the name.
22404         I suspect that the typo explains this build failure:
22405         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
22406         although I can’t reproduce the problem on Solaris 10 sparc.
22408 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
22410         dfa: improve worst-case 'replace' performance
22411         See my note in Bug#22357#71.
22412         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
22413         (merge_constrained): New function, which is like
22414         the old 'merge' function, except with a new argument C2.
22415         Simplify the body by avoiding the need for different sections
22416         of code depending on whether one input is exhausted.
22417         (merge): Use the new function.
22418         (delete): Return the constraint of the deleted position,
22419         not the entire position.  Caller changed.
22420         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
22422 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
22424         dfa: performance improvement for removal of epsilon closure
22425         See Bug#22357#32.
22426         * lib/dfa.c (delete): Use binary search to find deleted index.
22427         (replace): New function.  It replaces a position with the followed set.
22428         (epsclosure): Replace it with a new algorithm.  Update caller.
22430 2016-12-18  Bruno Haible  <bruno@clisp.org>
22432         Split tests for getopt-posix and getopt-gnu.
22433         * tests/test-getopt-posix.c: New file.
22434         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
22435         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
22436         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
22437         GNULIB_TEST_GETOPT_GNU.
22438         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
22439         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
22440         (Makefile.am): Test test-getopt-posix instead of test-getopt.
22441         * modules/getopt-gnu-tests: New file.
22442         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
22444 2016-12-18  Bruno Haible  <bruno@clisp.org>
22446         posix-modules: Add options for specific platforms.
22447         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
22448         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
22449         Invoke func_tmpdir. Filter out the excludes.
22451 2016-12-18  Bruno Haible  <bruno@clisp.org>
22453         getopt: Fix link error for users of getopt() in <unistd.h>.
22454         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
22455         __need_getopt is defined. Undefine all macros before defining them.
22456         * modules/getopt (Include): Clarify that including <unistd.h> is also
22457         OK.
22458         * tests/test-getopt.c: Add comment.
22460 2016-12-17  Bruno Haible  <bruno@clisp.org>
22462         getaddrinfo tests: Avoid compilation error on MSVC.
22463         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
22464         getaddrinfo on native Windows.
22466 2016-12-17  Bruno Haible  <bruno@clisp.org>
22468         getlogin, getlogin_r: Fix link errors on MSVC.
22469         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
22470         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
22471         (Link): New section.
22472         * modules/getlogin_r (Files): Add m4/getlogin.m4.
22473         (configure.ac): Require gl_LIB_GETLOGIN.
22474         (Link): New section.
22475         * NEWS: Mention the new link requirements.
22476         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
22477         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
22479 2016-12-17  Bruno Haible  <bruno@clisp.org>
22481         Un-deprecate the 'progname' module.
22482         * NEWS: Describe the appropriate use-cases of 'progname' versus
22483         'getprogname'. Based on discussion summary at
22484         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
22486 2016-12-17  Bruno Haible  <bruno@clisp.org>
22488         Reorganize NEWS a bit.
22489         * NEWS: Move some not so important changes away from section
22490         "Important Notes".
22492 2016-12-17  Bruno Haible  <bruno@clisp.org>
22494         tanhf: Avoid redefinition error on MSVC.
22495         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
22496         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
22497         may be defined as an inline function.
22498         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
22499         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
22501 2016-12-17  Bruno Haible  <bruno@clisp.org>
22503         tanf: Avoid redefinition error on MSVC.
22504         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
22505         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
22506         may be defined as an inline function.
22507         * modules/math (Makefile.am): Substitute REPLACE_TANF.
22508         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
22510 2016-12-17  Bruno Haible  <bruno@clisp.org>
22512         sqrtf: Avoid redefinition error on MSVC.
22513         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
22514         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
22515         may be defined as an inline function.
22516         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
22517         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
22519 2016-12-17  Bruno Haible  <bruno@clisp.org>
22521         sinhf: Avoid redefinition error on MSVC.
22522         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
22523         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
22524         may be defined as an inline function.
22525         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
22526         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
22528 2016-12-17  Bruno Haible  <bruno@clisp.org>
22530         sinf: Avoid redefinition error on MSVC.
22531         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
22532         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
22533         may be defined as an inline function.
22534         * modules/math (Makefile.am): Substitute REPLACE_SINF.
22535         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
22537 2016-12-17  Bruno Haible  <bruno@clisp.org>
22539         logf: Avoid redefinition error on MSVC.
22540         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
22541         may be defined as an inline function.
22543 2016-12-17  Bruno Haible  <bruno@clisp.org>
22545         log10l: Avoid redefinition error on MSVC.
22546         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
22547         may be defined as an inline function.
22549 2016-12-17  Bruno Haible  <bruno@clisp.org>
22551         log10f: Avoid redefinition error on MSVC.
22552         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
22553         may be defined as an inline function.
22555 2016-12-17  Bruno Haible  <bruno@clisp.org>
22557         hypotl: Avoid redefinition error on MSVC.
22558         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
22559         may be defined as an inline function.
22561 2016-12-17  Bruno Haible  <bruno@clisp.org>
22563         hypotf: Avoid redefinition error on MSVC.
22564         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
22565         may be defined as an inline function.
22567 2016-12-17  Bruno Haible  <bruno@clisp.org>
22569         fmodl: Avoid redefinition error on MSVC.
22570         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
22571         may be defined as an inline function.
22573 2016-12-17  Bruno Haible  <bruno@clisp.org>
22575         fmodf: Avoid redefinition error on MSVC.
22576         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
22577         may be defined as an inline function.
22579 2016-12-17  Bruno Haible  <bruno@clisp.org>
22581         expf: Avoid redefinition error on MSVC.
22582         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
22583         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
22584         may be defined as an inline function.
22585         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
22586         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
22588 2016-12-17  Bruno Haible  <bruno@clisp.org>
22590         coshf: Avoid redefinition error on MSVC.
22591         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
22592         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
22593         may be defined as an inline function.
22594         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
22595         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
22597 2016-12-17  Bruno Haible  <bruno@clisp.org>
22599         cosf: Avoid redefinition error on MSVC.
22600         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
22601         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
22602         may be defined as an inline function.
22603         * modules/math (Makefile.am): Substitute REPLACE_COSF.
22604         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
22606 2016-12-17  Bruno Haible  <bruno@clisp.org>
22608         atan2f: Avoid redefinition error on MSVC.
22609         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
22610         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
22611         may be defined as an inline function.
22612         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
22613         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
22615 2016-12-17  Bruno Haible  <bruno@clisp.org>
22617         atanf: Avoid redefinition error on MSVC.
22618         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
22619         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
22620         may be defined as an inline function.
22621         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
22622         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
22624 2016-12-17  Bruno Haible  <bruno@clisp.org>
22626         asinf: Avoid redefinition error on MSVC.
22627         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
22628         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
22629         may be defined as an inline function.
22630         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
22631         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
22633 2016-12-17  Bruno Haible  <bruno@clisp.org>
22635         acosf: Avoid redefinition error on MSVC.
22636         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
22637         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
22638         may be defined as an inline function.
22639         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
22640         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
22642 2016-12-17  Bruno Haible  <bruno@clisp.org>
22644         Avoid redefinition errors on MSVC.
22645         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
22646         the function may be defined as an inline function.
22647         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
22648         the function may be defined as an inline function.
22650 2016-12-17  Bruno Haible  <bruno@clisp.org>
22652         Avoid redefinition errors on MSVC.
22653         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
22654         * lib/unistd.in.h: Include <stdio.h> when necessary.
22656 2016-12-17  Bruno Haible  <bruno@clisp.org>
22658         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
22659         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
22660         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
22661         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
22662         WINT_MAX.
22664 2016-12-17  Bruno Haible  <bruno@clisp.org>
22666         Avoid autoconf warning.
22667         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
22668         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
22670 2016-12-17  Bruno Haible  <bruno@clisp.org>
22672         fpending: Revert workaround against Emacs bug.
22673         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
22674         The Emacs bug is fixed by Eli Zaretskii in
22675         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
22677 2016-12-17  Bruno Haible  <bruno@clisp.org>
22679         getlogin_r tests: Port to mingw.
22680         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
22681         regression introduced on 2014-05-19.
22683 2016-12-17  Bruno Haible  <bruno@clisp.org>
22685         getlogin: Port to newer mingw.
22686         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
22687         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
22688         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
22689         HAVE_GETLOGIN.
22690         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
22691         HAVE_GETLOGIN.
22692         * doc/posix-functions/getlogin.texi: Mention the issue.
22693         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
22694         regression introduced on 2014-05-14.
22696 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
22698         builtin-expect: improve port to IBM XL C
22699         Problem reported for z/OS by Daniel Richard G. in:
22700         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
22701         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
22702         Test for <builtins.h> directly.
22704         builtin-expect: port to IBM XL C
22705         Problem reported for z/OS by Daniel Richard G. in:
22706         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
22707         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
22708         Also allow __builtin_expect defined via a standard include file.
22710         regex: fix dependency
22711         Problem reported by Bruno Haible in:
22712         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
22713         * modules/regex: Depend on builtin-expect.
22715         builtin-expect: new module
22716         Fix fnmatch to use it.
22717         Problem reported for z/OS by Daniel Richard G.
22718         * lib/fnmatch.c (__builtin_expect):
22719         * lib/glob.c (__builtin_expect):
22720         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
22721         * lib/memmem.c (__builtin_expect) [!_LIBC]:
22722         * lib/scandir.c (__builtin_expect):
22723         * lib/strstr.c (__builtin_expect) [!_LIBC]:
22724         Remove macro; config.h now does this.
22725         * lib/gl_anytreehash_list1.h (add_to_bucket):
22726         * lib/regex_internal.h (BE):
22727         Assume __builtin_expect.
22728         * m4/builtin-expect.m4, modules/builtin-expect: New files.
22729         * modules/avltreehash-list, modules/fnmatch, modules/glob:
22730         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
22731         * modules/scandir, modules/strstr-simple:
22732         Depend on builtin-expect.
22734 2016-12-15  Bruno Haible  <bruno@clisp.org>
22736         init.sh: Add possibility to not delete temporary files.
22737         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
22738         to yes, don't erase the temporary directory.
22740 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
22742         regex: fix integer-overflow bug in never-used code
22743         Problem reported by Clément Pit–Claudel in:
22744         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
22745         * lib/regex_internal.h: Include intprops.h.
22746         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
22747         behavior on integer overflow.
22748         * modules/regex (Depends-on): Add intprops.
22750         fpending: fix port to MinGW on Emacs
22751         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
22752         Problem reported by Eli Zaretskii in:
22753         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
22754         Is Plan 9 still a valid porting target, anyway?
22756 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
22758         safe-alloc: use xalloc-oversized
22759         * lib/safe-alloc.c: Include xalloc-oversized.h.
22760         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
22761         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
22763         xalloc: do not exceed PTRDIFF_MAX
22764         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
22765         xalloc_oversized check, since objects larger than PTRDIFF_MAX
22766         bytes have pointer-subtraction problems.
22768         malloca: do not exceed PTRDIFF_MAX
22769         * lib/malloca.h: Include xalloc-oversized.
22770         (nmalloca): Use xalloc_oversized instead of rolling our own.
22771         * modules/malloca (Depends-on):
22772         * modules/relocatable-prog-wrapper (Depends-on):
22773         Add xalloc-oversized.
22775         quotearg: pacify GCC better
22776         * modules/quotearg (Depends-on): Add minmax, stdint.
22777         * lib/quotearg.c: Include minmax.h, stdint.h.
22778         (nslots): Now int, as there seems little point to going to extra
22779         work merely to support the INT_MAX slot, which nobody ever uses.
22780         (quotearg_n_options): Redo size-overflow checks to pacify GCC
22781         and to catch (mostly-theoretical) ptrdiff_t problems too.
22782         This can be done via one comparison.
22784 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
22786         xalloc-oversized: check for PTRDIFF_MAX too
22787         This avoids undefined behavior when subtracting pointers to
22788         objects containing more than PTRDIFF_MAX bytes.
22789         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
22790         Also return 1 if the result would exceed PTRDIFF_MAX>
22791         * modules/xalloc-oversized (Depends-on):
22792         Add stdint.
22794         dfa: fix glitches in previous commit
22795         Sorry, I don't know how I managed to commit the wrong version.
22796         * lib/dfa.c (MIN): Move up.
22797         (xpalloc): Now static.
22799         dfa: fix some unlikely integer overflows
22800         I found these while reviewing the recent Coverity-related fix.
22801         This patch changes part of dfa.c to prefer ptrdiff_t instead of
22802         size_t for object counts.  Using ptrdiff_t is the style typically
22803         used in Emacs; although it wastes a sign bit as sizes can never be
22804         negative, it makes -fsanitize=undefined more likely to catch
22805         integer overflows in index calculation, and nowadays the upside is
22806         typically more important than the downside.  Although perhaps the
22807         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
22808         of dfa.c already does, since it uses state_num which is signed),
22809         that is a bigger change and is not needed to fix the bugs I found.
22810         * lib/dfa.c: Include stdint.h and intprops.h.
22811         (TOKEN_MAX): New macro.
22812         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
22813         (charclass_index, parse_bracket_exp, addtok, insert, merge)
22814         (realloc_trans_if_necessary, free_mbdata):
22815         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
22816         This is safe because xpalloc checks that the sizes do not exceed
22817         either SIZE_MAX or PTRDIFF_MAX.
22818         (xpalloc): New function, mostly taken from Emacs.
22819         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
22820         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
22821         (charclass_index): Check for integer overflow in computing
22822         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
22823         added to it later.
22824         (alloc_position_set): Check for integer overflow.  On typical
22825         platforms this check has zero overhead, since the constant
22826         expression is false.
22827         (realloc_trans_if_necessary):
22828         Remove assertion, which I hope Coverity no longer needs.
22830         * modules/dfa (Depends-on): Add intprops, stdint.
22832 2016-12-12  Jim Meyering  <meyering@fb.com>
22834         dfa: add an assertion to avoid coverity false positive
22835         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
22836         warned that "newalloc1 - 2" could overflow.
22838 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
22840         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
22841         * dfa.h (DFA_CASE_FOLD): Remove.
22842         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
22844 2016-12-13  John W. Eaton  <gnu@jweaton.org>
22846         link: fix test to declare use of rename()
22847         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
22848         -Werror=implicit-function-declaration
22850 2016-12-12  Bruno Haible  <bruno@clisp.org>
22852         fpending: Port to native Windows with MSVC.
22853         * lib/fpending.c: Include stdio-impl.h.
22854         (__fpending): Include all known implementations. Err out if it's not
22855         ported.
22856         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
22857         * modules/fpending (Files): Add lib/stdio-impl.h.
22858         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
22860 2016-12-12  Bruno Haible  <bruno@clisp.org>
22862         stdioext: Port to native Windows with MSVC.
22863         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
22864         (struct _gl_real_FILE): New type.
22865         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
22866         Windows.
22867         * lib/fbufmode.c (fbufmode): Add code for native Windows.
22868         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
22869         other SystemV derived implementations.
22870         * lib/fpurge.c (fpurge): Likewise.
22871         * lib/freadable.c (freadable): Likewise.
22872         * lib/freadahead.c (freadahead): Likewise.
22873         * lib/freading.c (freading): Likewise.
22874         * lib/freadptr.c (freadptr): Likewise.
22875         * lib/freadseek.c (freadptrinc): Likewise.
22876         * lib/fseeko.c (fseeko): Likewise.
22877         * lib/fseterr.c (fseterr): Likewise.
22878         * lib/fwritable.c (fwritable): Likewise.
22879         * lib/fwriting.c (fwriting): Likewise.
22880         Reported by Gisle Vanem <gvanem@yahoo.no>.
22882 2016-12-11  Jim Meyering  <meyering@fb.com>
22884         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
22885         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
22886         to work with most shells, but not with the one provided by many
22887         Solaris 10 systems, so running configure with such a /bin/sh evokes
22888         e.g., "./configure: syntax error at line 33602: `(' unexpected".
22889         Reported by Assaf Gordon in
22890         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
22892 2016-12-10  Bruno Haible  <bruno@clisp.org>
22894         threadlib: Optimize out runtime test on Solaris >= 10.
22895         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
22896         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
22897         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
22899 2016-12-10  Bruno Haible  <bruno@clisp.org>
22901         stdint: Update doc about Solaris 9.
22902         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
22904 2016-12-09  Bruno Haible  <bruno@clisp.org>
22906         c-ctype tests: Fix link error on Solaris 9.
22907         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
22908         Reported at <https://savannah.gnu.org/bugs/?46827>.
22910 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
22912         dfa: fix performance bug that recomputes trans
22913         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
22914         25 on-demand changes.  The bug caused build_state to reset all
22915         d->trans elements to -2 even when d->trans was already non-null.
22916         Use C99 style decls after statements in this function.
22918         same-inode: port to MinGW
22919         Here st_ino is always 0, so change the definition of SAME_INODE so
22920         that 1 means the two files are the same, 0 with st_ino != 0 means
22921         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
22922         reported by Bruno Haible (Bug#25146).
22923         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
22924         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
22926 2016-12-04  Bruno Haible  <bruno@clisp.org>
22928         javacomp-script: Support Java 7 and 8.
22929         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
22930         target-version 1.7, 1.8.
22932 2016-12-02  Daiki Ueno  <ueno@gnu.org>
22934         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
22935         GPLv2" rewriting.
22937 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
22939         * gnulib-tool (func_import): Adhere to the license guideline when
22940         rewriting the license text to "LGPLv3+ or GPLv2":
22941         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
22943 2016-12-02  Bruno Haible  <bruno@clisp.org>
22945         localcharset: Avoid theoretical buffer overrun.
22946         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
22947         return value from setlocale if it would lead to a buffer overrun.
22949 2016-12-01  Bruno Haible  <bruno@clisp.org>
22951         Relicense some modules under LGPLv2+.
22952         Kevin Cernekee's approval is in
22953         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
22954         * modules/fseterr (License): Change to LGPLv2+.
22955         * modules/mbchar (License): Likewise.
22956         * modules/mbiter (License): Likewise.
22957         * modules/mbsnlen (License): Likewise.
22958         * modules/wcwidth (License): Likewise.
22960 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
22962         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
22963         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
22964         OS/2 kLIBC.
22966 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
22968         alphasort, scandir: Port to OS/2 kLIBC
22969         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
22970         declaration.
22971         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
22973 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
22975         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
22976         * lib/relocatable.c (relocate): Do not touch pathname if it is started
22977         with '/@unixroot'.
22979 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
22981         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
22982         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
22983         OS/2 kLIBC unless TCPV40HDRS is defined.
22985 2016-11-29  Jim Meyering  <meyering@fb.com>
22987         dfa: avoid new infinite loop
22988         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
22989         * lib/dfa.c (dfastate): When constructing a new state table, we could
22990         initially declare that we had found a match, and later find that
22991         constraints eliminate that possibility, yet continue to use the
22992         now stale "matched" indicator.  That would lead to an infinite loop.
22993         The solution is to update "matched" when necessary.
22994         Introduced by commit v0.1-983-g403adf1.
22996 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
22998         dfa: avoid match middle in multibyte character
22999         * lib/dfa.c (transit_state): If fails in matching single byte characters
23000         on a state including period expression in non-UTF8 multibyte locales,
23001         skip trailing bytes.
23002         (dfa_supported): Revert previous change.
23004 2016-11-27  Jim Meyering  <meyering@fb.com>
23006         dfa: avoid false match in non-UTF8 multibyte locales
23007         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
23008         as "not supported" so that callers will resort to using regex-based
23009         matcher.  This will surely hurt performance, but correctness trumps
23010         performance here, and the affected locales are less and less relevant,
23011         these days.  See grep's bug report https://bugs.gnu.org/24975.
23013 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
23015         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
23016         * lib/ptsname_r.c: Include the appropriate headers.
23017         [__sun]: Delete sys/sysmacros.h include.
23018         [_AIX || __osf__]: Likewise.
23019         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
23021 2016-11-27  Pádraig Brady  <P@draigBrady.com>
23023         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
23024         * lib/md4.c (md4_process_bytes): The existing define is made internal
23025         in recent versions of glibc, so also use this new public define.
23026         * lib/md5.c (md5_process_bytes): Likewise.
23027         * lib/sha1.c (sha1_process_bytes): Likewise.
23028         * lib/sha256.c (sha256_process_bytes): Likewise.
23029         * lib/sha512.c (sha512_process_bytes): Likewise.
23031 2016-11-27  Pádraig Brady  <P@draigBrady.com>
23033         maint: use a more standard return from mbrtowc test
23034         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
23035         from the test program as this often indicates an
23036         unhandled case in the test program.
23037         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
23038         (gl_MBRTOWC_SANITYCHECK): Likewise.
23039         (gl_MBRTOWC_NULL_ARG2): Likewise.
23040         (gl_MBRTOWC_NUL_RETVAL): Likewise.
23042 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
23044         freopen: work around glibc bug with closed fd
23045         Work around glibc bug#15589, where freopen mishandles the case
23046         where stdin etc. are already closed.
23047         * doc/posix-functions/freopen.texi (freopen): Document the bug.
23048         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
23049         instead of __need_FILE, as the latter does not work with glibc.
23050         Include <fcntl.h>, for open flags.
23051         (rpl_freopen): Work around glibc bug.
23052         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
23053         * modules/freopen (Depends-on): Add fcntl-h.
23054         * tests/test-freopen.c (main): Test for bug.
23056 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23058         fnmatch: fix typo introduced on 2016-08-17
23059         This fixes the port to non-GCC compilers that lack __builtin_expect.
23060         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
23062         dfa: simplify with new function fillset
23063         * lib/dfa.c (fillset): New function.
23064         Use it for clarity when applicable.
23066         dfa: fix glitches with on-demand states
23067         Also, adjust commentary to better match new code.
23068         Some of these glitches predate the recent change.
23069         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
23070         only non-initial states.
23071         (dfastate): Rename locals to better match new roles.
23072         Move them into nested scopes if this is easy.
23073         Omit unnecessary calls to zeroset.
23074         Simplify test for whether to throw in the positions of state 0.
23075         Omit C99-ism (decl after statement) since Gawk still wants C89.
23076         (build_state): Omit unnecessary test and assignment.
23077         Fix some confusion that counted transition tables inaccurately
23078         and could cause a memory leak.
23079         (dfaexec_main): Redo to make it clearer to the compiler that
23080         -1 and -2 are the only negative state numbers here.
23082 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
23084         dfa: addition of new state on demand
23085         * src/dfa.c (dfastate): Add argument UC, the current input character.
23086         Fill only a group including the character in transition table.
23087         (realloc_trans_if_necessary): Add the dummy state which means that a
23088         transition table is assigned but the next state is not assigned.
23089         (build_state): Return the next state.  All callers updated.
23090         (transit_state_singlebyte): If we get the dummy state,
23091         fill the transition table.
23092         (dfaexec_main): Handle the dummy state.
23093         (free_mbdata, dfafree): Consider the dummy state.
23095 2016-11-24  Daiki Ueno  <ueno@gnu.org>
23097         srclist: sync with released gettext
23098         * config/srclist.txt: Set "release" option to the files under
23099         $GETTEXT.
23101 2016-11-24  Daiki Ueno  <ueno@gnu.org>
23103         srclist: add "release" option
23104         * config/srclist.txt: Change the format so that the first column
23105         of each line points to the top-level directory of the source
23106         archive.
23107         * config/srclist-update: Accept "release" option that checks files
23108         from the most recently tagged revision in the source archive.
23110 2016-11-21  Bruno Haible  <bruno@clisp.org>
23112         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
23113         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
23114         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
23115         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
23116         Inline and remove member function 'rpl ()' of the wrapper struct.
23118 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
23120         dfa: fix logic typo
23121         Problem reported by Stephane Chazelas (Bug#24973).
23122         * lib/dfa.c (using_simple_locale): Fix typo that caused some
23123         non-simple locales like fr_FR to be treated as simple.
23125 2016-11-20  Jim Meyering  <meyering@fb.com>
23127         fix test driver leaks: exclude, malloc, realloc
23128         * tests/test-exclude.c (main): Fix trivial leak.
23129         * tests/test-malloc-gnu.c (main): Likewise.
23130         * tests/test-realloc-gnu.c (main): Likewise.
23131         With these changes, grep's tests are now leak free.
23132         I.e., running them with ASAN elicits no failure:
23133           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
23134             AM_LDFLAGS='-fsanitize=address -static-libasan' check
23136 2016-11-11  Bruno Haible  <bruno@clisp.org>
23138         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
23139         * modules/libunistring: (License): Change from LGPL to
23140         "LGPLv3+ or GPLv2".
23141         * modules/libunistring-optional: Likewise.
23142         * modules/unicase/*: Likewise.
23143         * modules/uniconv/*: Likewise.
23144         * modules/unictype/*: Likewise.
23145         * modules/unigbrk/*: Likewise.
23146         * modules/unilbrk/*: Likewise.
23147         * modules/uniname/*: Likewise.
23148         * modules/uninorm/*: Likewise.
23149         * modules/unistdio/*: Likewise.
23150         * modules/unistr/*: Likewise.
23151         * modules/uniwbrk/*: Likewise.
23152         * modules/uniwidth/*: Likewise.
23154 2016-11-12  Bruno Haible  <bruno@clisp.org>
23156         Relicense some modules under LGPLv2+.
23157         Paul Eggert's approval is in
23158         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
23159         Eric Blake's approval is in
23160         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
23161         Ludovic Courtès's approval is in
23162         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
23163         * modules/isnand-nolibm (License): Change to LGPLv2+.
23164         * modules/isnanf-nolibm (License): Likewise.
23165         * modules/isnanl-nolibm (License): Likewise.
23167 2016-11-19  Bruno Haible  <bruno@clisp.org>
23169         Relicense some modules under LGPLv2+.
23170         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
23171         modules/vasnprintf.
23172         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
23173         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
23174         All other significant changes to the files in lib/ of these modules
23175         are from me.
23176         * modules/memcmp2 (License): Change to LGPLv2+.
23177         * modules/amemxfrm (License): Likewise.
23178         * modules/fpieee (License): Likewise.
23179         * modules/fpucw (License): Likewise.
23180         * modules/frexp-nolibm (License): Likewise.
23181         * modules/frexpl-nolibm (License): Likewise.
23182         * modules/printf-frexp (License): Likewise.
23183         * modules/printf-frexpl (License): Likewise.
23184         * modules/printf-safe (License): Likewise.
23185         * modules/signbit (License): Likewise.
23187 2016-11-17  Bruno Haible  <bruno@clisp.org>
23189         Enable Unicode decoder safety unconditionally.
23190         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
23191         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
23192         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
23193         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
23194         * lib/unistr/u8-prev.c (u8_prev): Likewise.
23195         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
23196         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
23197         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
23198         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
23199         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
23200         * lib/unistr/u16-prev.c (u16_prev): Likewise.
23201         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
23202         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
23203         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
23204         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
23205         * lib/unistr/u32-prev.c (u32_prev): Likewise.
23206         * lib/unistr/u32-next.c (u32_next): Likewise.
23207         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
23208         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
23209         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
23210         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
23211         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
23212         CONFIG_UNICODE_SAFETY tests unconditionally.
23213         * tests/unistr/test-u32-mblen.c (main): Likewise.
23214         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
23215         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
23216         * tests/unistr/test-u32-next.c (main): Likewise.
23217         * tests/unistr/test-u32-strmblen.c (main): Likewise.
23218         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
23219         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
23220         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
23221         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
23222         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
23223         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
23224         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
23225         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
23226         * lib/unistr/u16-check.c (u16_check): Update comment.
23227         * NEWS: Mention the changes that callers should be aware of.
23229 2016-11-19  Bruno Haible  <bruno@clisp.org>
23231         relocatable-prog-wrapper: Fix breakage on Cygwin.
23232         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
23233         (Depends-on): Remove intprops.
23234         * lib/relocwrapper.c: Update dependency tree.
23235         (strerror): Undefine.
23236         * build-aux/install-reloc (func_create_wrapper): Do not compile
23237         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
23239 2016-11-19  Bruno Haible  <bruno@clisp.org>
23241         strerror: Make it compile in C++ mode.
23242         * lib/strerror.c (strerror): Ignore the return value of memcpy().
23244 2016-11-15  Pedro Alves  <palves@redhat.com>
23246         sys_time: add gnulib::timeval for C++
23247         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
23248         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
23249         timeval macro.
23251 2016-11-14  Pedro Alves  <palves@redhat.com>
23253         snippet/c++defs: fix real-floating arg functions in C++ mode
23254         Also, define isfinite, isinf, isnan, signbit in the gnulib
23255         namespace instead of in the global namespace.
23256         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
23257         (_GL_END_NAMESPACE): New.
23258         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
23259         (isfinite, isinf, isnan, signbit) [__cplusplus &&
23260         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
23261         instead of in the global namespace.
23262         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
23263         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
23264         of in the global namespace.
23266 2016-11-13  Jim Meyering  <meyering@fb.com>
23268         strftime: don't use __THROW
23269         Each use of __THROW would provoke this from gcc-7-to-be:
23271           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
23272             on unit local functions [-Wattributes]
23273           static int iso_week_days (int, int) __THROW;
23274           ^~~~~~
23275         * lib/strftime.c (__THROW): Don't define.
23276         Remove each use of __THROW.
23277         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
23278         (tm_diff, iso_week_days, __strftime_internal): Likewise.
23280 2016-11-14  Paul Eggert  <eggert@union>
23282         obstack: port to gcc -fcheck-pointer-bounds
23283         Problem found by 'make check' failure on bleeding-edge coreutils
23284         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
23285         6.2.0-5ubuntu12), configured via "./configure
23286         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
23287         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
23288         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
23289         New macro, copied from fts_.h.
23290         (struct _obstack_chunk.contents): Use it.
23292 2016-11-14  Eric Blake  <eblake@redhat.com>
23294         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
23295         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
23296         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
23298 2016-11-14  Pádraig Brady  <P@draigBrady.com>
23300         strptime: fix compile error in recent change
23301         * lib/strptime.c (__strptime_internal): Fix ported code.
23303 2016-11-11  Bruno Haible  <bruno@clisp.org>
23305         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
23306         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
23307         (func_import): Extend determination of license_incompatibilities.
23308         (func_create_testdir): Extend table of license compatibility. Handle
23309         also the licenses GPLv3+, GPL, LGPLv3+.
23311 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
23313         strftime: tune %q
23314         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
23316         Merge strftime.c changes from glibc
23317         This incorporates:
23318         2007-10-16 [BZ #5184] Add tzset_called argument
23319         2008-06-13 [BZ #6612] pass reference to tzset_called around
23320         2009-10-30 Implement Burmese language locale for Myanmar
23321         2010-01-09 Add support for XPG7 testing
23322         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
23323         2015-10-20 Convert miscellaneous function definitions to prototype style
23324         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
23325         it anyway and this lessens the difference between gnulib and glibc.
23326         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
23327         (__THROW): Define if standard headers do not.
23328         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
23329         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
23330         Declare with __THROW.
23331         (__strftime_internal): Rename from strftime_case_. Add arg for
23332         whether tzset is called.  All uses changed.  Call tzset at most
23333         once.  Allow %OC, for Burmese.
23334         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
23335         Don't assume values are in range.
23337 2016-11-12  Eric Blake  <eblake@redhat.com>
23339         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
23340         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
23341         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
23342         different value.
23344 2006-11-12  Pedro Alves  <palves@redhat.com>
23346         Fix gnulib C++ namespace support and std::frexp
23347         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
23348         _GL_CXXALIASWARN.
23350 2006-11-12  Pedro Alves  <palves@redhat.com>
23352         GNULIB_NAMESPACE::func need not pull in rpl_func
23353         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
23354         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
23355         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
23356         struct instead of a function pointer.
23358 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
23360         manywarnings: fix -Wno-missing-field-initializers detection
23361         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
23362         to be independent of -Wunused-variable.  I.E. ensure the latter
23363         warning doesn't occur so that detection of the former is accurate.
23365 2016-11-05  Pádraig Brady  <pbrady@fb.com>
23367         strftime,strptime: support %q to represent the quarter
23368         * lib/strftime.c (strftime_case_): Add %q case.
23369         * lib/strptime.c (__strptime_internal): Likewise.
23370         * tests/test-strftime.c (quarter_test): A new test case.
23372 2016-11-03  Eric Blake  <eblake@redhat.com>
23374         bootstrap: Fix get_version() for AIX 5.3
23375         * build-aux/bootstrap (get_version): Factor out sed script, since
23376         indented comments choke AIX 5.3 sed.
23377         Reported-by: Michael Felt <aixtools@gmail.com>
23379 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
23381         intprops: port to older XL C
23382         Problem reported by Alexander Samoilov in:
23383         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
23384         http://savannah.nongnu.org/bugs/?49448
23385         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
23386         Define to 1 only for XL C 12.1 or later, since this bug
23387         occurs in XL C for AIX 6.0 but not in 12.1.
23389 2016-11-02  Pádraig Brady  <P@draigBrady.com>
23391         backupfile: initialize default suffix within the implementation
23392         * lib/backupfile.c (find_backup_file_name): Initialize the
23393         global variable here, to simplify usage, and to only call
23394         getenv() when needed.
23396 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
23398         futimens: remove FIXME for old Linux kernels
23399         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
23400         this in 2012" FIXME, like that for utimensat.
23402         utimensat: remove FIXME for old Linux kernels
23403         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
23404         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
23405         this in 2012" FIXME, by assuming the file system bug is absent
23406         unless demonstrated to be present.  We no longer need to worry
23407         about Linux kernel 2.6.32 when building with newer kernels.
23409 2016-10-16  Bruno Haible  <bruno@clisp.org>
23411         qsort_r: Fix macrology for platforms that lack the function.
23412         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
23413         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
23414         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
23415         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
23416         not exist.
23417         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
23418         the function exists.
23419         * modules/qsort_r: Add comments.
23421 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
23423         sys_types: fix Texinfo typos
23424         * doc/glibc-functions/gnu_dev_major.texi:
23425         * doc/glibc-functions/gnu_dev_makedev.texi:
23426         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
23428 2016-10-26  John David Anglin  <dave.anglin@bell.net>
23430         getprogname: port to HP-UX
23431         See Bug#24805.
23432         * lib/getprogname.c (getprogname) [__hpux]: Port.
23433         * tests/test-getprogname.c (STREQ) [__hpux]:
23434         Special-case for HP-UX limitations on program name length.
23436 2016-10-20  Bruno Haible  <bruno@clisp.org>
23438         Update doc about target platforms.
23439         * doc/gnulib-intro.texi (Target Platforms): Update list.
23441 2016-10-15  Bruno Haible  <bruno@clisp.org>
23443         opendir, readdir, closedir: Relicense under LGPLv2+.
23444         * modules/opendir (License): Change to LGPLv2+.
23445         * modules/readdir (License): Likewise.
23446         * modules/closedir (License): Likewise.
23448 2016-10-16  Bruno Haible  <bruno@clisp.org>
23450         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
23451         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
23452         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
23453         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
23454         HAVE_DECL_STRERROR_R.
23456 2016-10-16  Bruno Haible  <bruno@clisp.org>
23458         Make the 'argp' module work without the 'error' module.
23459         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
23461 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
23463         diffseq: restore TOO_EXPENSIVE heuristic
23464         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
23465         (Bug#24715).  The simplest solution is to restore the
23466         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
23467         using a higher threshold to avoid Bug#16848 on smaller files.
23468         * lib/diffseq.h (struct context): Restore member too_expensive.
23469         (struct partition): Restore members lo_minimal, hi_minimal.
23470         (diag, compareseq): Restore arg find_minimal.  All uses changed.
23471         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
23472         1993 to make 'diff' run faster (but not as well) on large inputs,
23473         but use a threshold of 4096 instead of the old 256.
23474         * lib/fstrcmp.c (strcmp_bounded):
23475         * lib/git-merge-changelog.c (compute_differences):
23476         Adjust to diffseq.h changes.
23478 2016-10-22  Bruno Haible  <bruno@clisp.org>
23480         iconv: Avoid compilation error when bootstrapping GNU libiconv.
23481         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
23482         declaration yet, define ICONV_CONST to empty.
23484 2016-10-15  Bruno Haible  <bruno@clisp.org>
23486         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
23487         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
23488         module.
23490 2016-10-16  Bruno Haible  <bruno@clisp.org>
23492         system-quote tests: Avoid compiler warning on AIX.
23493         * tests/test-system-quote-child.c (fopen): Redefine like the system's
23494         <stdio.h> does.
23496 2016-10-16  Bruno Haible  <bruno@clisp.org>
23498         Fix some "gcc -Wall" warnings.
23499         * tests/test-ffsl.c (main): Use variable x, not i.
23500         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
23501         freopen.
23502         * tests/test-sethostname1.c (main): Explicitly ignore the return value
23503         of sethostname.
23505 2016-10-16  Bruno Haible  <bruno@clisp.org>
23507         gnulib-tool: Make --create-testdir on all modules work again.
23508         * gnulib-tool (func_create_testdir): Don't include the
23509         non-recursive-gnulib-prefix-hack module.
23511 2016-10-21  Daiki Ueno  <ueno@gnu.org>
23513         libunistring: change the maintainer to 'all'
23514         * modules/gen-uni-tables, modules/libunistring:
23515         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
23516         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
23517         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
23518         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
23519         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
23520         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
23521         * modules/uniwidth/*: Change the maintainer to 'all'.
23523 2016-10-16  Bruno Haible  <bruno@clisp.org>
23525         Simplify "configure: checking ..." messages.
23526         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
23527         AC_MSG_NOTICE.
23528         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
23530 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
23532         quotearg-tests: pacify gcc -Wall
23533         Problem reported by Bruno Haible in:
23534         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
23535         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
23536         * tests/test-quotearg.h: ... from here.
23538 2016-10-20  Pádraig Brady  <P@draigBrady.com>
23540         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
23541         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
23542         Needed on Centos <= 4.
23544 2016-10-20  Jim Meyering  <meyering@fb.com>
23546         printf.m4: fix a bug in detecting printf %j support
23547         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
23548         uintmax_t is defined in neither stdint.h nor inttypes.h.
23549         Before, this macro might have mistakenly set
23550         gl_cv_func_printf_sizes_c99=yes on such a system.
23551         Spotted by Zev Weiss.
23553 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
23555         sched: substitute HAVE_SYS_CDEFS_H too
23556         Problem reported by Tom G. Christensen in:
23557         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
23558         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
23559         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
23561 2016-10-19  Pádraig Brady  <P@draigBrady.com>
23563         quotearg: never write beyond the returned length
23564         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
23565         scan of the string when we initially encounter a single quote when
23566         shell quoting, so that if we then switch to a more concise quoting method
23567         we will not have written beyond that returned length.
23568         This is significant for sh-quote, which has separate routines
23569         to determine the length and do the actual quoting.
23570         * tests/test-quotearg.h: Reinstate the buffer bounds checking
23571         now that we never write more than the returned length.
23573 2016-10-18  Bruno Haible  <bruno@clisp.org>
23575         getprogname tests: Avoid failure in packages that use libtool.
23576         * tests/test-getprogname.c (main): Strip "lt-" prefix.
23577         Based on a patch by Jim Meyering.
23579 2016-10-16  Bruno Haible  <bruno@clisp.org>
23581         getprogname: Fix test failure on Cygwin. Comments.
23582         * lib/getprogname.h: Add comments.
23583         * lib/getprogname.c: Add comments. Fix #elif indentation.
23584         * tests/test-getprogname.c (main): On Cygwin, expect a result without
23585         ".exe" suffix.
23587 2016-10-16  Bruno Haible  <bruno@clisp.org>
23589         Make sure the libunistring detection rejects older versions with a
23590         known bug.
23591         * modules/unistr/u8-strtok (configure.ac): Bump required version.
23592         * modules/unistr/u16-strtok (configure.ac): Likewise.
23593         * modules/unistr/u32-strtok (configure.ac): Likewise.
23595 2016-10-18  Bruno Haible  <bruno@clisp.org>
23597         sh-quote, system-quote: revert regression of unit test.
23598         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
23599         * tests/test-system-quote-main.c (check_one): Likewise.
23601 2016-10-16  Pádraig Brady  <P@draigBrady.com>
23603         quotearg: fix stale tests
23604         * tests/test-quotearg.c [locale_results]: Add the missing str7
23605         entries to the expected results.
23606         * tests/test-system-quote-main.c (check_one): Don't enforce that we
23607         don't write beyond the returned length, since that's no longer the
23608         case if we switch to a more concise quoting style.
23609         * tests/test-sh-quote.c (check_one): Likewise.
23610         (main): Adjust for the new more concise quoting style.
23611         Reported by Bruno Haible.
23613 2016-10-16  Jim Meyering  <meyering@fb.com>
23615         non-recursive-gnulib-prefix-hack: fix inconsequential typo
23616         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
23617         to "$1".  This macro is always invoked with $1 == lib.
23618         Spotted by Bruno Haible
23620 2016-10-16  Bruno Haible  <bruno@clisp.org>
23622         Fix a test crash.
23623         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
23624         fails.
23626 2016-10-16  Pádraig Brady  <P@draigBrady.com>
23628         test-limits-h: suppress -Woverlength-strings
23629         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
23631 2016-10-15  Bruno Haible  <bruno@clisp.org>
23633         gettime, timespec, utimens: Relicense under LGPL.
23634         * modules/gettime (License): Change to LGPL.
23635         * modules/timespec (License): Likewise.
23636         * modules/utimens (License): Likewise.
23638 2016-10-14  Bruno Haible  <bruno@clisp.org>
23639             Pádraig Brady  <P@draigBrady.com>
23641         canonicalize-lgpl: Support the case path_max > INT_MAX.
23642         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
23643         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
23645 2016-10-13  Jim Meyering  <meyering@fb.com>
23647         getprogname: IBM z/OS: avoid NULL-dereference
23648         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
23649         upon strdup failure.
23651 2016-10-12  Jim Meyering  <meyering@fb.com>
23653         test-stdint: use _GL_VERIFY rather than "verify" for some tests
23654         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
23655         and an abbreviated diagnostic rather than verify with the full one,
23656         because the full-length strings would evoke warnings from gcc with
23657         -Woverlength-strings.
23659 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
23661         stdint: port SIZE_MAX to glibc s390
23662         Problem reported by Eric Blake in:
23663         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
23664         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
23665         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
23666         correct type, if possible.
23668 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
23670         getprogname: port to IBM z/OS
23671         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
23673 2016-10-11  Jim Meyering  <meyering@fb.com>
23675         maint: remove stray space after "." in AC_DEFINE comment.
23676         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
23677         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23679 2016-10-05  Jim Meyering  <meyering@fb.com>
23681         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
23682         * lib/long-options.c (parse_long_options): Add a break statement
23683         to avoid this new warning/failure:
23684         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
23685           --create-testdir --dir=/t/x --with-tests --test long-options
23686         ../../gllib/long-options.c: In function 'parse_long_options':
23687         ../../gllib/long-options.c:66:12: error: this statement may \
23688           fall through [-Werror=implicit-fallthrough]
23689                    (*usage_func) (EXIT_SUCCESS);
23690                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
23692 2016-10-05  Jim Meyering  <meyering@fb.com>
23694         utimecmp: avoid new GCC 7 warning from -Wbool-operation
23695         Testing this module would fail when using GCC 7 like this:
23696         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
23697           --dir=/tmp/x --with-tests --test utimecmp
23698         ../../gllib/utimecmp.c: In function ‘utimecmp’:
23699         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
23700           [-Werror=bool-operation]
23701                          time_t s = src_s & ~ (res == 2 * BILLION);
23702                                             ^
23703         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
23704           [-Werror=bool-operation]
23705                src_s &= ~ (res == 2 * BILLION);
23706                         ^
23707         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
23708         Instead, make it explicit that we intend to apply it to 0 or 1.
23710 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
23712         dfa: save memory for states
23713         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
23714         states if dfa has a lot of caches.
23716 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
23718         wchar, wctype-h: fix for MinGW 3.22.2
23719         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
23720         special invocation, to fix issues with MinGW 3.22.2 wchar.h
23721         when included from <string.h>.
23722         * lib/wctype.in.h [__MINGW32__]: Add special invocation
23723         convention for MinGW 3.22.2, to solve issues with their
23724         wctype.h when included from <ctype.h>.
23726 2016-10-05  Jim Meyering  <meyering@fb.com>
23728         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
23729         * lib/long-options.c (parse_long_options): Add a break statement
23730         to avoid this new warning/failure:
23731         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
23732           --create-testdir --dir=/t/x --with-tests --test long-options
23733         ../../gllib/long-options.c: In function ‘parse_long_options’:
23734         ../../gllib/long-options.c:66:12: error: this statement may \
23735           fall through [-Werror=implicit-fallthrough]
23736                    (*usage_func) (EXIT_SUCCESS);
23737                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
23739         utimecmp: avoid new GCC 7 warning from -Wbool-operation
23740         Testing this module would fail when using GCC 7 like this:
23741         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
23742           --dir=/tmp/x --with-tests --test utimecmp
23743         ../../gllib/utimecmp.c: In function ‘utimecmp’:
23744         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
23745           [-Werror=bool-operation]
23746                          time_t s = src_s & ~ (res == 2 * BILLION);
23747                                             ^
23748         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
23749           [-Werror=bool-operation]
23750                src_s &= ~ (res == 2 * BILLION);
23751                         ^
23752         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
23753         Instead, make it explicit that we intend to apply it to 0 or 1.
23755 2016-10-03  Pádraig Brady  <P@draigBrady.com>
23757         quotearg: minimize shell quoting using double quotes
23758         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
23759         quote in encountered then use double quotes (c style quoting)
23760         when possible, as it simplifies the quoting.
23761         * tests/test-quotearg-simple.c: Add test cases.
23762         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
23763         for the fact we now may write beyond the returned length.
23765 2016-10-02  Jim Meyering  <meyering@fb.com>
23767         vasnprintf.c: avoid spurious warning from GCC 7
23768         The presence of cpp directives renders this "FALLTHROUGH" comment
23769         ineffective, so does not suppress the -Wimplicit-fallthrough warning
23770         from GCC 7 built from git on 2016-10-02.
23771         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
23772         directives, so that it takes effect once again.  This is clearly
23773         not a proper change, and I will revert it once this bug is fixed:
23774         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
23776 2016-10-01  Jim Meyering  <meyering@fb.com>
23778         getprogname: correct the test for a __progname variable
23779         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
23780         and AC_LINK_IFELSE to check for a global __progname.  If found,
23781         define HAVE_VAR___PROGNAME.
23782         * lib/getprogname.c (getprogname): Reflect the new name of the
23783         feature- checked preprocessor symbol:
23784         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
23786 2016-09-28  Jim Meyering  <meyering@fb.com>
23788         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
23789         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
23790         fall-through case with a /* fallthrough */ comment.
23792         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
23793         * lib/dfa.c (dfassbuild): Mark the end of this case with a
23794         /* fallthrough */ comment.
23796         getprogname: avoid __progname vs program_invocation_short_name pitfall
23797         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
23798         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
23799         not with Fedora 24's glibc-2.23.1-10.
23800         * lib/getprogname.c (__progname): Move this declaration down...
23801         (getprogname): ... into the #elif block where used, and make it
23802         explicitly "extern".
23804         getprogname: port to OpenBSD 5.1
23805         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
23806         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
23807         * modules/getprogname (configure.ac): Move most of this code...
23808         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
23809         increment serial number, and add a test for __progname.
23810         https://bugs.gnu.org/24562
23811         Reported by Nelson H. F. Beebe.
23813 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
23815         sched: port to GCC 6.2.1 on macOS Sierra
23816         Problem reported by Denis Davydov in:
23817         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
23818         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
23819         Include <sys/cdefs.h> before <sched.h>.
23820         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
23821         so that we needn’t worry about the sched.h include bug here.
23822         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
23823         and include it before <sched.h> if it exists, when
23824         checking for <sched.h>.
23826         tests/init.sh: port Alpine fix to AIX 7.1
23827         * tests/init.sh (compare_): When attempting to use diff -U3,
23828         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
23829         diff -u not outputting a space after leading '+', as the users
23830         of 'compare' should not be that picky about its output format.
23831         In the AIX 7.1 case, return with diff exit status (or with 2 if
23832         trouble), instead of some random nonzero exit status.
23833         * tests/test-init.sh (test_compare): Remove space after leading
23834         '+', so that AIX 7.1 'diff' passes the test.
23836 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
23838         nl_langinfo: pacify GCC
23839         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
23840         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
23842         stdint: also set GL_GENERATE_LIMITS_H
23843         Problem reported by Jim Meyering in:
23844         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
23845         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
23847         limits-h, stdint: Don't assume extensions, fix typo
23848         * m4/limits-h.m4 (gl_LIMITS_H):
23849         * m4/stdint.m4 (gl_STDINT_H):
23850         Don't assume AC_USE_SYSTEM_EXTENSIONS.
23851         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
23852         reported by Jim Meyering in:
23853         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
23855 2016-09-21  Jim Meyering  <meyering@fb.com>
23857         getprogname: port to AIX
23858         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
23859         and strdup to obtain a short program name string.  Using code from
23860         Bruno Haible and an idea from Bastien ROUCARIÈS, in
23861         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
23862         Assaf Gordon reported that this new file would fail to compile on
23863         AIX-7.1 32bit.
23865 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
23867         extensions: fix typo in comment
23868         * m4/extensions.m4: Sync from Autoconf master.
23870         stdint: support new _WIDTH macros
23871         * doc/posix-headers/stdint.texi: Document this.
23872         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
23873         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
23874         support for INTMAX_WIDTH, etc. as well as for support for just C99.
23875         * modules/stdint (Depends-on): Add limits-h.
23876         (Makefile.am): Substitute HAVE_C99_STDINT_H.
23877         * modules/stdint-tests (Depends-on): Add extensions, so that
23878         INTMAX_MAX etc. are defined.
23879         * tests/test-stdint.c: Verify the new macros.
23881         limits-h: new module
23882         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
23883         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
23884         * doc/posix-headers/limits.texi: Document new module.
23885         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
23886         * modules/limit-h-tests, tests/test-limits-h.c: New files.
23888         stdio: don't redefine __USE_MINGW_ANSI_STDIO
23889         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
23890         if it is already defined.  Apparently GNU Emacs relies on this.  See:
23891         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
23893 2016-09-15  Eric Blake  <eblake@redhat.com>
23895         sys_types: avoid glibc 2.25 warnings about major()
23896         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
23897         older autoconf.
23898         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
23899         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
23900         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
23901         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
23903         mountlist: include sysmacros.h for glibc
23904         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
23905         AC_HEADER_MAJOR.
23906         * lib/mountlist.c (includes): Use correct headers.
23908 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
23910         extensions: port to more ISO C TSes
23911         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
23912         master, to add support for more recent ISO C TRs and TSes.
23914 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
23916         intprops: new macro TYPE_WIDTH
23917         * lib/intprops.h (TYPE_WIDTH): New macro.
23918         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
23919         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
23920         * lib/parse-datetime.y (parse_datetime2):
23921         Use it.
23923         extensions: port to recent ISO C TRs
23924         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
23925         Sync from Autoconf master, to add support for recent ISO C TRs.
23926         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
23927         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
23928         the MinGW option is not an extension.
23930 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
23932         dfa: port to Solaris 9
23933         Problems reported by Tom G. Christensen in:
23934         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
23935         * modules/dfa (Depends-on): Add isblank.
23936         * modules/dfa-tests (dfa_match_aux_LDADD):
23937         Rename from test_stat_LDADD, to fix typo.
23938         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
23940 2016-09-10  Jim Meyering  <meyering@fb.com>
23942         strverscmp: avoid link failure on OS X
23943         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
23944         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
23946 2016-08-16  Jim Meyering  <meyering@fb.com>
23948         dfa: new module, importing grep's DFA matcher
23949         Since grep's DFA matcher is now being used by two gnulib-enabled
23950         projects, grep and sed, it makes sense to version-control its
23951         sources and unit tests in one place: here.
23952         * modules/dfa: New module.
23953         * modules/dfa-tests: New file.
23954         * lib/dfa.c: New file, from grep.
23955         * lib/dfa.h: Likewise.
23956         * lib/localeinfo.c: Likewise.
23957         * lib/localeinfo.h: Likewise.
23958         * tests/dfa-match-aux.c: Likewise.
23959         * tests/dfa-invalid-char-class.sh: Likewise.
23960         * tests/dfa-match.sh: Likewise, with minor changes.
23961         * MODULES.html.sh (Misc): Add "dfa" to this list.
23963 2016-09-09  Jim Meyering  <meyering@fb.com>
23965         getprogname-tests: don't depend on assert-h
23966         * modules/getprogname-tests (Depends-on): Remove assert-h.
23967         It was not needed, and in fact would cause build failure for
23968         coreutils on some systems.  Reported by Assaf Gordon in https:
23969         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
23971 2016-09-07  Jim Meyering  <meyering@fb.com>
23973         getprogname-tests: work also when EXEEXT is nonempty
23974         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
23975         * tests/test-getprogname.c (main): Use it.
23976         Suggested by Gisle Vanem.
23978 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
23980         getprogname: fix errors in previous change
23981         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
23982         s/program_invocation_name/base/
23983         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
23985 2016-09-08  Pádraig Brady  <P@draigBrady.com>
23987         parse-datetime: restrict debug output to input string
23988         * lib/parse-datetime.y (parse_datetime2): If we parse
23989         all of the input but determine it's invalid, ensure
23990         we don't output the now invalid input pointer.
23991         This issue was seen with `date -d 'now +1'`.
23993 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
23995         flexmember: new macro FLEXALIGNOF
23996         * lib/flexmember.h: Include <stddef.h>, for offsetof.
23997         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
23998         this macro.  Update comments.
24000 2016-09-07  Jim Meyering  <meyering@fb.com>
24002         getprogname: port to systems with __argv (mingw, msvc)
24003         * lib/getprogname.c (getprogname): Include "dirname.h" and use
24004         last_component: more general than open coding it with hard-coded "/".
24005         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
24006         * modules/getprogname (Depends-on): Add dirname-lgpl.
24007         (configure.ac): Check for __argv in <stdlib.h>.
24008         * modules/getprogname-tests: New file.
24009         * tests/test-getprogname.c: New file.
24010         Suggested by Gisle Vanem in
24011         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
24013 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
24015         flexmember: port better to GCC + valgrind
24016         With a char[] flexible array member in a struct with nontrivial
24017         alignment, GCC-generated code can access past the end of the
24018         array, because GCC assumes there are padding bytes to get the
24019         struct aligned.  So the common idiom of malloc (offsetof (struct
24020         s, m), n) does not properly allocate an n-byte trailing member, as
24021         malloc’s argument should be the next multiple of alignof (struct s).
24022         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
24023         Although C11 apparently permits this GCC optimization (i.e., there
24024         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
24025         See the thread containing:
24026         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
24027         * lib/flexmember.h: New file.
24028         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
24029         * lib/localename.c, lib/time_rz.c:
24030         Include flexmember.h.
24031         * lib/fnmatch_loop.c (struct patternlist):
24032         * lib/localename.c (struct hash_node):
24033         Use FLEXIBLE_ARRAY_MEMBER.
24034         * lib/fnmatch_loop.c (EXT):
24035         * lib/fts.c (fts_alloc):
24036         * lib/glob.c (glob_in_dir):
24037         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
24038         * lib/localename.c (gl_lock_define_initialized):
24039         * lib/time_rz.c (tzalloc):
24040         Use FLEXSIZEOF instead of offsetof.
24041         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
24042         Check that the size of the struct can be taken.
24043         * modules/flexmember (Files): Add lib/flexmember.h.
24044         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
24045         Add flexmember.
24047 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
24049         getprogname: port to Solaris 10
24050         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
24051         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
24052         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
24054         stdalign: correct mistake in alignof doc
24055         Problem reported by Joseph Myers in:
24056         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
24057         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
24058         alignof(S) where S is a structure containing a flexible array
24059         member.  The Gnulib substitute does not support this, but C11 does.
24061 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
24063         main.mk: remove sc_program_name, since there is no more need to
24064         use set_program_name in tools (getprogname is enough for most
24065         of the cases).
24066         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
24067         * top/maint.mk (sc_program_name): Remove.
24069 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
24071         Port tests away from progname, since modules that need the
24072         program name already depend on getprogname.
24073         * modules/acl-tests (Depends-on): Remove progname.
24074         * modules/argmatch (Depends-on): Likewise.
24075         * modules/argmatch-tests (Depends-on): Likewise.
24076         * modules/argp-tests (Depends-on): Likewise.
24077         * modules/argp-version-etc-tests (Depends-on): Likewise.
24078         * modules/array-list-tests (Depends-on): Likewise.
24079         * modules/array-oset-tests (Depends-on): Likewise.
24080         * modules/avltree-list-tests (Depends-on): Likewise.
24081         * modules/avltree-oset-tests (Depends-on): Likewise.
24082         * modules/avltreehash-list-tests (Depends-on): Likewise.
24083         * modules/carray-list-tests (Depends-on): Likewise.
24084         * modules/copy-file-tests (Depends-on): Likewise.
24085         * modules/exclude-tests (Depends-on): Likewise.
24086         * modules/fchownat-tests (Depends-on): Likewise.
24087         * modules/fdopendir-tests (Depends-on): Likewise.
24088         * modules/filenamecat-tests (Depends-on): Likewise.
24089         * modules/fstatat-tests (Depends-on): Likewise.
24090         * modules/fstrcmp-tests (Depends-on): Likewise.
24091         * modules/linked-list-tests (Depends-on): Likewise.
24092         * modules/linkedhash-list-tests (Depends-on): Likewise.
24093         * modules/mkdirat-tests (Depends-on): Likewise.
24094         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
24095         * modules/nonblocking-socket-tests (Depends-on): Likewise.
24096         * modules/obstack-printf-tests (Depends-on): Likewise.
24097         * modules/openat-tests (Depends-on): Likewise.
24098         * modules/parse-datetime-tests (Depends-on): Likewise.
24099         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
24100         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
24101         * modules/quotearg-simple-tests (Depends-on): Likewise.
24102         * modules/quotearg-tests (Depends-on): Likewise.
24103         * modules/rbtree-list-tests (Depends-on): Likewise.
24104         * modules/rbtree-oset-tests (Depends-on): Likewise.
24105         * modules/rbtreehash-list-tests (Depends-on): Likewise.
24106         * modules/spawn-pipe-tests (Depends-on): Likewise.
24107         * modules/system-quote-tests (Depends-on): Likewise.
24108         * modules/uniname/uniname-tests (Depends-on): Likewise.
24109         * modules/uninorm/nfc-tests (Depends-on): Likewise.
24110         * modules/uninorm/nfd-tests (Depends-on): Likewise.
24111         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
24112         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
24113         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
24114         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
24115         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
24116         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
24117         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
24118         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
24119         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
24120         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
24121         * modules/unlinkat-tests (Depends-on): Likewise.
24122         * modules/version-etc-tests (Depends-on): Likewise.
24123         * modules/xalloc-die-tests (Depends-on): Likewise.
24124         * modules/xmemdup0-tests (Depends-on): Likewise.
24125         * modules/xprintf-posix-tests (Depends-on): Likewise.
24126         * modules/xvasprintf-tests (Depends-on): Likewise.
24127         * tests/test-argmatch.c: Do not include progname.h.
24128         (main) Stop calling set_program_name.
24129         * tests/test-argp-version-etc.c: Likewise.
24130         * tests/test-argp.c: Likewise.
24131         * tests/test-argv-iter.c: Likewise.
24132         * tests/test-array_list.c: Likewise.
24133         * tests/test-array_oset.c: Likewise.
24134         * tests/test-avltree_list.c: Likewise.
24135         * tests/test-avltree_oset.c: Likewise.
24136         * tests/test-avltreehash_list.c: Likewise.
24137         * tests/test-carray_list.c: Likewise.
24138         * tests/test-copy-acl.c: Likewise.
24139         * tests/test-copy-file.c: Likewise.
24140         * tests/test-exclude.c: Likewise.
24141         * tests/test-fchownat.c: Likewise.
24142         * tests/test-fdopendir.c: Likewise.
24143         * tests/test-filenamecat.c: Likewise.
24144         * tests/test-fstatat.c: Likewise.
24145         * tests/test-fstrcmp.c: Likewise.
24146         * tests/test-linked_list.c: Likewise.
24147         * tests/test-linkedhash_list.c: Likewise.
24148         * tests/test-mkdirat.c: Likewise.
24149         * tests/test-nonblocking-pipe-main.c: Likewise.
24150         * tests/test-nonblocking-socket-main.c: Likewise.
24151         * tests/test-obstack-printf.c: Likewise.
24152         * tests/test-openat.c: Likewise.
24153         * tests/test-parse-datetime.c: Likewise.
24154         * tests/test-pipe-filter-gi1.c: Likewise.
24155         * tests/test-pipe-filter-gi2-main.c: Likewise.
24156         * tests/test-pipe-filter-ii1.c: Likewise.
24157         * tests/test-pipe-filter-ii2-main.c: Likewise.
24158         * tests/test-quotearg-simple.c: Likewise.
24159         * tests/test-quotearg.c: Likewise.
24160         * tests/test-rbtree_list.c: Likewise.
24161         * tests/test-rbtree_oset.c: Likewise.
24162         * tests/test-rbtreehash_list.c: Likewise.
24163         * tests/test-sameacls.c: Likewise.
24164         * tests/test-set-mode-acl.c: Likewise.
24165         * tests/test-spawn-pipe-main.c: Likewise.
24166         * tests/test-system-quote-main.c: Likewise.
24167         * tests/test-unlinkat.c: Likewise.
24168         * tests/test-version-etc.c: Likewise.
24169         * tests/test-xalloc-die.c: Likewise.
24170         * tests/test-xfprintf-posix.c: Likewise.
24171         * tests/test-xmemdup0.c: Likewise.
24172         * tests/test-xprintf-posix.c: Likewise.
24173         * tests/test-xvasprintf.c: Likewise.
24174         * tests/uniname/test-uninames.c: Likewise.
24175         * tests/uninorm/test-u32-nfc-big.c: Likewise.
24176         * tests/uninorm/test-u32-nfd-big.c: Likewise.
24177         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
24178         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
24179         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
24180         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
24181         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
24182         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
24183         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
24184         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
24185         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
24186         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
24187         * tests/test-c-stack.c: (program_name): Do not define.
24188         (main): Do not set program_name.
24189         * tests/test-closein.c: Likewise.
24190         * tests/test-xstrtol.c: Likewise.
24191         * tests/test-yesno.c: Likewise.
24193 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
24195         Port modules to use getprogname explicitly, instead of requiring
24196         progname to be used (or program_name to be provided).
24197         * lib/argmatch.c: Do not include progname.h.
24198         [TEST] (program_name): Do not define.
24199         [TEST] (main): Call getprogname instead of using program_name.
24200         * lib/c-stack.c: Do not include progname.h.
24201         (program_name): Do not define.
24202         (die): Call getprogname instead of using program_name.
24203         * lib/chdir-long.c: Do not include progname.h.
24204         [TEST_CHDIR] (main): Do not set program_name.
24205         * lib/error.c [!_LIBC]: Include progname.h.
24206         [!_LIBC] (program_name): Define using getprogname.
24207         * lib/euidaccess.c: Do not include progname.h.
24208         [TEST] (main): Do not set program_name.
24209         * lib/git-merge-changelog.c: Include getprogname.h instead of
24210         progname.h.
24211         (usage): Call getprogname instead of using program_name.
24212         (main): Likewise.  Stop calling set_program_name.
24213         * lib/group-member.c: Do not include progname.h.
24214         [TEST] (main): Do not set program_name.
24215         * modules/argmatch (Depends-on): Add getprogname.
24216         * modules/c-stack (Depends-on): Likewise.
24217         * modules/error (Depends-on): Likewise.
24218         * modules/git-merge-changelog (Depends-on): Likewise.
24219         Also remove progname.
24221 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
24223         * NEWS: Document the deprecation of the 'progname' module.
24225 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
24227         getprogname: new module
24228         This provides a LGPL module for getting the name of the current
24229         program, using the same API found on *BSD systems.
24230         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
24231         * modules/getprogname: New files.
24232         * MODULES.html.sh (Misc): Add getprogname.
24234 2016-09-02  Jim Meyering  <meyering@fb.com>
24236         manywarnings: add -fno-common
24237         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
24238         to the list.  Quoting the manual, "Compiling with -fno-common is
24239         useful on targets for which it provides better performance, or if
24240         you wish to verify that the program will work on other systems that
24241         always treat uninitialized variable declarations this way [putting
24242         it in the data section]."  If diffutils had been using this sooner,
24243         it would have prevented this duplicate declaration issue:
24244         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
24246 2016-08-31  Simon Josefsson  <simon@josefsson.org>
24248         parse-datetime: Fix typo.
24249         * lib/parse-datetime.y (parse_datetime2): Fix typo.
24251 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
24253         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
24254         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
24255         GCC 5 and 6 that have __builtin_sub_overflow but not
24256         __builtin_sub_overflow_p.  With the recent changes, these
24257         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
24258         implementation than with INT_SUBTRACT_OVERFLOW implementation,
24259         since the former needs just one runtime comparison whereas the
24260         latter needs two.
24262         strverscmp: sync with glibc
24263         Although this doesn't exactly synchronize with glibc
24264         byte-for-byte, it makes the code behave the same as glibc.
24265         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
24266         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
24267         difference shouldn't matter in practical use.  All uses changed
24268         back to isdigit.
24269         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
24270         (next_state): Now unsigned char array; redo elements.
24271         (result_type): Now signed char array; redo elements.
24272         (__strverscmp): Fix glibc bug 9913 by using new states.
24273         * tests/test-strverscmp.c (main): Test glibc bug 9913.
24275 2016-08-29  Jim Meyering  <meyering@fb.com>
24277         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
24278         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
24279         similarly to how it was done to intprops.h.
24281 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
24283         intprops.h: port recent changes to GCC 6.2.0
24284         * lib/intprops.h (__has_builtin): Move earlier.
24285         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
24286         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
24287         the last argument can be null.  All uses changed.
24288         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
24289         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
24290         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
24291         and it's not clear which GCC versions it works for.
24292         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
24293         its definiens.
24295         intprops.h: use __typeof__ with GCC 7
24296         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
24297         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
24298         This avoids computing the expression's value (which might overflow!).
24300 2016-08-29  Jim Meyering  <meyering@fb.com>
24302         intprops.h, xalloc-oversized.h: work with gcc 7
24303         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
24304         __builtin_mul_overflow each accept a NULL pointer as the third
24305         argument.  However in gcc 7, that is no longer accepted.
24306         Instead, one must use the "_p"-suffixed names, with which, the
24307         third parameter is no longer a pointer.
24308         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
24309         the definition: not true for gcc 7 and subsequent.
24310         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
24311         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
24312         Provide new definitions for gcc 7 and subsequent.
24313         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
24314         that works with gcc-7.
24316         intprops.h: fix missing-backslash problems
24317         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
24318         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
24320 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
24322         intprops: fix paren typo on old platforms
24323         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
24324         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
24325         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
24326         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
24327         && !defined LLONG_MAX]:
24328         Remove stray paren.
24330         intprops: port to OpenVMS
24331         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
24332         * doc/posix-headers/limits.texi: Document the problem.
24333         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
24334         Define if not already defined.
24336 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
24338         parse-datetime: improve debug implementation
24339         Follow-up to commit 12ad79069 ("add optional debug printing").
24340         Improve parse-datetime's debug implementation: remove macros,
24341         replace global debug flag variable with a function parameter,
24342         use nstrftime for formatting.
24343         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
24344         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
24345         (parse_datetime2): New function, accepts 'flags' parameter, supporting
24346         debug flag. Existing interface 'parse_datetime' left unmodified.
24347         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
24348         (struct parser_control): add 'parse_datetime_debug' member variable.
24349         (parse_datetime): Call new function 'parse_datetime2' without debug.
24350         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
24351         pc.parse_datetime_debug variable as needed.
24352         (to_year): Accept new flags parameter, instead of using global variable.
24353         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
24354         use struct 'debug' variable instead of global variable.
24355         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
24356         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
24357         correspnding functions directly instead of using macros.
24358         * modules/parse-datetime: Add gnulib's strftime module.
24360 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
24362         c-strcase-tests: port to EBCDIC
24363         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
24364         which assume ASCII encoding semantics to run only in ASCII
24365         mode, as they fail in EBCDIC.
24367         sigpipe-tests: fix typo
24368         * tests/test-sigpipe.sh: C, not B.
24370 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
24372         canonicalize-lgpl: fix errno after malloca fails
24373         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
24374         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
24375         * lib/canonicalize-lgpl.c (__realpath):
24376         Don't assume malloca sets errno on failure.
24378 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
24380         strtod: port errno handling to z/OS
24381         * lib/strtod.c (strtod): Save and restore errno more reliably.
24383 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
24385         strtod: port to z/OS
24386         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
24387         implementation.
24389 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
24391         strtod: port to z/OS
24392         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
24393         implementation.
24395         regex, string: rename to avoid '__string'
24396         * lib/regex.h, lib/string.in.h: Do not use the identifier
24397         '__string', as it is effectively reserved by string.h on z/OS.
24399         c-strcase-tests, wcwidth-tests: depend on c-ctype
24400         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
24401         Add c-ctype.
24403 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
24405         thread: port to z/OS
24406         * lib/glthread/thread.c, lib/glthread/thread.h:
24407         Rudimentary gl_thread support for z/OS.
24409         maint: port tests to z/OS errno behavior
24410         * tests/test-nonblocking-reader.h:
24411         * tests/test-nonblocking-writer.h:
24412         Accommodate z/OS errno code preferences. (I believe this should
24413         still be within spec; IBM is good at following the letter if not
24414         the spirit of such things.)
24416         maint: preprocessor changes to support z/OS
24417         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
24418         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
24419         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
24420         * tests/test-nonblocking-pipe.h:
24422         fclose, strstr-simple, wchar: port to z/OS
24423         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
24424         Changes to the Autoconf M4 code to support z/OS.  Note that
24425         fclose() is broken in a different way on z/OS than it is on other
24426         systems, thus the special-case in fclose.m4.
24428         iconv_open-utf-tests, iconv-tests: port to EBCDIC
24429         * tests/test-iconv-utf.c, tests/test-iconv.c:
24430         Added appropriately conditional #pragmas so that the test strings
24431         in test-iconv-utf.c are correctly interpreted in ASCII instead of
24432         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
24433         addressed in a more portable way by simply rewriting all the ASCII
24434         literal characters as octal escapes, but then you would lose the
24435         partial readability that the strings have now. Also, iconv_open()
24436         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
24438         c-strcase-tests, wcwidth-tests: port to EBCDIC
24439         * tests/test-c-strcasecmp.c: Include c-ctype.h.
24440         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
24441         * tests/test-wcwidth.c: Likewise.
24443 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
24445         stdbool: don't require _Bool for C++
24446         Problem reported by David Seifert in:
24447         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
24448         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
24449         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
24450         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
24451         stricter about checking that bool and _Bool are compatible in C.
24453 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
24455         getdelim: remove dependency on realloc-posix
24456         * lib/canonicalize-lgpl.c (alloc_failed)
24457         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
24458         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
24459         Use __set_errno where needed, for consistency.
24460         * lib/getdelim.c (alloc_failed): New function.
24461         (getdelim): Use it.
24463 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
24465         parse-datetime: add optional debug printing
24466         Print parsing information, warnings, and errors to stderr.
24467         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
24468         * lib/parse-datetime.y:
24469         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
24470         (PROGRESS*): Same as DEBUG, for progress reporting.
24471         (dbg_printf): Print message to stderr, with 'date' prefix.
24472         (struct parser_control): Add 'debug_*_seen' variables.
24473         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
24474         (debug_print_current_time, debug_print_relateive_time): Prints the
24475         current/relative date/time value of parser_control.
24476         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
24477         (to_year): Warn about 2-digit year parsing.
24478         (yylex):   Warn about unrecognized words.
24479         (get_effective_timezone): Returns current timezone in minutes.
24480         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
24481         clearly and unambigiously as possible.
24482         (debug_mktime_not_ok): Print detailed information about failed
24483         date/time values.
24484         (parse_datetime): Add DEBUG messages for failures, warnings. Add
24485         PROGRESS messages for status messages.
24486         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
24488 2016-08-06  Jim Meyering  <meyering@fb.com>
24490         tests/init.sh: exclude dash with bad "local" semantics
24491         * tests/init.sh (gl_shell_test_script_): Add a function to
24492         eliminate a shell like "dash" (unlike bash, zsh) that has
24493         surprising/risky "local var='...'" semantics.  Inspired by
24494         the problem and discussion in https://bugs.gnu.org/24116#11.
24496 2016-08-02  Ján Tomko  <jtomko@redhat.com>
24498         maint.mk: expand the prohibit_doubled_word regex
24499         This check has a static list of words that are checked for
24500         repetitions.  Expand it before running the perl script to
24501         avoid using expensive captures.  This decreases the cost
24502         for libvirt from 1.66s to 0.66s.
24503         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
24504         (sc_prohibit_doubled_word): Use it.
24506 2016-07-26  Ján Tomko  <jtomko@redhat.com>
24508         useless-if-before-free: skip non-matching lines early
24509         * build-aux/useless-if-before-free: First match each line with the
24510         simple/quick /\bif\b/ and reject if there is no match. This often
24511         saves the cost of the much more involved regular expression.
24512         For libvirt, this decreases the cost from 1.44s to 1.02s.
24514 2016-07-26  Ján Tomko  <jtomko@redhat.com>
24516         maint.mk: speed up sc_po_check
24517         sc_po_check would skip files based on their names, or on the
24518         existence of files with derived names. Rewrite it to use perl
24519         instead of shell to make the check faster.
24520         * top/maint.mk (perl_translatable_files_list_): Define.
24521         (sc_po_check): Use it.
24523 2016-07-30  Ján Tomko  <jtomko@redhat.com>
24525         maint.mk: speed up require_config_h_first
24526         Instead of spawning three processes per file,
24527         rewrite the check in perl and run it once for all the files.
24528         * top/maint.mk (perl_config_h_first_): Define.
24529         (sc_require_config_h_first): Use it in place of shell code.
24531 2016-07-26  Ján Tomko  <jtomko@redhat.com>
24533         maint.mk: speed up sc_po_check
24534         sc_po_check would skip files based on their names, or on the
24535         existence of files with derived names. Rewrite it to use perl
24536         instead of shell to make the check faster.
24537         * top/maint.mk (perl_translatable_files_list_): Define.
24538         (sc_po_check): Use it.
24540 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
24542         obstack: pacify GCC 6 with -Wnull-dereference
24543         Problem reported by Assaf Gordon in:
24544         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
24545         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
24546         Declare with __attribute_noreturn__.
24547         * lib/obstack.h (__attribute_noreturn__): New macro.
24549 2016-07-13  Eric Blake  <eblake@redhat.com>
24551         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
24552         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
24553         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
24555 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
24557         doc: mention glibc SSIZE_MAX buglet
24558         * doc/posix-headers/limits.texi (limits.h): Document the bug.
24560 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
24562         printf-posix: Fix mingw build
24563         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
24564         expression for detecting C symbol prefixes but forgot to qoute square
24565         brackets in the command line arguments for grep.  That way when
24566         building with mingw the condition was false although it ought to be
24567         true instead.  In particular scenarios this led to the following
24568         compile error:
24570             Cannot export rpl_printf: symbol not found
24571             Cannot export rpl_scanf: symbol not found
24572             collect2: error: ld returned 1 exit status
24574         Fix this by properly quoting square brackets.
24576 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24578         mktime: call tzset as per POSIX
24579         Problem reported by Ludovic Courtès in:
24580         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
24581         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
24582         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
24584 2016-06-26  Pádraig Brady  <P@draigBrady.com>
24586         fts: handle readdir() errors
24587         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
24588         but also upon error when it will also set errno.  Therefore
24589         flag the error case from readdir().  We treat the case where
24590         no items are read the same as if the dir can't be accessed,
24591         i.e. by setting fts_errno to FTS_DNR.
24593 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
24595         intprops: port better to GCC 7
24596         GCC 7 __builtin_add_overflow supports a new usage form, where the
24597         last argument is a null pointer, and which merely returns 1 if an
24598         overflow would occur.  This is a constant expression if all
24599         arguments are constants, and should generate faster code when code
24600         needs to be generated.
24601         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
24602         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
24603         Use builtin operations if available.
24604         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
24605         operations are available, as it's almost surely faster.
24607 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
24609         intprops-test: port to GCC 6
24610         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
24611         since the bug is not fixed in GCC 6.1.
24613 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
24615         xalloc-oversized: port to GCC 7; fewer warnings
24616         GCC 7 will have a better way to deal with integer overflow.
24617         Plus, fix a warnings problem reported by Tim Ruehsen in:
24618         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
24619         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
24620         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
24621         For GCC 5, use __xalloc_oversized if both args are constants,
24622         or if pedantic.
24624 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
24626         regex: port to Sun C
24627         Reported by Daiki Ueno.
24628         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
24629         __restrict, in prototype.  This fixes a problem I introduced in
24630         the 2016-02-19 merge from glibc.
24632 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
24634         stdbool: Restore __bool_true_false_are_defined check
24635         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
24636         __bool_true_false_are_defined is still defined, even with C++11.
24638 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
24640         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
24641         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
24643 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
24645         Use GCC_LINT, not lint
24646         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
24647         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
24648         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
24649         Document problem with lint and _Noreturn.
24650         * lib/diffseq.h (IF_LINT, IF_LINT2):
24651         * lib/fts.c (sccsid):
24652         * lib/getndelim2.c (IF_LINT):
24653         * lib/gl_anylinked_list2.h (gl_linked_iterator)
24654         (gl_linked_iterator_from_to):
24655         * lib/gl_anytree_list2.h (gl_tree_iterator)
24656         (gl_tree_iterator_from_to):
24657         * lib/gl_anytree_oset.h (gl_tree_iterator):
24658         * lib/gl_array_list.c (gl_array_iterator)
24659         (gl_array_iterator_from_to):
24660         * lib/gl_array_oset.c (gl_array_iterator):
24661         * lib/gl_carray_list.c (gl_carray_iterator)
24662         (gl_carray_iterator_from_to):
24663         * lib/idcache.c:
24664         * lib/inet_ntop.c (IF_LINT):
24665         * lib/regcomp.c (build_charclass_op, create_tree):
24666         * lib/regex_internal.c (re_acquire_state)
24667         (re_acquire_state_context):
24668         * lib/trigl.c (rcsid):
24669         * lib/trim.c (IF_LINT):
24670         * lib/vasnprintf.c (IF_LINT):
24671         * lib/verify.h (assume):
24672         Treat GCC_LINT like lint.
24674 2016-05-29  Bruno Haible  <bruno@clisp.org>
24676         secure_getenv: Port to many more platforms.
24677         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
24678         functions.
24679         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
24680         for non-BSD Unix platforms and for native Windows.
24681         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
24682         Prompted by a request from Nikos Mavrogiannopoulos.
24684 2016-05-27  Eric Blake  <eblake@redhat.com>
24686         canonicalize: Fix broken probe for realpath.
24687         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
24688         in logic introduced in 54615b95.
24690 2016-05-26  Eric Blake  <eblake@redhat.com>
24692         unsetenv: relax to LGPLv2+
24693         * modules/unsetenv (License): Match setenv license.
24695 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
24697         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
24698         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
24699         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
24700         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
24701         (commonarg, dirargs, dirs, infoarg, generate_ascii)
24702         (generate_html, generate_info, generate_tex, outdir)
24703         (source_extra, split, srcfile, texarg): Move above 'version'.
24704         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
24706 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
24708         manywarnings: update for GCC 6.1
24709         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
24710         Add GCC 6.1 options that apply to C.
24711         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
24712         do not apply to C, are obsolescent, etc.
24714 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
24716         glob: size_t overflow checks
24717         * lib/glob.c (__has_builtin): New macro.
24718         (size_add_wrapv, glob_use_alloca): New static functions.
24719         (glob, glob_in_dir): Check for size_t overflow in several places,
24720         and fix some size_t checks that were not quite right.
24722         glob: don't assume INT_MAX < SIZE_MAX
24723         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
24724         latter is not portable to (probably theoretical) hosts where
24725         SIZE_MAX <= INT_MAX.
24727 2016-05-09  Bruno Haible  <bruno@clisp.org>
24729         Fix undefined behaviour in gettext.h.
24730         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
24731         pointer's value after the storage it points to has been freed.
24732         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
24733         Spotted by Coverity.
24735 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
24737         git-version-gen: avoid undefined shift
24738         Problem reported by Mosè Giordano in:
24739         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
24740         * build-aux/git-version-gen: Avoid undefined behavior if invoked
24741         with --prefix or --fallback but without a later argument.  While
24742         we're at it, omit unnecessary quotes.
24744 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
24746         glob: merge glibc changes into lib/glob.c
24747         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
24748         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
24749         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
24750           struct dirent [BZ #19779]
24751         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
24752           callback gl_readdir
24753         2015-10-20 Convert miscellaneous function definitions to prototype style
24754         2015-10-20 Convert 113 more function definitions to prototype style
24755           (files with assertions)
24756         2015-06-12 Fix getlogin_r namespace (bug 18527).
24757         2014-02-10 Use glibc_likely instead __builtin_expect.
24758         2013-10-20 When glob pattern contains a trailing slash match only
24759           directories. Fixes bug 10278.
24760         2013-09-04 glob: silence -Wattribute warnings
24761         2013-06-07 Avoid use of "register" as optimization hint.
24762         2012-09-25 Use size_t instead of int for internal variables in glob
24763           (bug 14621)
24764         2011-07-20 Check for overflows in expressions
24765         2011-05-28 Remove unused variable
24766         2011-05-22 Add a few more alloca size checks
24767         2010-03-27 Whitespace fixes
24768         2010-03-27 Fix one more issue with the glob patch
24769         2010-03-24 Fix glob with empty pattern
24770         2008-05-27 Remove useless more "if" tests before "free"
24771         * modules/glob (Depends-on): Add stdint.
24773 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
24775         mktime: port to stricter signed overflow checking
24776         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
24777         (long_int): Require width for INT_MAX * 3 * (seconds per year),
24778         instead of merely for INT_MAX * 2.  In practice platforms that
24779         do the latter also do the former.
24780         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
24781         (shr): New static function, replacing SHR.  All uses changed.
24782         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
24783         and TIME_T_MAX.  All uses changed.
24784         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
24785         Use long_int, not time_t.
24786         (long_int_avg): New static function, replacing time_t_avg.
24787         All uses changed.  Round toward positive infinity, as that
24788         generates slightly better code.
24789         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
24790         by INT_ADD_WRAPV.
24791         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
24792         (convert_time): New static function.
24793         (ranged_convert): Use it
24794         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
24795         Use simpler test for loop exit.
24796         (__mktime_internal): Store negative of guessed offset, to simplify
24797         overflow checking.  Remove no-longer-needed test for small time_t
24798         overflows.
24800         mktime: speed up DEBUG_MKTIME benchmarks
24801         Call tzset just once, at the start, rather than for every test
24802         case.  This lets us measure the CPU cost of mktime as opposed to
24803         that of tzset.  This is relevant when TZ is not set and glibc is
24804         being used.  This speeds up tests by a factor of 40 on my Fedora
24805         23 x86-64 platform.
24806         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
24807         to call tzset and as a sanity check.  Later on, use localtime_r
24808         instead of localtime.
24810         mktime: resurrect DEBUG_MKTIME testing
24811         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
24812         Include <string.h>, for strcmp.
24814         mktime: simplify DEBUG_MKTIME
24815         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
24816         Simplify later usage accordingly.
24818         Port mktime_internal offset to unsigned time_t
24819         This avoids some assumptions about wraparound arithmetic on
24820         signed integer overflow.
24821         * lib/mktime-internal.h (mktime_offset_t): New type.
24822         (mktime_internal): Use it in decl.
24823         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
24825         * lib/mktime.c (__mktime_internal, localtime_offset):
24826         * lib/timegm.c (timegm): Use it.
24827         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
24828         (gl_FUNC_MKTIME): Require it.
24830 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
24832         xstrtol: prohibit monstrosities like "1bB"
24833         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
24834         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
24835         "B" only if the first suffix needs a base.
24836         * tests/test-xstrtol.sh: Test this.
24838 2016-04-21  Pádraig Brady  <P@draigBrady.com>
24840         xstrtod: reinstate setting of *result upon ERANGE
24841         * lib/xstrtod.c (XSTRTOD): The user may decide to use
24842         the returned limits upon ERANGE, so allow and document that.
24844 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
24846         xstrtod: modify *result only if no errors
24847         * lib/xstrtod.c (XSTRTOD).
24849 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
24851         btowc: document problems in C locale
24852         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
24853         with mbrtowc.  See: http://bugs.gnu.org/23269#32
24855 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
24857         mktime: improve integer overflow checking
24858         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
24859         (WRAPV): Remove; no longer needed.
24860         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
24861         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
24862         Remove.  Use intprops.h defns instead.
24863         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
24864         Use bool for Boolean, for clarity.
24865         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
24866         detect integer overflow.
24867         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
24869         intprops: check two's complement assumption
24870         Suggested by Eric Blake in:
24871         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
24872         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
24873         short, int, long, and (if available) long long are two's complement.
24874         * modules/intprops (Depends-on): Add 'verify'.
24876         intprops, mktime, strtol: assume two's complement
24877         These macros were not portable to every conforming C11 ones'
24878         complement platform.  It's not worth the hassle of porting to some
24879         platforms that use ones' complement or signed magnitude, as such
24880         platforms are almost purely theoretical nowadays and porting even
24881         to some of them makes the code harder to review for little
24882         practical benefit.  Problem reported by Florian Weimer in:
24883         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
24884         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
24885         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
24886         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
24887         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
24888         (TYPE_SIGNED_MAGNITUDE):
24889         Remove.  All uses rewritten to assume two's complement, which is
24890         all we can reasonably test nowadays anyway.
24891         * top/maint.mk (_intprops_names): Remove the removed macros.
24893 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
24895         stdint: port to strict C11 left shift
24896         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
24897         Pacify clang -Wshift-negative-value, which should be an issue only
24898         on clang setups where stdint.h does not conform to C11 or to C++11.
24899         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
24901 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
24903         mbrtowc: work around glibc bug#19932
24904         Fix mbrtowc so that it never returns -1 in the C locale,
24905         as this conflicts with a future version of POSIX
24906         http://austingroupbugs.net/view.php?id=663#c2738
24907         and causes problems with GNU grep: http://bugs.gnu.org/23234
24908         See glibc bug 19932:
24909         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
24910         * doc/posix-functions/mbrlen.texi (mbrlen):
24911         * doc/posix-functions/mbrtowc.texi (mbrtowc):
24912         Document the glibc bug.
24913         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
24914         Include hard-locale.h, locale.h.
24915         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
24916         if the bug is possible.
24917         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
24918         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
24919         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
24920         * modules/mbrtowc (Depends-on): Add hard-locale.
24921         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
24922         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
24923         * tests/test-mbrtowc5.sh: New file.
24925 2016-04-03  Pedro Alves  <palves@redhat.com>
24927         stdint: detect good enough pre-C++11 stdint.h in C++ mode
24928         When gnulib is configured in C++ mode for a system with a working C99
24929         implementation of stdint.h that predates C++11, gnulib ends up
24930         substituting stdint.h anyway.  This works on most targets, but on e.g.,
24931         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
24932         MinGW is LLP64.  Instead of trying to detect the right types, detect
24933         good-enough-pre-C++11 stdint.h and in such case define
24934         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
24935         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
24936         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
24937         conforms to C99.  If it does, check whether it hides symbols
24938         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
24939         does, define those macros in config.h.
24941 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
24943         argp: merge changes from glibc
24944         Among other things, this should fix problems found by a Coverity
24945         scan and reported by Andrei Borzenkov:
24946         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
24947         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
24948         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
24949         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
24950         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
24951         * lib/argp.h:
24952         Merge changes from glibc.
24953         * tests/test-argp-2.sh: Adjust to match new behavior.
24955 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
24957         stddef: support configuring with g++
24958         Problem reported by Ángel González in:
24959         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
24960         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
24961         Do not define if _GCC_MAX_ALIGN_T is defined.
24963 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
24965         test-framework-sh: minor cleanups
24966         * tests/init.sh (testdir_prefix_): Output a trailing newline,
24967         since strictly speaking POSIX requires this.
24968         (setup_): Do not use the variable 'fail', as that makes the
24969         trace output harder to read ('fail' is typically used by
24970         tests to mean the test failed).  Treat // portably.
24971         Check that new directory is not merely a sibling of the tmp dir.
24972         Avoid unnecessary invocation of tr.
24974         test-framework-sh: revert port to NetBSD 7.0
24975         It was a false alarm; I misinterpreted Assaf Gordon's report.
24976         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
24977         Restore.
24978         (test_dir_): Adjust to mktempd_ change.
24979         (mktempd_): Restore 2nd arg.  Use -t again.
24980         (base_template_, template_, nx_): Resurrect old code.
24982         Port better to Alpine Linux
24983         Its diff implementation does not support -c, but does support -U3.
24984         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
24985         * tests/init.sh (diff_opt_): New var.
24986         (compare_): Prefer diff -U3 to diff -c to plain diff.
24988 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
24990         test-framework-sh: port to NetBSD 7.0
24991         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
24992         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
24993         Remove.  All uses removed.
24994         (test_dir_): Adjust to mktempd_ change.
24995         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
24996         (base_template_, template_, nx_): Simplify by hardcoding.
24998 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
25000         gitlog-to-changelog: suppress ignored chatter
25001         * build-aux/gitlog-to-changelog: Do not warn about skipping
25002         an SHA if it would have been ignored anyway.
25004 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
25006         setlocale: add "sv" to Windows language table
25007         * lib/setlocale.c (language_table) [W32]: Add "sv".
25008         Reported in <https://savannah.gnu.org/bugs/?44588>.
25010 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
25012         sys_select: port to new Cygwin
25013         Problem reported by Ken Brown in:
25014         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
25015         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
25016         diagnostics.
25018 2016-03-17  Jim Meyering  <meyering@fb.com>
25020         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
25021         * tests/test-userspec.c (main): Remove unnecessary braces and fix
25022         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
25023           test-userspec.c:176:9: error: statement is indented as if it were \
25024             guarded by... [-Werror=misleading-indentation]
25025                    {
25026                    ^
25027           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
25028                  if (!diag && !T[i].result)
25029                  ^~
25031 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
25033         time_rz: port to clang -Wunused-const-variable
25034         * lib/time_rz.c (TZ): Remove.  All uses removed.
25036         std-gnu11: improve clang support
25037         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
25038         2016-03-15 Also try clang
25039         2016-03-15 Port C11 and C++11 testing to clang
25041         select: port more to Intel 2016.1.150 compiler
25042         Problem reported by Balázs Hajgató in:
25043         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
25044         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
25046 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
25048         select: try to port to 2016.1.150 compiler
25049         Problem reported by Balázs Hajgató in:
25050         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
25051         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
25052         POSIX specifies 'restrict'.
25054 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
25056         localename-tests: memory allocation fixes
25057         * tests/test-localename.c (test_locale_name)
25058         (test_locale_name_thread): Don't call freelocale on a locale
25059         that was the base of a successful newlocale, as that
25060         results in a double free.  Problem reported by Assaf Gordon.
25061         (test_locale_name_thread): Free saved names after use, to pacify
25062         gcc -fsanitize=address.
25064 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
25066         intprops: make .h file license match module
25067         * lib/intprops.h: Change the license wording to match glibc format.
25068         This is what is in modules/intprops anyway.  See:
25069         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
25071 2016-03-08  Eric Blake  <eblake@redhat.com>
25073         acl: fix missing return on Cygwin
25074         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
25075         fall off end of function. Fixes http://bugs.gnu.org/22949
25077 2016-03-05  Bruno Haible  <bruno@clisp.org>
25079         extern-inline: port to PGI CC
25080         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
25081         keyword 'inline'.
25082         Reported by Adam James Stewart in:
25083         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
25085 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
25087         signbit: port back to pre-C++11 GCC
25088         * lib/math.in.h (signbit): Do previous change only if
25089         __cplusplus < 201103.  See Jonathan Wakely in:
25090         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
25092 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
25094         mountlist: recognize autofs-mounted remote file systems, too
25095         Originally reported at: https://bugzilla.redhat.com/1309247
25096         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
25097         "-hosts" because it is used by autofs to mount remote file systems.
25099 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
25101         signbit: port to C++ with GCC 6
25102         * lib/math.in.h (signbit) [__cplusplus]:
25103         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
25104         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
25106         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
25108         regex: make it closer to libc
25109         Make Idx a signed type, rather than possibly unsigned.
25110         The unsignedness was not really buying us anything, since the code
25111         overflows for other reasons before getting to PTRDIFF_MAX.  Making
25112         it signed allows us to use -1 and -2 with abandon, like libc does,
25113         thus lessening the number of differences between gnulib and libc.
25114         Also, it should help avoid gratuitous warnings like the one
25115         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
25116         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
25119         regex: merge patches from libc
25121         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
25122         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
25123         Convert miscellaneous function definitions to prototype style.
25124         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
25125         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
25126         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
25127         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
25128         (re_search_internal):
25129         Convert to prototype-style function definition.
25130         Use internal_function for internal functions.
25132 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
25134         stdalign: port to older HP and IBM cc
25135         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
25136         C compilers, by checking their version numbers.  These version
25137         numbers appear in MariaDB and in Qt code that dates way back and
25138         that conditiionally uses the 'aligned' attribute.
25140 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
25142         stdalign: port to clang 3.7.0
25143         Problem reported by Herbert J. Skuhra in:
25144         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
25145         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
25146         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
25147         https://llvm.org/bugs/show_bug.cgi?id=26547
25149 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25151         readdir_r: now obsolescent
25152         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
25153         * lib/mountlist.c (read_file_system_list): Add a FIXME.
25155 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
25157         misc: port better to gcc -fsanitize=address
25158         Without these patches, ./configure CFLAGS='-fsanitize=address'
25159         would compute incorrect values.  This patch fixes some (but not all)
25160         test failures with recent glibc, with this configuration.
25161         * m4/acl.m4 (gl_ACL_GET_FILE):
25162         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
25163         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
25164         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
25165         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
25166         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
25167         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
25168         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
25169         * m4/getline.m4 (gl_FUNC_GETLINE):
25170         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
25171         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
25172         * m4/regex.m4 (gl_REGEX):
25173         * m4/strndup.m4 (gl_FUNC_STRNDUP):
25174         * tests/test-calloc-gnu.c (main):
25175         * tests/test-duplocale.c (main):
25176         * tests/test-getgroups.c (main):
25177         * tests/test-getline.c (main):
25178         * tests/test-inttostr.c (main):
25179         * tests/test-localename.c (test_locale_name)
25180         (test_locale_name_thread, test_locale_name_environ)
25181         (test_locale_name_default):
25182         * tests/test-regex.c (main):
25183         * tests/test-setlocale1.c (main):
25184         * tests/test-stat.h (test_stat_func):
25185         Free heap-allocated storage before exiting.
25186         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
25187         Don't match *_foo symbols inserted by AddressSanitizer.
25188         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
25190 2016-02-02  Jim Meyering  <meyering@fb.com>
25192         verify-tests: also remove stray test-verify.Tpo
25193         * modules/verify-tests (Makefile.am): Arrange for "make clean"
25194         to remove the test-verify.Tpo file that is left behind by
25195         the automake-generated rule upon compilation failure.
25196         Otherwise, that .Tpo file would cause a failed "make distcheck"
25197         at least for grep.
25199 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
25201         std-gnu11: new module
25202         This makes it easier for applications to prefer C11 and C++11
25203         to older variants, when compiling C and C++ code.
25204         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
25205         a nontrivial chunk of GPLed Autoconf source code.
25206         * COPYING: Mention the m4/*.m4 copyright situation.
25207         * MODULES.html.sh (std-gnu11): New module.
25208         * m4/std-gnu11.m4, modules/std-gnu11: New files.
25210 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
25212         get-permissions, strftime: fix grammar in comments
25213         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
25214         some grammar fixes Alan Mackenzie made to GNU Emacs.
25216 2016-01-25  Daiki Ueno  <ueno@gnu.org>
25218         gettext: mark as obsolete
25219         Suggested by Paul Eggert in:
25220         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
25221         * modules/gettext (Status): Mark as obsolete.
25222         (Notice): Suggest to use 'gettext-h' instead.
25223         * modules/gettext-h (Description): Suggest GNU gettext, instead of
25224         the 'gettext' module.
25226 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
25228         gnulib-tool: don't give up on ln -s so easily
25229         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
25230         because an earlier one failed.  The targets could be on different
25231         file systems.  Problem reported by KO Myung-Hun in:
25232         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
25234         closedir: fix OS/2-related typos
25235         Problem reported by KO Myung-Hun in:
25236         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
25237         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
25238         in the last couple of changes.
25240 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
25242         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
25243         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
25244         copying a directory.
25246 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
25248         regex: treat [x] as x if x is a unibyte encoding error
25249         Problem reported by Aharon Robbins in:
25250         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
25251         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
25252         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
25254         closedir, dirfd, opendir: port to OpenSolaris 5.10
25255         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
25256         * m4/dirfd.m4 (gl_FUNC_DIRFD):
25257         * m4/opendir.m4 (gl_FUNC_OPENDIR):
25258         Don't use ${word##pat} substitution, as it doesn't work in
25259         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
25260         http://bugs.gnu.org/22443#11
25262 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25264         bootstrap: use American spelling
25265         * build-aux/bootstrap: Honor American spelling.
25267 2016-01-22  Karl Berry  <karl@freefriends.org>
25269         * doc/posix-functions/localtime.texi,
25270         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
25272 2016-01-21  Bruno Haible  <bruno@clisp.org>
25274         hash-pjw-bare: fix comment
25275         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
25277         wcwidth: Replace also on OpenBSD 5.8
25278         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
25279         * doc/posix-functions/wcwidth.texi: Update.
25281 2016-01-20  Pádraig Brady  <P@draigBrady.com>
25283         gnu-web-doc-update: fix addition of new files
25284         If there were already added (emnpty) dirs,
25285         then cvs aborts the add with the message:
25286           cvs [add aborted]: there is a version in <./dirname> already
25287         * build-aux/gnu-web-doc-update: Add directories separately
25288         to the addition of files, to avoid the above issue
25289         impacting the addition of files.
25291 2016-01-19  Daiki Ueno  <ueno@gnu.org>
25293         utimens-tests: avoid pulling gettext .m4 files
25294         Although this is not the right fix to the original problem:
25295         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
25296         it makes it possible again for consumer projects to use arbitrary
25297         version of gettext, through the steps described at:
25298         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
25299         See here for details:
25300         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
25301         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
25302         'gettext'.
25303         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
25304         'gettext'.
25306 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25308         regex: pacify static checkers
25309         Problem and draft fix reported by Aharon Robbins in:
25310         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
25311         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
25312         Clear memory to pacify static checkers.
25314         regex: fix [ diagnostic
25315         Problem and fix reported by Aharon Robbins in:
25316         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
25317         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
25319         regex: fix memory leaks
25320         Problem and draft fix reported by Aharon Robbins in:
25321         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
25322         * lib/regcomp.c (build_range_exp, build_charclass_op)
25323         * lib/regex_internal.c (re_dfa_add_node):
25324         Fix memory leak on failure.
25326 2016-01-18  Pádraig Brady  <P@draigBrady.com>
25328         fts: don't unconditionally use leaf optimization for NFS
25329         NFS st_nlink are not accurate on all implementations,
25330         leading to aborts() if that assumption is made.
25331         See <https://bugzilla.redhat.com/1299169>
25332         * lib/fts.c (leaf_optimization_applies): Remove NFS from
25333         the white list, and document the issue.
25335 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
25336             KO Myung-Hun  <komh@chollian.net>
25338         gnulib-tool: don't assume ln -s works
25339         * gnulib-tool (func_ln_s): New function.
25340         (func_ln): Use it.
25342 2016-01-15  KO Myung-Hun  <komh@chollian.net>
25344         utimes: detect utimes() correctly on OS/2 kLIBC
25345         utimes() of OS/2 kLIBC has some limitations.
25346         1. OS/2 itself supports a file date since 1980 year in local time.
25347         2. OS/2 itself supports only even seconds for a file time.
25348         3. utimes() of OS/2 kLIBC does not work on an opened file.
25349         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
25350         * doc/posix-functions/utimes.texi: Document the above limitations of
25351         utimes() on OS/2 kLIBC.
25353 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
25354             KO Myung-Hun  <komh@chollian.net>
25356         openat_proc_name: port to OS/2 kLIBC
25357         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
25358         instead of /proc/self/fd.
25359         * lib/openat-proc.c (openat_proc_name):
25360         Don't assume file name length is less than INT_MAX.
25361         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
25363 2016-01-14  KO Myung-Hun  <komh@chollian.net>
25365         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
25366         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
25367         definitions of intptr_t and uintptr_t (which use int and unsigned)
25368         to avoid clashes with declarations of system functions like sbrk.
25369         * lib/stdint.in.h (intptr_t, uintptr_t): Check
25370         _INTPTR_T_DECLARED before defining them.
25372         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
25373         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
25374         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
25375         Declare on kLIBC.
25376         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
25377         fd associated with dirp.
25378         (_gl_register_dirp_fd): New. Register fd associated with dirp to
25379         dirp_fd_list.
25380         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
25381         (dirfd): Implemented for kLIBC.
25382         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
25383         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
25384         succeeds.
25385         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
25386         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25387         (REPLACE_DIRFD): Define to 1 if replaced.
25388         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
25389         * modules/closedir (Depends-on): Add dirfd.
25390         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
25391         condition.
25392         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
25393         * modules/opendir (Depends-on): Add dirfd.
25395         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
25396         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
25397         * lib/dup.c (dup_nothrow): New.
25398         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
25399         (klibc_dup2): New.
25400         * lib/fcntl.c (klibc_fcntl): New.
25401         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
25402         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
25403         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
25404         fd.
25406         pipe_filter_ii_execute: port to OS/2 kLIBC
25407         Pipes on kLIBC do not support O_NONBLOCK like Win32.
25408         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
25409         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
25410         Reuse Win32 code on OS/2 kLIBC.
25411         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
25412         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
25414         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
25415         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
25416         static inline function.  The implementation of wcwidth in wcwidth.c
25417         causes a "conflicting types" error.
25418         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
25420         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
25421         spawn() on OS/2 kLIBC is not silly like one on Windows
25422         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
25423         empty string on OS/2 kLIBC.
25425         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
25426         On OS/2 kLIBC, select() works only on sockets.
25427         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
25429         binary-io: don't put fd in binary mode if it is a console on EMX
25430         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
25431         a console on EMX.
25433 2016-01-15  Pádraig Brady  <P@draigBrady.com>
25435         doc: mention unfixed issues with unsupported localtime() values
25436         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
25437         returns nonsense for localtime(2^56).
25438         * doc/posix-functions/localtime_r.texi: Likewise.
25440 2016-01-14  Pádraig Brady  <P@draigBrady.com>
25442         doc: mention setlocale() issues on OpenBSD
25443         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
25444         never fails, and the need to check categories individually.
25446 2016-01-14  Pádraig Brady  <P@draigBrady.com>
25448         sig2str: list all signals on FreeBSD >= 7
25449         FreeBSD >= 7 is contravening POSIX by not defining NSIG
25450         to the maximal statically defined signal value.
25451         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
25452         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
25453         where available, even when NSIG is defined.
25455 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
25457         acl-permissions: port to USE_ACL==0 platforms
25458         I ran into this problem when building bleeding-edge GNU Emacs
25459         with gcc -fsanitize=address on Fedora 23.  On this platform
25460         the ACL library does not pass the 'configure' test and Emacs
25461         then does not build due in part to what appear to be typos in the
25462         ACL part of Gnulib.
25463         * lib/acl-internal.c (free_permission_context):
25464         * lib/acl-internal.h (struct permission_context):
25465         Test whether USE_ACL is nonzero, not whether it is defined.
25467 2016-01-12  Martin Sebor  <msebor@redhat.com>
25469         mktime: rename macro to avoid glibc clash
25470         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
25471         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
25473 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
25475         Port "$@" to OpenIndiana ksh93
25476         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
25477         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
25478         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
25479         bug long-dead shells, so remove the workaround.
25480         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
25481         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
25482         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
25483         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
25484         Use "$@" instead of ${1+"$@"}.
25486         Port Universal Time settings to strict POSIX
25487         * build-aux/announce-gen, build-aux/bootstrap:
25488         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
25489         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
25490         * build-aux/gnupload, build-aux/mkinstalldirs:
25491         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
25492         * build-aux/update-copyright, build-aux/useless-if-before-free:
25493         * build-aux/vc-list-files, tests/test-strftime.c:
25494         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
25495         but POSIX says the behavior of TZ="UTC" is undefined.
25497 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
25499         msvc-inval: fix problem with unset shell var
25500         Problem reported by Karl Berry in:
25501         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
25502         * modules/msvc-inval (Depends-on):
25503         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
25504         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
25506 2016-01-01  Pádraig Brady  <P@draigBrady.com>
25508         tests: for compare_(), use cmp -s where available
25509         * tests/init.sh (compare_): Only fall back to cmp without
25510         the POSIX defined -s option, where this is not available.
25512 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
25514         version-etc: new year
25515         * build-aux/gendocs.sh (version):
25516         * doc/gendocs_template:
25517         * doc/gendocs_template_min:
25518         * doc/gnulib.texi:
25519         * lib/version-etc.c (COPYRIGHT_YEAR):
25520         Update copyright dates by hand in templates and the like.
25521         * all files: Run 'make update-copyright'.
25523 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
25525         human: fix output buffer overrun by 1
25526         * lib/human.c (human_readable): Fix off-by-one typo in buffer
25527         calculation that could lead to a one-byte buffer overrun.
25529 2015-12-28  Daiki Ueno  <ueno@gnu.org>
25531         maint: fix operator precedence in mbrtowc test
25532         This is a fix for test breakage introduced by commit 45228d96; the
25533         equality expression must be parenthesized when negated with '!',
25534         otherwise we always get:
25536           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
25538         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
25539         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
25541 2015-12-23  James Youngman  <jay@gnu.org>
25543         regexprops-generic: update from regex.h
25544         * doc/regexprops-generic.texi: update by running the regexprops binary
25545         from findutils (the command line is 'regexprops "Regular Expressions"
25546         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
25547         gnulib with GNU grep had made this document out-of-date.
25549 2015-12-23  Pádraig Brady  <P@draigBrady.com>
25551         strftime-tests: avoid false failure on OS X
25552         * tests/test-strftime.c (struct localtime_rz_test): Add an
25553         ahistorical member which is used to warn rather than fail
25554         when tm_isdst isn't set for such entries.  This is the case for
25555         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
25557 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
25559         fts: ensure leaf optimization is used for NFS
25560         NFS provides usable dirent.d_type but not necessarily for all entries
25561         of large directories.  See <https://bugzilla.redhat.com/1252549>
25562         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
25564 2015-12-20  Pádraig Brady  <P@draigBrady.com>
25566         fts: enable leaf optimization for XFS
25567         XFS provides usable dirent.d_type only for DT_DIR,
25568         but the noleaf optimization still applies.
25569         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
25571 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
25573         intprops: comment fix
25574         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
25575         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
25577         intprops-test: work around GCC bug 68971
25578         Problem reported by Pádraig Brady in:
25579         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
25580         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
25581         (main): Add a case that better tests 64-bit long in this area.
25583 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
25585         gnulib-tool: allow multiple --local-dir usage
25586         * gnulib-tool: Use --local-dir to construct compound
25587         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
25588         PATH_SEPARATOR early.
25589         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
25590         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
25591         func_determine_path_separator because that needs to be detected
25592         earlier now.
25593         (func_determine_path_separator): New function.
25594         (func_path_foreach, func_path_foreach_inner): New functions.
25595         (func_path_prepend, func_path_append): Likewise.
25596         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
25597         (func_lookup_file, func_all_modules): Use new functions to work
25598         with local_gnulib_path.
25599         (func_modules_in_dir, func_exists_module): New callbacks for
25600         func_path_foreach.
25601         (func_exists_module, func_get_tests_module): Likewise.
25602         (func_is_local_file, func_should_symlink): New helper methods.
25603         (func_add_file, func_update_file): Use new func_should_symlink
25604         instead, DRY.
25605         (func_reconstruct_cached_local_gnulib_path): New helper.
25606         (func_reconstruct_cached_dir): New callback.
25607         (func_import): The cached_local_gnulib_dir renamed to
25608         cached_local_gnulib_path similarly to local_gnulib_dir.
25609         Use new func_reconstruct_cached_local_gnulib_path.
25610         (func_count_relative_local_gnulib_path): New sub-method.
25611         (func_create_testdir): Use func_should_symlink, DRY.
25612         (func_create_megatestdir): Use new functions to work with
25613         local_gnulib_path correctly.
25614         (func_append_local_dir): New helper.
25616 2015-12-08  Pádraig Brady  <P@draigBrady.com>
25618         fix freadptr to work with ungetc on all uClibc configs
25619         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
25620         where GNU coreutils cut(1) generates invalid output on uClibc
25621         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
25622         * lib/freadptr.c (freadptr): Return NULL if there are
25623         ungotten chars.  In this case freadseek() will iterate
25624         again to process the ungotten character.
25626 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
25628         xalloc-oversized: improve performance with GCC 5
25629         * lib/xalloc-oversized.h (xalloc_oversized):
25630         Improve performance with GCC 5 by using __builtin_mul_overflow.
25632 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
25634         intprops: new public macro EXPR_SIGNED
25635         Emacs can use this macro, so make it public.
25636         * doc/intprops.texi (Arithmetic Type Properties): Rename from
25637         'Integer Type Determination', since some of these macros apply
25638         to non-integer types.  Clarify what kinds of constant expressions
25639         these macros return.  Say when the arguments can be non-integers.
25640         Mention newly published macro EXPR_SIGNED.
25641         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
25642         make it public.  All uses changed.
25644         intprops: fix typo in clang port
25645         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
25646         '__builtin_add_overflow' that is not caught by compiler.
25648 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
25650         test-timespec: fix typo in previous change
25651         * tests/test-timespec.c (main): Fix typo that reduced test quality.
25653         timespec-sub: fix overflow bug; add tests
25654         * lib/timespec-add.c (timespec_add):
25655         * lib/timespec-sub.c (timespec_sub):
25656         Work even if time_t is narrower than int (a theoretical
25657         possibility).  Redo code for a bit more clarity.
25658         * lib/timespec-sub.c (timespec_sub):
25659         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
25660         * modules/timespec-tests, tests/test-timespec.c: New files.
25662         intprops-test: suppress -Woverlength-strings
25663         Problem reported by Pádraig Brady in:
25664         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
25665         It is not worth the hassle to port this test to compilers that
25666         cannot handle long strings in diagnostics.
25667         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
25669 2015-11-03  Pádraig Brady  <P@draigBrady.com>
25671         quotearg: add quotearg_n_style_colon()
25672         This quotes with default options of the specified style,
25673         but with quoting enabled for instances of ':'.
25674         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
25675         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
25677 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
25679         intprops: revise _WRAPV macros, revert _OVERFLOW
25680         The incompatible changes to the _OVERFLOW macros were too much of
25681         a hassle in practice, so revert them.  Instead, change the new
25682         _WRAPV macros to make them closer in behavior to GCC 5's new
25683         builtin_add_overflow etc. functions.  No other software was using
25684         these newly-added macros yet, so this should be OK.
25685         * NEWS: Revert previous change, since the incompatible change
25686         has been reverted, and nobody used the incompatible version.
25687         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
25688         Document revised behavior.
25689         (Integer Range Overflow): Adjust example to match above revisions.
25690         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
25691         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
25692         these can be used in integer constant expressions again.
25693         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
25694         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
25695         needed.
25696         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
25697         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
25698         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
25699         Remove, as they did not seem that useful.
25700         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
25701         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
25702         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
25703         Support new semantics.
25704         (__has_builtin): New macro, if not alreay defined.
25705         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
25706         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
25707         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
25708         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
25709         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
25710         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
25711         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
25712         New macros.
25713         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
25715 2015-11-03  Jim Meyering  <meyering@fb.com>
25717         intprops: add parentheses for when OP has precedence lower than "-"
25718         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
25719         "a OP b" must be parenthesized for when OP is like "<<", which has
25720         lower precedence than the following "-". Reported by Pádraig Brady.
25722 2015-11-03  Pádraig Brady  <P@draigBrady.com>
25724         quotearg: constify get_quoting_style parameters
25725         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
25726         * lib/quotearg.c (get_quoting_style): Likewise.
25728 2015-11-02  Pádraig Brady  <P@draigBrady.com>
25730         quotearg: add support for $'' shell escaping
25731         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
25732         items and descriptions.
25733         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
25734         above types by quoting like "shell", but using $'...' syntax
25735         for non printable characters, which should provide unambiguous
25736         printable output for any input.
25737         * tests/test-quotearg-simple.c: Update accordingly.
25739 2015-11-02  Pádraig Brady  <P@draigBrady.com>
25741         maint: use a more standard return from mbrtowc test
25742         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
25743         from the test program as this is non standard and often
25744         indicates an unhandled case in the test program.
25745         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
25747 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
25749         intprops: add WRAPV and const flavors for GCC 5
25750         If available, use GCC 5's builtin functions for efficient integer
25751         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
25752         and safely compute the low-order bits of the correct answer.
25753         A downside of these efficient functions is that they cannot be
25754         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
25755         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
25756         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
25757         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
25758         Document the changes.
25759         (Wraparound Arithmetic): New section.
25760         (Integer Range Overflow):
25761         Put this subsection last, since it's least useful.
25762         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
25763         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
25764         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
25765         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
25766         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
25767         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
25768         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
25769         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
25770         New macros.
25771         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
25772         Generate calls to GCC builtins if available, for speed.
25773         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
25774         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
25775         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
25776         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
25777         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
25778         (CHECK_QUOTIENT, CHECK_REMAINDER):
25779         Test WRAPV and CONST flavors (when available) too.
25781 2015-10-30  Pádraig Brady  <P@draigBrady.com>
25783         doc: use extended timezone format in iso-8601 example
25784         * doc/parse-datetime.texi: The standard states that extended format
25785         is to be used consistently throughout.
25786         Note that lib/parse-datetime.y can handle either tz format.
25788 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
25790         stdalign: port to Sun C 5.9
25791         * doc/posix-headers/stdalign.texi: Document this.
25792         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
25793         __attribute__ ((__aligned__ (...))).
25795 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
25797         time_rz: fix comment about tzalloc
25798         * lib/time_rz.c (tzalloc): Fix comment.
25800 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
25802         stdalign: work around pre-4.9 GCC x86 bug
25803         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
25804         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
25805         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
25807 2015-10-18  Pádraig Brady  <P@draigBrady.com>
25809         maint.mk: sc_tight_scope: remove extraneous expressions
25810         * top/maint.mk (tight_scope): This is not really required since
25811         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
25812         that matches all nm entries.  But it does remove extraneous entries
25813         that may be confusing or cause issue in future maintenance.
25815 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
25817         time_rz: return NULL if localtime_r fails
25818         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
25819         while still attempting to pacify bleeding-edge GCC.
25821         fts: port to C11 alignof
25822         * doc/posix-headers/stdalign.texi (stdalign.h):
25823         Document the C11 restriction.
25824         * lib/fts.c: Include stddef.h, for max_align_t.
25825         (fts_alloc): Align using max_align_t, not FTSENT.
25826         * modules/fts (Depends-on): Add stddef.
25828 2015-10-18  Jim Meyering  <meyering@fb.com>
25830         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
25831         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
25832         would see this:
25834         lib/time_rz.c: In function 'localtime_rz':
25835         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
25836           [-Werror=nonnull]
25837                    if (tm && !save_abbr (tz, tm))
25838                        ^
25840         That was complaining about "tm" because it is a parameter that was
25841         declared with the __nonnull__ attribute.
25842         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
25843         result of localtime_r.
25845 2015-10-17  Jim Meyering  <meyering@fb.com>
25847         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
25848         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
25849         name-extraction regexp mistakenly used \S+, and would mistakenly
25850         extract "*F" from "extern int *F()" rather than the desired "F".
25851         Use \w+ instead.
25853 2015-10-17  Jim Meyering  <meyering@fb.com>
25855         maint.mk: sc_tight_scope: factor and support OS X
25856         * top/maint.mk (_gl_tight_scope): Address three issues:
25857         - factor out four instances of code that wraps a string in "^...$"
25858         - allow nm-reported symbol names to have an optional leading "_"
25859         - add "main" to the list of ignored variable names, because on os x,
25860         "main" has nm-reported type "S" in the variable-checking section.
25862 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
25864         safe-alloc-tests: fix typo in license header
25865         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
25867 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
25869         copy-file: fix mem leak in error case
25870         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
25871         upon error opening or performing I/O to the src and dest files.
25873 2015-10-15  Mike Frysinger  <vapier@chromium.org>
25875         localename: control langinfo.h inclusion
25876         This header is only used to work around buggy behavior in old
25877         versions of glibc, so do not include it all the time.  Otherwise
25878         we get build failures on systems that do not provide langinfo.h.
25879         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
25880         in the source later on.
25881         The patch was originally submitted to gettext as:
25882         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
25884 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
25886         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
25887         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
25888         * lib/u64.c, lib/unistd.c:
25889         Append 'typedef int dummy;', to pacify compilers that are picky
25890         about empty translation units.
25892 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
25894         accept4-tests: fix to avoid non portable flags
25895         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
25896         as they are the only documented ones, and passing others may trigger
25897         EINVAL (seen on FreeBSD 10.1-RELEASE).
25898         * doc/glibc-functions/accept4.texi: Mention that we don't provide
25899         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
25901 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
25903         gnulib-tool: fix tests of 'extensions' module
25904         This complements f8fe25fab60e3c687a124 commit.
25905         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
25906         emitting of initial gl_EARLY macros.
25907         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
25908         replaced with func_emit_pre_early_macros call.
25910 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
25912         unicase/locale-language: fix typo in utf-8 cookie
25913         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
25914         Problem reported by Zbigniew Jędrzejewski-Szmek.
25916 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
25918         xalloc: do not worry about GCC 5 warning on 32 bit
25919         * lib/xalloc.h: Revert previous change.
25920         I found a better way to fix this in coreutils.
25922 2015-10-02  Pádraig Brady  <P@draigBrady.com>
25924         xalloc: avoid GCC 5.1 warning on 32 bit
25925         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
25926         xalloc_oversized(), which was seen to give this warning
25927         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
25928         when simplifying conditional".
25930 2015-10-02  Daiki Ueno  <ueno@gnu.org>
25932         uniname/uniname-tests: avoid compiler warnings
25933         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
25934         unused local variables.
25935         (test_alias_lookup): Fix alias name display in failure cases.
25937 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
25939         c-ctype: do not worry about EBCDIC + char signed
25940         Drop support for EBCDIC with char being signed, as this breaks too
25941         many programs.  Problem reported by Ben Pfaff in:
25942         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
25943         * lib/c-ctype.h: Verify that we are not using EBCDIC with
25944         char being signed.
25945         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
25946         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
25947         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
25948         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
25949         * tests/test-c-ctype.c (test_all):
25950         Simplify by assuming standard char values cannot be negative.
25951         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
25953 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
25955         c-ctype: port better to z/OS EBCDIC
25956         Problems reported by Daniel Richard G. in:
25957         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
25958         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
25959         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
25960         (_C_CTYPE_OTHER_CNTRL): New macro.
25961         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
25962         from SCHAR_MIN, as the functions are defined only from values
25963         promoted from char or from unsigned char, not necessarily from
25964         signed char.
25966 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
25968         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
25970         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
25971         and ARFLAGS variables.  Doing this unconditionally could break
25972         later Automake's AM_PROG_AR invocation (at least it's
25973         AC_CHECK_TOOLS call to detect correct 'ar' binary).
25975         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
25976         Amsterdam Compiler Kit, so make the previous code to have effects
25977         only on ACK, and rather automatically call the Automake's
25978         AM_PROG_AR as soon as possible to decide other cases.
25980         References:
25981         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
25983         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
25984         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
25985         is possible, keep setting AR/ARFLAGS to reasonable defaults.
25986         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
25987         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
25988         'extensions' module is used.
25989         * modules/extensions (configure.ac-early): Remove as this snippet
25990         is added to gnulib-comp.m4 earlier anyway.
25992 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
25994         sockets: MS Windows initalization fixes
25995         Problem reported by Test User in:
25996         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
25997         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
25998         Correct the endianness.
25999         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
26000         number mismatch, not just on <.  Cleanup before any such failure.
26002 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
26004         gc: fix detection of installed libgcrypt version
26005         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
26006         at least as recent as 1.4.4.  The previously used macro is not
26007         available now, since modules were removed in version 1.6.0.
26009 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
26011         c-ctype: rewrite to use inline functions
26012         This simplifies maintenance, since it makes for just one
26013         implementation of each function, letting the compiler have the fun
26014         of optimization.  In practice this works well nowadays with GCC.
26015         E.g., c_isascii might need only three instructions even though the
26016         source code lists every ASCII character individually in a large
26017         switch statement.
26018         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
26019         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
26020         * NEWS: Document the API change.
26021         * lib/c-ctype.c: Drastically simplify, since this now just expands
26022         inline functions.
26023         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26024         (C_CTYPE_INLINE): New macro.
26025         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
26026         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
26027         Verify that either ASCII or EBCDIC is being used.
26028         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
26029         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
26030         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
26031         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
26032         New private macros.
26033         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
26034         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
26035         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
26036         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
26037         (c_tolower, c_toupper): When converting, return the unsigned char,
26038         as that is what z/OS does.
26039         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
26040         of some c-ctype.h macros.
26041         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
26042         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
26043         c_tolower promotion to be compatible with z/OS.
26045 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
26047         gitlog-to-changelog: trim only trailing whitespaces
26048         This is fix for --format regression introduced by commit
26049         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
26050         doubled %n string) had no effect anymore.  This format
26051         specification has been used e.g. by GNU paxuitils (commit
26052         edfd8bcc3).
26054         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
26055         newlines in commmit messages.
26057 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
26059         Test that c_iscntrl agrees with iscntrl, etc.
26060         Suggested by Daniel Richard G. in:
26061         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
26062         * modules/c-ctype-tests (Depends-on): Add ctype.
26063         * tests/test-c-ctype.c: Include <ctype.h>.
26064         (NCHARS): New constant.
26065         (test_agree_with_C_locale): New function.
26066         (main): Use it.
26067         (test_all): Use named constants.
26069         c-ctype: improve c_isascii testing
26070         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
26071         Add a test to count the number of ASCII characters.
26073 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
26075         savewd: remove SAVEWD_CHDIR_READABLE
26076         It was problematic in the light of file systems that ignore umask.
26077         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
26078         * NEWS: Document this.
26079         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
26080         successful, -1 (setting errno) on failure, rather than something
26081         more complicated than that.
26082         * lib/mkdir-p.c (make_dir_parents):
26083         Do not use SAVEWD_CHDIR_READABLE.
26084         * lib/savewd.c (savewd_chdir):
26085         Remove support for SAVEWD_CHDIR_READABLE.
26086         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
26088         c-ctype: port better to EBCDIC
26089         Problems reported by Daniel Richard G. in
26090         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
26091         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
26092         Include "verify.h".
26093         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
26094         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
26095         Define as enum constants with value false, if not defined, so that
26096         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
26097         code more portable, as both branches of the 'if' are compiled on
26098         all platforms.
26099         (C_CTYPE_EBCDIC): New constant.
26100         Verify that the character set is either ASCII or EBCDIC.
26101         (to_char): New static function.
26102         (c_isascii, c_iscntrl):
26103         Assume standard control-character assignments for EBCDIC.
26104         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
26105         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
26106         Rewrite to use 'if' instead of 'ifdef'.
26107         Use to_char if non-ASCII.  Prefer <= to >=.
26108         Prefer true and false to 1 and 0, for booleans.
26109         (c_iscntrl): Use 'if', not 'ifdef'.
26110         * modules/c-ctype (Depends-on): Add verify.
26111         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
26112         (to_char): New function.
26113         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
26115 2015-09-21  Pádraig Brady  <P@draigBrady.com>
26117         nanosleep: fix return code for interrupted replacement
26118         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
26119         that we return -1 in the case the call is interrupted by a signal,
26120         rather than the current value of 1.
26121         Diagnosed and tested by Daniel Richard G.
26123 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
26125         Diagnose ERE '()|\1'
26126         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
26127         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
26128         track of the set of previously-completed subexpressions available
26129         before the first alternative, and restore this set just before
26130         parsing each subsequent alternative.  This lets us diagnose the
26131         invalid back-reference in the ERE '()|\1'.
26133         regex: merge patches from libc
26135         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
26136         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
26137         * lib/regex_internal.h:
26138         Include <libc-lock.h> instead of <bits/libc-lock.h>.
26140         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
26141         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
26142         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
26143         wcscoll.
26144         * lib/regexec.c (check_node_accept_bytes): Likewise.
26146         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
26147         Fix regex wcrtomb namespace (bug 18496).
26148         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
26149         instead of wcrtomb.
26151         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
26152         Fix regex wctype namespace (bug 18495).
26153         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
26154         instead of towlower.
26155         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
26156         instead of iswlower.  Call __towupper instead of towupper.
26157         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
26158         instead of iswalnum.
26160         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
26161         * lib/regcomp.c (parse_bracket_exp): Initialize type to
26162         COLL_SYM in a couple of places to avoid uninitialized variable
26163         wanings on tilegx gcc 4.8.2.
26165         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
26166         * lib/regex_internal.h: Remove NOT_IN_libc.
26168         2014-11-17  Andreas Schwab  <schwab@suse.de>
26169         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
26171         2014-09-11  Roland McGrath  <roland@hack.frob.com>
26172         Move findidx nested functions to top-level.
26173         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
26174         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
26175         Pass new arguments to findidx.
26176         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
26177         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
26178         Don't #include it inside the function.  Pass new arguments to findidx.
26179         * lib/regex_internal.h:
26180         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
26181         (re_string_elem_size_at): Don't #include it inside the function.
26182         Pass new arguments to findidx.
26184         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
26185         Check if DEBUG is defined in regex_internal.c
26186         * lib/regex_internal.c: Check if DEBUG is defined and is set.
26188 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
26190         ceill: detect buggy OpenBSD implementation
26191         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
26192         which returns zero for small values.  Discussed here:
26193         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
26195 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
26197         mountlist: add me_mntroot field on Linux machines
26198         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
26199         mount_entry so Linux machines based on /proc/self/mountinfo can
26200         distinguish between bind mounts and original mounts.  In reality bind
26201         mounts aren't treated differently than mountroot=/ mounts by the
26202         kernel, but the user often wants these bind mounts distinguished.
26203         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
26204         More details at https://pad.lv/1432871
26206 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
26208         doc: Describe to use multiple instances of gnulib
26209         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
26210         instances of gnulib with different modules can be used, for example one
26211         for a lib and another one for associated tools.
26213 2015-09-01  Pádraig Brady  <P@draigBrady.com>
26215         base32: mark function as __attribute__ const
26216         * lib/base32.h (isbase32): Mark __attribute__ const as
26217         suggested by GCC, and consistent with the base64 module.
26219 2015-08-20  Daiki Ueno  <ueno@gnu.org>
26221         gnulib-tool: don't transform binary files with sed
26222         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
26223         .mo and .class files.
26224         Reported by Denis Denisov.
26226 2015-08-10  Daiki Ueno  <ueno@gnu.org>
26228         gperf: respect silent rules
26229         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
26230         V_GPERF_0 for silent rules.
26231         * modules/iconv_open (Makefile.am): Use V_GPERF.
26232         * modules/unicase/locale-language (Makefile.am): Likewise.
26233         * modules/unicase/special-casing (Makefile.am): Likewise.
26234         * modules/unictype/category-byname (Makefile.am): Likewise.
26235         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
26236         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
26237         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
26238         * modules/unictype/property-byname (Makefile.am): Likewise.
26239         * modules/unictype/scripts (Makefile.am): Likewise.
26240         * modules/uninorm/composition (Makefile.am): Likewise.
26242 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
26244         Improve port of stdalign to C++11
26245         Problem reported by Sundaram in:
26246         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
26247         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
26248         (__alignas_is_defined): Define if C++11 or newer.
26250 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
26252         pmccabe2html: fix gawk regex escaping
26253         * build-aux/pmccabe2html: Add one more backslash to properly
26254         escape the gsub replacement value.  Fixes this error:
26255         gawk: ./build-aux/pmccabe2html:425: \
26256         warning: escape sequence `\&' treated as plain `&'
26258 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
26260         time_rz: port to pedantic memcpy
26261         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
26262         that reject memcpy (..., NULL, 0).
26264 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
26266         time_rz: port better to MinGW
26267         Don't change tzname, as this makes MinGW dump core (Bug#21020).
26268         Instead, store the tzname copy in the struct tm_zone object.
26269         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
26270         * lib/strftime.c [!_LIBC]:
26271         * lib/time_rz.c: Include time-internal.h.
26272         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
26273         name from *TZ rather than from TZNAME, doable because *TZ now has
26274         a tzname_copy member.
26275         * lib/time-internal.h: New file, with contents taken from
26276         lib/time_rz.c.  It's separate because strftime.c now accesses
26277         struct tm_zone members.
26278         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
26279         New member tzname_copy.
26280         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
26281         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
26282         Initialize tzname_copy member.
26283         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
26284         in tzname_copy member.
26285         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
26286         (restore_tzname): Remove; no longer needed.  All calls removed.
26287         * modules/time_rz (Files): Add lib/time-internal.h.
26289         time: port __need_time_t to MinGW
26290         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
26291         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
26293 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
26295         strftime: fix newly-introduced bug on Solaris
26296         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
26297         consistently at the start, rather than doing some of the setup at
26298         the start and some in the %Z format spec.  This is cleaner, and
26299         works better with time_rz on platforms like Solaris where struct
26300         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
26301         mktime_z and localtime_rz can mess up the tzname cache.
26303         test-strftime: test for Solaris bug
26304         * modules/strftime-tests (Depends-on): Add strerror.
26305         * tests/test-strftime.c: Include <errno.h>.
26306         (posixtm_test): New function, containing the old 'main'.
26307         (struct tzalloc_test, struct localtime_rz_test): New types.
26308         (TZ, LT): New static vars.
26309         (tzalloc_test): New function.
26310         (main): Rewrite in terms of posixtm_test and tzalloc_test.
26312         time_rz: port to Solaris etc.
26313         Works around a tzname problem on platforms like Solaris that have
26314         tzname but not tm_zone, by setting tzname at the appropriate time
26315         and restoring it later.
26316         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
26317         New static vars.
26318         (save_abbr) [HAVE_TZNAME]: Set them.
26319         (revert_tz) [HAVE_TZNAME]: Clear or use them.
26320         (restore_tzname): New function.
26321         (localtime_rz, mktime_z): Use it.
26323         time_rz: now LGPL
26324         * modules/time_rz (License): Now LGPL, because strftime depends on it.
26326         time_rz: make a constant 'const'
26327         * lib/time_rz.c (local_tz): Now const.
26329         time_rz: fix off-by-one typo
26330         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
26332 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
26334         fprintftime, strftime: use timezone_t args
26335         * NEWS: Document the change.
26336         * lib/fprintftime.h (fprintftime):
26337         * lib/strftime.c (extra_args) [my_strftime]:
26338         * lib/strftime.h (nstrftime):
26339         Time zone arg is now of type timezone_t, not int.
26340         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
26341         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
26342         (my_strftime) [emacs && !my_strftime]:
26343         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
26344         Remove; Emacs doesn't need this any more.
26345         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
26346         fprintftime and nstrftime to call tzset.
26347         (ut) [!my_strftime]: Remove, replacing with ...
26348         (tz) [!my_stftime]: ... this new macro.  All uses changed.
26349         (strftime_case_): Use localtime_rz and mktime_z instead
26350         of localtime_r and mktime.
26351         * modules/fprintftime (Depends-on): Add time_rz.
26352         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
26353         * tests/test-strftime.c (main): Adjust to new nstrftime API.
26355         time_rz: new module
26356         * MODULES.html.sh: Add time_rz.
26357         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
26358         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
26359         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
26360         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
26361         New var HAVE_TIMEZONE_T (default 0).
26362         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
26363         New var GNULIB_TIME_RZ (default 0).
26364         * modules/time (time.h): Substitute the new vars.
26366         flexmember: license is now unlimited
26367         * modules/flexmember (License): Change to unlimited,
26368         since its only source file gives an unlimited license.
26370 2015-07-15  Eric Blake  <eblake@redhat.com>
26372         maint: update copyright paper procedures
26373         * config/srclist.txt: Drop outdated files.
26374         * doc/Copyright/conditions.txt: Update to latest.
26375         * doc/Copyright/assign.changes.manual: Delete.
26376         * doc/Copyright/assign.future.manual: Likewise.
26377         * doc/Copyright/assign.manual: Likewise.
26378         * doc/Copyright/assign.translation.manual: Likewise.
26379         * doc/Copyright/disclaim.changes.manual: Likewise.
26380         * doc/Copyright/disclaim.manual: Likewise.
26381         * doc/Copyright/disclaim.program: Likewise.
26383 2015-07-07  Daiki Ueno  <ueno@gnu.org>
26385         localename: fix link error on Illumos
26386         Illumos defines __sun, but does not have getlocalename_l nor the
26387         equivalent.  This partially reverts commit 387c214.
26388         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
26389         available, as well as uselocale.
26390         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
26391         use getlocalename_l if it is not available.
26393 2015-07-07  Daiki Ueno  <ueno@gnu.org>
26395         unistr/uN-strtok-tests: avoid a trivial leak
26396         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
26397         input and delim after the multibyte delimiter tests.
26399 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
26401         file-has-acl, acl-permissions: fix HP-UX typos
26402         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
26403         * lib/file-has-acl.c (file_has_acl):
26404         * lib/set-permissions.c (context_acl_from_mode)
26405         (context_aclv_from_mode, set_acls):
26406         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
26407         They were introduced by the recent ACL changes.
26409         regex: match current GNU grep behavior
26410         These symbols have not matched GNU grep behavior for quite some time.
26411         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
26412         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
26413         Change to match current GNU behavior.
26414         Simplify by expressing it as differences from POSIX BREs and EREs.
26415         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
26417 2015-07-03  Jim Meyering  <meyering@fb.com>
26419         set-permissions.c: adjust acl_from_mode's cpp guard
26420         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
26421         directives identical to those guarding the sole use.
26422         Otherwise, on some systems, we'd get a warning about
26423         the function being defined but not used.
26424         Also, filter through cppi to correct misleading indentation
26425         of cpp directives.
26427 2015-07-03  Pádraig Brady  <P@draigBrady.com>
26429         tests: restrict shells to those that support 'local'
26430         The local keyword is very widely supported and used
26431         in tests in coreutils and grep at least.  Therefore
26432         restrict to testing with shells that support it.
26433         This mainly excludes /bin/sh on Solaris.
26434         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
26436 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
26437         and Daiki Ueno  <ueno@gnu.org>
26439         unistr/uN-strtok: handle multibyte delimiters
26440         Previously, uN_strtok moved PTR to the next unit to the token end.
26441         When DELIM contained a multibyte character, the new position could
26442         be a middle of a multibyte character.
26443         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
26444         after the token.
26445         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
26446         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
26447         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
26448         * modules/unistr/u8-strtok (Depends-on): Depend on
26449         unistr/u8-strmblen.
26450         * modules/unistr/u16-strtok (Depends-on): Depend on
26451         unistr/u16-strmblen.
26452         * modules/unistr/u32-strtok (Depends-on): Depend on
26453         unistr/u32-strmblen.
26454         * tests/unistr/test-u-strtok.h: New file.
26455         * tests/unistr/test-u8-strtok.c: New file.
26456         * tests/unistr/test-u16-strtok.c: New file.
26457         * tests/unistr/test-u32-strtok.c: New file.
26458         * modules/unistr/u8-strtok-tests: New file.
26459         * modules/unistr/u32-strtok-tests: New file.
26460         * modules/unistr/u16-strtok-tests: New file.
26462 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
26464         update-copyright: fix test failure with perl >= 5.22 (trivial)
26465         * build-aux/update-copyright: Escape a literal left curly bracket,
26466         required with perl >= 5.22
26468 2015-07-02  Daiki Ueno  <ueno@gnu.org>
26470         u{16,32}-strstr-tests: relax timeout condition
26471         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
26472         tests can take longer than 5 seconds to complete.
26473         Reported by Dagobert Michelsen in:
26474         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
26475         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
26476         seconds to 10 seconds.
26477         * tests/unistr/test-u32-strstr.c (main): Likewise.
26479 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
26481         gnulib-common.m4: change the ARFLAGS default to 'cr'
26482         In some GNU/Linux distributions people started to compile 'ar'
26483         binary with --enable-deterministic-archives (binutils project).
26484         That, however, in combination with previous autotools long time
26485         working default AR{_,}FLAGS=cru causes warnings on such
26486         installations:
26487         ar: `u' modifier ignored since `D' is the default (see `U')
26488         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
26489         set already.
26491 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
26493         selinux-h: avoid double free after *getfilecon()
26494         Originally reported by Ben Shelton on bug-tar:
26495         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
26496         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
26497         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
26498         param should be freed by freecon(3) (regardless the return value).
26500 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
26502         fix pty related tests issues on Windows (trivial)
26503         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
26504         however it's still present in tests/ subdirectory of the final project.
26505         Therefore avoid it to pass `make check`.
26506         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
26507         will just return -ENOSYS, so avoid this non applicable test allowing
26508         the build to proceed.
26510 2015-07-01  Pádraig Brady  <P@draigBrady.com>
26512         acl: fix definition of acl_from_mode on FreeBSD
26513         This was causing basic coreutils copy operations to fail
26514         with ENOTSUP or ENOENT error messages.
26515         * lib/acl-internal.h (acl_from_mode): Only define when
26516         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
26517         of acl_from_mode() defined in lib/set-permissions.c to
26518         be used on FreeBSD at least.
26519         * lib/set-permissions.c: Fix up comment spelling,
26520         and a redundant variable assignment; noticed in passing.
26522 2015-06-30  Pádraig Brady  <P@draigBrady.com>
26524         readutmp: port to FreeBSD >= 9
26525         * lib/readutmp.h: Map utmpxname() to setutxdb().
26526         With that coreutils who(1) and pinky(1) tests pass.
26528 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
26530         mgetgroups: port to strict OS X
26531         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
26532         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
26533         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
26534         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
26536 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
26538         mgetgroups: port to strict OS X
26539         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
26540         Document the getgrouplist problem.
26541         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
26542         New macro.
26543         (mgetgroups): Use it.
26544         * m4/mgetgroups.m4 (gl_MGETGROUPS):
26545         Check for OS X signature for getgrouplist.
26547 2015-06-29  Jim Meyering  <meyering@fb.com>
26549         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
26550         It started like this when building coreutils' latest on OS X,
26551         invoking ./configure with a nonempty --cache=.cache:
26553           lib/linkat.c:46:42: error: operator '||' has no right operand
26554           lib/linkat.c: In function 'rpl_linkat':
26555           lib/linkat.c:330:27: error: #if with no expression
26557         Here's linkat.c's line 46:
26559           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
26561         Here's some context:
26563           $ grep linkat_nofoll .cache
26564           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
26565           $ grep LINKAT_SYM lib/config.h
26566           #define LINKAT_SYMLINK_NOTSUP
26568         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
26569         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
26570         but that violates a tenet of AC_CACHE_CHECK: it must
26571         have no side effect other than setting its cache variable.
26573         What happens is that when the cache is set, we'd skip the
26574         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
26575         defined to whatever value it happened to have in configure's
26576         environment.  In my case, it was not defined, so this later code:
26578           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
26579             [Define to 1 if linkat can create hardlinks to symlinks])
26581         would emit code with an empty RHS.
26583         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
26584         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
26586 2015-06-28  Jim Meyering  <meyering@fb.com>
26588         mountlist: avoid an unused-label warning on OS X
26589         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
26590         Building on OS X, I saw a warning about the "free_then_fail" label
26591         being unused.  Give it the _GL_UNUSED_LABEL attribute.
26593         error.c: correct printf-style format: %d -> %u
26594         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
26595         rather than %d, to match the type of "line_number", unsigned int.
26597 2015-06-25  Pádraig Brady  <P@draigBrady.com>
26599         fts: avoid reading beyond the heap allocation
26600         GCC 5.1.1 with -O2 and -fsanitize=address reports
26601         a read of size 4 from a heap object of size 3 is indeed invalid,
26602         though this may be due to incorrect padding assumptions by GCC, see:
26603         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
26604         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
26605         * modules/fts: Depend on stdalign.
26607 2015-06-24  Pádraig Brady  <P@draigBrady.com>
26609         savedir: avoid undefined behavior in qsort call
26610         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
26611         "runtime error: null pointer passed as argument 1,
26612          which is declared to never be null"
26613         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
26615 2015-06-24  Pádraig Brady  <P@draigBrady.com>
26617         userspec: avoid undefined behavior in gettext call
26618         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
26619         "runtime error: null pointer passed as argument 2,
26620          which is declared to never be null"
26621         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
26623 2015-06-20  Glenn Morris  <rgm@gnu.org>
26625         gitlog-to-changelog: improve gitmerge.el commits
26626         Let the Emacs ChangeLog generation process exclude "skipped"
26627         messages from merge commits (Bug#20717).
26628         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
26630 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
26632         wchar: fix MinGW compilation warnings
26633         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
26634         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
26635         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
26637 2015-06-20  Daiki Ueno  <ueno@gnu.org>
26639         uniname/uniname-tests: use pristine data files
26640         For copyright and maintenance reasons, use the data files from UCD
26641         without modification.
26642         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
26643         (getfield): Remove.
26644         (aliases_count): New global variable.
26645         (fill_names): Skip comments and empty lines in the input.  Don't
26646         use getfield.
26647         (fill_aliases): Likewise.
26648         (main): Change the expected command line arguments to:
26649         NAMES... ["--" ALIASES...].
26650         * tests/uniname/test-uninames.sh: Adjust to the change in
26651         test-uninames.c.
26652         * tests/uniname/UnicodeDataNames.txt: Remove.
26653         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
26654         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
26655         file from Unicode 8.0.0.
26657 2015-06-19  Pádraig Brady  <P@draigBrady.com>
26659         linked-list, linkedhash-list: avoid compiler warnings
26660         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
26661         -Werror=suggest-attribute=pure (from GCC 5.1.1).
26663 2015-06-19  Daiki Ueno  <ueno@gnu.org>
26665         libunistring: bump minimum version to 0.9.6
26666         * all modules depending on updated Unicode data: Regenerate.
26667         The modules are listed by a script that does:
26668         - for each file listed by: git show --oneline --name-only 705f4efc
26669           - deduce the containing modules, based on "Files:"
26670         - deduce the modules which depend on the containing modules, based
26671           on "Depends-on:"
26673 2015-06-18  Daiki Ueno  <ueno@gnu.org>
26675         uniname/uniname: update to Unicode 8.0.0
26676         * lib/uniname/uninames.h: Regenerate.
26677         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
26678         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
26680 2015-06-18  Daiki Ueno  <ueno@gnu.org>
26682         libunistring: update to Unicode 8.0.0
26683         * lib/gen-uni-tables.c (SIZEOF): New macro.
26684         (output_numeric): Increase the maximum number of fractions from
26685         128 to 160.  Increase the level3 value width from 7 bits to 8
26686         bits.  Use SIZEOF instead of a hard-coded integer.
26687         (output_blocks): Decrease the cut-off threshold from 0x30000 to
26688         0x28000.
26689         (fill_blocks): Increase the maximum number of blocks from 256 to
26690         384.  Use SIZEOF instead of a hard-coded integer.
26691         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
26692         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
26693         value width.
26694         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
26695         a new case added to LBP22.
26696         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
26697         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
26698         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
26699         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
26700         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
26701         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26702         lib/uniwidth/width.c.
26703         * all generated files under lib/uni* and tests/uni*: Regenerate.
26705 2015-06-16  Pádraig Brady  <P@draigBrady.com>
26707         gnu-web-doc-update: add --mirror to remove stale files
26708         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
26709         out of date files from the CVS server.  Since this is usually
26710         appropriate, a prompt is given when the option is not specified,
26711         along with the `cvs remove` command that would be run.
26713 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
26715         acl-permissions: pacify -Wsuggest-attribute=const
26716         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
26717         * lib/acl-internal.h (free_permission_context):
26718         Declare with attribute const if ! (defined USE_ACL &&
26719         (HAVE_ACL_GET_FILE || defined GETACL)).
26721         fsync: document AIX misbehavior
26722         * doc/posix-functions/fsync.texi (fsync):
26723         Document failure on AIX with read-only file descriptor.
26725 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
26727         stdio: Don't redefine gets when using C++
26728         * lib/stdio.in.h (gets): Disable warning on C++.
26730 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
26732         acl-permissions: port to AIX, C89 HP-UX
26733         Problems reported by Michael Felt.
26734         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
26735         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
26736         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
26737         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
26738         Add cast for AIX, whose system calls are declared to accept
26739         char * even though the arguments are really char const *.
26740         * lib/get-permissions.c (get_permissions):
26741         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
26742         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
26743         that broke a build.
26744         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
26745         Rework types to pacify xlc.
26747 2015-06-03  Pádraig Brady  <P@draigBrady.com>
26749         vasprintf-posix: avoid compiling vasnprintf where possible
26750         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
26751         module where not required.  For example on a GNU/Linux system
26752         when gnulib-tool is run with the --conditional-dependencies option.
26754 2015-06-02  Pádraig Brady  <P@draigBrady.com>
26756         file-has-acl: fix build on Mac OS X 10
26757         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
26758         which has an incompatible 6 parameter getxattr() call.
26759         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
26760         call on Mac OS X >= 10.4.
26761         * doc/glibc-functions/fgetxattr.texi: Likewise.
26762         * lib/file-has-acl.c: Revert to more complete combined check.
26763         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
26764         Reported by Jack Howarth.
26766 2015-06-02  Pádraig Brady  <P@draigBrady.com>
26768         prefix-gnulib-mk: remove no longer needed special case
26769         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
26770         continued lib_SOURCES lines are no longer present,
26771         so special case handling of such entries is not required.
26773 2015-06-01  Pádraig Brady  <P@draigBrady.com>
26775         acl: don't depend on the deprecated qacl module
26776         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
26778 2015-06-01  Pádraig Brady  <P@draigBrady.com>
26780         gnulib-tool: concatenate lib_SOURCES to a single line
26781         * gnulib-tool: Refactor the line merging sed logic,
26782         and use that to output a single lib_SOURCES line for each module.
26783         gnulib using projects often postprocess this output to prepend
26784         subdir paths to each item, and having a single line simplifies this
26785         processing allowing better decoupling from the gnulib-tool output.
26787 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
26789         pthread_sigmask: discount system version if a simple macro (trivial)
26790         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
26791         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
26792         function to ensure it's available.
26794 2015-05-31  Pádraig Brady  <P@draigBrady.com>
26796         readlinkat: avoid OS X 10.10 trailing slash bug
26797         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
26798         has this bug.
26799         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
26800         that OS X 10.10 has this function.
26801         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
26802         as done for readlink().
26803         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
26804         trailing slash bug, and assume readlinkat() has the same issue.
26805         Also fix a typo where $gl_cv_decl_readlink_works was tested,
26806         rather than the correct $gl_cv_decl_readlinkat_works.
26808 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
26810         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
26811         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
26812         module rewrite.
26814         acl-permissions: Fix build on Solaris and Cygwin
26815         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
26816         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
26817         ace_entries variables have moved into struct permission_context but
26818         they were still accessed as local variables here.
26820 2015-05-29  Pádraig Brady  <P@draigBrady.com>
26822         linkat: avoid OS X 10.10 trailing slash with symlink bug
26823         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
26824         causes the symlink to be dereferenced, and if it points
26825         to a non existent file, that file will be created as
26826         a hard link to "path1".
26827         This fixes a test failure in test-linkat.c.
26828         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
26829         this case.  The existing workaround in linkat.c for
26830         trailing slash issues, suffices for this case.
26831         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
26832         the list of platforms with trailing slash issues.
26834 2015-05-28  Pádraig Brady  <P@draigBrady.com>
26836         unlinkat: handle ignoring of ".." on Darwin 14
26837         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
26838         on Mac OS X 10.10, where it ignores paths with a trailing "..",
26839         so handle in the same manner.
26840         * m4/unlinkat.m4: Comment on this Darwin issue.
26841         * doc/posix-functions/unlink.texi: Update the latest version
26842         where the issue was seen.
26843         * doc/posix-functions/unlinkat.texi: Mention this issue.
26844         Fixes a test failure in test-unlinkat.c.
26846 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
26848         qacl: split into qcopy-acl and qset-acl
26849         Emacs needs the former, but not the latter.
26850         * modules/acl-permissions: New file, containing most of the old qacl.
26851         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
26852         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
26853         * modules/qcopy-acl, modules/qset-acl: New files.
26854         * MODULES.html.sh (File system functions):
26855         Mention the new modules, and mention qacl while we're at it.
26857 2015-05-27  Glenn Morris  <rgm@gnu.org>
26859         gitlog-to-changelog: new option --ignore-line
26860         (This patch is imported from the GNU Emacs master.)
26861         This option ignores individual commit lines matching a pattern.
26862         * build-aux/gitlog-to-changelog: Add --ignore-line option.
26864 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
26866         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
26867         Implement get_permissions and set_permissions primitives for getting all
26868         the permissions of a file, storing them, and later setting them. (In the
26869         minimal case, the permissions consist only of a file mode.) Reimplement
26870         qset_acl and qcopy_acl based on these new primitives: this avoids code
26871         duplication and makes error handling more consistent.
26872         The Solaris and Cygwin code still uses duplicate code paths for setting
26873         a file mode while making sure that no acls exist and setting an explicit
26874         acl; this is no worse than before, but could be cleaned up.  The AIX
26875         code still doesn't read ACLs, it only makes sure that acls don't get in
26876         the way when setting a file mode.
26877         * lib/acl-internal.h (struct permission_context): New data structure.
26878         (get_permissions, set_permissions, free_permission_context): Declare.
26879         * lib/acl-internal.c (free_permission_context): New helper function.
26880         * lib/get-permissions.c (get_permissions): New helper function split off
26881         from qcopy_acl.
26882         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
26883         AIX, set a file's permissions based only on a file mode.
26884         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
26885         other platforms construct a temporary acl from the file mode and set
26886         that acl in the same way as setting an acl read from the source file.
26887         This should help avoid code duplication and inconsistent / buggy
26888         behavior.
26889         (set_acls): New helper function Split off from qcopy_acl.
26890         (chmod_or_fchmod): Moved here from qset-acl.c.
26891         (set_permissions): New helper function.
26892         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
26893         set_permissions.
26894         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
26895         * modules/qacl: Add get-permissions.c and set-permissions.c.
26897         file-has-acl: Split feature tests again (Bug#20667)
26898         * lib/file-has-acl.c: Instead of testing for
26899         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
26900         define them when needed.
26901         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
26902         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
26904 2015-05-27  Pádraig Brady  <P@draigBrady.com>
26906         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
26907         This avoids a conflict with "FORTIFY_SOURCE" variants
26908         of the string functions when they're replaced on NetBSD-6.0.1
26909         and Darwin-14.3.0 at least.
26910         * lib/string.in.h: Avoid including our "lib/string.h" while
26911         including the system <string.h>.
26913 2015-05-26  Eric Blake  <eblake@redhat.com>
26915         stdio: limit __gnu_printf__ witness to gcc 4.4+
26916         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
26917         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
26919         error: use correct printf attributes on mingw
26920         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
26922         inttypes: force correct mingw PRIdMAX even without <stdio.h>
26923         * modules/inttypes (Depends-on): Require extensions, so that mingw
26924         always uses GNU style inttypes.
26925         * lib/inttypes.in.h: On mingw, include <stdio.h>.
26927         stdio: fix probe on mingw under gcc 5.1
26928         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
26929         around new gcc preprocessor rules.
26931 2015-05-07  Glenn Morris  <rgm@gnu.org>
26933         gitlog-to-changelog: parse "Tiny-change"
26934         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
26935         "Copyright-paperwork-exempt".  (Bug#20324)
26937 2015-05-06  Pádraig Brady  <P@draigBrady.com>
26939         doc: document glibc posix_fallocate() issues
26940         * doc/posix-functions/posix_fallocate.texi: Mention the
26941         glibc efficiency problems and issues with NFS.
26943 2015-05-05  Karl Berry  <karl@freefriends.org>
26945         * build-aux/gendocs.sh (usage): document new css default
26946         for HTML (--htmlarg).
26948 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
26950         extern-inline: no need for workaround in GCC 5.1
26951         * doc/extern-inline.texi (extern inline):
26952         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
26953         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
26954         around these bugs in GCC 5.1 and later.  Maybe in a decade or
26955         two we can remove these workarounds.
26957 2015-04-28  Pádraig Brady  <P@draigBrady.com>
26959         eealloc, pagealign_alloc, xalloc: avoid clang warnings
26960         Avoid [-Wunknown-attributes] warnings like:
26961         warning: unknown attribute '__alloc_size__' ignored
26962         * lib/xalloc.h: Don't use the __alloc_size__  attribute
26963         with clang, as support has been fully removed as of clang 3.5:
26964         https://github.com/llvm-mirror/clang/commit/c047507a
26965         * lib/eealloc.h: Likewise.
26966         * lib/pagealign_alloc.h: Likewise.
26968 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
26970         tests: pacify GCC 5.1's stricter printf checking
26971         * tests/test-dirname.c (main):
26972         * tests/test-getaddrinfo.c (simple):
26973         * tests/test-getlogin.c (main):
26974         * tests/test-getndelim2.c (main):
26975         * tests/test-inttostr.c (CK):
26976         * tests/test-md5.c (main):
26977         * tests/test-read-file.c (main):
26978         * tests/test-sha1.c (main):
26979         Fix mismatches between printf format and value signedness.
26980         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
26981         Remove, as CAST_VAL always returned a value of type uintmax_t.
26983         fts: port to GCC 5.1 with --enable-gcc-warnings
26984         Without this fix, GCC 5.1 (correctly) warns about a subscript
26985         error on the fts_name component of FTSENT.  It's actually a
26986         flexible member, so define it that way on C99 or later hosts.
26987         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
26988         structure that now has a flexible array member.
26989         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
26990         (FTSENT): fts_name is now flexible on C99-or-later platforms.
26991         * modules/fts (Depends-on): Add flexmember.
26993 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
26995         file-has-acl: port to CentOS 6
26996         Problem reported by Tom G. Christensen in:
26997         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
26998         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
26999         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
27000         HAVE_GETXATTR.
27001         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
27002         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
27003         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
27004         file-has-acl.c actually needs.
27006 2015-04-26  Pádraig Brady  <P@draigBrady.com>
27008         file-has-acl: always return false when ACLs aren't supported
27009         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
27010         change the GNU/Linux getxattr path, to transform "not supported"
27011         errors to a false return rather than an error.  This is handled
27012         within file_has_acl() due to the platform specific tests to
27013         determine if ACLs are not supported.
27015 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
27017         gettext: propagate po/Makefile.in.in too
27018         * build-aux/po/Makefile.in.in: Copy from latest gettext.
27019         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
27020         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
27021         between Makefile.in.in and the gettext-runtime m4 files.
27023 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
27025         file-has-acl: new module, split from acl
27026         And add a new module file-has-acl-tests to match.
27027         I ran into a problem with the recent changes to the acl module,
27028         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
27029         When using the fixed version with Emacs, I discovered that
27030         file-has-acl wasn't separated out well enough for Emacs (e.g., it
27031         had multiple libraries, but needed only one), so I fixed that too.
27032         * NEWS: Document this incompatible change.
27033         * modules/file-has-acl, modules/file-has-acl-tests: New files.
27034         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
27035         Initialize gl_need_lib_has_acl.
27036         (gl_FUNC_ACL): Require it.
27037         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
27038         Move the file-has-acl.c-relevant stuff to ...
27039         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
27040         use_xattrs = 0' typo, and omit some needless work.  Set
27041         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
27042         when gl_FUNC_ACL is called.
27043         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
27044         (Link): Remove $(LIB_HAS_ACL).
27045         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
27046         (check_PROGRAMS): Move stuff relevant to file-has-acl to
27047         modules/file-has-acl-tests.
27048         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
27050         manywarnings: add GCC 5.1 warnings
27051         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
27052         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
27053         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
27054         -Wsuggest-override, -Wuse-without-only.  Change
27055         -Wnormalized=... operands to match 5.1.
27056         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
27057         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
27058         -Wdiscarded-qualifiers, -Wformat-signedness,
27059         -Wincompatible-pointer-types, -Wint-conversion,
27060         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
27061         -Wshift-count-negative, -Wshift-count-overflow,
27062         -Wsizeof-array-argument, -Wsuggest-final-methods,
27063         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
27064         and add -Warray-bounds=2 as a special case.
27066 2015-04-21  Simon Josefsson  <simon@josefsson.org>
27068         doc: update FDL template to match FDL examples.
27069         * doc/alloca-opt.texi:
27070         * doc/alloca.texi:
27071         * doc/c-ctype.texi:
27072         * doc/c-strcase.texi:
27073         * doc/c-strcaseeq.texi:
27074         * doc/c-strcasestr.texi:
27075         * doc/c-strstr.texi:
27076         * doc/c-strtod.texi:
27077         * doc/c-strtold.texi:
27078         * doc/ctime.texi:
27079         * doc/error.texi:
27080         * doc/gcd.texi:
27081         * doc/gnulib-tool.texi:
27082         * doc/inet_ntoa.texi:
27083         * doc/intprops.texi:
27084         * doc/lib-symbol-visibility.texi:
27085         * doc/maintain.texi:
27086         * doc/parse-datetime.texi:
27087         * doc/quote.texi:
27088         * doc/regexprops-generic.texi:
27089         * doc/standards.texi: Remove spurious 'with' in FDL license
27090         template.
27092 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
27094         lstat: fix cross-compilation 'ln -s' problem
27095         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
27096         Have the test program call 'symlink' rather than a separate
27097         script run 'ln -s'; this is more likely to work in
27098         cross-compilation environments.  Reported by Pavel Fedin in:
27099         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
27101 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
27103         gendocs.sh: default to a common CSS style sheet for HTML output
27104         * build-aux/gendocs.sh (htmlarg): Change default value.
27106 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
27108         gnulib-tool: output bold attribute more portably
27109         * gnulib-tool (func_show_module_list): Change hexadecimal
27110         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
27111         encoded numbers as arguments to `printf' is not portable,
27112         and is not claimed by POSIX.  This is the case with FreeBSD.
27114 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
27116         qacl: Simplify HP-UX acl_nontrivial check
27117         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
27118         acl_nontrivial. Check if the acl has at most three entries instead (it must
27119         have exactly three entries according to the HP-UX documentation). Ignore
27120         uids and gids as long as an entry is either for a user (i.e., the owner),
27121         a group (i.e., the owning group), or others.
27122         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
27123         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
27125 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
27127         acl: On Linux, check for acls without libacl
27128         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
27129         library function to check for the presence of acls, avoiding a library.
27130         * lib/file-has-acl.c: Include xattr headers if we have them.
27131         (file_has_acl): On Linux, use getxattr().
27132         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
27133         file_has_acl(). Check for xattr headers and getxattr().
27135 2015-04-14  Ángel González  <keisial@gmail.com>
27137         tempname: avoid unused parameter warnings (trivial)
27138         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
27139         (try_nocreate): Likewise.
27141 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
27143         fseeko: fix build failure on NetBSD >= 6 (trivial)
27144         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
27145         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
27147 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
27149         gitlog-to-changelog: port to MS-Windows
27150         * build-aux/gitlog-to-changelog (git_dir_option):
27151         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
27152         MS-Windows Perl.  Reported by Eli Zaretskii in:
27153         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
27155 2015-04-07  Karl Berry  <karl@gnu.org>
27157         gendocs: new option --tex for passing args to texi2dvi.
27158         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
27159         (TEXI2DVI): cut to just command name.
27160         (usage): mention new option, and update copyright.
27161         <generate_tex>: use it.
27163 2015-04-07  Karl Berry  <karl@gnu.org>
27165         * config/srclistvars.sh (GETTEXT): new definition.
27166         * config/srclist.txt: use it for gettext .m4 files.
27167         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
27168         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
27169         and continuing into April.
27171 2015-04-07  Daiki Ueno  <ueno@gnu.org>
27173         uniname/uniname-tests: fix failure due to alias
27174         Reported by Jack Howarth in:
27175         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
27176         * tests/uniname/test-uninames.c (name_has_alias): New function.
27177         (test_inverse_lookup): Exclude character name with valid alias,
27178         from randomly generated character names.
27179         (main): Fill unicode_aliases before calling test functions.
27181 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
27183         hash: remove deprecated hash_insert0 function
27184         * lib/hash.h (hash_insert0): Remove deprecated function.
27185         * lib/hash.c (hash_insert0): Likewise.
27187 2015-04-02  Pádraig Brady  <P@draigBrady.com>
27189         mountlist: remove dependency on libmount
27190         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
27191         directly, rather than depending on libmount, which has many
27192         dependencies due to its dependence on libselinux, as detailed at:
27193         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
27194         Note we restrict this to __linux__ as that's probably where this
27195         interface will remain.  If ever porting, it would be best
27196         to first pull the makedev() wrapper from coreutils to a gnulib module.
27197         Note also we don't add a getline dependency to the mountlist module,
27198         as all Linux versions are sufficient.
27200 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
27202         stddef: port to pre-C11 GCC on x86
27203         On this platform, max_align_t should have an alignment of 8 even
27204         though the storage alignments of double, long, etc. max out at 4.
27205         Inspired by a comment of Andreas Schwab's here:
27206         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
27207         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
27208         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
27209         * tests/test-stddef.c: Test __alignof__ too, if available.
27211 2015-03-24  Pádraig Brady  <P@draigBrady.com>
27213         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
27214         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
27216 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
27218         yesno: make EOL optional in ENABLE_NLS case also (trival)
27219         * lib/yesno.c (yesno): Check for EOL before replacing.
27220         * tests/test-yesno.sh: Add a test case (test along with gettext).
27222 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
27224         fdopendir-tests: test it does not close its arg
27225         * tests/test-fdopendir.c (main): Test that fdopendir does not
27226         close its argument.  From a suggestion by David Grayson in:
27227         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
27229 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
27231         gitlog-to-changelog: trim trailing white space
27232         * build-aux/gitlog-to-changelog (main):
27233         Trim trailing white space from commit message lines.
27234         This is helpful for processing the GNU Emacs repository,
27235         which dates back to 1985 and contains a lot of such lines.
27237         gitlog-to-changelog: new option --ignore-matching
27238         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
27239         Support new option --ignore-matching=PAT, which ignores all
27240         commit messages whose first line matches PAT.
27242 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
27244         fdopendir: port better to MinGW
27245         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
27246         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
27247         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
27248         * modules/fdopendir (Depends-on): Add dirfd.
27250 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
27252         fdopendir: fix typo in comment
27253         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
27255 2015-03-09  Eric Blake  <eblake@redhat.com>
27257         error: document all entry points provided
27258         * doc/glibc-functions/error_print_progname.texi
27259         (error_print_progname): Mention the error module.
27260         * doc/glibc-functions/error_at_line.texi (error_at_line):
27261         Likewise.
27262         * doc/glibc-functions/error_message_count.texi
27263         (error_message_count): Likewise.
27264         * doc/glibc-functions/error_one_per_line.texi
27265         (error_one_per_line): Likewise.
27267 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
27269         vasnprintf: pacify clang 3.5.0
27270         Problem reported by Werner Lemberg in:
27271         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
27272         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
27273         The casts aren't needed, since the characters in question are ASCII.
27275 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
27277         glob, etc.: port to MSVC v18 on MS-Windows 8.1
27278         * lib/dirent--.h (GNULIB_defined_opendir):
27279         * lib/dirent.in.h (GNULIB_defined_opendir)
27280         (GNULIB_defined_closedir):
27281         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
27282         #undef only if Gnulib defined it.
27284         poll: port to MSVC v18 on MS-Windows 8.1
27285         Problem reported by Gisle Vanem in:
27286         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
27287         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
27288         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
27289         Add sys_socket.
27291 2015-02-24  Pádraig Brady  <P@draigBrady.com>
27293         tests: support stderr verification with returns_()
27294         * tests/init.sh (returns_): Disable tracing for this wrapper
27295         function, so that stderr of the wrapped command is unchanged,
27296         allowing for verification of the contents.
27298 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
27300         passfd: avoid valgrind uninitalised data warning
27301         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
27302         to include just the fd we've initialized, rather than including
27303         the extra space used for alignment.
27305 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
27307         uniwbrk/u32-wordbreaks-tests: fix copyright
27308         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
27310         dup2: doc and test for Android bug
27311         Reported by Kevin Cernekee in:
27312         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
27313         * doc/posix-functions/dup2.texi (dup2): Document the bug.
27314         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
27316 2015-02-23  Kevin Cernekee  <cernekee@google.com>
27318         Replace dup2() on Android
27319         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
27320         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
27321         fails.  Using rpl_dup2() fixes this because it has an explicit test
27322         for this condition.
27324 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
27326         Android doesn't define RLIM_SAVED_*
27327         Portability problem reported by Kevin Cernekee in:
27328         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
27329         * doc/posix-headers/sys_resource.texi (sys/resource.h):
27330         Mention the portability problem.
27331         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
27332         Define if not defined.
27333         * m4/dup2.m4 (gl_FUNC_DUP2):
27334         * m4/fcntl.m4 (gl_FUNC_FCNTL):
27335         Likewise.
27337 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
27339         vasnprintf-posix-tests: use consistent test
27340         * tests/test-vasnprintf-posix.c (test_function):
27341         Use "<" in assert instead of "<=", for consistency with other tests.
27343 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
27345         printf, isinf, etc.: noncanonical != NaN
27346         Do not require that isinf, printf, etc. treat noncanonical
27347         values as NaNs.  Instead, require only that they do not crash.
27348         Problem reported by Joseph Myers in:
27349         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
27350         * doc/posix-functions/dprintf.texi (dprintf):
27351         * doc/posix-functions/fprintf.texi (fprintf):
27352         * doc/posix-functions/isfinite.texi (isfinite):
27353         * doc/posix-functions/isinf.texi (isinf):
27354         * doc/posix-functions/isnan.texi (isnan):
27355         * doc/posix-functions/printf.texi (printf):
27356         * doc/posix-functions/snprintf.texi (snprintf):
27357         * doc/posix-functions/sprintf.texi (sprintf):
27358         * doc/posix-functions/vdprintf.texi (vdprintf):
27359         * doc/posix-functions/vfprintf.texi (vfprintf):
27360         * doc/posix-functions/vprintf.texi (vprintf):
27361         * doc/posix-functions/vsnprintf.texi (vsnprintf):
27362         * doc/posix-functions/vsprintf.texi (vsprintf):
27363         Document this.
27364         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
27365         * m4/isinf.m4 (gl_ISINFL_WORKS):
27366         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
27367         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
27368         * tests/test-isfinite.c (test_isfinitel):
27369         * tests/test-isinf.c (test_isinfl):
27370         * tests/test-isnan.c (test_long_double):
27371         * tests/test-isnanl.h (main):
27372         * tests/test-snprintf-posix.h (test_function):
27373         * tests/test-sprintf-posix.h (test_function):
27374         * tests/test-vasnprintf-posix.c (test_function):
27375         * tests/test-vasprintf-posix.c (test_function):
27376         Test only that noncanonical values do not cause crashes, not that
27377         they are treated as NaNs.  In some cases this means a larger
27378         output buffer is needed.
27380 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
27382         fts: remove redundant close() (trivial)
27383         * lib/fts.c (fts_read): Remove redundant call to close().
27384         Spotted by coverity.
27386 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
27388         getdtablesize: port better for Android
27389         Problem reported by Kevin Cernekee in:
27390         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
27391         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
27392         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
27393         Instead, just use getrlimit, taking care to avoid Cygwin bug.
27395         poll: fixes for large fds
27396         * lib/poll.c (poll): Don't check directly for NFD too large.
27397         Don't rely on undefined behavior in FD_SET when an arg exceeds
27398         FD_SETSIZE.  Always set revents afterwards, even if to zero.
27399         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
27400         as that makes the test a bit stricter.
27402 2015-02-19  Kevin Cernekee  <cernekee@google.com>
27404         fcntl: Fix cross compiling
27405         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
27406         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
27408 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
27410         dup2, fcntl: cross-compile better for Android
27411         Problem reported by Kevin Cernekee in:
27412         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
27413         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
27414         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
27415         there's little need to cross-compile for older kernels nowadays.
27416         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
27417         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
27419 2015-02-18  Pádraig Brady  <P@draigBrady.com>
27421         getopt: don't crash on memory exhaustion
27422         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
27423         memory exhaustion.  In the _LIBC case we use alloca() as is
27424         already done in glibc, so we don't need to consider the separate
27425         error path in that awkward case.  Also fix a memory leak when
27426         ambiguous options are present.
27427         Reported by Tobias Stoeckmann
27429 2015-02-17  Mike Miller  <mtmiller@ieee.org>
27431         tempname: allow compilation with C++ (trivial)
27432         * lib/tempname.h [C++]: Specify extern "C" linkage.
27433         * lib/tempname.h (try_tempname):
27434         * lib/tempname.c (__try_tempname, __gen_tempname):
27435         Rename 'try' to 'tryfunc'.
27437 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
27439         dup2, fcntl: port to AIX
27440         * m4/dup2.m4 (gl_FUNC_DUP2):
27441         * m4/fcntl.m4 (gl_FUNC_FCNTL):
27442         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
27443         The former works on AIX 7.1 but the latter does not.
27444         Also, this may work better with Android; see:
27445         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
27447 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
27449         getdtablesize, dup2, fcntl: port to Android
27450         Problem reported by Kevin Cernekee in:
27451         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
27452         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
27453         Mention that getdtablesize doesn't work on Android.
27454         * lib/getdtablesize.c: Use getrlimit substitute only if
27455         getdtablesize is declared.  This should suffice for Cygwin
27456         while not breaking Android.
27457         * m4/dup2.m4 (gl_FUNC_DUP2):
27458         * m4/fcntl.m4 (gl_FUNC_FCNTL):
27459         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
27460         standardized but the latter is not, and sysconf works on Android.
27461         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
27462         Also check that getdtablesize is declared.
27463         This removes the need for a special case for Android.
27465 2015-02-16  Kevin Cernekee  <cernekee@google.com>
27467         localename: Implement gl_locale_name_thread_unsafe for Android
27468         * lib/localename.c: Android API level >= 21 supports two hardcoded
27469         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
27470         the internal __locale_t struct.
27472 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
27474         fts: avoid crash when a cycle is added while traversing
27475         This could be triggered by auto-mounting a recursive bind mount.
27476         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
27477         * lib/fts.c (fts_read): Avoid removing the original hash table item
27478         when leaving a directory that caused a cycle, and preserve the FTS_DC
27479         flag.
27481 2015-02-16  Daiki Ueno  <ueno@gnu.org>
27483         uniname/uniname: support character alias
27484         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
27485         Generate one-way mapping from aliases to codepoints in the
27486         generated tables.  Special case variation selectors to reduce
27487         table size.
27488         * lib/uniname/uniname.c (unicode_character_name): Special case
27489         variation selectors.
27490         (unicode_name_character): Special case variation selectors and
27491         their aliases.
27492         * lib/uniname/uninames.h: Regenerate.
27493         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
27494         * modules/uniname/uniname-tests (Files): Add
27495         tests/uniname/NameAliases.txt.
27496         * tests/uniname/test-uninames.c: Mark as static.
27497         (ALIASLEN): Define.
27498         (struct unicode_alias): New struct.
27499         (unicode_aliases): New variable.
27500         (fill_aliases): New function.
27501         (test_alias_lookup): New test function.
27502         (main): Run the 'test_alias_lookup' test if the second argument is
27503         given.
27504         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
27505         second argument.
27507 2015-02-11  Kevin Cernekee  <cernekee@google.com>
27509         Fix FILE struct compatibility with Android API level >= 21
27510         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
27511         __sferror.  Recent versions of Bionic's stdio.h no longer define
27512         __sferror.
27513         * lib/fbufmode.c: Likewise.
27514         * lib/fflush.c: Likewise.
27515         * lib/fpurge.c: Likewise.
27516         * lib/freadable.c: Likewise.
27517         * lib/freadahead.c: Likewise.
27518         * lib/freading.c: Likewise.
27519         * lib/freadptr.c: Likewise.
27520         * lib/freadseek.c: Likewise.
27521         * lib/fseeko.c: Likewise.
27522         * lib/fseterr.c: Likewise.
27523         * lib/fwritable.c: Likewise.
27525         Assume unbroken ungetc() on Android
27526         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
27527         test case passed when running on an Android host, and the code
27528         hasn't really changed since 2009.
27530         getdtablesize: Fix Android build
27531         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
27532         versions have this symbol in the .so library (at least 32-bit
27533         platforms) but are missing the declaration in the header file,
27534         causing the m4 logic to guess incorrectly.
27536         localename: Fix Android build
27537         * modules/localename (Depends-on): Add langinfo.
27539         getugroups: Fix Android build
27540         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
27541         functions.
27543         euidaccess: Fix Android build
27544         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
27545         AT_EACCESS gets declared.
27547         linkat_nofollow: Add fallback case for cross compiling
27548         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
27550         net_if: Handle content-free <net/if.h> system headers
27551         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
27552         struct if_nameindex.  If not, enable the replacement header.
27554         signal_h: Fix Android build
27555         * lib/signal.in.h: Add Android to the list of platforms that declare
27556         pthread_sigmask() in <pthread.h> instead of <signal.h>.
27558         duplocale: Fix Android build of duplocale-tests
27559         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
27560         is included by test-duplocale.c (but not by duplocale.c).
27561         * modules/duplocale-tests (configure.ac): Check for monetary.h.
27562         * tests/test-duplocale.c: Skip test if monetary.h is absent.
27563         * doc/posix-headers/monetary.texi: Add Android to the list of
27564         platforms missing monetary.h.
27566 2015-02-11  Pádraig Brady  <P@draigBrady.com>
27568         tests: avoid recent -Werror=unused-variable regression in test-locale
27569         * tests/test-locale.c (main): Reference the variable to avoid the
27570         "unused variable" warning.
27572 2015-02-11  Pádraig Brady  <P@draigBrady.com>
27574         maint: various whitespace cleanups in tempname
27575         * lib/tempname.c: Normalize spacing and line length.
27576         * lib/tempname.h: Likewise.
27577         * modules/tempname: Likewise.
27579 2015-02-11  Pádraig Brady  <P@draigBrady.com>
27581         tests: provide returns_() to simplify exit status checking
27582         * tests/init.sh (returns_): A new function for use in tests,
27583         to allow for easier checking of return values, where you expect
27584         a command to exit with failure status.  By checking for a particular
27585         exit code, you don't hide any crashes for example.
27587 2015-02-11  Pádraig Brady  <P@draigBrady.com>
27589         mountlist: only use libmount when specified
27590         There are currently many shared libs dependencies introduced by
27591         libmount with associated runtime and virt mem overhead.
27592         Therefore don't enable by default.
27593         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
27595 2015-02-08  Daiki Ueno  <ueno@gnu.org>
27597         uniname/unimame-tests: don't link with -lunistring
27598         * modules/uniname/uniname-tests (Makefile.am): Don't link against
27599         $(LIBUNISTRING).  Document the rationale why we need to
27600         conditionalize the test.
27602 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27604         fstrcmp: don't assume strlen < INT_MAX
27605         * lib/fstrcmp.c: Include stddef.h and stdint.h.
27606         (uintptr_t): Remove, as we're now assuming stdint.
27607         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
27608         Prefer ptrdiff_t to int when the value could exceed INT_MAX
27609         if the input string is long.
27610         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
27611         uintptr_t to size_t when the underlying value is a pointer casted
27612         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
27613         * modules/fstrcmp (Depends-on): Add stdint.
27615         diffseq: prefer ptrdiff_t to ssize_t
27616         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
27617         ptrdiff_t is the natural type for signed indexes.
27618         On a few older platforms, ssize_t is narrower than size_t.
27620         xalloc: fix typo that suppressed warnings
27621         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
27622         This typo, introduced a couple of years ago, mistakenly suppressed
27623         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
27624         -Wmissing-declarations warnings.
27626         full-read: fix license notice typo
27627         * lib/full-read.h: Remove a stray line in the license notice.
27628         Reported by Sam Ellis in: http://bugs.gnu.org/19808
27630         crypto/gc: fix a -Wswitch warning
27631         Reported by Bruce Korb in:
27632         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
27633         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
27635 2015-02-03  Pádraig Brady  <P@draigBrady.com>
27637         gnulib-tool: fix handling of patch(1) diagnostics
27638         * gnulib-tool: Send diagnostics from patch(1) to stderr,
27639         as otherwise gnulib-tool will reparse that output and attempt
27640         to lookup modules.
27642 2015-02-03  Pádraig Brady  <P@draigBrady.com>
27644         bootstrap: exit immediately upon gnulib-tool failure
27645         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
27646         This was noticed when gnulib-tool exited early due to failure
27647         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
27648         but various confusing errors were then given as the build proceeded.
27650 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
27652         symlinkat: include all required header files
27653         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
27654         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
27655         Reported at https://savannah.gnu.org/bugs/index.php?44151
27656         and by Jack Howarth.
27658 2015-01-29  Pádraig Brady  <P@draigBrady.com>
27660         localename: support Solaris 12 and illumos
27661         * lib/localename.c (gl_locale_name_thread_unsafe): call
27662         getlocalename_l() on newer __sun platforms.
27663         Reported by Alexander Pyhalov.
27664         Fix suggested by Rich Burridge.
27666 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
27668         locale: fix tests on illumos (trivial)
27669         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
27670         so move from global scope to main().
27672 2015-01-24  Daiki Ueno  <ueno@gnu.org>
27674         unictype: avoid undefined left-shift behavior
27675         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
27676         gcc's -fsanitize=shift and running its tests triggered:
27677           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
27678             places cannot be represented in type 'int'
27679         Cast LHS to 'unsigned int' after integer promotion.
27680         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
27681         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
27683 2015-01-20  Daiki Ueno  <ueno@gnu.org>
27685         libunistring: bump version of unitypes dependants
27686         Due to the header file search order, all the headers which depend
27687         on unitypes.h need to be generated, when the preinstalled
27688         libunistring is older.
27689         * modules/unicase/base (configure.ac): Bump minimum version to
27690         0.9.4.
27691         * modules/uniconv/base (configure.ac): Likewise.
27692         * modules/unilbrk/base (configure.ac): Likewise.
27693         * modules/uninorm/base (configure.ac): Likewise.
27694         * modules/unistdio/base (configure.ac): Likewise.
27695         * modules/unistr/base (configure.ac): Likewise.
27696         * modules/uniwbrk/base (configure.ac): Likewise.
27697         * modules/uniwidth/base (configure.ac): Likewise.
27699 2015-01-20  Daiki Ueno  <ueno@gnu.org>
27701         unictype/category-none: fix link with libunistring
27702         Since _UC_CATEGORY_NONE is not a public symbol, it will be
27703         prefixed with "libstring_" when compiled as part of libunistring.
27704         To avoid undefined symbol at link time, increase the minimum
27705         version when the dependant modules are updated.
27706         * modules/unictype/category-none (configure.ac): Bump minimum
27707         version to 0.9.5.
27709 2015-01-20  Daiki Ueno  <ueno@gnu.org>
27711         unitypes: fix build with installed libunistring
27712         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
27713         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
27714         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
27716 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
27718         time: port to MinGW32 3.21
27719         Problem reported by Eli Zaretskii in:
27720         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
27721         * lib/time.in.h:
27722         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
27723         * modules/time (Depends-on):
27724         Fall back on unistd.h if the other include files don't define
27725         struct timespec.
27727         update-copyright: apply to self
27728         * build-aux/update-copyright: Fix copyright date.  How ironic!
27730 2015-01-15  Daiki Ueno  <ueno@gnu.org>
27732         libunistring: update to Unicode 7.0.0
27733         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
27734         Manichaean names.
27735         * lib/unictype/joininggroup_name.h: Likewise.
27736         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
27737         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
27738         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
27739         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
27740         (fill_arabicshaping, joining_group_as_c_identifier): Support those
27741         enum values.
27742         (is_property_alphabetic): Accept newly added characters to
27743         cuneiform numeric signs.
27744         (is_property_default_ignorable_code_point): Reject U+0605.
27745         (FIELDLEN): Increase from 120 to 160.
27746         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
27747         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
27748         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
27749         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
27750         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
27751         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
27752         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
27753         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
27754         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
27755         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
27756         U+1E8D0..U+1E8D6.
27757         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
27758         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27759         lib/uniwidth/width.c.
27760         * all generated files under lib/uni* and tests/uni*: Regenerate.
27762 2015-01-14  Daiki Ueno  <ueno@gnu.org>
27764         libunistring: update to Unicode 6.3.0
27765         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
27766         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
27767         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
27768         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
27769         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
27770         Update WB5, WB9, WB10, WB13a, and WB13b.
27771         * tests/uniwbrk/test-uc-wordbreaks.c
27772         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
27773         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
27774         (UC_BIDI_PDI): New enumeration values.
27775         (bidi_category_byname): Support those enum values.
27776         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
27777         dedicated property assigned.
27778         (is_property_case_ignorable): Check 0x0027.
27779         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
27780         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
27781         (output_wbp): Support those enum values.
27782         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
27783         (UC_BIDI_PDI): New enumeration values.
27784         * lib/unictype/bidi_byname.gperf: Add those property names.
27785         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
27786         U+180E, U+1A1B, and U+2066..U+2069.
27787         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27788         lib/uniwidth/width.c.
27789         * all generated files under lib/uni* and tests/uni*: Regenerate.
27791 2015-01-14  Daiki Ueno  <ueno@gnu.org>
27793         libunistring: update to Unicode 6.2.0
27794         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
27795         (unilbrk_table): Adjust table size.
27796         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
27797         for LBP_RI.
27798         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
27799         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
27800         Normalize table index skipping ignored properties.
27801         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
27802         WBP_EXTEND and WBP_FORMAT, which are now computed without using
27803         the table.
27804         * lib/uniwbrk/wbrktable.h: Adjust table size.
27805         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
27806         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
27807         Support rule GB8a.
27808         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
27809         * tests/unigbrk/test-uc-is-grapheme-break.c
27810         (graphemebreakproperty_to_string): Support GBP_RI.
27811         * tests/uniwbrk/test-uc-wordbreaks.c
27812         (wordbreakproperty_to_string): Support WBP_RI.
27813         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
27814         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
27815         (output_lbp): Support LBP_RI.  Adjust some characters changed from
27816         LBP_AL to LBP_ID.
27817         (output_lbp): Support LBP_RI.
27818         (WBP_RI): New enumeration value.
27819         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
27820         (output_wbp): Support WBP_RI.
27821         (GBP_RI): New enumeration value.
27822         (output_gbp_test, fill_org_gbp): Support GBP_RI.
27823         * all generated files under lib/uni* and tests/uni*: Regenerate.
27825 2015-01-14  Daiki Ueno  <ueno@gnu.org>
27827         libunistring: update to Unicode 6.1.0
27828         * lib/gen-uni-tables.c (output_joining_group): Switch to
27829         3-level table to accommodate joining groups defined with higher
27830         codepoint value.  Since there are only 88 groups defined in
27831         Unicode 7.0.0, use 7-bit packed format for level3 entries.
27832         (get_lbp): Update for Unicode 6.1.0.
27833         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
27834         3-level table.
27835         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
27836         joining group name.
27837         * lib/unictype/joininggroup_name.h: Likewise.
27838         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
27839         (unilbrk_table): Adjust table size.
27840         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
27841         for LBP_HL.
27842         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
27843         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
27844         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
27845         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
27846         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
27847         U+302E..U+302F.
27848         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27849         lib/uniwidth/width.c.
27850         * all generated files under lib/uni* and tests/uni*: Regenerate.
27851         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
27853 2015-01-15  Daiki Ueno  <ueno@gnu.org>
27855         uniwbrk/u32-wordbreaks-tests: add conformance test
27856         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
27857         tests/uniwbrk/test-uc-wordbreaks.c,
27858         tests/uniwbrk/test-uc-wordbreaks.sh, and
27859         tests/uniwbrk/WordBreakTest.txt.
27860         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
27861         test-uc-wordbreaks to $(check_PROGRAMS), and define
27862         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
27863         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
27864         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
27866 2015-01-15  Daiki Ueno  <ueno@gnu.org>
27868         uniwbrk: ignore Extended/Format characters at BOL not BOS
27869         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
27870         characters if the previous character property is one of
27871         WBP_NEWLINE, WBP_CR, and WBP_LF.
27873 2015-01-11  Jim Meyering  <meyering@fb.com>
27875         test-strstr.c: avoid a trivial leak
27876         * tests/test-strstr.c (main): Free haystack.
27878         update-copyright: recognize groff's \(co marker
27879         * build-aux/update-copyright (circle_c_re): Also accept
27880         uses of \(co, as found in gzip.1.
27882 2015-01-08  Pádraig Brady  <P@draigBrady.com>
27884         maint.mk: fix compatibility with OS X nm
27885         * top/maint.mk (_gl_tight_scope): Use the -g option to
27886         show exported items rather than the -e option which is
27887         ignored on all platforms except OS X where it gives an error.
27888         Reported by Assaf Gordon.
27890 2015-01-07  KO Myung-Hun  <komh@chollian.net>
27892         localcharset: improve charset detection on OS/2
27893         Use system codepage when appropriate.  Map OS/2 codepages to
27894         GNU canonical charset names if possible.
27895         * lib/config.charset: Don't output aliases if "$os" is os2*.
27896         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
27897         result for OS/2.
27898         (locale_charset) [OS2]: Use system codepage if codeset is omitted
27899         from the locale name which is neither "C" nor "POSIX".
27901 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
27903         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
27904         This reverts the last patch but one, as it shouldn't be needed now
27905         that the typo is fixed.
27906         * lib/count-leading-zeros.h (count_leading_zeros_ll):
27907         * lib/count-trailing-zeros.h:
27908         * lib/count-one-bits.h:
27909         Go back to using 64-bit intrinsics.
27911         count-leading-zeros: fix pragma typos
27912         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
27913         Fix typos in declaration of intrinsics when _MSC_VER.
27915 2015-01-06  Pádraig Brady  <P@draigBrady.com>
27917         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
27918         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
27919         intrinsics in this case.
27920         * lib/count-trailing-zeros.h: Likewise.
27921         * lib/count-one-bits.h: Likewise.
27923 2015-01-06  Daiki Ueno  <ueno@gnu.org>
27925         uniname/uniname: update to Unicode 7.0.0
27926         To accommodate new characters added since Unicode 5.1.0, this
27927         changes the internal representation of codepoint ranges.
27928         Previously, we grouped codepoint ranges by manually assigned 4-bit
27929         tag, which only allowed 16 groups.  This removes the limitation by
27930         switching to binary search on a table.  For the detail rationale
27931         and the benchmark results, see:
27932         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
27933         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
27934         to INDEX, as it no longer represents a codepoint.
27935         (range): New struct.
27936         (main): Switch to intervals list from a bit-pattern based
27937         classification.
27938         * lib/uniname/uninames.h: Regenerate.
27939         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
27940         * modules/uniname/base (configure.ac): Bump minimum version to
27941         0.9.5.
27942         * modules/uniname/uniname (configure.ac): Bump minimum version to
27943         0.9.5.
27945 2015-01-05  Eric Blake  <eblake@redhat.com>
27947         doc: update INSTALL from autoconf
27948         * doc/install.texi: Resync from autoconf.
27949         * doc/INSTALL: Reflect recent autoconf update.
27950         * doc/INSTALL.ISO: Likewise.
27951         * doc/INSTALL.UTF-8: Likewise.
27953         stdio: fix use of PRIdMAX on modern mingw
27954         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
27955         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
27956         to work with modern mingw.
27958 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
27960         pthread: detect git mingw builds with only partial pollution
27961         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
27962         pollution, as seen temporarily in Fedora 21.
27964 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
27966         lib-symbol-versions: cache script check
27967         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
27968         Cache the check for linker version scripts.
27969         From a suggestion by Christophe Curis in:
27970         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
27972 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
27974         maint: fix grammar nits in propername (trivial change)
27975         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
27976         and use an adequate verb and tense.
27978 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
27980         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
27981         * module/gendocs: Add 'doc/gendocs_template_min'.
27983         * build-aux/gendocs.sh: Change email addresses and upstream URLs
27984         from to Gnulib's.
27985         (scripturl, templateurl): Adjust accordingly.
27987 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
27989         gendocs: copyright date and version fix
27990         Reported by Karl Berry in:
27991         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
27992         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
27993         Fix copyright date.
27994         * build-aux/gendocs.sh (scriptversion): Update.
27996 2015-01-01  Karl Berry  <karl@gnu.org>
27998         * doc/install.texi,
27999         * build-aux/mdate-sh,
28000         * build-aux/depcomp,
28001         * build-aux/config.guess,
28002         * build-aux/config.sub,
28003         * build-aux/ar-lib,
28004         * build-aux/compile: revert copyright updates (some from last
28005         year) in slaved files.
28007 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
28009         version-etc: new year
28010         * doc/gnulib.texi:
28011         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
28012         * all files: Run 'make update-copyright'.
28014 2014-12-30  Pádraig Brady  <P@draigBrady.com>
28016         xstrtol: ensure errno is reset
28017         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
28018         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
28020         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
28022 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
28024         utimens: fix dependency typo
28025         * modules/utimens (Depends-on): Remove 'assure'.
28026         This bug was introduced in the recent 'assure' patch.
28028 2014-12-22  Eric Blake  <eblake@redhat.com>
28030         docs: mention why libgen.h is bad
28031         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
28033 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
28035         assure: new module
28036         This works better than 'assert' when compiling with -DNDEBUG,
28037         as it avoids some compiler diagnostics in that case.
28038         Reported by Norihiro Tanaka in:
28039         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
28040         * MODULES.html.sh (func_all_modules): Add 'assure'.
28041         * lib/assure.h, modules/assure: New files.
28042         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
28043         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
28044         Prefer 'assure' to 'assert'.
28045         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
28046         * modules/chdir-long, modules/cycle-check, modules/fchdir:
28047         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
28048         Depend on 'assure'.
28050 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
28052         stdalign: port better to HP compilers
28053         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
28054         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
28056         stdalign: work around Apple GCC 4.0 bug
28057         Reported by David Fang in:
28058         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
28059         * lib/stdalign.in.h (_Alignas):
28060         * m4/stdalign.m4 (gl_STDALIGN_H):
28061         Do not use aligned attribute with GCC 4.0 on Apple.
28063 2014-12-16  Pádraig Brady  <P@draigBrady.com>
28065         getcwd: fix test failure on OS X 10.9
28066         * m4/getcwd-path-max.m4: Avoid the replacement if it
28067         won't be effective due to the PATH_MAX limitation of lstat().
28068         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
28069         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
28070         for this case for use in tests, and also exclude this
28071         case when setting REPLACE_GETCWD.
28072         * tests/test-getcwd.c (test_long_name): Restrict the
28073         tested path length so that lstat() will not be passed
28074         a path greater than PATH_MAX.
28075         Also key a test condition on HAVE_OPENAT_SUPPORT rather
28076         than AT_FDCWD, since the latter is set unconditionally
28077         since Sep 2009 in commit 52c658e9.
28079 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
28081         parse-datetime: avoid a compiler warning with byacc (trivial)
28082         * lib/parse-datetime.y (yylex): Use the same prototype in the
28083         function definition as the declaration, to avoid a -Wstrict-prototypes
28084         warning seen when using byacc.
28086 2014-12-12  Daiki Ueno  <ueno@gnu.org>
28088         unicase/locale-language-tests: fix LOCALE_FR test
28089         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
28090         a French locale with traditional encoding.
28091         Reported by umerqayam in:
28092         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
28094 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
28096         stddef: support C11's max_align_t
28097         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
28098         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
28099         Do not undef, as that might cause max_align_t to be defined twice.
28100         Instead, change use to check for _GL_STDDEF_WINT_T too.
28101         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
28102         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
28103         Check for max_align_t.
28104         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
28105         * modules/stddef-tests (Depends-on): Add stdalign.
28106         * tests/test-stddef.c: Test max_align_t.
28108 2014-12-11  Daiki Ueno  <ueno@gnu.org>
28110         unistd: fix iOS check conditional
28111         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
28112         as 0 or 1 in <TargetConditionals.h>, and the previous check always
28113         yielded true on non-iOS environment.
28114         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
28115         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
28116         they are defined.
28118 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
28120         posixtm: avoid compiler warning in a better way
28121         * lib/posixtm.c (IF_LINT): Remove.
28122         (year, posix_time_parse):
28123         Return true (not 0) if successful.  All callers changed.
28124         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
28126 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
28128         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
28129         started with '/' on EMX.
28131 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
28133         freopen: workaround freopen() on OS/2 kLIBC
28134         * lib/freopen.c (rpl_freopen): Workaround.
28135         * m4/freopen.m4: Add os2* case.
28137         get_shared_library_fullname: port to EMX
28138         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
28139         on EMX, respectively.
28140         (_DLL_InitTerm): New on EMX.
28141         (get_shared_library_fullname): Implement on EMX.
28143         find_executable: port to EMX
28144         * lib/progreloc.c (find_executable): Implement on EMX.
28146         sched: check struct sched_param in spawn.h as well
28147         * lib/sched.in.h: Include spawn.h on kLIBC.
28148         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
28150 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
28152         bootstrap: Allow perl modules in $buildreq
28153         * build-aux/bootstrap: Add case for perl modules.
28155 2014-12-08  Pádraig Brady  <P@draigBrady.com>
28157         apply _GL_ATTRIBUTE_PURE to some inline functions
28158         clang 3.4.2 flagged these inline functions as pure
28159         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
28160         * lib/sig-handler.h (get_handler): Likewise.
28161         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
28162         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
28164 2014-12-06  Pádraig Brady  <P@draigBrady.com>
28166         vasnprintf: fix potential use after free
28167         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
28168         flagged by clang-analyzer 3.4.2.
28170 2014-12-05  Pádraig Brady  <P@draigBrady.com>
28172         filevercmp, posixtm: avoid compiler warnings with -O3
28173         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
28174         * lib/posixtm.c: (IF_LINT): Define.
28175         (posix_time_parse): Use it to void a "may be used uninitialized"
28176         warning, seen only with -O3.
28178 2014-12-05  Bruno Haible  <bruno@clisp.org>
28180         Fix LDBL80_WORDS macro on big endian platforms.
28181         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
28182         LDBL80_WORDS macro.
28183         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
28184         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
28185         * tests/test-isfinite.c (test_isfinitel): Likewise.
28186         * tests/test-isinf.c (test_isinfl): Likewise.
28187         * tests/test-isnan.c (test_long_double): Likewise.
28188         * tests/test-isnanl.h (main): Likewise.
28189         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
28190         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
28191         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
28192         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
28193         Reported by Pádraig Brady.
28195 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
28197         git-version-gen: do not print new line characters
28198         * build-aux/git-version-gen: Use printf instead of echo and tr.
28200         gnulib-tool: recognize x:* as an absolute path
28201         * gnulib-tool (func_gnulib_dir): Add ?:* case.
28202         (func_relconcat): Likewise.
28204 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
28206         argp: avoid extraneous translation and mem leak with empty pre doc
28207         * lib/argp-help.c (argp_doc): Never translate the empty string,
28208         when "\v" is the first or last character of the string, as that
28209         has a reserved meaning to return the header info from a po file.
28210         This also fixes a small memory leak in the !post case.
28211         The issue can be seen with this command for example:
28212         LC_MESSAGES=en_US grub2-mknetdir --help
28214 2014-11-27  Daiki Ueno  <ueno@gnu.org>
28216         uniname/uniname-tests: skip if system's libunistring is used
28217         * modules/uniname/uniname-tests (Makefile.am): Skip test if
28218         uniname/uniname module is not compiled.
28220 2014-11-27  Pádraig Brady  <P@draigBrady.com>
28222         printf: fix configure check on big endian systems
28223         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
28225 2014-11-22  Daiki Ueno  <ueno@gnu.org>
28227         pipe-filter-gi, pipe-filter-ii: port to AIX
28228         On AIX 7.1, 'select' is defined as static and cannot be referred
28229         to from inline function.
28230         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
28231         the definition...
28232         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
28233         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
28235 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
28237         gitlog-to-changelog: add --until
28238         * build-aux/gitlog-to-changelog: Support new --until option.
28239         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
28241 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
28243         extern-inline: update commentary about GCC bugs
28244         * m4/extern-inline.m4: Add another GCC bug number to comments.
28246 2014-11-13  Daiki Ueno  <ueno@gnu.org>
28248         gen-uni-tables: untabify
28249         * lib/gen-uni-tables.c: Untabify.
28251 2014-11-13  Daiki Ueno  <ueno@gnu.org>
28253         gen-uni-tables: check out-of-range values added to 3-level tables
28254         * lib/gen-uni-tables.c (output_category, output_bidi_category)
28255         (output_joining_type, output_ident_category): Check out-of-range
28256         values added to 3-level tables.
28258 2014-11-13  Daiki Ueno  <ueno@gnu.org>
28260         gen-uni-tables: utilize 'assert'
28261         * lib/gen-uni-tables.c: Include <assert.h>.
28262         (output_category, output_combclass, output_decimal_digit_test)
28263         (output_decimal_digit, output_digit_test, output_digit)
28264         (output_numeric, get_mirror_value, fill_properties)
28265         (fill_property30, is_property_alphabetic)
28266         (is_property_default_ignorable_code_point)
28267         (is_property_uppercase, is_property_lowercase)
28268         (is_property_cased, is_property_case_ignorable)
28269         (is_property_changes_when_lowercased, is_property_iso_control)
28270         (is_property_math, fill_arabicshaping, output_joining_group)
28271         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
28272         (output_wbp, fill_org_gbp, get_decomposition)
28273         (output_decomposition, fill_composition_exclusions)
28274         (debug_output_composition_tables, output_composition_tables)
28275         (redistribute_casefolding_rules, output_casing_rules): Use
28276         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
28277         reporting.
28279 2014-11-13  Daiki Ueno  <ueno@gnu.org>
28281         gen-uni-tables: cosmetic improvements
28282         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
28283         variables specification.
28284         (is_outdigit): Remove unused function.
28286 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
28288         fcntl-h-tests: port to PA-RISC GNU/Linux
28289         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
28291 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
28293         fts: port to C89
28294         Problem reported for MSVC 16 by Gisle Vanem in:
28295         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
28296         * lib/fts.c (fts_build): Avoid declaration before statement.
28298 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
28300         unistd: port to iOS
28301         Problem reported by André Klitzing in:
28302         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
28303         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
28305 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
28307         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
28308         Problem reported by Alan Modra in:
28309         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
28310         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
28311         Always cast the function arg, reverting this part of the previous
28312         change.
28314 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
28316         obstack: avoid potentially-nonportable function casts
28317         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
28318         Remove, replacing with ...
28319         (call_chunkfun, call_freefun): New static functions.
28320         All uses changed.  Avoid potentially-nonportable casts.
28321         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
28322         (_obstack_begin_worker): Omit last two args, since they
28323         rely on potentially-nonportable casts.  All callers changed.
28324         * lib/obstack.h (_OBSTACK_CAST): New macro.
28325         Use it everywhere the old API used a potentially-nonportable cast.
28326         The new API doesn't cast.
28327         (struct obstack): Use unions rather than requiring
28328         potentially-nonportable casts.
28329         (obstack_chunkfun, obstack_freefun): Return void.
28331 2014-11-03  Alan Modra  <amodra@gmail.com>
28333         obstack: fix macro return values
28334         * lib/obstack.h (obstack_next_free): Return void *.
28335         (obstack_1grow_fast, obstack_blank_fast): Return void.
28336         For __GNUC__ macros:
28337         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
28338         For !__GNUC__ macros:
28339         (obstack_make_room, obstack_grow, obstack_grow0)
28340         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
28342 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
28344         obstack: do not assume system-supplied obstack is size_t safe
28345         * m4/obstack.m4: New file.
28346         * modules/obstack (Files): Add it.
28348         obstack: port to platforms that #define __alignof__
28349         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
28350         not if !_LIBC.  We don't know of any platforms that #define
28351         __alignof__, but it might be useful in tests.  Conversely,
28352         glibc assumes GCC.
28354 2014-11-03  Pádraig Brady  <P@draigBrady.com>
28356         linkat: don't unconditionally replace on GNU/Linux
28357         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
28358         was redundant for a few reasons.  It was present to support compiling
28359         on new systems but running on the old narrow window of Linux 2.6.1[67].
28360         It setup and cleaned up test files which weren't actually used.
28361         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
28362         implicit in the following check.
28364 2014-11-03  Pádraig Brady  <P@draigBrady.com>
28366         linkat: wrap to handle symlinks on OS X 10.10
28367         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
28368         but not usable because it doesn't support creating hardlinks
28369         to symlinks.  Therefore add a generic test for this capability
28370         and fallback to our emulation if linkat() fails with ENOTSUP.
28372 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
28374         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
28375         * doc/posix-functions/open.texi (open):
28376         * doc/posix-functions/openat.texi (openat):
28377         Document that these functions do not set errno to ELOOP when
28378         a symlink is opened with O_NOFOLLOW.
28380 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
28382         obstack: add NEWS entry for recent incompatible changes
28383         * NEWS: Describe recent changes.
28385 2014-10-30  Pádraig Brady  <P@draigBrady.com>
28387         mountlist: don't use libmount to decide on dummy/remote
28388         * lib/mountlist.c (read_file_system_list): Don't use the libmount
28389         routines to determine whether a file system is dummy or remote,
28390         as they're not currently compatible.  For example the remoteness
28391         is determined on file system type (for which the list seems incomplete),
28392         rather than simply checking for a ':' in the device name.
28393         Also libmount currently determines that 'tmpfs' is a dummy file system
28394         even though it has associated storage.
28396 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
28398         obstack: prefer __alignof__ to alignof
28399         This is for portability to pre-4.7 GCC when compiling glibc.
28400         See Joseph S. Myers in:
28401         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
28402         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
28403         New macro, defined by including and using <alignof.h>.
28404         (MAX): New macro.
28405         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
28406         Do not use enums as they are not portable to some broken compilers.
28407         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
28409         obstack: prefer alignof to calculating alignments by hand
28410         * lib/obstack.c: Include <stdalign.h>.
28411         (struct fooalign): Remove.
28412         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
28413         * modules/obstack (Depends-on): Add stdalign.
28415 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
28417         obstack: use size_t alignments and check for overflow
28418         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
28419         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
28420         * lib/obstack.h (struct obstack.alignment_mask):
28421         Use _OBSTACK_SIZE_T, not int, for alignments.
28422         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
28423         overflows, e.g., when adding the alignment.
28425 2014-10-29  Alan Modra  <amodra@gmail.com>
28427         obstack: 64-bit obstack support, part 3
28428         This finally enables full 64-bit obstack support.  The glibc
28429         shared library specific code is removed from obstack.c too, and
28430         the error handling code conditionally compiled under control of
28431         another macro, _OBSTACK_NO_ERROR_HANDLER.
28432         * lib/obstack.h: Include string.h earlier.
28433         (_OBSTACK_INTERFACE_VERSION): Define.
28434         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
28435         * lib/obstack.c: Don't include shlib-compat.h.
28436         (OBSTACK_INTERFACE_VERSION): Delete.
28437         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
28438         glibc code is compatible with version 2.  Don't include stdio.h for
28439         __GNU_LIBRARY.
28440         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
28441         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
28442         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
28443         glibc shared library specific source.
28445         obstack: 64-bit obstack support, part 2
28446         This gets us 4G obstack support, without changing ABI
28447         compatibility, apart from possibly introducing some
28448         signed/unsigned comparison warnings in code that uses obstack.h.
28449         a) Replace "int" size parameters, return values, and macro local vars
28450            with _OBSTACK_SIZE_T, an "unsigned int" for now.
28451         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
28452         c) Make all obstack macros checking available room use obstack_room.
28453            "next_free + desired > chunk_limit" may wrap the lhs for chunks
28454            allocated near the top of memory.
28455         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
28456         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
28457         in place of "int" size parameters, return values and local vars.
28458         (_CHUNK_SIZE_T): Define.
28459         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
28460         union use an _OBSTACK_SIZE_T integer type.
28461         For __GNUC__ versions of the following macros...
28462         (obstack_room): Rename local var.
28463         (obstack_make_room): Use obstack_room.
28464         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
28465         obstack_int_grow, obstack_blank): Likewise.
28466         (obstack_finish): Use unsigned comparison when comparing aligned
28467         next_free against chunk_limit.
28468         (obstack_free): Cast OBJ to remove possible const qualifier.
28469         For !__GNUC__ versions of the following macros...
28470         (obstack_make_room): Use obstack_room.
28471         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
28472         obstack_int_grow, obstack_blank): Likewise.
28473         (obstack_finish): Use unsigned comparision when comparing aligned
28474         next_free against chunk_limit.
28475         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
28476         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
28477         _OBSTACK_SIZE_T.
28478         (_obstack_begin, _obstack_begin_1): Likewise.
28479         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
28480         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
28482         obstack: 64-bit obstack support, part 1
28483         a) Correct calls to alloc function, to use a size_t arg.  "long" is
28484            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
28485            and "size_t" 64 bits.
28486         b) Consolidate _obstack_begin and _obstack_begin1 code.
28487         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
28488         use "size_t" rather than "long".
28489         (_obstack_begin, _obstack_begin1): Likewise.
28490         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
28491         obstack_chunkfun): Update alloc function casts.
28492         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
28493         (chunkfun_type, freefun_type): New typdefs.
28494         (_obstack_begin_worker): Split out from ..
28495         (_obstack_begin, _obstack_begin_1): ..here.
28497         obstack: tidy part 2
28498         a) Don't be concerned about "not polluting the namespace with stddef.h
28499            symbols" in obstack.h, since gnulib string.h includes stddef.h
28500            anyway, and it seems unlikely that anyone would care.
28501         b) Don't roll our own slow memcpy in _obstack_newchunk.
28502         c) Rename obstack_free to _obstack_free.  This makes the naming
28503            consistent with other obstack functions and obviates the need for
28504            __obstack_free.  Ancient obstack.c defined both obstack_free and
28505            _obstack_free.  We continue to do that for _LIBC via an alias.
28506         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
28507            is clever, but nowadays gcc warns on undefined macros.  You'll get
28508            an undefined macro warning if simulating an old gcc with -U__GNUC__
28509            -U__GNUC_MINOR__ -D__GNUC__=1.
28510         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
28511         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
28512         (__obstack_free): Delete, update refs.
28513         (_obstack_free): Rename from obstack_free.
28514         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
28515         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
28516         * lib/obstack.c: Don't include stddef.h.
28517         (COPYING_UNIT): Delete.
28518         (_obstack_begin): Formatting fix.
28519         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
28520         (_obstack_free): Rename from __obstack_free, update alias.  Move
28521         undef of obstack_free to where it is needed.
28523         obstack: tidy part 1
28524         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
28525            to me, and result in overlong lines after later patches.
28526         b) Move error handling code, to avoid a forward declaration and to
28527            simplify later patches in this series.
28528         * lib/obstack.h (struct obstack <temp>): Rename fields of union
28529         and update all uses.
28530         * lib/obstack.c: Include stdlib.h earlier.
28531         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
28532         in file.
28533         (print_and_abort): Remove now redundant forward declaration.
28535 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
28537         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
28538         Without this change, in bleeding-edge fileutils Autoconf complains
28539         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
28540         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
28541         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
28542         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
28544 2014-10-24  Daiki Ueno  <ueno@gnu.org>
28546         iconv: avoid false detection of non-working iconv
28547         The INBUF arguments of iconv can be either 'const char **'
28548         or 'char **'.  If CC is g++, the difference causes a compile error
28549         and thus leads to a false detection of non-working iconv.
28550         Reported by Eli Zaretskii and Werner LEMBERG in:
28551         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
28552         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
28553         iconv.  Bump serial number.
28555 2014-10-23  Pádraig Brady  <P@draigBrady.com>
28557         bootstrap: print more diagnostics for missing programs
28558         * build-aux/bootstrap: only suppress stderr when checking for
28559         alternative program names.  This supports programs issuing non
28560         standard error messages.
28562 2014-10-23  Pádraig Brady  <P@draigBrady.com>
28564         bootstrap: only update the gnulib submodule
28565         * build-aux/bootstrap: Restrict the "submodule update" command
28566         to the gnulib path.
28568 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
28570         symlinkat: port to AIX 7.1
28571         * doc/posix-functions/symlinkat.texi (symlinkat):
28572         Mention AIX porting problem.
28573         * lib/symlinkat.c: Always include errno.h.
28574         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
28575         * lib/unistd.in.h (symlinkat): Add replacement machinery.
28576         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
28577         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
28578         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
28579         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
28580         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
28582         readlinkat: port to AIX 7.1
28583         * doc/posix-functions/readlink.texi (readlink):
28584         * doc/posix-functions/readlinkat.texi (readlinkat):
28585         Mention AIX porting problem.
28586         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
28587         New function.
28588         * lib/unistd.in.h (readlinkat): Add replacement machinery.
28589         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
28590         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
28591         * modules/readlinkat (configure.ac): Also compile replacement
28592         if REPLACE_READLINKAT.
28593         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
28595 2014-10-12  Karl Berry  <karl@gnu.org>
28597         * doc/posix-functions/dirname.texi: remove spurious {.
28599 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
28601         basename, dirname: Improve documentation.
28602         * doc/posix-functions/basename.texi: Mention dirname module and
28603         base_name() function.
28604         * doc/posix-functions/dirname.texi: Mention dir_name() and
28605         mdir_name() functions.
28606         Suggested by Werner LEMBERG <wl@gnu.org>.
28608 2014-09-24  Jim Meyering  <meyering@fb.com>
28610         exclude: declare exclude_patopts static
28611         * lib/exclude.c (exclude_patopts): Declare static,
28612         to avoid triggering a -Wmissing-prototypes warning.
28613         The alternative (declaring it in the .h file) would
28614         require publicizing the private "struct patopts".
28616 2014-09-21  Werner Lemberg  <wl@gnu.org>
28618         dirname: support compilation with C++
28619         * lib/dirname.h: Add necessary C linkage declarations.
28621 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
28623         qsort_r: include <config.h>
28624         Problem reported by Tom G. Christensen in:
28625         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
28626         * lib/qsort.c [!_LIBC]: Include <config.h> first.
28628 2014-09-16  Dylan Cali  <calid1984@gmail.com>
28630         avltree-list: avoid compiler warnings (trivial)
28631         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
28632         -Werror=suggest-attribute=pure.
28633         * lib/gl_array_list.c: Likewise.
28634         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
28635         declaration to avoid -Werror=missing-prototypes.  This is not added
28636         to a header as only exported for tests.  Add (void) to the
28637         check_invariants() call to indicate we're discarding the result
28638         in this context which avoids -Werror=unused-value.  Note we don't
28639         use ignore_value here to avoid a dependency as we know we'll not
28640         be adding __attribute__((warn_unused_result)) to check_invariants().
28641         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
28643 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
28645         qsort_r: new module, for GNU-style qsort_r
28646         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
28648 2014-09-15  Werner LEMBERG  <wl@gnu.org>
28650         strerror_r-posix: support compilation with C++
28651         * lib/strerror_r.c: Add necessary C linkage declarations.
28653 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
28655         fcntl-h: fix compilation with Intel C++ compiler (trivial)
28656         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
28658 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
28660         mountlist: use /proc/self/mountinfo when available
28661         Use libmount to propagate device IDs provided by Linux in
28662         /proc/self/mountinfo.  This will give more accurate output when
28663         using df in chroot'ed environments as the device IDs are not
28664         determined by stat() which may be inaccurate within the chroot.
28665         * lib/mountlist.c (read_file_system_list): Use the libmount routines
28666         from util-linux to parse "/proc/self/mountinfo" or fall back to
28667         standard getmntent() processing.
28668         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
28669         getmntent() is used, as is the case on GNU/Linux.
28671 2014-09-07  Eric Wong  <normalperson@yhbt.net>
28673         users.txt: add cmogstored
28674         cmogstored has used gnulib since the beginning in 2012 to support
28675         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
28677 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
28679         Trivial change.
28680         * gnulib-tool: Use same options as build-aux/bootstrap to download
28681         PO files.
28683 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
28685         Trivial change.
28686         * gnulib-tool: Fallback to wget when rsync of PO files fails.
28688 2014-09-04  Eric Blake  <eblake@redhat.com>
28690         maintainer-makefile: add syntax check for useless ';;'
28691         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
28693 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
28695         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
28696         Problem reported by Assaf Gordon in:
28697         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
28698         Apparently Ubuntu is doing some fancy link-time optimization
28699         that doesn't work with -lpthread but does work with -pthread.
28700         Work around the bug by preferring -pthread to -lpthread.
28701         * m4/pthread.m4 (gl_PTHREAD_CHECK):
28702         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
28703         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
28704         Treat -pthread like -lpthread.
28706 2014-09-04  Eric Blake  <eblake@redhat.com>
28708         error: drop spurious semicolon
28709         * lib/error.c (__error_at_line): Fix ';;'.
28711 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28713         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
28714         * m4/gnulib-common.m4 (AC_C_RESTRICT):
28715         Override AC_C_RESTRICT unconditionally.
28716         Update from autoconf, incorporating:
28717         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
28718         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
28720 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28722         manywarnings: add GCC 4.9 warnings
28723         Also, make it easier to maintain this in the future.
28724         * build-aux/gcc-warning.spec: Add -Wabi-tag,
28725         -Wconditionally-supported, -Wdelete-incomplete,
28726         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
28727         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
28728         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
28729         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
28730         only for older GCC versions that need them.  Handle
28731         -Wnormalized=nfc specially, so that the 'comm' command used
28732         for maintenance doesn't get confused.
28734 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28736         vasnprintf: fix bugs in width computation
28737         * lib/vasnprintf.c (VASNPRINTF):
28738         Rework previous change, which introduced a bug,
28739         to avoid the warning in a different way.
28740         Avoid undefined behavior if the width arg is less than -INT_MAX.
28741         Avoid unnecessary use of HAS_WIDTH local.
28743 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
28745         vasnprintf: Avoid signed/unsigned comparison warning.
28746         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
28747         compare end addr of generated string w/ maximum end addr.
28749 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
28751         parse-datetime: Avoid pointer difference.
28752         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
28753         instead of calculating difference of pointers.  This removes an
28754         annoying warning, devoid of any use.
28756 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
28758         qsort_r: new module, for GNU-style qsort_r
28759         This works even on FreeBSD, which has an incompatible qsort_r API.
28760         * MODULES.html.sh: Add it.
28761         * doc/glibc-functions/qsort_r.texi: It's now supported.
28762         * lib/qsort.c: New file, taken from glibc with minor changes
28763         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
28764         removed.
28765         * lib/qsort_r.c: New file, compiled only on FreeBSD.
28766         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
28767         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
28768         * modules/qsort_r, modules/qsort_r-tests: New files.
28769         * modules/stdlib (Makefile): Set up its defaults.
28770         * tests/test-qsort_r.c: New file.
28772 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
28774         vla: new module
28775         GNU RCS can use this, mostly for documentation I expect.  See:
28776         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
28777         * MODULES.html.sh: Add vla.
28778         * lib/vla.h, modules/vla: New files.
28780 2014-08-07  Daiki Ueno  <ueno@gnu.org>
28782         localename: make gl_locale_name_thread really thread-safe on Windows
28783         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
28784         "glthread/lock.h".
28785         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
28786         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
28788 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
28790         getpass: don't assume struct termios
28791         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
28792         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
28793         * lib/getpass.c (getpass): Port to systems lacking struct termios.
28795         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
28796         Problem reported by Jonas 'Sortie' Termansen in:
28797         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
28798         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
28799         Implement via sysconf for platforms that lack getdtablesize.
28801         vararrays: modernize AC_C_VARARRAYS for C11
28802         This backports a change I recently made to Autoconf.
28803         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
28804         VLAs are not supported, as this is what C11 does.  The old macro
28805         HAVE_C_VARARRAYS is still defined if they are supported, but is
28806         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
28808 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
28810         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
28811         * build-aux/install-reloc (func_create_wrapper): Also wrap
28812         strerror-override, stat, stat.
28814 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
28816         sys_select: fix FD_ZERO problem on Solaris 10
28817         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
28818         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
28819         to expand to an expression that invoked memset without necessarily
28820         including <string.h>.  The problem was that the first include
28821         defined _SYS_TIME_H, causing the second include to short-circuit.
28822         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
28823         Also, fix what appears to be a cut-and-paste typo, by replacing
28824         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
28825         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
28827         accept: document Solaris 10 type glitch
28828         * doc/posix-functions/accept.texi (accept): Mention that
28829         Solaris 10 'accept' takes void * last arg, not socklen_t *.
28831 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
28833         extern-inline: port to FreeBSD, DragonFly
28834         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
28835         is present if either __DragonFly__ or __FreeBSD__ is defined.
28836         FreeBSD problem reported by Andrey Borzenkov in:
28837         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
28838         Also, worry about __APPLE__ only if __MACH__ is also defined,
28839         as this is more consistent with the rest of gnulib.
28840         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
28841         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
28843 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
28845         regex: Make #if/#ifdef usage consistent for DEBUG
28846         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
28847         of the inconsistent usage of #if and #ifdef as that works with
28848         both Glibc and Gnulib's style.
28850 2014-07-31  Eric Blake  <eblake@redhat.com>
28852         openat-die: use _Noreturn markup
28853         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
28854         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
28855         _Noreturn.
28857 2014-07-30  Eric Blake  <eblake@redhat.com>
28859         test-open: port to cygwin, which lacks Fortify
28860         * tests/test-open.h (ALWAYS_INLINE): New macro.
28861         (__always_inline): Don't abuse internal symbol on non-glibc.
28863 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
28865         localename: Enforce declarations before statements.
28866         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
28867         first statement.
28869 2014-07-18  Jim Meyering  <meyering@fb.com>
28871         test-userspec: don't look up numeric user names
28872         * tests/test-userspec.c: I found a system for which getpwnam("0")
28873         returned a pointer to a non-root user's entry, and that made the
28874         test fail.
28875         (T): Prefix each numeric input with "+", to inhibit lookup.
28877 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
28879         localcharset, localename: MS-Windows support for non-default locales
28880         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
28881         falling back on the default system codepage, try extracting
28882         the codepage from what 'setlocale' returns.  This allows to
28883         take into account changes of the codeset due to non-default
28884         locale set by a previous call to 'setlocale'.
28885         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
28886         Define if not already defined.
28887         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
28888         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
28889         current locale by calling 'setlocale', then converting the
28890         locale name into LCID by calling 'get_lcid'.  This allows to
28891         take into account changes in the current locale from the
28892         default one, in contrast to GetThreadLocale.
28894 2014-07-14  Daiki Ueno  <ueno@gnu.org>
28896         announce-gen: avoid failure when Digest::SHA is installed
28897         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
28898         Digest::SHA1->new in print_checksums fails.
28899         * build-aux/announce-gen (digest_classes): New associative array
28900         for available message digest implementations.
28901         (print_locations): Use it.
28903 2014-07-13  Pádraig Brady  <P@draigBrady.com>
28905         gettext: revert "update macros to version 0.19"
28906         This reverts commit 9b9370ca, as it currently requires that
28907         developers of any project that explicitly uses the gettext module
28908         or implicitly uses it through the utimens-tests or
28909         futimens-tests modules, use gettext >= 0.19.
28910         However there are some stability and availablity issues with
28911         that version at present.  We can reinstate this soon, when stability
28912         is addressed and packages are more readily available.
28914 2014-07-12  Jim Meyering  <meyering@fb.com>
28916         regex: don't deref NULL upon heap allocation failure
28917         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
28918         failure in one more place.
28919         To trigger the segfault, configure grep -with-included-regex,
28920         build it, and run these commands:
28921         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
28922         I discovered this while replying to a private report from
28923         Jens Schleusener about excessive memory consumption by grep
28924         when using a regular expression like the one above.
28926 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
28928         regex: fix memory leak in compiler
28929         Fix by Andreas Schwab in:
28930         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
28931         * lib/regcomp.c (parse_reg_exp): Deallocate partially
28932         constructed tree before returning error.
28934 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
28936         announce-gen: avoid perl warnings
28937         * build-aux/announce-gen: add two minor checks to avoid
28938         "use of uninitialized value" warnings when command-line parameters are
28939         missing.
28941 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
28943         localename: avoid -Wsuggest-attribute={const,pure} warnings
28944         * lib/localename.c (string_has): Tag internal function as pure.
28945         * lib/localename.h (gl_locale_name_default): Tag extern declaration
28946         as const when appropriate.
28948 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
28950         nl_langinfo: Fix last change.
28951         * lib/nl_langinfo.c (includes): Drop redundant include.
28953 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
28955         error: Fix -Wundef warnings in glibc
28956         * lib/error.c [_LIBC]: Define default macros for
28957         glibc.
28958         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
28959         Check _LIBC before STRERROR_R_CHAR_P.
28961         error: Sync from glibc master
28962         * lib/error.c [_LIBC]: Remove INTUSE usage.
28963         (error_tail): Remove unused macro ALLOCA_LIMIT.
28964         Fix potential buffer overflow.  Fix potential NULL dereference
28965         in strcmp.
28967 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
28969         nl_langinfo: fix build under mingw
28970         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
28972 2014-07-09  Andrew D Warshall  <warshall@99main.com>
28974         mountlist: do not classify a bind-mounted dir entry as "dummy"
28975         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
28976         1-argument getmntent() (instead of assuming absence).
28978 2014-07-08  Eric Blake  <eblake@redhat.com>
28980         maint.mk: less syntax-check noise when SIGPIPE is ignored
28981         * top/maint.mk (_sc_header_without_use)
28982         (sc_require_config_h_first): Parse full list.
28984 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
28985             Paul Eggert  <eggert@cs.ucla.edu>
28987         nl_langinfo: CODESET on MS-Windows and more items from localeconv
28988         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
28989         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
28990         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
28991         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
28992         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
28993         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
28994         Include <stdio.h> if Microsoft Windows.
28995         Include <time.h> if !REPLACE_NL_LANGINFO.
28996         (ctype_codeset): New function, taken from rpl_nl_langinfo,
28997         and with improvements for Microsoft Windows.
28998         (rpl_nl_langinfo): Use it.
28999         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
29000         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
29001         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
29002         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
29003         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
29004         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
29005         corresponding values returned by 'localeconv'.  Compute the values
29006         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
29007         'strftime' with a suitable struct tm value.
29009 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
29011         Bruno Haible has stepped down as maintainer.
29012         See Karl Berry in:
29013         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
29014         Daiki Ueno has volunteered to maintain libunistring; see:
29015         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
29016         * modules/gen-uni-tables, modules/libunistring:
29017         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
29018         * modules/unicase/base, modules/unicase/cased:
29019         * modules/unicase/empty-prefix-context:
29020         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
29021         * modules/unicase/locale-language, modules/unicase/special-casing:
29022         * modules/unicase/tocasefold, modules/unicase/tolower:
29023         * modules/unicase/totitle, modules/unicase/toupper:
29024         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
29025         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
29026         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
29027         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
29028         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
29029         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
29030         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
29031         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
29032         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
29033         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
29034         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
29035         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
29036         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
29037         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
29038         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
29039         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
29040         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
29041         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
29042         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
29043         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
29044         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
29045         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
29046         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
29047         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
29048         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
29049         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
29050         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
29051         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
29052         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
29053         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
29054         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
29055         * modules/unicase/ulc-casexfrm, modules/unicodeio:
29056         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
29057         * modules/uniconv/u16-conv-to-enc:
29058         * modules/uniconv/u16-strconv-from-enc:
29059         * modules/uniconv/u16-strconv-from-locale:
29060         * modules/uniconv/u16-strconv-to-enc:
29061         * modules/uniconv/u16-strconv-to-locale:
29062         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
29063         * modules/uniconv/u32-strconv-from-enc:
29064         * modules/uniconv/u32-strconv-from-locale:
29065         * modules/uniconv/u32-strconv-to-enc:
29066         * modules/uniconv/u32-strconv-to-locale:
29067         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
29068         * modules/uniconv/u8-strconv-from-enc:
29069         * modules/uniconv/u8-strconv-from-locale:
29070         * modules/uniconv/u8-strconv-to-enc:
29071         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
29072         * modules/unictype/bidicategory-all:
29073         * modules/unictype/bidicategory-byname:
29074         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
29075         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
29076         * modules/unictype/bidiclass-byname:
29077         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
29078         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
29079         * modules/unictype/block-all, modules/unictype/block-list:
29080         * modules/unictype/block-of, modules/unictype/block-test:
29081         * modules/unictype/category-C, modules/unictype/category-Cc:
29082         * modules/unictype/category-Cf, modules/unictype/category-Cn:
29083         * modules/unictype/category-Co, modules/unictype/category-Cs:
29084         * modules/unictype/category-L, modules/unictype/category-LC:
29085         * modules/unictype/category-Ll, modules/unictype/category-Lm:
29086         * modules/unictype/category-Lo, modules/unictype/category-Lt:
29087         * modules/unictype/category-Lu, modules/unictype/category-M:
29088         * modules/unictype/category-Mc, modules/unictype/category-Me:
29089         * modules/unictype/category-Mn, modules/unictype/category-N:
29090         * modules/unictype/category-Nd, modules/unictype/category-Nl:
29091         * modules/unictype/category-No, modules/unictype/category-P:
29092         * modules/unictype/category-Pc, modules/unictype/category-Pd:
29093         * modules/unictype/category-Pe, modules/unictype/category-Pf:
29094         * modules/unictype/category-Pi, modules/unictype/category-Po:
29095         * modules/unictype/category-Ps, modules/unictype/category-S:
29096         * modules/unictype/category-Sc, modules/unictype/category-Sk:
29097         * modules/unictype/category-Sm, modules/unictype/category-So:
29098         * modules/unictype/category-Z, modules/unictype/category-Zl:
29099         * modules/unictype/category-Zp, modules/unictype/category-Zs:
29100         * modules/unictype/category-all, modules/unictype/category-and:
29101         * modules/unictype/category-and-not, modules/unictype/category-byname:
29102         * modules/unictype/category-longname, modules/unictype/category-name:
29103         * modules/unictype/category-none, modules/unictype/category-of:
29104         * modules/unictype/category-or, modules/unictype/category-test:
29105         * modules/unictype/category-test-withtable:
29106         * modules/unictype/combining-class:
29107         * modules/unictype/combining-class-all:
29108         * modules/unictype/combining-class-byname:
29109         * modules/unictype/combining-class-longname:
29110         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
29111         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
29112         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
29113         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
29114         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
29115         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
29116         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
29117         * modules/unictype/digit, modules/unictype/joininggroup-all:
29118         * modules/unictype/joininggroup-byname:
29119         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
29120         * modules/unictype/joiningtype-all:
29121         * modules/unictype/joiningtype-byname:
29122         * modules/unictype/joiningtype-longname:
29123         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
29124         * modules/unictype/mirror, modules/unictype/numeric:
29125         * modules/unictype/property-all, modules/unictype/property-alphabetic:
29126         * modules/unictype/property-ascii-hex-digit:
29127         * modules/unictype/property-bidi-arabic-digit:
29128         * modules/unictype/property-bidi-arabic-right-to-left:
29129         * modules/unictype/property-bidi-block-separator:
29130         * modules/unictype/property-bidi-boundary-neutral:
29131         * modules/unictype/property-bidi-common-separator:
29132         * modules/unictype/property-bidi-control:
29133         * modules/unictype/property-bidi-embedding-or-override:
29134         * modules/unictype/property-bidi-eur-num-separator:
29135         * modules/unictype/property-bidi-eur-num-terminator:
29136         * modules/unictype/property-bidi-european-digit:
29137         * modules/unictype/property-bidi-hebrew-right-to-left:
29138         * modules/unictype/property-bidi-left-to-right:
29139         * modules/unictype/property-bidi-non-spacing-mark:
29140         * modules/unictype/property-bidi-other-neutral:
29141         * modules/unictype/property-bidi-pdf:
29142         * modules/unictype/property-bidi-segment-separator:
29143         * modules/unictype/property-bidi-whitespace:
29144         * modules/unictype/property-byname:
29145         * modules/unictype/property-case-ignorable:
29146         * modules/unictype/property-cased:
29147         * modules/unictype/property-changes-when-casefolded:
29148         * modules/unictype/property-changes-when-casemapped:
29149         * modules/unictype/property-changes-when-lowercased:
29150         * modules/unictype/property-changes-when-titlecased:
29151         * modules/unictype/property-changes-when-uppercased:
29152         * modules/unictype/property-combining:
29153         * modules/unictype/property-composite:
29154         * modules/unictype/property-currency-symbol:
29155         * modules/unictype/property-dash:
29156         * modules/unictype/property-decimal-digit:
29157         * modules/unictype/property-default-ignorable-code-point:
29158         * modules/unictype/property-deprecated:
29159         * modules/unictype/property-diacritic:
29160         * modules/unictype/property-extender:
29161         * modules/unictype/property-format-control:
29162         * modules/unictype/property-grapheme-base:
29163         * modules/unictype/property-grapheme-extend:
29164         * modules/unictype/property-grapheme-link:
29165         * modules/unictype/property-hex-digit:
29166         * modules/unictype/property-hyphen:
29167         * modules/unictype/property-id-continue:
29168         * modules/unictype/property-id-start:
29169         * modules/unictype/property-ideographic:
29170         * modules/unictype/property-ids-binary-operator:
29171         * modules/unictype/property-ids-trinary-operator:
29172         * modules/unictype/property-ignorable-control:
29173         * modules/unictype/property-iso-control:
29174         * modules/unictype/property-join-control:
29175         * modules/unictype/property-left-of-pair:
29176         * modules/unictype/property-line-separator:
29177         * modules/unictype/property-logical-order-exception:
29178         * modules/unictype/property-lowercase, modules/unictype/property-math:
29179         * modules/unictype/property-non-break:
29180         * modules/unictype/property-not-a-character:
29181         * modules/unictype/property-numeric:
29182         * modules/unictype/property-other-alphabetic:
29183         * modules/unictype/property-other-default-ignorable-code-point:
29184         * modules/unictype/property-other-grapheme-extend:
29185         * modules/unictype/property-other-id-continue:
29186         * modules/unictype/property-other-id-start:
29187         * modules/unictype/property-other-lowercase:
29188         * modules/unictype/property-other-math:
29189         * modules/unictype/property-other-uppercase:
29190         * modules/unictype/property-paired-punctuation:
29191         * modules/unictype/property-paragraph-separator:
29192         * modules/unictype/property-pattern-syntax:
29193         * modules/unictype/property-pattern-white-space:
29194         * modules/unictype/property-private-use:
29195         * modules/unictype/property-punctuation:
29196         * modules/unictype/property-quotation-mark:
29197         * modules/unictype/property-radical:
29198         * modules/unictype/property-sentence-terminal:
29199         * modules/unictype/property-soft-dotted:
29200         * modules/unictype/property-space:
29201         * modules/unictype/property-terminal-punctuation:
29202         * modules/unictype/property-test, modules/unictype/property-titlecase:
29203         * modules/unictype/property-unassigned-code-value:
29204         * modules/unictype/property-unified-ideograph:
29205         * modules/unictype/property-uppercase:
29206         * modules/unictype/property-variation-selector:
29207         * modules/unictype/property-white-space:
29208         * modules/unictype/property-xid-continue:
29209         * modules/unictype/property-xid-start:
29210         * modules/unictype/property-zero-width, modules/unictype/scripts:
29211         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
29212         * modules/unictype/syntax-c-whitespace:
29213         * modules/unictype/syntax-java-ident:
29214         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
29215         * modules/unigbrk/u16-grapheme-breaks:
29216         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
29217         * modules/unigbrk/u32-grapheme-breaks:
29218         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
29219         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
29220         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
29221         * modules/unigbrk/uc-is-grapheme-break:
29222         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
29223         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
29224         * modules/unilbrk/u16-width-linebreaks:
29225         * modules/unilbrk/u32-possible-linebreaks:
29226         * modules/unilbrk/u32-width-linebreaks:
29227         * modules/unilbrk/u8-possible-linebreaks:
29228         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
29229         * modules/unilbrk/ulc-possible-linebreaks:
29230         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
29231         * modules/uniname/uniname, modules/uninorm/base:
29232         * modules/uninorm/canonical-decomposition:
29233         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
29234         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
29235         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
29236         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
29237         * modules/uninorm/nfkc, modules/uninorm/nfkd:
29238         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
29239         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
29240         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
29241         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
29242         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
29243         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
29244         * modules/unistdio/base, modules/unistdio/u-printf-args:
29245         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
29246         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
29247         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
29248         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
29249         * modules/unistdio/u16-u16-sprintf:
29250         * modules/unistdio/u16-u16-vasnprintf:
29251         * modules/unistdio/u16-u16-vasprintf:
29252         * modules/unistdio/u16-u16-vsnprintf:
29253         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
29254         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
29255         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
29256         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
29257         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
29258         * modules/unistdio/u32-u32-asnprintf:
29259         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
29260         * modules/unistdio/u32-u32-sprintf:
29261         * modules/unistdio/u32-u32-vasnprintf:
29262         * modules/unistdio/u32-u32-vasprintf:
29263         * modules/unistdio/u32-u32-vsnprintf:
29264         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
29265         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
29266         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
29267         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
29268         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
29269         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
29270         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
29271         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
29272         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
29273         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
29274         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
29275         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
29276         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
29277         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
29278         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
29279         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
29280         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
29281         * modules/unistr/u16-check, modules/unistr/u16-chr:
29282         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
29283         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
29284         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
29285         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
29286         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
29287         * modules/unistr/u16-move, modules/unistr/u16-next:
29288         * modules/unistr/u16-prev, modules/unistr/u16-set:
29289         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
29290         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
29291         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
29292         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
29293         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
29294         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
29295         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
29296         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
29297         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
29298         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
29299         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
29300         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
29301         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
29302         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
29303         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
29304         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
29305         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
29306         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
29307         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
29308         * modules/unistr/u32-next, modules/unistr/u32-prev:
29309         * modules/unistr/u32-set, modules/unistr/u32-startswith:
29310         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
29311         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
29312         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
29313         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
29314         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
29315         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
29316         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
29317         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
29318         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
29319         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
29320         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
29321         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
29322         * modules/unistr/u8-check, modules/unistr/u8-chr:
29323         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
29324         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
29325         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
29326         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
29327         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
29328         * modules/unistr/u8-next, modules/unistr/u8-prev:
29329         * modules/unistr/u8-set, modules/unistr/u8-startswith:
29330         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
29331         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
29332         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
29333         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
29334         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
29335         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
29336         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
29337         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
29338         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
29339         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
29340         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
29341         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
29342         * modules/uniwbrk/base, modules/uniwbrk/table:
29343         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
29344         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
29345         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
29346         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
29347         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
29348         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
29349         * modules/uniwidth/width, modules/utf16-ucs4:
29350         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
29351         * modules/utf8-ucs4-unsafe:
29352         Change maintainer from Bruno Haible to Daiki Ueno.
29353         This is my guess at the libunistring modules; please feel free
29354         to fix if I guessed incorrectly.
29355         * modules/accept4, modules/acl, modules/acos, modules/acosf:
29356         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
29357         * modules/areadlink, modules/array-list, modules/array-mergesort:
29358         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
29359         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
29360         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
29361         * modules/binary-io, modules/bison-i18n, modules/btowc:
29362         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
29363         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
29364         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
29365         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
29366         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
29367         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
29368         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
29369         * modules/closedir, modules/concat-filename, modules/copy-file:
29370         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
29371         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
29372         * modules/csharpcomp-script, modules/csharpexec:
29373         * modules/csharpexec-script, modules/ctype, modules/diffseq:
29374         * modules/dprintf, modules/dprintf-posix, modules/dup:
29375         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
29376         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
29377         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
29378         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
29379         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
29380         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
29381         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
29382         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
29383         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
29384         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
29385         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
29386         * modules/findprog, modules/findprog-lgpl, modules/floor:
29387         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
29388         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
29389         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
29390         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
29391         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
29392         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
29393         * modules/freadable, modules/freadahead, modules/freadptr:
29394         * modules/freadseek, modules/freopen, modules/frexp:
29395         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
29396         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
29397         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
29398         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
29399         * modules/ftello, modules/full-read, modules/full-write:
29400         * modules/fwritable, modules/fwriteerror, modules/gcd:
29401         * modules/get-rusage-as, modules/get-rusage-data:
29402         * modules/getdtablesize, modules/getrusage, modules/gettext:
29403         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
29404         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
29405         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
29406         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
29407         * modules/iconv, modules/iconv-h, modules/iconv_open:
29408         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
29409         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
29410         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
29411         * modules/integer_length_ll, modules/ioctl, modules/isatty:
29412         * modules/isblank, modules/isnand, modules/isnand-nolibm:
29413         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
29414         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
29415         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
29416         * modules/javaexec, modules/javaexec-script, modules/javaversion:
29417         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
29418         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
29419         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
29420         * modules/lib-symbol-visibility, modules/libsigsegv:
29421         * modules/linked-list, modules/linkedhash-list, modules/list:
29422         * modules/localcharset, modules/locale, modules/localeconv:
29423         * modules/localename, modules/lock, modules/log, modules/log-ieee:
29424         * modules/log10, modules/log10-ieee, modules/log10f:
29425         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
29426         * modules/log1p, modules/log1p-ieee, modules/log1pf:
29427         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
29428         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
29429         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
29430         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
29431         * modules/logf, modules/logf-ieee, modules/login_tty:
29432         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
29433         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
29434         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
29435         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
29436         * modules/mbscspn, modules/mbsinit, modules/mbslen:
29437         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
29438         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
29439         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
29440         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
29441         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
29442         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
29443         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
29444         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
29445         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
29446         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
29447         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
29448         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
29449         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
29450         * modules/posix_spawn, modules/posix_spawn-internal:
29451         * modules/posix_spawn_file_actions_addclose:
29452         * modules/posix_spawn_file_actions_adddup2:
29453         * modules/posix_spawn_file_actions_addopen:
29454         * modules/posix_spawn_file_actions_destroy:
29455         * modules/posix_spawn_file_actions_init:
29456         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
29457         * modules/posix_spawnattr_getpgroup:
29458         * modules/posix_spawnattr_getschedparam:
29459         * modules/posix_spawnattr_getschedpolicy:
29460         * modules/posix_spawnattr_getsigdefault:
29461         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
29462         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
29463         * modules/posix_spawnattr_setschedparam:
29464         * modules/posix_spawnattr_setschedpolicy:
29465         * modules/posix_spawnattr_setsigdefault:
29466         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
29467         * modules/pow, modules/powf, modules/printf-frexp:
29468         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
29469         * modules/progname, modules/propername, modules/pselect:
29470         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
29471         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
29472         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
29473         * modules/read, modules/readdir, modules/readlink:
29474         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
29475         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
29476         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
29477         * modules/relocatable-script, modules/remainder:
29478         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
29479         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
29480         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
29481         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
29482         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
29483         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
29484         * modules/setlocale, modules/sh-quote, modules/shutdown:
29485         * modules/signal, modules/signbit, modules/sigpipe:
29486         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
29487         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
29488         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
29489         * modules/snippet/link-warning, modules/snippet/unused-parameter:
29490         * modules/snprintf, modules/snprintf-posix, modules/spawn:
29491         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
29492         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
29493         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
29494         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
29495         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
29496         * modules/streq, modules/strerror_r-posix, modules/striconv:
29497         * modules/striconveh, modules/striconveha, modules/strncat:
29498         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
29499         * modules/sublist, modules/sys_resource, modules/sys_utsname:
29500         * modules/sys_wait, modules/system-posix, modules/system-quote:
29501         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
29502         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
29503         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
29504         * modules/truncf, modules/truncf-ieee, modules/truncl:
29505         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
29506         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
29507         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
29508         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
29509         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
29510         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
29511         * modules/wait-process, modules/waitpid, modules/wcpcpy:
29512         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
29513         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
29514         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
29515         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
29516         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
29517         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
29518         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
29519         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
29520         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
29521         * modules/write, modules/xconcat-filename, modules/xlist:
29522         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
29523         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
29524         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
29525         * modules/y0, modules/y1, modules/yn:
29526         Remove Bruno Haible as maintainer; if he's the sole maintainer,
29527         change the maintainer to 'all'.  Let's hope someone volunteers.
29529 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
29531         mktime: merge #if/#ifdef usage from glibc
29532         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
29533         as that works with both Glibc's and Gnulib's style.
29534         See thread starting at Siddhesh Poyarekar's bug report at:
29535         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
29537 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
29539         git-version-gen: improve option descriptions
29540         * build-aux/git-version-gen: Mention that --prefix and --fallback
29541         have a mandatory argument.
29543 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
29545         regex: fix memory leak in compiler
29546         Fix by Andreas Schwab in:
29547         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
29548         * lib/regcomp.c (parse_expression): Deallocate partially
29549         constructed tree before returning error.
29551         regex: merge patch from libc
29552         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
29553         Combine __USE_BSD and __USE_SVID into __USE_MISC.
29554         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
29556 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
29558         acl: port to gcc -Wredundant-decls
29559         From a request by Dmitry Antipov in:
29560         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
29561         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
29562         "#ifndef _GL_ACL_H".
29564 2014-06-11  Bruce Korb  <bkorb@gnu.org>
29565         Jim Meyering  <meyering@fb.com>
29567         parse-duration: eliminate 68-year duration limit
29568         * lib/parse-duration.c: Include "intprops.h".
29569         (TIME_MAX): Rename to MAX_DURATION and define to
29570         TYPE_MAXIMUM(time_t).
29571         * modules/parse-duration (Depends-on): Add intprops.
29572         Reported by Jonas 'Sortie' Termansen.
29574 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
29576         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
29577         * modules/pthread (Depends-on): Add 'extensions', as it defines
29578         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
29579         (configure.ac-early): New section.
29580         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
29581         it is no longer needed.
29583 2014-06-14  Pádraig Brady  <P@draigBrady.com>
29585         pthread: define thread-safe macros on some platforms
29586         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
29587         for thread-safe operation on some platforms.
29589 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
29591         regex: don't be multithreaded if USE_UNLOCKED_IO.
29592         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
29593         * lib/regex_internal.h: Do not use multithreaded version if
29594         USE_UNLOCKED_IO is defined.  This is a hack, but it works
29595         around a porting bug with coreutils 8.22 on AIX 7.1.
29597 2014-06-11  Daiki Ueno  <ueno@gnu.org>
29599         gettext: update macros to version 0.19
29600         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
29601         depend on gl_EXTERN_INLINE and drop support for older Bison
29602         versions.
29604 2014-06-10  Pádraig Brady  <P@draigBrady.com>
29606         select,poll: fix console handle check on windows 8
29607         lib/poll.c (IsConsoleHandle): Change from testing the lower
29608         2 bits of the handle to the more expensive but accurate syscall.
29609         lib/select.c: Likewise.
29611 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
29613         select: fix waiting on anonymous pipes on MS-Windows
29614         * lib/select.c (rpl_select): Fall back to polling when select()
29615         indicates there is nothing to check, while due to the timeout not
29616         expiring, activity is indicated on one of the handles.
29617         Also clear the TIMEOUT argument if the timer does expire.
29619 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
29621         times: fix to return non constant value on MS-Windows
29622         * lib/times.c (times): Don't use the process creation time,
29623         rather clock() which on windows returns the number of
29624         clock ticks since the process started.
29626 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
29628         isatty: fix to work on windows 8
29629         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
29630         2 bits of the handle to the more expensive but accurate syscall.
29632 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
29634         maint: fix typo in fdl.texi
29635         * doc/fdl.texi: Fix typo (missing '@').
29636         Somehow this was in fdl.texi but not fdl-1.3.texi.
29638 2014-06-06  Ben Walton  <bdwalton@gmail.com>
29640         mountlist: avoid hasmntopt const type warning on solaris
29641         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
29642         with char * instead of const char *.  Passing the constant string
29643         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
29644         to avoid the warning.
29646 2014-06-04  Eric Blake  <eblake@redhat.com>
29648         maintainer-makefile: delete obsolete code
29649         * top/maint.mk (build_aux): Drop old code, as threatened.
29651         maintainer-makefile: avoid spurious error messages
29652         * top/maint.mk (syntax-check): Guard definition and use of
29653         $(shell) by whether Makefile is present.
29655 2014-06-03  Ben Walton  <bdwalton@gmail.com>
29657         rename: avoid unused-but-set-variable compiler warning
29658         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
29659         it is possible that dst_exists may be set but not used.  Mark it with
29660         the unused attribute to avoid compiler warnings.
29662 2014-06-02  Ben Walton  <bdwalton@gmail.com>
29664         rename: mark a label as potentially unused
29665         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
29666         by marking the out label as potentially unused.
29667         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
29669 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
29671         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
29672         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
29674 2014-06-02  Ben Walton  <bdwalton@gmail.com>
29676         acl: apply pure attribute to two functions
29677         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
29678         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
29680 2014-06-01  Pádraig Brady  <P@draigBrady.com>
29682         gnulib-common.m4: add _GL_UNUSED_LABEL
29683         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
29684         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
29686 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
29688         dup2, fcntl, fcntl-h: port to AIX 7.1
29689         This fixes some porting problems discovered when testing the latest
29690         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
29691         in grep but it could be important for other applications.
29692         * doc/posix-functions/dup2.texi:
29693         * doc/posix-functions/fcntl.texi:
29694         * doc/posix-headers/fcntl.texi:
29695         Document AIX bugs.
29696         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
29697         Define to 0 if outside 'int' range.
29698         * m4/dup2.m4 (gl_FUNC_DUP2):
29699         * m4/fcntl.m4 (gl_FUNC_FCNTL):
29700         Check for getdtablesize.  If it's available, test a value just
29701         outside its range instead of testing 1000000.  When cross-compiling,
29702         guess that AIX will fail this improved test.
29704 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
29706         printf, config.rpath: Port to FreeBSD 10.
29707         Problem reported by Tijl Coosemans in:
29708         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
29709         * build-aux/config.rpath (hardcode_libdir_flag_spec)
29710         (hardcode_direct): Simplify FreeBSD configuration.
29711         (library_names_spec): Don't mishandle FreeBSD 10+.
29712         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
29713         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
29714         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
29715         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
29716         Don't mishandle FreeBSD 10+ when cross-compiling.
29718         ftoastr: work around compiler bug in IBM xlc 12.1
29719         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
29720         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
29721         around a compiler bug in IBM xlc 12.1.0.0: it complains
29722         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
29723         _GL_FLT_PREC_BOUND.'
29725 2014-05-30  Kieran Colford  <colfordk@gmail.com>
29727         valgrind-tests: fixed misleading help message
29728         * m4/valgrind-tests.m4: The help message generated by configure
29729         implied that valgrind was disabled by default, which it wasn't.
29730         Adjusted the help message using s/enable/disable/ to clarify.
29732 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
29734         isfinite, isinf, isnan tests: fix for little-endian PowerPC
29735         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
29736         first double of a PowerPC "double double" pair.
29737         * tests/test-isinf.c (test_isinfl): Likewise.
29738         * tests/test-isnan.c (test_long_double): Likewise.
29739         * tests/test-isnanl.h (main): Likewise.
29740         * tests/test-signbit.c (test_signbitl): Likewise.
29742 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
29744         exclude-tests: port to AIX 7.1
29745         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
29746         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
29747         the regex code uses locks.
29749 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
29751         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
29752         Without this fix, Emacs would sometimes call sigprocmask instead
29753         of pthread_sigmask, which is a no-no in multithreaded applications.
29754         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
29755         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
29756         Suppress check for pthread_sigmask working without -lpthread if
29757         the application always links with -lpthread.  Do not link with
29758         $LIBMULTITHREAD if gl_THREADLIB is not defined.
29759         * m4/timer_time.m4 (gl_TIMER_TIME):
29760         Require gl_THREADLIB only if it is defined.  Do not append
29761         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
29763 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
29765         gnulib-tool: wget translations using --no-verbose rather than --quiet
29766         This allows the user to see error messages if any (--quiet hides them)
29767         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
29769 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
29771         gnulib-tool: adjust translation wget to avoid a https redirection
29772         Context: http://translationproject.org/latest/gnulib redirects to
29773            https://translationproject.org/latest/gnulib/
29774         Rationale: if the user falls back to wget, she doesn't have rsync and
29775         is probably in a minimal build environment, where packages such as
29776         'ca-certificates' are missing as well, resulting in a failed (and
29777         difficult to detect since ignored) translation initial fetch.
29778         Consequently let's avoid https if possible, and add the missing
29779         trailing slash.  This also avoids an unnecessary 302 redirection.
29780         * gnulib-tool: Add trailing slash to gnulib URL.
29782 2014-05-22  Pádraig Brady  <P@draigBrady.com>
29784         getlogin_r-tests: check return value rather than errno
29785         * tests/test-getlogin_r.c (main): As per POSIX we should be
29786         verifying the return value from getlogin_r() rather than errno.
29788 2014-05-22  Pádraig Brady  <P@draigBrady.com>
29790         getlogin_r-tests: fix various issues in recent change
29791         * tests/test-getlogin_r.c: Include required headers that were
29792         missed in recent commit eec20b4e.
29793         Also consistently check the errno rather than the return value from
29794         getlogin_r as POSIX only specifies that non zero is returned on error.
29795         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
29797 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
29799         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
29800         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
29801         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
29802         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
29803         * lib/spawn-pipe.c:
29804         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
29805         and then 'int open64(const char *, int, ...);', which means the
29806         declaration for 'open' gets lost if we later '#undef open'.
29807         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
29808         where the compilation reported the non-fatal error "In function
29809         'openat_proc_name' ... warning: implicit declaration of function
29810         'open'".  In this case the error is relatively harmless, but in
29811         other cases it might not be so minor.
29813 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
29815         xalloc: don't potentially generate invalid code for xmemdup calls
29816         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
29817         this function can initialize the newly-allocated storage with new
29818         pointers, which means this function is not malloc-like.  See:
29819         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
29821 2014-05-19  Pádraig Brady  <P@draigBrady.com>
29823         getlogin_r-tests: avoid false failure under sudo/ssh etc.
29824         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
29825         changes from commit 97249cf29 to not depend on environment variables.
29827 2014-05-18  Pádraig Brady  <P@draigBrady.com>
29829         getlogin-tests: avoid false failure under cron
29830         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
29831         since that's not what's under test.  Centos 6 was seen to return
29832         EINVAL for ttyname() when run from cron.
29834 2014-05-16  Jim Meyering  <meyering@fb.com>
29836         mbrtowc.m4: fix a comment typo
29837         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
29838         emitted documentation string.
29840 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
29842         mbrlen, mbrtowc: fix bug with empty input
29843         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
29844         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
29845         so this is mainly for documentation.
29846         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
29847         (gl_FUNC_MBRTOWC): Use it.
29848         * tests/test-mbrtowc.c (main): Test for the bug.
29850 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
29852         doc: document mbrtowc and mbrlen problem with empty input
29853         * doc/posix-functions/mbrlen.texi (mbrlen):
29854         * doc/posix-functions/mbrtowc.texi (mbrtowc):
29855         Document portability problem when the input string is empty.  See:
29856         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
29858         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
29859         Problem reported by Eli Zaretskii in:
29860         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
29861         * doc/posix-functions/execl.texi (execl):
29862         * doc/posix-functions/execle.texi (execle):
29863         * doc/posix-functions/execlp.texi (execlp):
29864         * doc/posix-functions/execv.texi (execv):
29865         * doc/posix-functions/execve.texi (execve):
29866         * doc/posix-functions/execvp.texi (execvp):
29867         Mention spawn+exit problem on non-Cygwin Windows platforms.
29869 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
29871         getlogin-tests: avoid false failure under sudo/ssh etc.
29872         * modules/getlogin-tests (configure.ac): Check for ttyname().
29873         * tests/test-getlogin.c (main): Don't depend on environment variables
29874         to correlate with getlogin(), since sudo and ssh etc. can tamper
29875         with the LOGNAME and USER env vars.  Instead lookup the name from
29876         the uid associated with the stdin tty.
29878 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
29880         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
29881         These were found when building the latest grep snapshot on IRIX 6.5.
29882         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
29883         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
29884         never used later.
29885         * lib/quotearg.c (quoting_options_from_style):
29886         * lib/xstrtol.c (__xstrtol):
29887         Use enum instead of 0, to pacify IRIX 6.5 cc.
29889 2014-04-18  Pádraig Brady  <P@draigBrady.com>
29891         gitlog-to-changelog: revert inclusion of git-log-fix file
29892         * build-aux/git-log-fix: Delete dummy file.
29893         * modules/gitlog-to-changelog: Don't reference (overwrite)
29894         the project specific git-log-fix file.
29896 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
29898         maint.mk: Relax the copyright check to cater for non FSF projects
29899         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
29900         to not require the "Free" suffix after the copyright years.
29902 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
29904         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
29905         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
29906         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
29907         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
29908         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
29910 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
29912         exclude: port to strict C99
29913         Strict C does not allow converting a function pointer to void *
29914         and vice versa.  Pass a pointer to a function pointer instead.
29915         * lib/exclude.c (add_exclude_file):
29916         Pass the address of the function pointer.
29917         (call_addfn): And deference the address here, to match.
29919 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
29921         regex: do not depend on malloc-gnu
29922         * modules/regex (Depends-on): Remove malloc-gnu.
29923         It's no longer needed, because of the 2012-12-29 patch
29924         "regex: port to hosts where malloc (0) == NULL".
29925         Reported by Nathan Kennedy in:
29926         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
29928 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
29930         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
29931         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
29932         * doc/posix-functions/expl.texi: Mention the workaround.
29934 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
29936         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
29937         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
29938         size to be zero even when the pointer is nonnull.  This
29939         accommodates the use case where P is malloc (0) and *PN is 0 on a
29940         host where malloc (0) yields nonnull.
29942 2014-04-09  Eric Blake  <eblake@redhat.com>
29944         fts: avoid unnecessary strlen calls
29945         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
29947 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
29949         fts: avoid unnecessary strlen calls
29950         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
29951         when that can be faster than strlen.
29953 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
29955         fts: avoid unnecessary strlen calls
29956         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
29957         (fts_build): Store the length of the dp->d_name entry in a local variable
29958         instead of calling strlen() several times via the above, removed macro.
29959         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
29960         run by ~4%, yet this reduces the execution time by about a third if run
29961         via "ltrace -c rm -rf some-dir".
29963 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
29965         obstack: Remove ancient NeXTSTEP gcc support conditional
29966         This change will ease merging with glibc.  The "#if ... __NEXT__"
29967         causes a warning with -Wundef which glibc now enables by default.
29968         Problem reported by Will Newton in
29969         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
29970         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
29971         so go with that.
29972         * lib/obstack.h (__extension__):
29974 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
29976         obstack: merge with glibc changes
29977         * lib/obstack.c, lib/obstack.h: Merge from glibc.
29978         This is mostly indenting and commentary changes.
29979         Instances of 'register' have been removed.
29981 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
29983         strftime: wrap macros in "do {...} while(0)"
29984         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
29985         this macro in "do {...} while(0)" to prevent false use as a
29986         single statement, e.g., in an un-braced "{}" else-block.
29987         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
29988         (strftime_case_): Remove 'else' after 'goto' - which was the
29989         only non-fatal, un-braced use of one of the above macros.
29990         Spotted by coverity (NESTING_INDENT_MISMATCH).
29992 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
29994         modechange: avoid memory leaks for invalid octal modes
29995         * lib/modechange.c (mode_compile): During the parsing of
29996         notations like +40, free the 'mc' buffer for invalid mode
29997         strings like +17777 (greater than the maximum octal mode),
29998         =18 (bad octal mode characters) or u=1 ('affected' with
29999         octal modes).
30000         Reproducer, e.g.:
30001             $ valgrind --leak-check=full chmod +17777 file
30002         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
30003         add notations +40, 00440, etc.".
30004         Spotted by coverity (RESOURCE_LEAK).
30006 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
30008         gitlog-to-changelog: include a dummy git-log-fix file
30009         Problem reported by Nathan Stratton Treadway in:
30010         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
30011         * build-aux/git-log-fix: New file.
30013 2014-03-13  Jim Meyering  <meyering@fb.com>
30015         gitlog-to-changelog: also include the file, git-log-fix
30016         * modules/gitlog-to-changelog (Files): Add git-log-fix.
30017         Reported by Assaf Gordon.
30019 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
30021         regex: port to OS X 10.8.5 en_US.UTF-8 locale
30022         This fixes a bug when ignoring case and when comparing the
30023         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
30024         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
30025         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
30026         titlecase letter is neither lowercase nor uppercase, but
30027         uppercasing the titlecase letter (via towupper) yields the
30028         uppercase letter, so the two letters should match when ignoring case.
30029         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
30030         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
30031         Don't test whether a character is lowercase before uppercasing it.
30033 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
30035         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
30036         This is basically one of the options Bruno Haible proposed in:
30037         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
30038         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
30039         * lib/stdint.in.h: Use it.
30040         * modules/stdint (Depends-on): Add sys_types.
30042 2014-02-26  Pádraig Brady  <P@draigBrady.com>
30044         parse-datetime: fix crash or infloop in TZ="" parsing
30045         * lib/parse-datetime.y (parse_datetime): Break out of the
30046         TZ="" parsing loop once the second significant " is found.
30047         Also skip over any subsequent whitespace to be consistent
30048         with the non TZ= case.
30049         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
30051 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
30053         savedir: new symbol for fast-read version
30054         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
30055         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
30056         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
30057         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
30059 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
30061         unistd: port readlink to Mac OS X 10.3.9
30062         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
30063         around self-include problem in Mac OS X 10.3.9 when combined with
30064         readlink module.  Problem reported by Klaus Zietler in
30065         <http://bugs.gnu.org/16825>.
30067 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
30069         diffseq: remove TOO_EXPENSIVE heuristic
30070         Problem with diffutils reported by Vincent Lefevre in
30071         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
30072         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
30073         Although appropriate for circa-1993 hardware, these days the heuristic
30074         seems to be more trouble than it's worth.
30075         * lib/diffseq.h: Modernize citations.
30076         (struct context): Remove member too_expensive.
30077         All uses changed.
30078         (struct partition): Remove members lo_minimal, hi_minimal.
30079         All uses changed.
30080         (diag, compareseq): Remove arg find_minimal.  All uses changed.
30081         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
30082         1993 to make 'diff' run faster (but not as well) on large inputs.
30083         These days, computers are fast enough that it's typically better
30084         to run slower but more accurately.
30085         * lib/fstrcmp.c: Remove duplicate comment.
30086         * lib/fstrcmp.c (strcmp_bounded):
30087         * lib/git-merge-changelog.c (compute_differences):
30088         Adjust to diffseq.h changes.
30089         * NEWS: Document the change.
30091         savedir: simplify by using stpcpy
30092         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
30093         (streamsavedir): Use stpcpy instead.
30094         * modules/savedir (Depends-on): Add stpcpy.
30096 2014-02-21  Pádraig Brady  <P@draigBrady.com>
30098         spawn: fix link error on uclibc
30099         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
30100         to incorporate -lrt if needed (on uclibc for example).
30101         * modules/posix_spawn: Reference the substituted LIB.
30103 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
30104         timer: fix uClibc detection of threading
30105         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
30106         enabled in uClibc.
30108 2014-02-21  Eric Blake  <eblake@redhat.com>
30110         maintainer-makefiles: provide AC_PROG_SED for older autoconf
30111         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
30113 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
30115         exclude: add support for posix regexps
30117         This commit adds support for POSIX extended regular expressions
30118         and fixes a long-standing memory leak (pattern buffer was never
30119         freed).  It also implements a new interface function to read
30120         exclude patterns from a FILE, which passes an additional parameter
30121         to its callback function, thereby allowing to preserve its state
30122         between invocations.
30124         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
30125         (pattern_buffer): New struct.
30126         (exclude): New member patbuf.
30127         (exclude_add_pattern_buffer): New function.
30128         (free_exclude_segment): Free regexps.
30129         (free_exclude): Free allocated pattern buffers.
30130         (exclude_patopts): New function.
30131         (file_pattern_matches): Use exclude_patopts.
30132         (add_exclude): support regexps.
30133         (add_exclude_fp): New function.
30134         (add_exclude_file): Rewrite using add_exclude_fp.
30135         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
30136         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
30137         (add_exclude_fp)
30138         (add_exclude_file): Rewrite using add_exclude_fp.
30139         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
30140         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
30141         (add_exclude_fp)
30142         (exclude_add_pattern_buffer): New prototypes.
30143         * modules/exclude: Depends on regex and filename.
30145 2014-02-20  Eric Blake  <eblake@redhat.com>
30147         maintainer-makefiles: use $(SED) for syntax check
30148         * modules/maintainer-makefile (configure.ac): Check for sane sed.
30149         * top/maint.mk: Change sed to $(SED).
30151 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
30152             Paul Eggert  <eggert@cs.ucla.edu>
30154         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
30155         Patch based on an idea by Dick Streefland in
30156         <https://savannah.gnu.org/patch/?7892>.
30157         * NEWS: Document this.
30158         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
30159         (direntry_t, comparison_function): New types.
30160         (direntry_cmp_name): New function.
30161         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
30162         (streamsavedir, savedir): New arg OPTION.
30163         (streamsavedir): Simplify memory allocation.
30164         (fdsavedir): Remove.
30165         * lib/savedir.h (enum savedir_option): New type.
30166         (streamsavedir, savedir): New arg OPTION.
30167         (fdsavedir): Remove.
30169 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
30171         file-type: add support for doors and other less-common file types
30172         Problem with S_ISDOOR reported by Rich Burridge.
30173         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
30174         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
30175         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
30177 2014-01-23  Eric Blake  <eblake@redhat.com>
30179         pthread: work around winpthread header pollution on mingw
30180         * lib/time.in.h: Move pthread workarounds...
30181         * lib/pthread.in.h: ...here.
30182         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
30183         detect macro pollution on mingw.
30184         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
30186 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
30188         qacl: check for fchmod
30189         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
30190         and qset-acl.c both use HAVE_FCHMOD.
30192 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
30194         fdopen-tests: port to Tru64
30195         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
30196         descriptor that is not open, as POSIX doesn't specify the
30197         resulting behavior and the test does not work on Tru64.
30198         Problem reported by Steven M. Schweda in:
30199         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
30201         stdalign: port to HP-UX compilers
30202         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
30203         if __HP_cc or __HP_aCC are nonzero.
30205 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
30207         strtoimax: port to platforms lacking 'long long'
30208         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
30209         check whether strtoll is declared, which causes the C file to
30210         wrongly report an error.  Problem reported by Steven M. Schweda in:
30211         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
30212         * lib/strtoimax.c (strtoull):
30213         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
30214         (strtoll): Declare only if HAVE_LONG_LONG_INT.
30216 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
30218         relocatable-perl: fix texi syntax
30219         * doc/relocatable-maint.texi: Escape braces.
30221 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
30223         relocatable-perl: like relocatable-script, but for Perl scripts
30224         * build-aux/relocatable.pl.in: Add.
30225         * doc/relocatable-maint.texi: Add documentation.
30226         * modules/relocatable-perl: Add.
30228 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
30230         tests: fix export bug in previous patch
30231         Problem reported by Jim Meyering.
30232         * tests/init.sh (re_shell): New var, which is exported instead of
30233         re_shell_.
30235         tests: simplify porting to Solaris 10 /bin/sh
30236         Some test cases in 'grep' need a shell that groks '$(';
30237         export re_shell_ for their benefit.  Problem reported for 'grep'
30238         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
30239         * tests/init.sh (re_shell_): Export if it's used.
30241 2014-01-06  Eric Blake  <eblake@redhat.com>
30243         md5, sha1, sha256, sha512: support older autoconf
30244         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
30245         for autoconf < 2.63b.
30247         include_next: port to autoconf 2.63
30248         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
30250 2014-01-04  Jim Meyering  <meyering@fb.com>
30252         maint: add a gnulib-local rule to keep non-ascii out of .texi files
30253         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
30254         so that "make sc_maint" will ding anyone who puts non-ascii
30255         in any of gnulib's .texi files.
30257 2014-01-03  Jim Meyering  <meyering@fb.com>
30259         freadable, fwritable, fwriting: declare with the "pure" attribute
30260         * lib/freadable.h (freadable): Declare with the "pure" attribute.
30261         * lib/fwritable.h (fwritable): Likewise.
30262         * lib/fwriting.h (fwriting): Likewise.
30263         Suggested by Bruno Haible.
30265         maint.mk: adapt openat.h-include-without-use test
30266         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
30267         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
30268         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
30269         With this change, running "make sc_maint" in gnulib's top-level
30270         directory now passes for me.
30272 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
30274         doc: use ASCII in .texi files where UTF-8 isn't needed
30275         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
30276         * doc/posix-functions/setkey.texi, doc/regex.texi:
30277         Use ASCII input, not UTF-8.
30279 2014-01-02  Jim Meyering  <meyering@fb.com>
30281         freading: declare with the "pure" attribute
30282         * lib/freading.h (freading): Declare with the "pure" attribute.
30284         manywarnings: remove -Wmudflap
30285         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
30286         it is no longer supported in gcc-4.9-to-be.
30288 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
30290         relocatable-script: remove unused code
30291         Problem reported by Reuben Thomas in:
30292         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
30293         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
30295 2014-01-01  Jim Meyering  <meyering@fb.com>
30297         maint: fix public-submodule-commit to work with newer git
30298         * top/maint.mk (public-submodule-commit): Remove excess quoting.
30299         We were over-quoting the test arguments, and somewhere prior to
30300         version 1.8.5.2.229, git stopped removing those excess quotes,
30301         which made the test fail, since the unexpanded strings would
30302         always differ; using GIT_TRACE=1 confirmed that the git merge-base
30303         command wasn't even being run.
30305 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
30307         doc: update main copyright year
30308         * doc/gnulib.texi: Update copyright date.
30310 2014-01-01  Eric Blake  <eblake@redhat.com>
30312         version-etc: new year
30313         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
30314         * all files: run 'make update-copyright'
30316 2013-12-24  Eric Blake  <eblake@redhat.com>
30318         passfd: give nicer error for recvfd at eof
30319         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
30320         * tests/test-passfd.c (main): Enhance test to cover this.
30322 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
30324         gettimeofday: port recent C++ fix to Emacs
30325         Without this further patch, Emacs won't build due to
30326         the portcheck failing.  Also, this simplifies the patch a bit.
30327         * lib/time.in.h (localtime, gmtime): Don't replace unless
30328         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
30329         * lib/time.in.h (localtime, gmtime):
30330         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
30331         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
30332         * modules/time (time.h):
30333         Don't worry about the possibility of localtime and gmtime
30334         being absent; they're present in all C libraries we know about.
30335         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
30336         Don't assume sys_time is present and has been initialized.
30337         Instead, use a hack that should work even if it hasn't been.
30338         Don't use a portcheck for gmtime or localtime; this supports
30339         the hack.
30340         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
30342 2013-12-17  John W. Eaton  <jwe@gnu.org>
30344         gettimeofday: fix C++ crosscompilation
30346         Never replace gmtime and localtime by macros when compiling with
30347         C++, this prevents <ctime> from being included.
30349         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
30350         define gmtime and localtime as preprocessor macros.  Instead
30351         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
30352         REPLACE_LOCALTIME substitutions.
30353         * lib/time.in.h: Declare gmtime and localtime when needed.
30354         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
30355         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
30356         * modules/time: Depend on gettimeofday, and substitute the above
30357         variables in time.h.
30359 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
30361         qacl: port to Windows better
30362         See Eli Zaretskii in
30363         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
30364         * lib/file-has-acl.c (acl_access_nontrivial):
30365         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
30366         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
30368 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
30370         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
30371         * lib/gl_openssl.h: Cast void pointers to a specific type.
30373 2013-12-07  Pádraig Brady  <P@draigBrady.com>
30375         open-tests: fix build failure with -Werror=old-style-declaration
30376         * tests/test-open.h: Reorder the inline to avoid the issue.
30378 2013-12-07  Pádraig Brady  <P@draigBrady.com>
30380         md5, sha1, sha256, sha512: fix link error with partial libcrypto
30381         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
30382         init time, so that if early checks find crypto routines,
30383         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
30384         avoiding link failures.
30386 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
30388         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
30389         This provides a new way to specify the default for
30390         gl_CRYPTO_CHECK, one that is reflected in the --help message.
30391         Emacs uses this, as well as the old way.
30392         This attempts to implement a suggestion by Pádraig Brady in
30393         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
30394         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
30395         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
30397         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
30398         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
30399         Add support for a new option, --with-openssl=auto, which causes
30400         the library to be used if available and silently ignored if not.
30401         Add support to allow configure.ac to specify its own
30402         default, by setting with_openssl_default before invoking gl_INIT.
30404 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
30406         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
30407         Problem reported by Daiki Ueno in:
30408         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
30409         * tests/test-open.h (__always_inline):
30410         New macro, if not already defined.
30411         (test_open): Use it.
30413 2013-12-04  Eric Blake  <eblake@redhat.com>
30415         include_next: minimize code duplication
30416         * modules/include_next (Depends-on): Add absolute-header.
30417         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
30418         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
30420 2013-12-04  Pádraig Brady  <P@draigBrady.com>
30422         getcwd: fix compile error in configure check
30423         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
30425 2013-12-04  Pádraig Brady  <P@draigBrady.com>
30427         regex: suppress core dumps from detection code
30428         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
30429         to suppress core dumps that may well occur on glibc systems.
30430         These core dumps might not be cleaned up automatically, or could
30431         trigger some system core dump handling logic.
30433 2013-12-03  Pádraig Brady  <P@draigBrady.com>
30435         md5, sha1, sha256, sha512: support mandating use of openssl
30436         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
30437         description, to list the now 3 separate options.  also don't
30438         mention the default=no, since this is implicit given the option
30439         is described as --with-openssl rather than --without-openssl.
30440         If projects change the default they're free to document that.
30441         with --with-openssl[=yes] we now error out when the specified
30442         hash algorithm is not available in libcrypto.
30444 2013-12-03  Ivailo  <xakepa10@gmail.com>
30446         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
30447         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
30448         -Wformat-nonliteral checks, as these edge cases are part of the test.
30450 2013-12-03  Eric Blake  <eblake@redhat.com>
30452         regex: avoid glibc deadlock during configure
30453         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
30454         glibc bug 15078 in turn triggers bug 16159.
30455         Reported by Michal Privoznik.
30457 2013-12-02  Pádraig Brady  <P@draigBrady.com>
30459         md5, sha1, sha256, sha512: use openssl routines if available.
30460         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
30461         routines will be used if available, requiring apps to link @LIB_CRYPTO@
30462         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
30463         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
30464         in the standard system location.
30465         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
30466         * m4/sha256.m4: Likewise with SHA256.
30467         * m4/sha512.m4: Likewise with SHA512.
30468         * m4/md5.m4: Likewise with MD5.
30469         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
30470         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
30471         * lib/sha256.h: Likewise with SHA256.
30472         * lib/sha512.h: Likewise with SHA512.
30473         * lib/md5.h: Likewise with MD5.
30474         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
30475         * lib/sha256.c: Likewise with SHA256.
30476         * lib/sha512.c: Likewise with SHA512.
30477         * lib/md5.c: Likewise with MD5.
30478         * modules/crypto/sha1 (Link:): Add the new optional lib.
30479         (Depends-on:): Add dependency on extern-inline.
30480         * modules/crypto/sha256: Likewise.
30481         * modules/crypto/sha512: Likewise.
30482         * modules/crypto/md5: Likewise.
30483         * modules/crypto/sha1-tests: Reference the lib here too.
30484         * modules/crypto/md5-tests: Likewise.
30485         * modules/crypto/gc-des-tests: Likewise.
30486         * modules/crypto/gc-hmac-md5-tests: Likewise.
30487         * modules/crypto/gc-hmac-sha1-tests: Likewise.
30488         * modules/crypto/gc-hmac-sha256-tests: Likewise.
30489         * modules/crypto/gc-hmac-sha512-tests: Likewise.
30490         * modules/crypto/gc-md5-tests: Likewise.
30491         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
30492         * modules/crypto/gc-sha1-tests: Likewise.
30493         * modules/crypto/gc-tests: Likewise.
30494         * modules/crypto/hmac-md5-tests: Likewise.
30495         * modules/crypto/hmac-sha1-tests: Likewise.
30496         * modules/crypto/hmac-sha256-tests: Likewise.
30497         * modules/crypto/hmac-sha512-tests: Likewise.
30499 2013-11-29  RV1971  <rv1971@web.de>
30501         base64: (trivial) fix compilation regression on some compilers
30502         * lib/base64.c: Don't return the void function,
30503         instead split to a separate return statement.
30505 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
30507         ignore-value: revert previous code change
30508         * lib/ignore-value.h (ignore_value): Use __extension__ and
30509         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
30510         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
30511         Change the comment to try to explain this better.
30513 2013-11-27  Pádraig Brady  <P@draigBrady.com>
30515         selinux-h: improve stub types and add more stub functions
30517         * lib/se-selinux.in.h: Change security_context_t to a typedef
30518         rather than a define, as it's a pointer type and so is better
30519         as a typedef to avoid issues declaring multiple variables
30520         with the comma operator.  Also add stub for string_to_security_class().
30521         * lib/se-context.in.h: Add stub functions for
30522         context_{type,range,role,user}_get().
30524 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
30526         ignore-value: prefer GCC version back through 2.0
30527         The code didn't match the comments, so I did a bit of software
30528         archaeology.  GCC 2.0 seems to support __extension__ and
30529         __typeof__, so fix both code and comments to use 2.0.
30530         * lib/ignore-value.h (ignore_value): Use __extension__ and
30531         __typeof__ for GCC 2.0 through 3.3, too.
30533 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
30535         pty: Activate the signature wrapper of forkpty.
30536         The intended preprocessor macro HAVE_FORKPTY is
30537         never defined, yet `lib/forkpty.c' depends on it.
30539         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
30540         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
30541         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
30543 2013-11-18  Jim Meyering  <meyering@fb.com>
30544         and Paul Eggert  <eggert@cs.ucla.edu>
30546         quotearg: don't attempt to store 1 << 31 into an "int"
30547         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
30548         gcc's new -fsanitize=undefined and running its tests triggered some
30549         new test failures due to undefined behavior, all with this diagnostic:
30550           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
30551             cannot be represented in type int
30552         Rather than shifting "1" left to form a mask, shift the bits right and
30553         simply use "1" as the mask.
30555 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
30557         error: depend on stdio
30558         Problem reported by Nikos Mavrogiannopoulos in
30559         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
30560         * modules/error (Depends-on): Add stdio.
30562 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
30564         * doc/relocatable-maint.texi (Supporting Relocation): Improve
30565         wording.
30566         Reported by Reuben Thomas <rrt@sc3d.org>.
30568 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
30570         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
30571         New function and macro, to work around _DARWIN_C_SOURCE problem.
30572         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
30574 2013-11-11  Pádraig Brady  <P@draigBrady.com>
30576         base64: provide a fast path for encoding well sized buffers
30577         Avoid conditionals in the base64 encoding loop,
30578         which was seen to give 60% better throughput.
30579         * lib/base64.c (base64_encode_fast): A new function to be called
30580         when we don't want to NUL terminate, and we have enough space
30581         in the output to encode the given input.
30582         (base64_encode): Call the _fast() version when appropriate.
30583         Also remove a redundant mask with 0x3F on the first encoded byte.
30585 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
30587         extern-inline: port better to OS X 10.9
30588         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
30589         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
30590         OS X 10.9, except for g++ where the bug is still present.
30591         See <http://trac.macports.org/ticket/41033>.
30593 2013-11-08  Eric Blake  <eblake@redhat.com>
30595         fpending: fix regression on DragonFly BSD
30596         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
30597         * lib/fpending.h (__fpending): Don't declare twice.
30598         Reported by GW in
30599         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
30601 2013-11-05  Jim Meyering  <meyering@fb.com>
30603         hash: relax license to LGPLv2+, for libguestfs
30604         * modules/hash (License): Change from GPL to LGPLv2+.
30606 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
30608         intprops: port to Oracle Studio c99
30609         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
30610         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
30612 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
30614         obstack: pacify HP C
30615         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
30616         warning "conversion from pointer to smaller integer" from HP
30617         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
30618         C89 or later nowadays, so cast to void instead of int.  Privately
30619         reported by H.Merijn Brand.  Also, change header to match glibc's,
30620         to make checking against glibc easier.
30622 2013-10-29  Jim Meyering  <meyering@fb.com>
30624         maint.mk: prefer gpgv2 over gpgv
30625         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
30626         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
30627         Reported by Gary Vaughan.
30629 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
30631         isnan: port to VAX
30632         Reported by John Klos for NetBSD-5/VAX in
30633         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
30634         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
30635         (FUNC): Use it.
30637 2013-10-28  Jim Meyering  <meyering@fb.com>
30639         gnulib-tool: protect against CDPATH
30640         * gnulib-tool: Many "cd" built-in functions print a directory name
30641         to stdout when CDPATH is set, e.g.,
30642           $ bash -c 'CDPATH=/; cd tmp'
30643           /tmp
30644         Unset it, when possible.  Prompted by a comment from Bruce Korb.
30646         maint.mk: restore functionality removed by recent change...
30647         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
30648         the context of a shallow-cloned gnulib repository: "git describe"
30649         would fail in such a directory.  However, that change made it so
30650         the reported gnulib revision no longer includes the version number
30651         or a commit count, even when run from a full clone.
30652         * top/maint.mk (gnulib-version): Use the full "git describe"
30653         output when possible, e.g., the form above, rather than the
30654         abbreviated, no-tag, no-commit-count string, and fall back to
30655         using a 10-byte hash, rather than the default minimal-length
30656         hash prefix, since while the minimal-length one may be fine today,
30657         it is likely not to be unique for very long.
30659 2013-10-26  Jim Meyering  <meyering@fb.com>
30661         maint.mk: fix "release" target to build _version
30662         This fixes a bug in README-release whereby following the outlined
30663         steps, one would publish a tarball whose programs would report
30664         --version output not consistent with the package version number.
30665         This bug caused grep-2.15 to produce a grep program whose
30666         --version option made it print 2.14.56-1e3d rather than 2.15.
30667         * top/maint.mk (release): Making this target build "_version"
30668         ensures that the new version number is reflected in configure.
30670 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
30672         install-reloc: Support multi-binary installation.
30673         * build-aux/install-reloc: Support installing multiple programs in
30674         one invocation, as done by Automake starting with commit
30675         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
30676         Haible <bruno@clisp.org>, archived at
30677         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
30678         Reported by Sylvain <beuc@gnu.org>.
30680 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
30682         selinux-h: Really build without selinux when library is missing.
30683         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
30684         continue without selinux, as already told in the warning message.
30686 2013-10-21  Jim Meyering  <meyering@fb.com>
30688         regex: also remove dependency on HAVE_WCSCOLL
30689         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
30691 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
30693         xfreopen: Fix typo. s/frepoen/freopen/
30694         * lib/xfreopen.c: Fix description.
30695         * modules/xfreopen: Likewise.
30697 2013-10-21  Jim Meyering  <meyering@fb.com>
30699         regex: don't depend on wcscoll
30700         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
30701         It is no longer used.
30703 2013-10-20  Jim Meyering  <meyering@fb.com>
30705         error: add the printf attribute to a static function
30706         * lib/error.c (error_tail): Add the printf attribute, to placate
30707         gcc's -Werror=suggest-attribute=format option.
30709 2013-09-30  Jim Meyering  <meyering@fb.com>
30711         fpending, obstack, strerror-override: use pure+const function attrs
30712         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
30713         * lib/obstack.c (_obstack_allocated_p): Likewise.
30714         * lib/obstack.h (_obstack_memory_used): Likewise.
30715         (_obstack_memory_used): Likewise.
30716         * lib/strerror-override.h (strerror_override): Declare with
30717         the "const" attribute.
30719 2013-10-18  Eric Blake  <eblake@redhat.com>
30721         extern-inline: make safe for -Wundef usage
30722         Reported by Vladimir 'phcoder' Serbinenko in
30723         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
30724         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
30726 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30728         mkfifo-tests, etc.: allow HP-UX 11.11 bug
30729         Problem reported by Daniel Richard G. in
30730         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
30731         * doc/posix-functions/mkfifo.texi (mkfifo):
30732         * doc/posix-functions/mkfifoat.texi (mkfifoat):
30733         * doc/posix-functions/mknod.texi (mknod):
30734         * doc/posix-functions/mknodat.texi (mknodat):
30735         Document the HP-UX 11.11 bug.
30736         * tests/test-mkfifo.h (test_mkfifo):
30737         Allow the HP-UX 11.11 bug.
30739 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
30741         acl: allow cross-compilation to Gentoo
30742         Problem reported by Gabriel Marcano in
30743         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
30744         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
30745         test only whether it links.
30747 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
30749         mgetgroups: remove dependency on realloc-gnu
30750         The dependency violates the comment in realloc-gnu, which
30751         says that tests can't depend on realloc-gnu; some tests depend
30752         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
30753         Problem reported by Daniel Richard G. in
30754         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
30755         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
30756         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
30757         not realloc-gnu.
30759 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
30761         regex-tests: port to HP-UX 11.11
30762         Problem reported by Daniel Richard G. in
30763         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
30764         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
30766 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30768         verify: document some 'assume' pitfalls
30769         * doc/verify.texi (Compile-time Assertions):
30770         Mention that 'assume (E)' can sometimes slow things down.
30771         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
30773 2013-10-10  Eric Blake  <eblake@redhat.com>
30775         strtoumax: fix typo in previous commit.
30776         * modules/strtoumax (Depends-on): Fix typo.
30777         * modules/strtoimax (Depends-on): Likewise.
30779 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30781         strtoumax: port to Solaris 8
30782         This problem was introduced in the recent HP-UX patch.
30783         Reported by Tom G. Christensen in
30784         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
30785         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
30786         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
30788 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
30790         strtoimax, strtoumax: port to HP-UX 11.11
30791         Problem reported by Daniel Richard G. in
30792         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
30793         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
30794         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
30795         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
30796         REPLACE_STRTOUMAX.
30797         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
30798         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
30799         Replace the function if defined as a macro but not as a function.
30800         * modules/inttypes-incomplete (inttypes.h): Substitute
30801         REPLACE_STRTOUMAX.
30802         * modules/strtoumax (configure.ac): Replace strtoumax if
30803         REPLACE_STRTOUMAX.
30805 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30807         strtoimax: port to HP-UX 11.11
30808         Problem reported by Daniel Richard G.
30809         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
30810         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
30811         they might clash with inttypes.h.
30813 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
30815         New module 'count-trailing-zeros'.
30816         * MODULES.html.sh: Mention it.
30817         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
30818         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
30819         * modules/count-trailing-zeros-tests:
30820         * tests/test-count-trailing-zeros.c:
30821         New files.
30823         count-leading-zeros: port to MSC; support types wider than 64 bits
30824         The ideas behind the MSC port are stolen from Emacs.
30825         * lib/count-leading-zeros.h:
30826         Don't include verify.h: it's no longer needed, as types wider than
30827         64 bits are now supported.
30828         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
30829         performance with MSC.  All uses changed.  Do not assume that TYPE
30830         has at most 64 bits.
30831         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
30832         All uses changed.  Fold the subtraction from 31 into the table.
30834         count-one-bits: port to MSC; support types wider than 64 bits
30835         The ideas behind the MSC port are stolen from Emacs.
30836         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
30837         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
30838         Don't include verify.h: it's no longer needed, as types wider than
30839         64 bits are now supported.
30840         (COUNT_ONE_BITS_GENERIC): New macro.
30841         (popcount_supported) [_MSC_VER]: New inline function.
30842         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
30843         performance with MSC.  All uses changed.  Do not assume that TYPE
30844         has at most 64 bits.
30845         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
30847 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
30849         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
30850         * lib/mountlist.c (read_file_system_list): fix leak of directory
30851         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
30853 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
30855         tests: improve diagnostic when an assertion fails
30856         * tests/macros.h (ASSERT): Report the assertion that failed.
30858 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
30860         verify: new macro 'assume'
30861         This is taken from Emacs, and should be generally useful.
30862         * doc/verify.texi (assume): Document it.
30863         * lib/verify.h (assume): New macro.
30864         (__has_builtin): Expand to 0 if not defined.
30866 2013-09-26  Eric Blake  <eblake@redhat.com>
30868         dup2, dup3: work around another cygwin crasher
30869         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
30870         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
30871         * tests/test-dup2.c (main): Likewise.
30872         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
30873         * lib/dup3.c (dup3): Likewise.
30874         * doc/posix-functions/dup2.texi (dup2): Document it.
30875         * doc/glibc-functions/dup3.texi (dup3): Likewise.
30877         getdtablesize: work around cygwin issue
30878         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
30879         * modules/getdtablesize (configure.ac): Build replacement.
30880         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
30881         * modules/unistd (Makefile.am): Expose the witness.
30882         * lib/unistd.in.h (getdtablesize): Declare replacement.
30883         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
30884         * tests/test-getdtablesize.c (main): Test it.
30885         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
30887 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
30889         pmccabe2html: escaping of special characters
30890         Escape all '<', '>', and '&' in HTML output.
30891         * build-aux/pmccabe2html (html_fnc): Call gsub()
30892         instead of sub() to capture all '<', '>', and '&'.
30893         Neither of '<' and '>' is special in a regexp,
30894         so first arguments to gsub() are corrected. Also,
30895         in replacement strings, ampersand must be escaped.
30896         Finally, '&' must be handled first, then '<' and '>'.
30898 2013-09-24  Eric Blake  <eblake@redhat.com>
30900         manywarnings: enable nicer gcc warning messages
30901         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
30902         some -f options for optimal warnings.
30904 2013-09-21  Jim Meyering  <meyering@fb.com>
30906         timespec: use the new TIMESPEC_RESOLUTION in a few more places
30907         * lib/timespec-add.c (timespec_add): Also replace 999999999
30908         with TIMESPEC_RESOLUTION - 1.
30909         * lib/timespec-sub.c (timespec_sub): Likewise.
30911 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
30913         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
30914         Problem reported by Dagobert Michelsen via Eric Blake in
30915         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
30916         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
30917         not AC_COMPILE_IFELSE.
30919 2013-09-23  Eric Blake  <eblake@redhat.com>
30921         configmake: support new --runstatedir option
30922         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
30923         even if autoconf was too old to provide the command line option.
30924         * modules/configmake (Makefile.am): Propagate it to .h file.
30926 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30928         ctype, string: depend on extern-inline
30929         This is needed to complete the recent OS X fixes.
30930         Also, fix related documentation as suggested by Eric Blake.
30931         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
30932         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
30933         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
30934         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
30935         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
30936         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
30937         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
30938         * doc/posix-functions/toupper.texi:
30939         List the 'ctype' gnulib module.
30940         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
30941         * doc/posix-functions/strncpy.texi:
30942         List the 'string' gnulib module.
30943         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
30944         Add string.
30945         * modules/ctype, modules/string (Depends-on): Add extern-inline.
30947 2013-09-19  Pádraig Brady  <P@draigBrady.com>
30949         userspec: support optional parameters to parse_user_spec()
30950         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
30951         then avoid group processing and treat the full spec as a user.
30952         (parse_with_separator): Allow the USERNAME and GROUPNAME to
30953         be optional params (NULL), in which case they're ignored.
30955 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
30957         timespec: new function make_timespec, and new constants
30958         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
30959         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
30960         (make_timespec): New function.
30961         * lib/dtotimespec.c (dtotimespec):
30962         * lib/timespec-add.c (timespec_add):
30963         * lib/timespec-sub.c (timespec_sub):
30964         * lib/utimens.c (validate_timespec):
30965         * lib/utimensat.c (rpl_utimensat):
30966         Use these new constants and functions.
30968         stdio: OS X port of putc_unlocked + extern inline
30969         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
30970         * doc/posix-functions/putc_unlocked.texi:
30971         * doc/posix-functions/putchar_unlocked.texi:
30972         Document this portability problem.
30974         signal: OS X port of sigaddset etc. + extern inline
30975         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
30976         (sigismember): #undef on problematic Apple platforms.
30977         * doc/posix-functions/sigaddset.texi:
30978         * doc/posix-functions/sigdelset.texi:
30979         * doc/posix-functions/sigemptyset.texi:
30980         * doc/posix-functions/sigfillset.texi:
30981         * doc/posix-functions/sigismember.texi:
30982         Document this portability problem.
30984         extern-inline: do not always suppress extern inline on OS X
30985         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
30986         extern inline on Apple only if the particular compile-time
30987         configuration is known to have the problem.
30988         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
30989         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
30990         other Gnulib modules.
30992         extern-inline: document fixes for ctype and wctype macros
30993         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
30994         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
30995         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
30996         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
30997         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
30998         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
30999         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
31000         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
31001         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
31002         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
31003         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
31004         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
31005         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
31006         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
31007         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
31008         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
31009         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
31010         * doc/posix-functions/strncpy.texi:
31011         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
31012         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
31013         Document that Gnulib fixes portability problems with these
31014         functions on OS X 10.8 and earlier when called from plain inline
31015         or extern inline functions.
31017 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
31019         fflush, freadahead, fseeko: Fix for Android
31020         Suggested by Bruno Haible in:
31021         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
31022         * lib/stdio-impl.h: Use local __sfileext definition.
31024 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
31026         pmccabe2html: Portability to other awk versions.
31027         The functions systime() and strftime() are available
31028         in Gawk only.  Properly close two HTML-tags 'style'
31029         and 'span'.
31030         * build-aux/pmccabe2html (BEGIN): Store timing
31031         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
31032         systime() in HTML_COMMENT.
31033         (html_header): Correctly close tag 'style'.
31034         (END): Replace strftime() by CHRONOS_TIME.  Close
31035         tag 'span' correctly, not as 'div'.
31037 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
31039         getgroups: statement without effect
31040         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
31041         Change equality conditional to expected assignment.
31043 2013-09-09  Eric Blake  <eblake@redhat.com>
31045         glob: fix compilation
31046         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
31048 2013-09-07  Eric Blake  <eblake@redhat.com>
31050         glob: fix build for platforms without __THROW
31051         * lib/glob.in.h (__THROW): Add definition again.
31053 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
31055         regex-quote: fix buffer access out of bounds
31056         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
31057         * lib/regex-quote.c (regex_quote_spec_pcre):
31058         Fix typo that resulted in an out-of-bounds read.
31060 2013-09-04  Eric Blake  <eblake@redhat.com>
31062         glob: avoid -Wattribute warnings on glibc
31063         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
31064         __THROWNL, not __THROW, on static functions.
31065         * lib/glob.in.h (__THROW): Adjust...
31066         (__THROWNL): ...accordingly.
31068 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
31070         headers: check that _GL_INLINE_HEADER_BEGIN is defined
31071         Suggested by Bruce Korb in:
31072         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
31073         * doc/extern-inline.texi (extern inline):
31074         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
31075         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
31076         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
31077         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
31078         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
31079         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
31080         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
31081         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
31082         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
31083         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
31084         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
31085         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
31086         * lib/xtime.h:
31087         Check that _GL_INLINE_HEADER_BEGIN is defined.
31089 2013-08-29  Pádraig Brady  <P@draigBrady.com>
31091         bootstrap: remove the --version requirement from ancillary tools
31092         * build-aux/bootstrap (check_exists): A new refactored function to
31093         determine if a command exists.
31094         (find_tool): Use the new function which does not require the
31095         --version option to be supported.
31096         (check_versions): Use the new function.
31098 2013-08-26  Simon Josefsson  <simon@josefsson.org>
31100         gc: support HMAC-SHA256 and HMAC-SHA512.
31101         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
31102         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
31103         functions.
31104         (gc_hmac_md5): Use symbolic constant.
31105         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
31106         (gc_hmac_sha256, gc_hmac_sha512): New functions.
31107         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
31108         * m4/sha256.m4: Protect against empty expansion.
31109         * m4/sha512.m4: Likewise.
31110         * lib/hmac-sha256.c: New file.
31111         * lib/hmac-sha512.c: Likewise.
31112         * m4/gc-hmac-sha256.m4: Likewise.
31113         * m4/gc-hmac-sha512.m4: Likewise.
31114         * m4/gc-sha256.m4: Likewise.
31115         * m4/gc-sha512.m4: Likewise.
31116         * modules/crypto/gc-hmac-sha256: Likewise.
31117         * modules/crypto/gc-hmac-sha256-tests: Likewise.
31118         * modules/crypto/gc-hmac-sha512: Likewise.
31119         * modules/crypto/gc-hmac-sha512-tests: Likewise.
31120         * modules/crypto/hmac-sha256: Likewise.
31121         * modules/crypto/hmac-sha256-tests: Likewise.
31122         * modules/crypto/hmac-sha512: Likewise.
31123         * modules/crypto/hmac-sha512-tests: Likewise.
31124         * tests/test-gc-hmac-sha256.c: Likewise.
31125         * tests/test-gc-hmac-sha512.c: Likewise
31126         * tests/test-hmac-sha256.c: Likewise.
31127         * tests/test-hmac-sha512.c: Likewise
31129 2013-08-24  Daiki Ueno  <ueno@gnu.org>
31131         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
31132         of AC_CHECK_DECLS.
31134 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31136         selinux-at: omit unnecessary include
31137         * lib/selinux-at.c: Don't include dosname.h; not needed, since
31138         this source file doesn't use its macros, and subsidiary files that
31139         use the macros already include it.
31141 2013-08-21  Eric Blake  <eblake@redhat.com>
31143         d-ino: avoid false negative on symlink
31144         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
31145         Reported by Stephane Chazelas.
31147 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
31149         bootstrap: port to OpenBSD sed
31150         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
31151         does not interpret `-' as a file argument to mean stdin.
31153 2013-08-15  Eric Blake  <eblake@redhat.com>
31155         warnings: minor optimization
31156         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
31158         warnings: check -Wfoo rather than -Wno-foo
31159         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
31160         -Wno-, test if the compiler recognizes the positive form instead.
31162 2013-08-15  Karl Berry  <karl@gnu.org>
31164         * config/srclist-update: add option "doclicense" to placate
31165         pulling *.texi files from Emacs.  Write terse usage
31166         documentation at the top.
31168 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
31170         xvasprintf-tests: port to GCC with hardening flags
31171         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
31172         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
31173         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
31175 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
31177         fpending: port to recent Cygwin change to stdio_ext.h
31178         Reported by LRN in
31179         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
31180         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
31181         just declare __fpending unless it's a macro.
31182         A duplicate decl shouldn't hurt.
31183         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
31184         call compiles and links, instead of separately checking for
31185         decl and lib function.
31186         * modules/fpending (configure-ac):
31187         Adjust to fpending.m4's renaming of shell variable.
31189 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31191         sys_time: port to OpenBSD
31192         * lib/sys_time.in.h: Simply delegate to the system's header
31193         in the BSDish cases as well.  Problem reported by Mike Miller in
31194         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
31195         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
31196         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
31197         wider than time_t.
31199 2013-08-09  Pádraig Brady  <P@draigBrady.com>
31201         bootstrap: support checksum utils having -c but not --status
31202         * build-aux/bootstrap: Only look for sha1sum if updating po files.
31203         Add sha1 to the list of supported checksum utils since it's now
31204         supported through adjustments below.
31205         (update_po_files): Remove the use of --status
31206         in a way that will suppress all error messages, but since this is
31207         only used to minimize updates, it shouldn't cause an issue.
31208         Exit early if there is a problem updating the po file checksums.
31209         (find_tool): Remove the check for --version support as this
31210         is optional as per commit 86186b17.  Don't even check for the
31211         presence of the command as if that is needed, it's supported
31212         through configuring prerequisites in bootstrap.conf.
31213         Prompt that when a tool isn't found, one can define an environment
31214         variable to add to the hardcoded search list.
31216 2013-08-05  Jim Meyering  <meyering@fb.com>
31218         regex: port to non-glibc/lock-using systems
31219         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
31220         system with GNULIB_LOCK would fail due to absence of the
31221         included "glthread/lock.h".  This would affect any package
31222         for which the "lock" module is used only by the regex module,
31223         and not explicitly used.
31224         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
31225         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
31226         Add a dependency on the "lock" module.
31228 2013-07-20  Daiki Ueno  <ueno@gnu.org>
31230         localecharset: make locale_charset thread-safe on Mac OS X
31231         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
31232         instead of MB_CUR_MAX.
31234 2013-07-20  Daiki Ueno  <ueno@gnu.org>
31236         gettext: update to version 0.18.3
31237         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
31238         require AC_PROG_SED to allow user to specify custom sed command when
31239         generating en@quot PO file.
31241 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
31243         bootstrap: use correct source when copying build-aux files
31244         * build-aux/bootstrap (gnulib_extra_files): This variable is
31245         relative to upstream gnulib layout, not downstream.
31247 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
31249         tmpdir: fix bug in VMS port
31250         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
31251         See Steven M. Schweda in
31252         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
31254 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
31256         tmpdir: port to VMS, to // != /, and to long dirs
31257         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
31258         __secure_getenv, so that we're more like the glibc version.
31259         All uses changed.
31260         (path_search): Don't put slash after directory if __VMS.
31261         Problem reported by Steven M. Schweda in
31262         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
31263         Simplify code to add slash; no need for a loop.
31264         Do not remove trailing slash from "//".
31265         Do not assume dlen <= INT_MAX.
31267 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31269         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
31270         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
31271         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
31272         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
31274         accept4, dup3, pipe2: port to Cygwin
31275         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
31276         * lib/accept4.c (accept4) [O_BINARY]:
31277         * lib/dup3.c (dup3) [O_BINARY]:
31278         * lib/pipe2.c (pipe2) [O_BINARY]:
31279         Use set_binary_mode, not setmode.
31280         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
31281         * modules/binary-io (Depends-on): Remove module indicator.
31282         These last two bits undo the previous change to pipe2 and binary-io.
31284 2013-07-09  Pádraig Brady  <P@draigBrady.com>
31286         mountlist: add support for deallocating returned list entries
31287         * lib/mountlist.c (free_mount_entry): A new exported function
31288         to deallocate a mount list entry.
31289         (read_file_system_list): Refactor to use the new deallocation function.
31290         Suggested by Anton Ovchinnikov.
31292 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
31294         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
31295         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
31296         * lib/stdalign.in.h (_Alignas, _Alignof):
31297         Port to FreeBSD 9.1, and to C11 and C++11.
31298         (_Alignas): Also support ICC.
31299         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
31300         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
31302 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
31304         fnmatch: don't goto over declaration
31305         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
31306         undefined behavior for goto over a declaration.
31307         Problem reported by Charlie Brown in
31308         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
31310         pipe2: decouple from binary-io a bit
31311         This is for Emacs, which needs pipe2 but not binary-io.
31312         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
31313         * modules/binary-io (Depends-on): Add module indicator.
31315 2013-07-03  Eric Blake  <eblake@redhat.com>
31317         mgetgroups: relax license to LGPLv2+
31318         * modules/getugroups (License): Change from GPLv3+.
31319         * modules/mgetgroups (License): Likewise.
31320         * modules/getgroups (License): Change from LGPLv3+.
31322         xalloc-oversized: relax license to LGPLv2+
31323         * modules/xalloc-oversized (License): Change from GPLv3+.
31325         nproc: relax license to LGPLv2+
31326         * modules/nproc (License): Change from LGPLv3+.
31328         bootstrap: honor --no-git
31329         * build-aux/bootstrap: Don't even try to use git when user is
31330         pointing to a static checkout.
31332 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
31334         ignore-value: port to gcc -pedantic
31335         * lib/ignore-value.h (ignore_value):
31336         Port to gcc -pedantic, by using __extension__.
31337         Reindent as per usual gnulib style nowadays.
31338         Simplify GCC version check.
31340 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
31342         extern-inline: port to gcc -std=c89
31343         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
31344         Do not use __gnu_inline__ if pedantic and pre-C99.
31346 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
31348         doc: document extern-inline
31349         * doc/extern-inline.texi: New file.
31350         * doc/gnulib.texi (alloca-opt): Include it.
31351         * m4/extern-inline.m4: Move some comments to documentation,
31352         and others closer to what they describe.
31354         doc: chatter less
31355         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
31356         (updated-stamp): Use it.  This causes 'make' to output just
31357         one file name rather than zillions.
31359         fflush, fseeko: port to musl cross-compiles
31360         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
31361         on some implementation that (1) is not known to be buggy,
31362         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
31363         cross-compiled to so we can't easily check for lack of
31364         conformance.  This is for cross-compiling to musl.
31365         Reported by Rich Felker in
31366         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
31367         * m4/fclose.m4 (gl_FUNC_FCLOSE):
31368         * m4/fflush.m4 (gl_FUNC_FFLUSH):
31369         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
31370         Adjust to above change.
31371         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
31372         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
31373         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
31374         known not to work, or unknown.
31376 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
31378         msvc-inval: port to mingw-w64
31379         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
31380         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
31381         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
31383 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
31385         getcwd-lgpl: port to Tru64
31386         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
31387         Problem reported by Steven M. Schweda in
31388         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
31390         tests: port large-fd POSIX spawn tests to OS X
31391         Problem reported by Daiki Ueno in
31392         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
31393         * tests/test-posix_spawn_file_actions_addclose.c:
31394         * tests/test-posix_spawn_file_actions_adddup2.c:
31395         * tests/test-posix_spawn_file_actions_addopen.c:
31396         Include <limits.h>, for OPEN_MAX, if available.
31397         (big_fd): New static function.
31398         (main): Use it.
31400 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
31402         tests/nap.h: use an adaptive delay to avoid ctime update issues
31403         The recent change in nap.h (5191133e) decreased the probability of lost
31404         races to about a third, however such problems could still be observed
31405         in virtual machines and openSUSE's OBS.
31406         Before, nap() detected the needed time once empirically and then used
31407         that delay (together with a small correction multiplier) in further
31408         calls.  This problem has been reported and discussed several times,
31409         including guesses about possible kernel issues:
31410         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
31411         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
31412         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
31413         http://bugs.gnu.org/12820
31414         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
31415         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
31416         Now, nap() avoids the race alltogether by verifying on a reference
31417         file whether a timestamp difference has happened.
31418         * tests/nap.h (nap_fd): Define file descriptor variable for the
31419         witness file.
31420         (nap_works): Change return value to bool.  Change passing
31421         the old file's status by value instead of by reference as this function
31422         does no longer update that timestamp; rename the function argument from
31423         st to old_st.  Remove the local variables cdiff and mdiff because that
31424         function now returns true/false instead of the precise delay.
31425         (guess_delay): Remove function.
31426         (clear_tmp_file): Add new function to close and unlink the witness file.
31427         (nap): Instead of re-using the delay which has been calculated during
31428         the first call, avoid the race by actually verifying that a timestamp
31429         difference can be observed on the current file system.  Use an adaptive
31430         approach for the delay to minimize execution time.  Assert that the
31431         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
31432         = 2^31 - 1 = 2.1s.
31433         Use atexit to call clear_tmp_file when the process terminates.
31435 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
31437         sig2str: port to C++
31438         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
31439         Reported by Daniel J Sebald in
31440         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
31442 2013-05-30  Eric Blake  <eblake@redhat.com>
31444         docs: mention cygwin shortcoming in <sys/un.h>
31445         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
31447         vasnprintf: silence mingw compiler warning
31448         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
31450 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
31452         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
31453         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
31454         This fixes a porting bug I recently reintroduced in regex, and
31455         some other instances that I discovered while testing the fix.
31456         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
31457         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
31458         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
31459         with an empty argument if this is a pedantic pre-C99 GCC.
31460         * lib/verify.h: Do not use _Static_assert if this is a pedantic
31461         pre-C11 GCC.
31463         regex: adapt to locking regime instead of depending on pthread
31464         Instead of depending on pthread, adapt to whatever thread
31465         modules are in use.  Problem reported by Ludovic Courtès in
31466         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
31467         and by Mats Erik Andersson in
31468         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
31469         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
31470         Support either the 'lock' module, or the 'pthread' module, or
31471         no module.
31472         (lock_lock, lock_unlock): New macros.
31473         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
31474         * modules/lock, modules/pthread (configure.ac): Add module indicator.
31475         * modules/regex (Depends-on): Remove pthread.
31477 2013-05-22  Eric Blake  <eblake@redhat.com>
31479         getgroups: document portability issues
31480         * doc/glibc-functions/initgroups.texi (initgroups): Mention
31481         multithread safety.
31482         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
31483         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
31484         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
31485         getugroups.
31486         * doc/posix-functions/getgroups.texi (getgroups): Mention
31487         multithread safety and mgetgroups.
31489 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
31491         test-lchown, test-chown: also skip test if chown fails with EPERM
31492         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
31493         skip this test, to handle FAT file systems.
31494         * tests/test-chown.h (test_chown): Likewise.
31496 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
31498         regex: fix dfa race in multithreaded uses
31499         Problem reported by Ludovic Courtès in
31500         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
31501         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
31502         New macros.  All uses of __libc_lock_define, __libc_lock_init
31503         changed to use the first two of these.
31504         (__libc_lock_lock, __libc_lock_unlock): New macros, for
31505         non-glibc platforms.
31506         (struct re_dfa_t): Define the lock unconditionally.
31507         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
31508         '#ifdef _LIBC"s.
31509         * modules/regex (Depends-on): Add pthread, if we use the
31510         included regex.
31512         * lib/regcomp.c: Do actions that are not needed for glibc,
31513         but may be needed elsewhere.
31514         (regfree, re_compile_internal): Destroy the lock.
31515         (re_compile_internal): Check for lock-initialization failure.
31517         malloca: port to compilers that reject size-zero arrays
31518         This fixes a bug introduced in my previous patch.
31519         * lib/malloca.c (struct preliminary_header): Use an int
31520         rather than a character array of size int; that's simpler.
31521         (struct header): Remove, replacing with ...
31522         (union header): New type.  This avoids the need for declaring a
31523         character array of size zero, which is not allowed on some platforms.
31524         All uses changed.
31526 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
31528         parse-datetime, tests: don't use "string" + int
31529         Recent versions of 'clang' complain about C source code that
31530         uses expressions of the form '"string literal" + integer',
31531         I guess on the theory that it's confusing for readers who are
31532         used to C++.  On those grounds I suppose it's OK to make this
31533         minor style change.
31534         * lib/parse-datetime.y (parse_datetime):
31535         * tests/test-fchdir.c (main):
31536         * tests/test-snprintf-posix.h (test_function):
31537         * tests/test-snprintf.c (main):
31538         * tests/test-vasnprintf-posix.c (test_function):
31539         * tests/test-vasnprintf.c (test_function):
31540         * tests/test-vsnprintf.c (main):
31541         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
31542         Rewrite '"str" + E' to '&"str"[E]'.
31544 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
31546         argmatch: port to C++
31547         * lib/argmatch.h [__cplusplus]: Add extern "C".
31549         argp: typo fix
31550         * lib/argp-help.c: Typo in comment.
31552 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
31554         manywarnings: update for GCC 4.8.0
31555         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
31556         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
31557         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
31558         -Wmissing-noreturn, as they are duplicates of other warnings.
31559         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
31560         was documented to be flaky in earlier versions of GCC.
31562         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
31563         * tests/test-spawn.c (main):
31564         * tests/test-sys_socket.c (main):
31565         * tests/test-sys_wait.c (main):
31566         Don't have a switch value that isn't covered by a case.
31568         getaddrinfo-tests: port --enable-gcc-warnings to clang
31569         * tests/test-getaddrinfo.c (simple):
31570         Avoid casts from looser to stricter-aligned pointers.
31572         thread: port --enable-gcc-warnings to clang
31573         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
31574         Include <signal.h>, to pacify a warning about pthread_sigmask.
31576         stdio: use __REDIRECT for fwrite, fwrite_unlocked
31577         * lib/stdio.in.h (fwrite):
31578         When working around bug 11959, use __REDIRECT rather than '#define
31579         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
31580         fix the -Wunused-value issue with clang, and it works with GCC too.
31581         Problem with targeting reported by Eric Blake in
31582         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
31583         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
31584         debugging the fwrite issue.
31586         stdio: port --enable-gcc-warnings to clang
31587         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
31588         since the GCC workaround for fwrite does not pacify clang.
31590         sig2str: port --enable-gcc-warnings to clang
31591         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
31593         obstack: port --enable-gcc-warnings to clang
31594         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
31595         Avoid casts from looser to stricter-aligned pointers.
31597         memchr2: port --enable-gcc-warnings to clang
31598         * lib/memchr2.c (memchr2):
31599         Avoid casts from looser to stricter-aligned pointers.
31601         mbsstr: port --enable-gcc-warnings to clang
31602         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
31603         Avoid casts from looser to stricter-aligned pointers.
31605         malloca: port --enable-gcc-warnings to clang
31606         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
31607         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
31609         inttostr: port --enable-gcc-warnings to clang
31610         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
31612         warnings: port to clang
31613         Problem reported by Daniel P. Berrange via Eric Blake in
31614         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
31615         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
31616         (gl_WARN_ADD): Use it.
31618 2013-05-11  Jim Meyering  <meyering@fb.com>
31620         quotearg: do not read beyond end of buffer
31621         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
31622         end of an ARG for which no length was specified.  With an N-byte
31623         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
31624         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
31625         via coreutils' misc/sort-debug-keys.sh test and detected by running
31626         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
31627         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
31628         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
31629         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
31630         characters correctly."
31632 2013-05-11  Daiki Ueno  <ueno@gnu.org>
31634         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
31635         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
31636         compilation target is Mac OS X 10.6.
31637         Problem reported by parafin and Andoni Morales in
31638         <http://savannah.gnu.org/bugs/?37844> and
31639         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
31641 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
31643         mkdir-p: remove assumptions about umask and mode
31644         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
31645         umask is 0, or that MODE is a subset of MODE_BITS.
31647 2013-05-10  Eric Blake  <eblake@redhat.com>
31649         maint.mk: catch more abuse of HAVE_DECL in syntax-check
31650         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
31652 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
31654         deps: require Automake >= 1.9.6 in generated Makefile fragments
31656         That is the same minimal version required in the DEPENDENCIES file.
31657         Moreover, the old code generated a requirement of Automake >= 1.5,
31658         and that is an insanely outdated version.
31660         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
31661         * tests/havelib/rpathlx/Makefile.am: Likewise.
31662         * tests/havelib/rpathly/Makefile.am: Likewise.
31663         * tests/havelib/rpathlyx/Makefile.am: Likewise.
31664         * tests/havelib/rpathlz/Makefile.am: Likewise.
31665         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
31666         * tests/havelib/rpathx/Makefile.am: Likewise.
31667         * tests/havelib/rpathy/Makefile.am: Likewise.
31668         * tests/havelib/rpathz/Makefile.am: Likewise.
31670 2013-05-08  Eric Blake  <eblake@redhat.com>
31672         bootstrap: AC_INIT may have more than four parameters
31673         * build-aux/bootstrap (extract_package_name): Correctly extract
31674         non-empty tarname field.  Avoid range in regex.
31675         Based on a report by Sami Kerola <kerolasa@iki.fi>.
31677 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
31679         qacl: port to MS-Windows port of GNU Emacs
31680         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
31681         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
31682         port of GNU Emacs.  Problem reported by Eli Zaretskii in
31683         <http://bugs.gnu.org/14295#14>.
31685 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
31687         acl: include quote.h
31688         * lib/copy-acl.c: Include quote.h.
31689         * lib/set-acl.c: Likewise.
31691 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
31693         fchownat, renameat, unlinkat: update statat dependencies
31694         These modules use statat and lstatat, not fstatat; so depend on
31695         the statat module, which was split out recently from fstatat.
31696         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
31697         * modules/renameat: Likewise.  Also delete fstat.
31698         URL: http://bugs.gentoo.org/468790
31700 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
31702         Assume gnulib is checked out from Git, not CVS
31704         In fact, access to the gnulib repository through CVS has been
31705         disabled, or more precisely, got broken and was never restored; see:
31706         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
31708         Note that support for CVS is not removed completely and unthinkingly
31709         by this change: only support for CVS checkouts of gnulib itself is
31710         removed.  For example, the 'bootstrap' script still cater to .cvsingore
31711         files and CVS directories, for the benefit of those poor gnulib clients
31712         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
31714         * gnulib-tool: Simplify accordingly.
31715         * posix-modules: Likewise.
31716         * MODULES.html.sh: Likewise.
31717         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
31718         repository.
31719         * doc/gnulib-intro.texi: Likewise.
31720         * doc/gnulib-readme.texi: Likewise.
31721         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
31722         sample '.gitignore' file rather than a sample '.cvsignore'.
31723         * NEWS: Update.
31724         * m4/extensions.m4: While at it, remove a comment mistakenly referring
31725         to "CVS Autoconf" rather than "git Autoconf".
31727 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
31729         utimensat-tests, etc.: try to fix some races
31730         Problem reported by Bernhard Voelker in
31731         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
31732         I don't know whether this patch fixes that race condition, but it
31733         fixes *some* race conditions, so it should be a win.
31734         * modules/chown-tests (Depends-on):
31735         * modules/fchownat-tests (Depends-on):
31736         * modules/fdutimensat-tests (Depends-on):
31737         * modules/futimens-tests (Depends-on):
31738         * modules/lchown-tests (Depends-on):
31739         * modules/stat-time-tests (Depends-on):
31740         * modules/utimens-tests (Depends-on):
31741         * modules/utimensat-tests (Depends-on):
31742         Depend on nanosleep, not usleep.
31743         * modules/chown-tests (test_chown_LDADD):
31744         * modules/lchown-tests (test_lchown_LDADD):
31745         * modules/stat-time-tests (test_stat_time_LDADD):
31746         New macro.
31747         * modules/fchownat-tests (test_fchownat_LDADD):
31748         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
31749         * modules/futimens-tests (test_futimens_LDADD):
31750         * modules/utimens-tests (test_utimens_LDADD):
31751         * modules/utimensat-tests (test_utimensat_LDADD):
31752         Add $(LIB_NANOSLEEP).
31753         * modules/stat-time-tests (Files): Add tests/nap.h.
31754         * tests/nap.h: Include <limits.h>, for INT_MAX.
31755         (lt_mtime): Remove.
31756         (diff_timespec): New function.
31757         (get_stat): Rename from get_mtime.  All callers changed.
31758         (nap_works): Determine the needed delay by inspecting the
31759         file system's timestamp jumps; this should be more reliable.
31760         Look at both mtime and ctime, and take the maximum of the two jumps.
31761         (nap_works, guess_delay):
31762         Return a nanosecond count, not a microsecond count.
31763         All callers changed.
31764         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
31765         failure.
31766         (nap): Multiply the guess by 1.125, to accommodate the case where
31767         the file system's clock is a bit slower than nanosleep's clock.
31768         * tests/test-stat-time.c (BASE): New macro.
31769         Include nap.h.
31770         (nap): Remove; nap.h now defines this.  This removes a duplicate
31771         implementation of 'nap'.
31773         utimens, utimensat: work around Solaris UTIME_OMIT bug
31774         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
31775         Linux kernel 2.6.32 does.  Work around it in the same way.
31776         * doc/posix-functions/futimens.texi (futimens):
31777         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
31778         * lib/utimens.c (fdutimens, lutimens):
31779         * lib/utimensat.c (rpl_utimensat): Work around the bug.
31781         gettext: now it's your responsibility to add -I$(top_builddir)/intl
31782         Formerly, it was your responsibility to do this for all Makefile.ams
31783         other than Gnulib's.  Now it's your responsibility to do it for
31784         Gnulib's Makefile.am, too.
31785         * NEWS: Document this.
31786         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
31788         acl: include errno.h to get errno
31789         Reported by Daiki Ueno in
31790         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
31791         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
31793 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
31795         tests: don't assume getdtablesize () <= 10000000
31796         * modules/cloexec-tests:
31797         * modules/dup2-tests:
31798         * modules/dup3-tests:
31799         * modules/nonblocking-tests:
31800         * modules/posix_spawn_file_actions_addclose-tests:
31801         * modules/posix_spawn_file_actions_adddup2-tests:
31802         * modules/posix_spawn_file_actions_addopen-tests:
31803         * modules/unistd-safer-tests:
31804         Depend on the getdtablesize module.
31805         * tests/test-cloexec.c:
31806         * tests/test-dup-safer.c:
31807         * tests/test-dup2.c:
31808         * tests/test-dup3.c:
31809         * tests/test-fcntl.c:
31810         * tests/test-nonblocking.c:
31811         * tests/test-posix_spawn_file_actions_addclose.c:
31812         * tests/test-posix_spawn_file_actions_adddup2.c:
31813         * tests/test-posix_spawn_file_actions_addopen.c:
31814         Don't assume getdtablesize () <= 10000000.
31816 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
31818         extern-inline: work around bug in Sun c99
31819         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
31820         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
31822 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
31824         qacl: new module, broken out from the acl module
31825         This is for GNU Emacs, which wants the acl functions but does
31826         not want 'error' invoked when they fail.
31827         * lib/acl-internal.h: Do not include error.h, quote.h.
31828         (ENOSYS, ENOTSUP): Remove; no longer needed.
31829         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
31830         * lib/acl.h: Include <stdbool.h>.
31831         (acl_errno_valid): New function.
31832         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
31833         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
31834         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
31835         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
31836         (ACL_INTERNAL_INLINE): Remove; no longer needed.
31837         * lib/file-has-acl.c (file_has_acl):
31838         * lib/qcopy-acl.c (qcopy_acl):
31839         * lib/qset-acl.c (qset_acl):
31840         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
31841         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
31842         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
31843         lib/file-has-acl.c, m4/acl.m4 to qacl module.
31844         Add lib/set-acl.c.
31845         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
31846         Add qacl.
31847         (configure.ac): Move gl_FUNC_ACL to qacl module.
31848         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
31849         Rename set-mode-acl.c to set-acl.c.
31850         * lib/acl-errno-valid.c: New file.
31851         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
31852         copy_acl function remains in copy-acl.c.
31853         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
31854         (_): Remove; not needed.
31855         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
31856         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
31857         * modules/qacl: New file, moved from the old modules/acl.
31858         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
31859         Remove set-mode-acl.c, copy-acl.c.
31860         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
31862         alignof, intprops, malloca: port better to IBM's C compiler
31863         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
31864         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
31865         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
31867 2013-04-25  Daiki Ueno  <ueno@gnu.org>
31869         wctype-h: fix gettext link error on mingw
31870         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
31871         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
31872         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
31873         rpl_towupper and rpl_towupper.
31875 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
31877         regex-tests, regex: allow glibc re_search behavior
31878         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
31879         re_search input data to make the multi-character collating element
31880         in it clearly visible, and treat re_search return code 0 as valid.
31881         * m4/regex.m4 (gl_REGEX): Likewise.
31883 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
31885         stdalign: doc fix
31886         * doc/posix-headers/stdalign.texi (stdalign.h):
31887         Gnulib doesn't support '_Alignof expr'.
31889 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
31891         stdalign: port to stricter ISO C11
31892         ISO C11 says that _Alignof's operand must be a parenthesized type.
31893         Problem reported by Eli Zaretskii in
31894         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
31895         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
31896         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
31898 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
31900         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
31901         Problem reported by Marco Atzeri in
31902         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
31903         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
31904         Simply delegate to the system <sys/select.h> in this case too.
31905         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
31906         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
31907         be needed on Solaris either.
31908         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
31909         Simply delegate to the system <sys/time.h> in this case.
31911 2013-03-19  Karl Berry  <karl@gnu.org>
31913         * build-aux/gnupload: check for erroneous (with gnupload) use of
31914         ftp-upload.gnu.org, tweak help.
31916 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
31918         copy-file, rpmatch: fix problems found by cppcheck
31919         Reported by Arno Onken in
31920         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
31921         * lib/rpmatch.c (try): Fix memory leak.
31922         * lib/copy-file.c: Include "ignore-value.h".
31923         (qcopy_file_preserving): Ignore chown value.
31924         * modules/copy-file (Depends-on): Add ignore-value.
31926 2013-01-27  Jim Meyering  <jim@meyering.net>
31928         prefix-gnulib-mk: give better diagnostics
31929         * build-aux/prefix-gnulib-mk: Don't just "die".
31930         Give better diagnostics upon failure.
31932 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
31934         putenv: port to Solaris 10
31935         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
31936         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
31937         is not what is wanted here.
31938         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
31939         declaration, not for its existence.
31941 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
31943         mktime: fix configure typo
31944         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
31946 2013-03-12  Eric Blake  <eblake@redhat.com>
31948         regex-tests: skip UTF-8 test on mingw
31949         * modules/regex-tests (Depends-on): Add localcharset.
31950         * tests/test-regex.c (main): Use it to skip test on mingw.
31952 2013-03-11  Eric Blake  <eblake@redhat.com>
31954         tests: make it easier to bypass alarm time in debugger
31955         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
31956         * tests/test-memmem.c (main): Likewise.
31957         * tests/test-passfd.c (main): Likewise.
31958         * tests/test-ptsname.c (main): Likewise.
31959         * tests/test-ptsname_r.c (main): Likewise.
31960         * tests/test-strcasestr.c (main): Likewise.
31961         * tests/test-strstr.c (main): Likewise.
31963         regex: port to mingw's recent addition of undeclared alarm
31964         * doc/posix-functions/alarm.texi (alarm): Document that alarm
31965         exists but still doesn't work in newer mingw.
31966         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
31967         not existence.  Ensure SIGALRM is not trapped.
31968         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
31969         * m4/regex.m4 (gl_REGEX): Likewise.
31970         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
31971         * tests/test-regex.c (main): Use correct probe for alarm.
31973         putenv: avoid compilation warning on mingw
31974         * lib/putenv.c (_unsetenv): Protect variable declaration.
31975         (putenv): Fix indentation.
31977 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
31979         unistd: don't prevent Tru64 Unix from using gnulib strtod.
31980         * lib/unistd.in.h: be careful not to include un-needed system
31981         stdlib.h from here, because that prevents gnulib stdlib.h from
31982         defining rpl_strtod correctly.
31984 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
31986         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
31987         changesets, but for the 'precision 0' test.
31988         * tests/test-vasprintf-posix.c (test_function): Don't insist on
31989         round-to-even, since POSIX says rounding is implementation-defined
31990         and OS X 10.8.2 rounds 1.51 to 1 here.
31992         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
31993         changeset.
31994         * tests/test-vasprintf-posix.c (test_function): Don't insist on
31995         round-to-even, since POSIX says rounding is implementation-defined
31996         and OS X 10.8.2 rounds 1.5 to 1 here.
31998 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
32000         vasnprintf-posix-tests: allow rounding 1.5 to 1
32001         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
32002         round-to-even, since POSIX says rounding is implementation-defined
32003         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
32004         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
32006         bootstrap: port to FreeBSD
32007         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
32008         that treat '--' differently.  Reported by Mats Erik Andersson in
32009         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
32011 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
32013         regex: rename remaining __attribute calls to __attribute__.
32014         2012-02-25 changed definition of __attribute, but left some uses
32015         unchanged, preventing compilation of regex module on most non-gcc
32016         environments.
32017         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
32018         (lookup_collation_sequence_value, build_range_exp)
32019         (build_collating_symbol): Set attributes with newly renamed
32020         __attribute__ decorator.
32021         * lib/regex_internal.c (re_string_peek_byte_case)
32022         (re_node_set_compare, re_node_set_contains): Likewise.
32023         * lib/regexec.c (acquire_init_state_context): Likewise.
32025 2013-03-06  Bruno Haible  <bruno@clisp.org>
32027         execute: Revert last change, but use a different condition.
32028         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
32029         on Windows.
32031 2013-03-05  Eric Blake  <eblake@redhat.com>
32033         execute: drop dead code
32034         * lib/execute.c (nonintr_close, nonintr_open): Delete.
32036 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
32038         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
32039         * m4/non-recursive-gnulib-prefix-hack.m4
32040         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
32041         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
32042         <http://bugs.gnu.org/10305#237>.
32044 2013-03-04  Eric Blake  <eblake@redhat.com>
32046         test-getsockopt: avoid compiler warning
32047         * tests/test-getsockopt.c (includes): Ensure close is declared.
32049 2013-03-02  Bruno Haible  <bruno@clisp.org>
32051         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
32052         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
32054 2013-03-02  Bruno Haible  <bruno@clisp.org>
32056         gettext: Update to version 0.18.2.
32057         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
32058         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
32059                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
32061 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
32063         regex: merge patches from libc
32065         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32066         * lib/regex_internal.h (__attribute__): Rename from __attribute.
32067         All uses changed.
32068         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
32069         (re_string_wchar_at, re_string_elem_size_at):
32070         Mark function as possibly unused.
32072         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
32073         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
32074         elements compare against the byte sequence of it, not its name.
32076 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
32078         putenv: port better to native Windows
32079         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
32080         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
32081         (_unsetenv): Use _putenv if available.
32082         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
32083         a bit less likely to cause damage.
32084         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
32085         Fix the wrong value with SetEnvironmentVariable.
32086         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
32087         code better.
32089 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
32091         regex: ignore old-style-definition warnings
32092         * lib/regex.c: Add pragma to ignore these warnings.
32093         Problem reported for GNU tar by Pavel Raiskup.
32095 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
32097         getcwd: support coreutils better
32098         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
32099         but this might not be correct in coreutils, which disables
32100         the raw decl checks.  Problem reported by Nagendra in
32101         <http://bugs.gnu.org/10305#192>.
32102         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
32103         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
32104         Test the getcwd function, not any macro, since getcwd.c wants the
32105         function.
32106         * m4/getcwd.m4 (gl_FUNC_GETCWD):
32107         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
32108         compile, as might happen if there's a macro but no function.
32110         strtod: support coreutils better
32111         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
32112         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
32113         disables the raw decl checks.  This assumes there is an underlying
32114         strtod, but that's a safe assumption these days.
32115         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
32117         mountlist: port to HP NonStop
32118         Reported by Joachim Schmitz in
32119         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
32120         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
32121         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
32123 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
32125         extern-inline: avoid compilation error with HP-UX cc
32126         Reported by Richard Lloyd in
32127         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
32128         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
32129         Suppress extern inline with HP-UX cc.  This should be safe,
32130         though it may hurt performance.  Perhaps someone with some HP-UX
32131         experience can come up with a higher-performance fix.
32133 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
32135         putenv: fix heap corruption with mixed putenv/_putenv
32136         Problem reported by Michael Goffioul in
32137         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
32138         * lib/putenv.c (putenv) [HAVE__PUTENV]:
32139         Rely on _putenv to allocate the new environment.
32140         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
32141         * modules/putenv (configure.ac): Use it.
32143 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
32145         unsetenv etc.: port to Solaris 11 + GNU Emacs
32146         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
32147         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
32148         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
32149         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
32150         idea but is too painful to fix right now), and without this gnulib
32151         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
32152         compiling unsetenv.c on Solaris 11.  Fix the problem for
32153         unsetenv.c, and fix other similar occurrences.
32155 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
32157         secure_getenv: fix C++ declaration typo
32158         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
32159         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
32160         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
32162 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
32164         careadlinkat: stop exporting careadlinkatcwd
32165         Only Emacs used it directly, and Emacs no longer needs it.
32166         * NEWS: Document this simplification.
32167         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
32168         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
32169         for readlink.
32170         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
32171         Don't include stdlib.h; no longer needed.
32172         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
32173         * lib/relocwrapper.c: Adjust comment to match new dependencies.
32174         * modules/areadlink (Depends-on): Add readlink.
32175         (Maintainer): Add self.
32176         * modules/careadlinkat (Depends-on): Remove readlink.
32178         extensions: port better to HP-UX
32179         This is merged from git Autoconf.
32180         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
32181         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
32182         so that it's compatible with the value used when compiling.
32184         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
32185         Problem reported by Mats Erik Andersson in
32186         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
32187         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
32188         openpty function exists, not merely when we intend to replace it.
32189         This corrects the 2013-01-31 patch, which mistakenly defined
32190         HAVE_OPENPTY even on hosts that lacked it.
32192 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
32194         secure_getenv: fix include typo
32195         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
32197         secure_getenv: port better to FreeBSD and Solaris
32198         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
32199         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
32200         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
32201         This works better on BSDish platforms.
32202         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
32203         Test for issetugid if __secure_getenv is missing.
32205 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
32207         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
32208         Some of these changes are merged in from git Autoconf.
32209         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
32210         When deciding whether to define _XOPEN_SOURCE, inspect the
32211         preprocessor macro __hpux instead of the more-heavyweight
32212         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
32213         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
32214         as the key for __EXTENSIONS__.
32216         unistd: avoid namespace pollution on non-glibc systems
32217         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
32218         This avoids namespace pollution on non-glibc systems, by causing
32219         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
32220         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
32221         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
32223 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
32225         tmpdir: use secure_getenv
32226         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
32227         Define to secure_getenv, not getenv.
32228         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
32229         as that's now secure_getenv's job.
32230         * modules/tmpdir (Depends-on): Add secure_getenv.
32232         tempname: use secure_getenv
32233         * lib/tempname.c (__secure_getenv) [!_LIBC]:
32234         Define to secure_getenv, not getenv.
32235         * modules/tempname (Depends-on):
32236         Add secure_getenv.
32238         secure_getenv: new module
32239         * MODULES.html.sh (Extra functions based on ANSI C 89):
32240         Add secure_getenv.
32241         * doc/glibc-functions/secure_getenv.texi: New file.
32242         * doc/gnulib.texi: Include it.
32243         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
32244         New files.
32245         * lib/stdlib.in.h (secure_getenv): New decl.
32246         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
32247         * modules/stdlib (stdlib.h):
32248         Add secure_getenv checks.
32250 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
32252         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
32253         Reported for OS X 10.8.2 by Assaf Gordon in
32254         <http://bugs.gnu.org/13516>.
32255         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
32256         !HAVE_OPENAT && !HAVE_FDOPENDIR.
32257         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
32258         so that they can be kept in sync more easily.  Avoid PATH_MAX
32259         test on the Hurd.  Sync from test-getcwd.c for errno tests after
32260         mkdir or chdir failure.
32261         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
32262         lib/getcwd.c.
32263         (test_abort_bug): Do not test for the deep directory bug unless we
32264         have openat support.  Avoid PATH_MAX test on the Hurd.
32266         regex-tests, regex: fix bug: memset undeclared
32267         * tests/test-regex.c: Don't include regex.h twice.  Include
32268         string.h, to declare memset.  Christensen's report also mentioned
32269         this issue.
32270         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
32271         test-regex.c, to avoid future problems like this.  Remove
32272         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
32273         twice.
32275         regex-tests: fix link errors on older Solaris
32276         These need to link with @LIBINTL@ to get libintl_gettext.
32277         Problem reported by Tom G. Christensen in
32278         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
32279         * modules/regex-tests (test_regex_LDADD): New macro.
32281 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
32283         regex-tests: new module
32284         * modules/regex-tests, tests/test-regex.c: New files.
32286         regex: fix off-by-one error in configure test
32287         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
32289 2013-01-31  Eric Blake  <eblake@redhat.com>
32291         regex: avoid infinite configure test
32292         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
32294 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
32296         openpty: fix bug where HAVE_OPENPTY wasn't defined
32297         See the thread starting at:
32298         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
32299         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
32300         openpty function exists, not merely when we intend to replace it.
32302 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
32304         sys_time: port to Solaris 2.6
32305         There is a circularity problem on Solaris 2.6, where <time.h> includes
32306         <sys/time.h> for struct timespec.  The include nesting is gnulib
32307         <time.h>, system <time.h>, gnulib <sys/time.h>, system
32308         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
32309         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
32310         <sys/siginfo.h>; the last, innermost file needs struct
32311         timestruc_t, which is defined in <sys/time.h>, which has not been
32312         fully parsed.  Problem reported by Tom G. Christensen in
32313         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
32314         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
32315         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
32316         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
32317         uses split double-inclusion guards.
32319 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
32321         regex: test for buffer overrun
32322         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
32323         for the just-fixed regex bug.
32325 2013-01-29  Andreas Schwab  <schwab@suse.de>
32327         regex: fix buffer overrun in regexp matcher [BZ #15078]
32328         * lib/regexec.c (extend_buffers): Add parameter min_len.
32329         (check_matching): Pass minimum needed length.
32330         (clean_state_log_if_needed): Likewise.
32331         (get_subexp): Likewise.
32333 2013-01-28  Pádraig Brady  <P@draigBrady.com>
32335         mountlist: don't consider "devtmpfs" as dummy
32336         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
32337         as there is storage associcated with it.
32339 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
32341         futimens-tests, utimens-tests: Depend on gettext.
32342         This works around a problem introduced in my 2013-01-12 patch,
32343         which added @LIBINTL@ to these modules.
32344         * modules/futimens-tests (Depends-on):
32345         * modules/utimens-tests (Depends-on): Add gettext.
32347 2013-01-26  Eric Blake  <eblake@redhat.com>
32349         test-getpeername: fix typo
32350         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
32352 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
32354         bootstrap: remove the need for a sorted .gitignore file
32355         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
32356         rename to insert_if_absent(), so that we don't need or generate
32357         a sorted .gitignore file.  We do require a .gitignore with no
32358         existing duplicate entries and enforce that.
32359         (sort_patterns): Remove this function as we now use the simpler
32360         technigue of inserting blacklist entries at the top of the file,
32361         assuming gnulib won't be inserting !whitelist entries.
32363 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
32365         readlinkat: don't depend on gl_FUNC_OPENAT
32366         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
32367         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
32368         renameat.m4, symlinkat.m4; but one thing at a time.
32370         statat: new module, split out from fstatat
32371         GNU Emacs needs the POSIX-specified fstatat, but not the
32372         gnulib-specified statat and lstat.  Split the latter two into a
32373         new module 'statat'.
32374         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
32375         * lib/openat.h, lib/statat.c (STATAT_INLINE):
32376         Rename from FSTATAT_INLINE. All uses changed.
32377         * modules/fstatat (Files): Remove lib/statat.c.
32378         (gl_MODULE_INDICATOR([fstatat])): Remove.
32379         (lib_SOURCES): Remove.
32380         (Maintainer): Add self.
32381         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
32382         * tests/test-fstatat.c (BASE): Don't define if already defined.
32383         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
32385 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
32387         tests: don't assume fd 99 is closed
32388         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
32389         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
32390         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
32391         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
32392         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
32393         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
32394         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
32395         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
32396         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
32397         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
32398         * tests/test-fwrite.c, tests/test-getpeername.c:
32399         * tests/test-getsockname.c, tests/test-getsockopt.c:
32400         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
32401         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
32402         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
32403         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
32404         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
32405         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
32406         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
32407         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
32408         * tests/test-unlinkat.c, tests/test-unlockpt.c:
32409         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
32410         Close file descriptor 99, instead of assuming it's already closed.
32412 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
32414         stpncpy: port to OS X 10.8
32415         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
32416         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
32418 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
32420         unistd: port to recent mingw
32421         * lib/unistd.in.h: Remove special invocation convention for mingw,
32422         which breaks for the latest mingw version.  See John W. Eaton in
32423         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
32425         largefile: port better to Mac OS X 10.5
32426         This patch is backported from Autoconf git.
32427         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
32428         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
32429         with ino_t size being different for configuration time versus
32430         build/run time.  Problem reported by PHO in
32431         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
32433 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
32435         doc: clarify -Werror
32436         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
32437         clarify that it's intended for developers, not for ordinary builds,
32438         and mention --enable-gcc-warnings as one possible use.
32440 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
32442         stdint: fix build with Android's Bionic fox x86
32443         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
32444         was already included as _SSIZE_T_DEFINED_ might also be defined
32445         in include/machine/_types.h, which is included by stdio.h
32447 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
32449         net_if-tests: port to Solaris 7 + GCC 3.4.6
32450         Problem reported by Tom G. Christensen in
32451         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
32452         * tests/test-net_if.c (ni): Move to next the code that uses it,
32453         so that it's declared only if needed.
32455 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
32457         net_if-tests: port to older Solaris
32458         Problem reported by Tom G. Christensen in
32459         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
32460         * modules/net_if-tests (NET_IF_LIB): New substitution.
32461         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
32462         (HAVE_IF_NAMEINDEX): New C macro.
32463         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
32465         system-quote-tests: port to older Solaris
32466         Problem reported by Tom G. Christensen in
32467         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
32468         * tests/test-system-quote-child.c (fopen, fread): Undef.
32470         c-xvasprintf etc.: fix link errors on older Solaris
32471         These need to link with @LIBINTL@ to get libintl_gettext.
32472         Problem reported by Tom G. Christensen in
32473         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
32474         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
32475         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
32476         * modules/futimens-tests (test_futimens_LDADD):
32477         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
32479 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
32481         locale: port to Solaris 2.6 and 7 + GNU gettext
32482         * lib/locale.in.h: Just include_next <locale.h> when
32483         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
32484         when combining the localename module with GNU gettext 0.18.2.
32485         Problem reported by Tom G. Christensen in
32486         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
32488 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
32490         stdlib: port to Solaris 2.6
32491         Also, the code worked on Solaris 7 through 9 only by accident.
32492         Problem reported by Tom G. Christensen in
32493         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
32494         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
32495         simply include the system stdlib.h.
32496         * lib/getopt.in.h (__need_system_stdlib_h):
32497         * lib/pthread.in.h (__need_system_stdlib_h):
32498         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
32499         Define when including <stdlib.h>, to avoid problems at least for
32500         the pthread case on Solaris 2.6 and 7.  These .h files can get by
32501         with the system stdlib.h.
32503 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
32505         doc: update main copyright year
32506         * doc/gnulib.texi: Update copyright date.
32508         doc: improve ISO 8601 discussion
32509         * doc/parse-datetime.texi (Combined date and time of day items):
32510         Specify more carefully what formats are supported and what is
32511         done with excess precision.
32513 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
32515         doc: avoid small caps
32516         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
32517         they're more trouble than they're worth.  Suggested by Karl Berry
32518         in <http://bugs.gnu.org/13360>.
32520         regex: conform to strict C
32521         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
32522         From Aharon Robbins.
32524         gnulib-tool: fix incompatibility with autopoint 0.18.2
32525         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
32526         Problem reported by Tom G. Christensen in
32527         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
32529 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
32531         fprintftime: bring back and reword fwrite comment
32532         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
32534         stdio: remove now-unnecessary stdio.c
32535         Since stdio.in.h no longer uses inline functions, we no longer
32536         need to compile the extern versions.
32537         * lib/stdio.c: Remove.
32538         * modules/stdio (Files): Remove lib/stdio.c.
32539         (lib_SOURCES): Remove.
32541         unicodeio: depend on stdio, not ignore-value
32542         * lib/unicodeio.c: Do not include ignore-value.h.
32543         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
32544         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
32546         fprintftime: depend on stdio, not ignore-value
32547         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
32548         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
32549         since the stdio module arranges to silence that warning now.
32550         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
32552 2012-10-04  Simon Josefsson  <simon@josefsson.org>
32554         stdint-tests: Fix expanded-before-required-warning.
32555         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
32557 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
32559         fwrite: silence __wur only for older glibc versions
32560         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
32561         This will help us remove this workaround some time in the far future.
32563 2013-01-03  Eric Blake  <eblake@redhat.com>
32565         fwrite: silence __wur without using inline
32566         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
32567         just gcc, and in a way that avoids inline issues.
32568         * modules/stdio (Depends-on): Drop extern-inline.
32570 2013-01-03  Jim Meyering  <jim@meyering.net>
32572         update-copyright: avoid copyright notice date corruption
32573         Given a sequence of copyright year numbers in which the final
32574         one was a two-digit number that happened to be a substring of
32575         a preceding four-digit year number, we would mistakenly update
32576         the substring (from two- to four-digit) rather than the two-digit
32577         number at the end, which, combined with the addition of the current
32578         4-digit year number would yield two 5-digit year numbers, e.g.,
32579         here, it would convert the first "99" to "1999, 2013" rather than
32580         the final one:
32581           1991, 99
32582           11999, 20131, 1999
32583         * build-aux/update-copyright: Tighten a regexp.
32584         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
32585         Reported by Joseph Myers in
32586         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
32588 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
32590         regex: omit needless signed-pointer casts
32591         * lib/regcomp.c (build_charclass, build_charclass_op):
32592         Use char *, not unsigned char *, for class name and extra.
32593         The char values are always nonnegative so there's no need to
32594         insist on unsigned char * here, and using char * removes the need
32595         for casts.  Reported by Aharon Robbins in
32596         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32598         regex: support Gawk, which never uses alloca
32599         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
32600         Do not include in this case.  Gawk doesn't supply a substitute
32601         alloca.h and doesn't need one.
32603         regex: port __libc_lock_define usage to C89
32604         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
32605         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
32606         does not conform to C89, as it has an empty macro argument.
32607         Reported by Aharon Robbins in
32608         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32610 2013-01-01  Eric Blake  <eblake@redhat.com>
32612         maint: update all copyright year number ranges
32613         Run "make update-copyright".
32615         version-etc: bump copyright year reported in --version
32616         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
32618 2012-12-31  Eric Blake  <eblake@redhat.com>
32620         sigprocmask-tests: skip test if pid is unexpectedly large
32621         * tests/test-sigprocmask.c (main): Add range check.
32623         git-version-gen: avoid test -z portability glitch
32624         * build-aux/git-version-gen: Prefer portable test spelling, since
32625         git-version-gen is run on more than just developer machines.
32627 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
32629         git-version-gen: add --fallback option to use if git is not present
32630         * build-aux/git-version-gen: Add support for the new option --fallback,
32631         which comes into play when there is no $tarball_version_file and
32632         git is not working.
32633         (scriptversion): Update.
32635         maint.mk: handle missing git with more grace
32636         * top/maint.mk (no-submodule-changes, public-submodule-commit):
32637         Quietly proceed if git is not present.
32639 2012-12-31  Eric Blake  <eblake@redhat.com>
32641         dup2: work around cygwin bug
32642         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
32643         * lib/dup2.c (rpl_dup2): Work around it.
32644         * doc/posix-functions/dup2.texi (dup2): Document it.
32646 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
32648         regex: remove unnecessary dependency on localcharset.h
32649         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
32650         hasn't been needed for years.
32651         * modules/regex (Depends-on): Remove localcharset.
32653         regex: revert single-byte change
32654         * lib/regexec.c (check_node_accept_bytes): Revert previous change
32655         to this function.  This was alredy fixed in a different way, at
32656         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
32657         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
32658         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
32660         regex: simplify based on Gawk version
32661         * lib/regex_internal.c (re_dfa_add_node): Simplify.
32662         Reported by Aharon Robbins in
32663         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32665 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
32667         regex: check that pattern char is single-byte
32668         Reported by Aharon Robbins in
32669         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32670         * lib/regexec.c (check_node_accept_bytes):
32671         Return 0 if the pattern string has a multibyte character here.
32673         regex: implement rational ranges
32674         Reported by Aharon Robbins in
32675         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32676         * lib/regcomp.c (build_range_exp) [!_LIBC]:
32677         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
32678         Implement rational ranges.
32680         regex: avoid redefining __wctype
32681         Reported by Aharon Robbins in
32682         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32683         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
32684         #undef before defining.
32686         regex: port to hosts where malloc (0) == NULL
32687         Reported by Aharon Robbins in
32688         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32689         * lib/regex_internal.c (re_node_set_alloc):
32690         Don't assume that malloc (0) yields nonnull.
32691         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
32692         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
32693         * modules/regex (Files): Add m4/eealloc.m4.
32695         regex: port to C89
32696         Reported by Aharon Robbins in
32697         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32698         * lib/regcomp.c (init_word_char): Declaration before statement.
32700         regex: merge glibc changes
32701         Also, copy the license wording from glibc.  This simplifies
32702         merging changes.  gnulib-tool will change the wording to GPL as
32703         appropriate, when importing it to other packages.  The only
32704         glibc change made since the last merge, which needs merging, is:
32705         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
32706         * lib/regex_internal.h (gettext): Remove use of INTUSE.
32708         * users.txt: Add Emacs.
32710         doc: omit mention of version when not needed
32711         * doc/gnulib-intro.texi (Portability and Application Code):
32712         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
32713         Don't mention particular dates or versions when not necessary, so
32714         that the documentation won't go out of date so quickly.
32716         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
32718 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
32720         bootstrap: pass --force to autoreconf.
32721         * build-aux/bootstrap (AUTORECONFFLAGS): New.
32722         Add "--force" so that Automake's ylwrap and other such tools
32723         be updated at each bootstrap invocation.
32724         Use it.
32726 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
32728         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
32729         The earlier patch forgot to update one of the #if conditions, causing
32730         a problem on Debian testing i386 reported by Mats Erik Andersson
32731         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
32732         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
32733         (__argp_fmtstream_puts, argp_fmtstream_puts)
32734         (__argp_fmtstream_write, argp_fmtstream_write)
32735         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
32737         * doc/gnulib-readme.texi: Minor fixups.
32738         (Portability guidelines): Modernize URLs.  Remove some repetition.
32739         (Indent with spaces not TABs): Reword to avoid too-long lines.
32740         Remove some '@ifset standalone' stuff that isn't used.
32742         * doc/gnulib-readme.texi (Portability guidelines):
32743         ctype.h, not ctime.h.
32745         Correct name of POSIX.1-2001.
32746         * doc/posix-functions/fgetc.texi (fgetc):
32747         * doc/posix-functions/fgets.texi (fgets):
32748         * doc/posix-functions/fread.texi (fread):
32749         * doc/posix-functions/fscanf.texi (fscanf):
32750         * doc/posix-functions/getc.texi (getc):
32751         * doc/posix-functions/getchar.texi (getchar):
32752         * doc/posix-functions/scanf.texi (scanf):
32753         POSIX.1-2001, not POSIX-2001.
32755         doc: move README into manual
32756         * README: Move contents to new file doc/gnulib-readme.texi.
32757         Replace with a one-line summary.
32758         * doc/gnulib.texi (Brief Overview): New section,
32759         with old intro preface.  Include gnulib-readme.texi for contents.
32760         (Philosophy): Rename from "Introduction", since this
32761         section no longer introduces the rest.  Write a new preface.
32762         * doc/gnulib-readme.texi: New file, with the old contents of
32763         README texinfo-ized.  This way, the README info appears
32764         in the online and printed manual.
32766 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
32768         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
32769         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
32770         c_vasprintf() prototype.
32772 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
32774         c-vasprintf: Fix "empty declaration" warning reported by GCC.
32775         * lib/c-vasprintf.h: Remove stray semicolon.
32777 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
32779         gettext: avoid obsolete macro AM_PROG_MKDIR_P
32780         It is obsolete and is planned to be removed from Automake 1.14; see
32781         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
32782         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
32783         (installdirs-data, installdirs-data-yes):
32784         Use $(MKDIR_P), not $(mkdir_p).
32785         * m4/intl.m4 (AM_INTL_SUBDIR):
32786         * m4/po.m4 (AM_PO_SUBDIRS):
32787         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
32789 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
32791         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
32792         On this platform, we are not optimizing but we are using
32793         the substitute for extern inlines, so compile as if
32794         C99-style extern inline, or a substitute, is available.
32795         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
32796         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
32797         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
32798         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
32799         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
32800         Declare as ARGP_FS_EI, not as extern.
32801         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
32802         (__option_is_short, _option_is_end, __option_is_end)
32803         [!_LIBC && __USE_EXTERN_INLINES]:
32804         Declare as ARGP_EI, not as extern.
32806 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
32808         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
32809         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
32810         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
32811         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
32812         ...), as the latter is fatal with older Autoconfs.
32813         Problem reported and fix suggested by Eric Blake in thread starting at
32814         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
32816 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
32818         AC_PROG_MKDIR_P: don't workaround if not buggy
32819         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
32820         Define only for Autoconf versions before 2.62.
32821         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
32822         undocumented m4_PACKAGE_VERSION, for consistency with the
32823         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
32824         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
32825         was introduced in 2.62.
32827 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
32829         New 'c-*printf' modules for formatted output in C locale.
32831         New module 'c-vasnprintf'.
32832         * modules/c-vasnprintf: New file.
32833         * lib/c-vasnprintf.c: New file.
32834         * lib/c-vasnprintf.h: New file.
32836         New module 'c-snprintf'.
32837         * modules/c-snprintf: New file.
32838         * modules/c-snprintf-tests: New file.
32839         * lib/c-snprintf.c: New file.
32840         * lib/c-snprintf.h: New file.
32841         * tests/test-c-snprintf.c: New file.
32842         * tests/test-c-snprintf.sh: New file.
32844         New module 'c-vsnprintf'.
32845         * modules/c-vsnprintf: New file.
32846         * modules/c-vsnprintf-tests: New file.
32847         * lib/c-vsnprintf.c: New file.
32848         * lib/c-vsnprintf.h: New file.
32849         * tests/test-c-vsnprintf.c: New file.
32850         * tests/test-c-vsnprintf.sh: New file.
32852         New module 'c-vasprintf'.
32853         * modules/c-vasprintf: New file.
32854         * modules/c-vasprintf-tests: New file.
32855         * lib/c-asprintf.c: New file.
32856         * lib/c-vasprintf.c: New file.
32857         * lib/c-vasprintf.h: New file.
32858         * tests/test-c-vasprintf.c  +: New file.
32859         * tests/test-c-vasprintf.sh: New file.
32861         New module 'c-xvasprintf'.
32862         * modules/c-xvasprintf: New file.
32863         * modules/c-xvasprintf-tests: New file.
32864         * lib/c-xasprintf.c: New file.
32865         * lib/c-xvasprintf.c: New file.
32866         * lib/c-xvasprintf.h: New file.
32867         * tests/test-c-xvasprintf.c: New file.
32868         * tests/test-c-xvasprintf.sh: New file.
32870 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
32872         argp: better 'inline'
32873         Use extern-inline module to declare extern inline functions.
32874         This avoids some bogus warning diagnostics.  Problem discovered
32875         when modifying GNU tar to use the manywarnings module.
32876         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
32877         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
32878         Define based on extern-inline.
32879         * modules/argp (Depends-on): Add extern-inline.
32881 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
32883         filemode, sys_stat: Handle MPX files a la AIX.
32884         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
32885         * lib/sys_stat.in.h (S_ISMPX): New macro.
32886         * tests/test-sys_stat.c: Add tests for MPX files.
32888 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
32890         x-to-1: honor $PERL
32891         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
32892         a chance to use his preferred version of Perl.  This is typically
32893         required by Darwin users whose default /usr/bin/perl does not have all
32894         the libraries required by help2man, and who need to use their MacPorts
32895         installation of Perl instead.
32897 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
32899         gnu-web-doc-update: add all the new files, even in new directories
32900         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
32901         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
32902         Use it.
32903         (main): Don't use cvsutils to get the list of unknown files,
32904         just add all the existing files and directories.
32906 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
32908         gnu-web-doc-update: improve --help
32909         * build-aux/gnu-web-doc-update: Move comments into --help.
32911 2012-12-07  Eric Wong  <normalperson@yhbt.net>
32913         mountlist: recognize more "dummy" file systems
32914         * lib/mountlist.c (ME_DUMMY_0):
32915         Add these dummy FS names to the list:
32916         - "debugfs" virtual filesystem for kernel debugging
32917         - "devpts" PTY slave filesystem
32918         - "devtmpfs" device filesystem on top of tmpfs/ramfs
32919         - "fusectl" control filesystem for FUSE
32920         - "mqueue" enumerates POSIX message queues
32921         - "rpc_pipefs" kernel <-> userspace bridge for NFS
32922         - "sysfs" is for exporting kernel objects
32923         - "devfs" device filesystem for Linux 2.4 and FreeBSD
32925 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
32927         extern-inline: avoid incompatibility with Darwin Libc
32928         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
32929         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
32930         Problem reported by Akim Demaille in
32931         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
32933 2012-12-11  Simon Josefsson  <simon@josefsson.org>
32935         gnupload: Work with GnuPG using gpg-agent (for smartcards).
32936         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
32937         let it handle password prompting.
32939 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
32941         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
32942         * lib/canonicalize.c (canonicalize_filename_mode):
32943         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
32944         fetching the current directory.  Don't overrun the beginning of
32945         rpath if there's no slashes after the MS-Windows drive letter.
32947 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
32949         maint.mk: avoid extra forks
32950         * top/maint.mk (_cfg_mk): The GNU make manual documents that
32951         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
32952         So use that instead of "$(shell test -f FILE && echo FILE)".
32954 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
32956         vasnprintf: fix ASCII_ONLY typo
32957         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
32958         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
32959         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
32960         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
32961         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
32963 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
32965         list, oset, xlist, xoset: fix extern inline issue with C99
32966         This was introduced by my recent changes for 'inline'.
32967         Problem reported for gettext by Daiki Ueno in
32968         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
32969         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
32970         (gl_list_nx_create, gl_list_size, gl_list_node_value)
32971         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
32972         (gl_list_previous_node, gl_list_get_at)
32973         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
32974         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
32975         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
32976         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
32977         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
32978         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
32979         (gl_list_iterator_free, gl_sortedlist_search)
32980         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
32981         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
32982         (gl_sortedlist_remove):
32983         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
32984         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
32985         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
32986         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
32987         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
32988         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
32989         (gl_list_add_at, gl_sortedlist_add):
32990         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
32991         Wrap these extern decls inside "#if 0", because they are implemented
32992         as inline functions, and extern inline is not what's wanted here.
32993         It would simplify these .h files to remove the extern decls entirely,
32994         although a downside would be less-clear separation between
32995         specification and implementation.
32997 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
32999         sys_stat: no 'static inline'
33000         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
33001         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
33003         extern-inline: no 'static inline'
33004         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
33005         Do not require AC_C_INLINE.
33006         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
33007         'static inline', for older compilers.
33009         snippet/warn-on-use: no 'static inline'
33010         * build-aux/snippet/warn-on-use.h:
33011         Remove unnecessary 'inline' in comment.
33013         rbtree-list, rbtreehash-list: no 'static inline'
33014         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
33015         * lib/gl_anytree_list2.h (node_at):
33016         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
33017         (gl_oset_first, add_nodes_to_buckets):
33018         Now static, not static inline.
33020         regex: no 'static inline'
33021         * lib/regex_internal.c (calc_state_hash):
33022         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
33023         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
33024         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
33025         Now static, not static inline.
33026         (inline) [__GNUC__ < 3 && _LIBC]:
33027         Remove macro; no longer needed.
33029         xvasprintf: no 'static inline'
33030         * lib/xvasprintf.c (xstrcat):
33031         Now static, not static inline.
33032         * m4/xvasprintf.m4 (gl_XVASPRINTF):
33033         Do not require AC_C_INLINE.
33035         parse-datetime, parse-duration: no 'static inline'
33036         * lib/parse-datetime.y (to_uchar):
33037         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
33038         (scale_n_add):
33039         Now static, not static inline.
33040         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
33041         * modules/parse-duration (configure.ac):
33042         Do not require AC_C_INLINE.
33044         getaddrinfo: no 'static inline'
33045         * lib/getaddrinfo.c (validate_family):
33046         Now static, not static inline.
33047         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
33048         Do not require AC_C_INLINE.
33050         ftruncate, fts, lstat, openat, raise: no 'static inline'
33051         * lib/ftruncate.c (chsize_nothrow):
33052         * lib/fts.c (opendirat, diropen):
33053         * lib/lstat.c (orig_lstat):
33054         * lib/openat.c (orig_openat):
33055         * lib/raise.c (raise_nothrow):
33056         Now static, not static inline.
33057         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
33058         * m4/fts.m4 (gl_FUNC_FTS_CORE):
33059         * m4/lstat.m4 (gl_PREREQ_LSTAT):
33060         * m4/openat.m4 (gl_PREREQ_OPENAT):
33061         * m4/raise.m4 (gl_PREREQ_RAISE):
33062         Do not require AC_C_INLINE.
33064         fflush, stat: no 'static inline'
33065         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
33066         (clear_ungetc_buffer, disable_seek_optimization)
33067         (restore_seek_optimization, update_fpos_cache):
33068         * lib/stat.c (orig_stat):
33069         Now static, not static inline.
33070         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
33071         (update_fpos_cache):
33072         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
33073         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
33074         * m4/stat.m4 (gl_PREREQ_STAT):
33075         Do not require AC_C_INLINE.
33077         error, filevercmp: no 'static inline'
33078         * lib/error.c (is_open, flush_stdout):
33079         * lib/filevercmp.c (order):
33080         Now static, not static inline.
33081         * m4/error.m4 (gl_PREREQ_ERROR):
33082         * modules/filevercmp (configure.ac):
33083         Do not require AC_C_INLINE.
33085         dup, execute, fatal-signal, etc.: no 'static inline'
33086         * lib/dup.c (dup_nothrow):
33087         * lib/execute.c (nonintr_close, nonintr_open):
33088         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
33089         * lib/fopen.c (orig_fopen):
33090         * lib/freadseek.c (freadptrinc):
33091         * lib/freopen.c (orig_freopen):
33092         * lib/fstat.c (orig_fstat, fstat_nothrow):
33093         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
33094         (get_rusage_as_via_iterator):
33095         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
33096         * lib/getdtablesize.c (_setmaxstdio_nothrow):
33097         * lib/isatty.c (_isatty_nothrow):
33098         * lib/open.c (orig_open):
33099         * lib/read.c (read_nothrow):
33100         * lib/sigprocmask.c (signal_nothrow):
33101         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
33102         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
33103         * lib/wait-process.c (unregister_slave_subprocess):
33104         * lib/write.c (write_nothrow):
33105         Now static, not static inline.
33106         * lib/spawn-pipe.c (nonintr_open): Define only if
33107         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
33108         * m4/dup.m4 (gl_PREREQ_DUP):
33109         * m4/execute.m4 (gl_EXECUTE):
33110         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
33111         * m4/fopen.m4 (gl_PREREQ_FOPEN):
33112         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
33113         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
33114         * m4/fstat.m4 (gl_PREREQ_FSTAT):
33115         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
33116         * m4/isatty.m4 (gl_PREREQ_ISATTY):
33117         * m4/open.m4 (gl_PREREQ_OPEN):
33118         * m4/read.m4 (gl_PREREQ_READ):
33119         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
33120         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
33121         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
33122         * m4/wait-process.m4 (gl_WAIT_PROCESS):
33123         * m4/write.m4 (gl_PREREQ_WRITE):
33124         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
33125         Do not require AC_C_INLINE.
33127         c-strtod, memcoll, readutmp: no 'static inline'
33128         * lib/c-strtod.c (c_locale):
33129         * lib/memcoll.c (strcoll_loop):
33130         * lib/readutmp.c (desirable_utmp_entry):
33131         Now static, not static inline.
33132         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
33133         * m4/memcoll.m4 (gl_MEMCOLL):
33134         * m4/readutmp.m4 (gl_READUTMP):
33135         Do not require AC_C_INLINE.
33137         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
33138         * lib/arctwo.c (to_uchar):
33139         * lib/md4.c (set_uint32):
33140         * lib/md5.c (set_uint32):
33141         * lib/sha1.c (set_uint32):
33142         * lib/sha256.c (set_uint32):
33143         * lib/sha512.c (set_uint64):
33144         Now static, not static inline.  This is a bit simpler, and doesn't
33145         affect performance with GCC and default optimization.
33146         * m4/arctwo.m4 (gl_ARCTWO):
33147         * m4/md4.m4 (gl_MD4):
33148         * m4/md5.m4 (gl_MD5):
33149         * m4/sha1.m4 (gl_SHA1):
33150         * m4/sha256.m4 (gl_SHA256):
33151         * m4/sha512.m4 (gl_SHA512):
33152         Do not require AC_C_INLINE.
33154         cond, lock, thread: better 'inline'
33155         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
33156         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
33157         New macros.  Use them instead of static inline, for header functions.
33158         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
33159         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
33160         * lib/glthread/lock.c (gl_waitqueue_init)
33161         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
33162         * lib/glthread/thread.c (get_current_thread_handle):
33163         Change 'static inline' to 'inline'.
33164         * lib/glthread/cond.h, lib/glthread/thread.h:
33165         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33166         * m4/cond.m4 (gl_COND):
33167         * m4/lock.m4 (gl_PREREQ_LOCK):
33168         * m4/thread.m4 (gl_THREAD):
33169         Do not require AC_C_INLINE.
33170         * modules/cond, modules/thread (Depends-on): Add extern-inline.
33172         chdir-long, cycle-check, savewd: better 'inline'
33173         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
33174         (find_non_slash):
33175         * lib/cycle-check.c (is_zero_or_power_of_two):
33176         * lib/savewd.c (savewd_delegating):
33177         Change 'static inline' to 'inline'.
33178         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
33179         Replace all remaining uses of 'static inline' with it.
33180         * lib/savewd.h:
33181         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33182         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
33183         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
33184         * m4/savewd.m4 (gl_SAVEWD):
33185         Do not require AC_C_INLINE.
33186         * modules/savewd (Depends-on): Add extern-inline.
33188         base32, base64: no need for 'inline'
33189         * lib/base32.c (to_uchar, get_8, decode_8):
33190         * lib/base64.c (to_uchar, get_4, decode_4):
33191         Change 'static inline' to 'inline'.
33192         * m4/base32.m4 (gl_PREREQ_BASE32):
33193         * m4/base64.m4 (gl_PREREQ_BASE64):
33194         Do not require AC_C_INLINE.
33196         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
33197         * lib/gl_array_oset.c (gl_array_nx_add_at):
33198         (gl_array_remove_at):
33199         * lib/gl_linkedhash_list.c (hash_resize_after_add)
33200         (add_to_bucket, remove_from_bucket):
33201         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
33202         Change 'static inline' to 'static', as it's simpler to omit
33203         'inline' unless there's a significant performance advantage.
33205         list, oset, xlist, xoset, xsublist: simplify via extern inline
33206         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
33207         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
33208         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
33209         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
33210         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
33211         New macro.  Replace all uses of 'static inline' with it.
33212         [HAVE_INLINE]: Implement functions as *_INLINE functions,
33213         instead of as macros FOO that are defined to static inline
33214         functions FOO_inline.
33215         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
33216         * lib/gl_xsublist.c:
33217         Reimplement from scratch, by defining the corresponding *_INLINE
33218         macro and including the corresponding .h file.  This is simpler.
33219         * modules/list, modules/oset, modules/xlist, modules/xoset:
33220         (Files): Remove m4/gl_list.m4.
33221         (configure.ac): Remove gl_LIST.
33222         * m4/gl_list.m4: Remove.
33223         * modules/list, modules/oset, modules/xlist, modules/xoset:
33224         * modules/xsublist:
33225         (Depends-on): Depend on extern-inline, not inline.
33227         xalloc: better 'inline'
33228         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
33229         New macro.  Replace all uses of 'static inline' with it.
33230         (static_inline): Remove.
33231         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
33232         Let 'extern inline' do the work automatically, instead of doing
33233         it by hand.
33234         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
33235         Remove.  All uses removed.
33236         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
33238         gethrxtime: better 'inline'
33239         * lib/xtime.c: New file.
33240         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
33241         * lib/xtime.h (XTIME_INCLUDE):
33242         New macros.  Replace all uses of 'static inline' with them.
33243         * lib/gethrxtime.c (gethrxtime): Define only if
33244         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
33245         this source file is now always compiled, because of the extern inline.
33246         * lib/gethrxtime.h, lib/xtime.h:
33247         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33248         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
33249         if gethrtime works, as they're not needed in that case.
33250         (gl_XTIME): Do not require AC_C_INLINE.
33251         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
33252         compiled now.  Move the check into gl_GETHRXTIME.
33253         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
33254         (Depends-on): Add extern-inline.
33255         (configure.ac): gethrxtime is always compiled now.
33256         (lib_SOURCES): Add gethrxtime.c.
33258         wctype-h: better 'inline'
33259         * lib/wctype-h.c: New file.
33260         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
33261         New macro.  Replace all uses of 'static inline' with it.
33262         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33263         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
33264         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
33265         (Depends-on): Add extern-inline.
33267         unistd: better 'inline'
33268         * lib/unistd.c: New file.
33269         * lib/unistd.in.h (_GL_UNISTD_INLINE):
33270         New macro.  Replace all uses of 'static inline' with it.
33271         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33272         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
33273         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
33274         (Depends-on): Add extern-inline.
33276         sys_socket: better 'inline'
33277         * lib/sys_socket.c: New file.
33278         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
33279         New macro.  Replace all uses of 'static inline' with it.
33280         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33281         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
33282         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
33283         (Depends-on): Add extern-inline.
33285         stdio: better 'inline'
33286         * lib/stdio.c: New file.
33287         * lib/stdio.in.h (_GL_STDIO_INLINE):
33288         New macro.  Replace all uses of 'static inline' with it.
33289         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33290         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
33291         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
33292         (Depends-on): Add extern-inline.
33294         sigaction: better 'inline'
33295         * lib/sig-handler.c: New file.
33296         * lib/sig-handler.h (SIG_HANDLER_INLINE):
33297         New macro.  Replace all uses of 'static inline' with it.
33298         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33299         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
33300         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
33301         (Depends-on): Add extern-inline.
33303         selinux-h: better 'inline'
33304         * lib/se-context.c, lib/se-selinux.c: New files.
33305         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
33306         * lib/se-context.in.h (SE_CONTEXT_INLINE):
33307         New macro.  Replace all uses of 'static inline' with it.
33308         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33309         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
33310         New macro.  Replace all uses of 'static inline' with it.
33311         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33312         * modules/selinux-h (Files, lib_SOURCES):
33313         Add lib/se-context.c, lib/se-selinux.c.
33314         (Depends-on): Add extern-inline.
33315         (configure.ac): Do not require AC_C_INLINE.
33317         pthread: better 'inline'
33318         * lib/pthread.c: New file.
33319         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
33320         New macro.  Replace all uses of 'static inline' with it.
33321         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33322         * m4/pthread.m4 (gl_PTHREAD_CHECK):
33323         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
33324         * modules/pthread (Files): Add lib/pthread.c.
33325         (Depends-on): Add extern-inline.
33327         math: better 'inline'
33328         * lib/math.c: New file.
33329         * lib/math.in.h (_GL_MATH_INLINE):
33330         New macro.  Replace all uses of 'static inline' with it.
33331         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33332         * m4/math_h.m4 (gl_MATH_H):
33333         Do not require AC_C_INLINE.
33334         * modules/math (Files, lib_SOURCES):
33335         Add lib/math.c.
33336         (Depends-on): Add extern-inline.
33338         count-one-bits: better 'inline'
33339         * lib/count-one-bits.c: New file.
33340         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
33341         New macro.  Replace all uses of 'static inline' with it.
33342         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33343         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
33344         Do not require AC_C_INLINE.
33345         * modules/count-one-bits (Files, lib_SOURCES):
33346         Add lib/count-one-bits.c.
33347         (Depends-on): Add extern-inline.
33349         count-leading-zeros: better 'inline'
33350         * lib/count-leading-zeros.c: New file.
33351         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
33352         New macro.  Replace all uses of 'static inline' with it.
33353         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33354         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
33355         Do not require AC_C_INLINE.
33356         * modules/count-leading-zeros (Files, lib_SOURCES):
33357         Add lib/count-leading-zeros.c.
33358         (Depends-on): Add extern-inline.
33360         bitrotate: better 'inline'
33361         * lib/bitrotate.c: New file.
33362         * lib/bitrotate.h (BITROTATE_INLINE):
33363         New macros.
33364         Replace all uses of 'static inline' with them.
33365         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33366         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
33367         (Depends-on): Add extern-inline.
33368         (configure.ac): Do not require AC_C_INLINE.
33370 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
33372         maint.mk: avoid gratuitous failure
33373         Reported by Stefano Lattarini in
33374         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
33375         * top/maint.mk (public-submodule-commit): Quote more safely.
33377 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
33379         canonicalize, canonicalize-lgpl: support MS-Windows file names
33380         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
33381         for test cases, which it'd be nice to add at some point.
33382         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
33383         * lib/canonicalize.c (canonicalize_filename_mode):
33384         * lib/canonicalize-lgpl.c (__realpath):
33385         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
33386         slash is at the beginning of the file name.  Use ISSLASH, instead
33387         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
33388         the first character with '/'.  Test for
33389         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
33390         with a drive letter.
33391         * lib/canonicalize.c (SLASHES): New macro.
33392         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
33394 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
33396         fts: introduce FTS_VERBATIM
33397         * lib/fts_.h (FTS_VERBATIM): New bit flag.
33398         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
33399         * lib/fts.c (fts_open): Honor it.
33401 2012-11-09  Pádraig Brady  <P@draigBrady.com>
33403         getlogin-tests: allow errno == ENXIO
33404         * tests/test-getlogin.c (main): Skip tests if getlogin fails
33405         with errno == ENXIO (No controlling tty).
33406         getlogin_r-tests: Likewise. Also allow errno == ENOENT
33407         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
33408         with errno == ENOENT.  This was reported to happen in various
33409         situations on GNU/Linux.
33411 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
33413         getlogin-tests: allow errno == ENOENT
33414         * tests/test-getlogin.c (main): Skip tests if getlogin fails
33415         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
33416         when running a test in an Emacs shell buffer.
33418 2012-11-08  Jim Meyering  <jim@meyering.net>
33420         tests/nap.h: avoid warning about unused variable
33421         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
33423         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
33424         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
33425         white space before each of the special-cased file names, to avoid
33426         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
33427         in http://bugs.gnu.org/12830.
33429 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
33431         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
33432         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
33433         fails with errno == EBADF when fd is opened with O_PATH.
33434         Reported by Jim Meyering in
33435         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
33436         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
33437         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
33439 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
33441         test-utimens: speed up by taking shorter naps
33442         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
33443         New functions.
33444         (nap): Use them, to do a better job of guessing the delay.
33445         On Fedora 17 with ext4 atop md atop hard disks, this made
33446         test-utimens run 10x faster, because the test napped for
33447         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
33448         <http://bugs.gnu.org/12820#11>.
33450 2012-11-07  Jim Meyering  <jim@meyering.net>
33452         mountlist.c: fix a compilation failure
33453         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
33454         I introduced while transforming commit v0.0-7683-g613bcb6
33456 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
33458         errno: port to LynxOS 178 2.2.2
33459         Problem reported by Joel Brobecker in
33460         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
33461         * doc/posix-headers/errno.texi (errno.h): Document this.
33462         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
33463         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
33464         Supply a string for EILSEQ.
33465         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
33467 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
33469         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
33470         Linux kernel 2.6.39 introduced O_PATH (see
33471         <http://lwn.net/Articles/433854/>) and this is a better fallback
33472         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
33473         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
33474         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
33475         * lib/fcntl.in.h (O_ACCMODE):
33476         * tests/test-fcntl-h.c (main):
33477         Do not reject O_ACCMODE merely because it has more than the
33478         minimal number of bits, as POSIX allows extensions here.
33480 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
33482         mountlist: do not classify a bind-mounted dir entry as "dummy"
33483         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
33484         the "none"-testing clause.
33485         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
33486         exception for bind-mounted directories.
33488 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
33490         quote: provide a means to escape strings with nul characters
33491         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
33492         (quote, quote_n): Rename formal arguments for consistency with
33493         quotearg.
33495 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
33497         test-raise: don't assume 199 is an invalid signal
33498         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
33500         sh-quote-tests: port to Solaris 9
33501         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
33502         Problem reported by Dagobert Michelsen in
33503         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
33505 2012-10-28  Jim Meyering  <jim@meyering.net>
33507         maint.mk: rename a new configurable variable
33508         * top/maint.mk (_gl_translatable_string_re): Rename from
33509         translation-markers: _gl_ prefix to insulate from user Makefile code,
33510         and the _re suffix to inform that it's a regular expression.
33512 2012-10-26  Eric Blake  <eblake@redhat.com>
33514         maint.mk: let packages tweak sc_po_check pattern
33515         * top/maint.mk (sc_po_check): Add translation-markers, to allow
33516         finding files with other translation markers.
33518 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33520         euidaccess: speed up 'configure' on GNU hosts
33521         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
33522         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
33523         it's needed only in this case.  Use AC_CHECK_DECLS, not
33524         AC_CHECK_DECLS_ONCE.
33525         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
33526         or AC_REQUIRE for AC_FUNC_GETGROUPS.
33528         * lib/regexec.c (re_search_internal): Fix grammar in comment.
33530 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
33532         fchmodat, fchownat, fstatat: port to non-inlining compilers
33533         Problem reported for FreeBSD 9 by Jim Meyering in
33534         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
33535         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
33536         New files, which define FCHMODAT_INLINE etc.
33537         * lib/fchmodat.c (FCHMODAT_INLINE):
33538         * lib/fchownat.c (FCHOWNAT_INLINE):
33539         * lib/fstatat.c (FSTATAT_INLINE):
33540         Remove, as chmodat.c etc. now do this.
33541         * modules/fchmodat (Files): Add lib/chmodat.c.
33542         * modules/fchownat (Files): Add lib/chownat.c.
33543         * modules/fstatat (Files): Add lib/statat.c.
33545 2012-10-15  Jim Meyering  <jim@meyering.net>
33547         fchmodat.c, fchownat.c: compile-impeding typos
33548         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
33549         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
33550         Introduced in commit v0.0-7636-gd202279.
33552 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
33554         fcntl-h: support GNU flags like O_IGNORE_CTTY
33555         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
33556         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
33557         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
33558         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
33559         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
33560         Define to 0 if not already defined.
33561         * tests/test-fcntl-h.c: Test these new flags.
33563 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
33565         faccessat, etc.: support AT_FDCWD-only use
33566         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
33567         this function only if its first argument is AT_FDCWD.
33568         Emacs wants faccessat for AT_EACCESS but not for any first-arg
33569         values other than AT_FDCWD, so it doesn't want all the openat
33570         machinery with fchdir etc.
33571         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
33572         * modules/fstatat, modules/mkdirat, modules/openat (Files):
33573         * modules/unlinkat (Files):
33574         Remove lib/openat-priv.h, as at-internal supplies this file.
33575         Removing this file here allows us to support programs like Emacs
33576         that avoid at-internal.
33578         faccessat: speed up 'configure' on mainstream hosts
33579         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
33580         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
33581         since it's only on unusual platforms that we need to check for
33582         'access', and it's better not to slow 'configure' down on all
33583         platforms.
33585         faccessat: port to Solaris 10
33586         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
33587         Needed on Solaris 10, which doesn't have AT_EACCESS,
33588         so we need the Gnulib fcntl.h, which defines it.
33590 2012-10-14  Pádraig Brady  <P@draigBrady.com>
33591         canonicalize: fix C89 compilation
33592         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
33593         declarations so C89 is supported.  Also remove the comment
33594         referencing memorty allocation as the suggested feature could
33595         not be implemented as suggested.
33596         Reported by Michael Goffioul.
33598 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
33600         group-member: omit unnecessary dependencies
33601         This is for Emacs, which has its own allocator and where we
33602         don't want to use xalloc.
33603         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
33604         since we no longer use xmalloc.  Do not include stdbool.h, since
33605         the changes below happen to remove the only use of bool.
33606         (GROUPBUF_SIZE): New constant.
33607         (struct group_info): Remove n_groups member.  Add groupbuf member.
33608         This lets us get the groups without using malloc, usually.
33609         (free_group_info, get_group_info): Adjust to this.
33610         (get_group_info): Return the number of groups found, or -1 on error.
33611         Use plain malloc not xmalloc, and treat its failure as if there
33612         are no groups, as the user already loses in case of error.
33613         (group_member): Simplify, based on changes to get_group_info.
33614         * modules/group-member (Depends-on): Remove dependencies on
33615         xalloc and stdbool.  Add dependency on xalloc-oversized.
33617 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
33619         gethrxtime: port to C++
33620         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
33622 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
33624         ptsname: fix macro-name typo
33625         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
33627 2012-10-03  Simon Josefsson  <simon@josefsson.org>
33629         inttostr: Relax license.
33630         * modules/inttostr (License): Change from LGPL to LGPLv2+.
33632 2012-10-03  Eric Blake  <eblake@redhat.com>
33634         ptsname_r: support ptys returned by FreeBSD posix_openpt
33635         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
33636         lives in /dev/pts/.
33638 2012-10-02  Eric Blake  <eblake@redhat.com>
33640         pselect: reject invalid file descriptors
33641         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
33642         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
33643         * modules/pselect (Depends-on): Add dup2.
33644         * doc/posix-functions/pselect.texi (pselect): Document this.
33646         select: reject invalid file descriptors
33647         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
33648         * lib/select.c (rpl_select) [!win32]: Work around it.
33649         * modules/select (Depends-on): Add dup2.
33650         * doc/posix-functions/select.texi (select): Document this.
33652         select: enhance test
33653         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
33654         New functions.
33655         (test_function): Enhance test.
33656         (do_select_bad_fd): Avoid any stale errno values.
33658         ptsname: reject invalid file descriptors
33659         http://www.austingroupbugs.net/view.php?id=503
33660         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
33661         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
33662         * modules/stdlib (Makefile.am): Replace witness.
33663         * lib/stdlib.in.h (ptsname): Allow for replacement.
33664         * modules/ptsname (configure.ac): Trigger replacement.
33665         * doc/posix-functions/ptsname.texi (ptsname): Document this.
33667 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
33669         hash-pjw-bare: new module
33670         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
33671         * lib/hash-pjw-bare.h: Likewise.
33672         * modules/hash-pjw-bare: New file.
33673         * MODULES.html.sh (Misc): Add it.
33675 2012-10-02  Eric Blake  <eblake@redhat.com>
33677         manywarnings: cater to more gcc infelicities
33678         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
33679         -Wuninitialized without -O.
33681 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
33683         select, poll tests: Make setsockopt invocation effective.
33684         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
33685         the bind() call.
33686         * tests/test-select.h (open_server_socket): Likewise.
33688 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
33690         sockets, sys_stat: restore AC_C_INLINE
33691         This undoes the 2012-09-22 patch.
33692         * m4/sockets.m4 (gl_SOCKETS):
33693         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
33694         Restore AC_C_INLINE, since MSVC requires __inline or _inline
33695         and does not support plain 'inline'.  Reported by Bruno Haible in
33696         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
33698 2012-09-30  Bruno Haible  <bruno@clisp.org>
33700         localeconv tests: Avoid test failure on OpenIndiana.
33701         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
33702         skip the 'grouping' and 'mon_grouping' tests.
33703         Reported by Jim Meyering.
33705 2012-09-30  Bruno Haible  <bruno@clisp.org>
33707         havelib: Follow libtool developments.
33708         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
33709         Suggested by Simon Josefsson.
33711 2012-09-29  Jim Meyering  <meyering@redhat.com>
33713         fstatat.c: fix a compile-impeding typo
33714         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
33715         Introduced in commit v0.0-7636-gd202279.
33716         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
33718 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
33720         extern-inline: provide a -Wundef safe config.h
33721         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
33722         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
33723         to produce a -Wundef warning free config.h.
33725 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
33727         hash-pjw: relax license to LGPLv2+
33728         * modules/hash-pjw (License): Relax, with consent of author.
33730 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
33732         maint.mk: fix strict vs. lazy variable issues with RELEASE
33733         * top/maint.mk (_equal): New function.
33734         (member_check): Strip the result to avoid spurious spaces.
33735         (url_dir_list): Do not use ifeq, which is strict, as it will
33736         require RELEASE_TYPE to be defined.
33737         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
33738         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
33739         (announcement_Cc_alpha,announcement_mail_headers_alpha)
33740         (announcement_Cc_beta,announcement_mail_headers_beta)
33741         (announcement_Cc_stable,announcement_mail_headers_stable): these.
33742         (release): Do not depend on $(release-type), as it forces its
33743         evaluation.  Bounce to it.
33745 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
33747         maint.mk: formatting changes
33748         * top/maint.mk: Indent bodies of if's.
33750 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
33752         maint.mk: factor the validation of RELEASE_TYPE
33753         With help from Jim Meyering.
33754         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
33755         * top/maint.mk (_empty, _sp): Move their definition earlier.
33756         (member-check, release-type): New.
33757         Use the latter instead of $(RELEASE_TYPE).
33758         Remove now useless local checks.
33760 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
33762         maint.mk: provide "make upload" to ease uploading
33763         See
33764         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
33765         Do not depend simply on the current $(VERSION), as there may have been
33766         new commits since the tarball generation.  Rather, rely on $(RELEASE),
33767         as "make release-commit" already does.
33769         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
33770         "make TYPE".
33772         * top/maint.mk (upload_command, upload, release): New.
33773         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
33774         (VERSION): first word of $(RELEASE) is always right.
33775         (emit_upload_commands): Adjust.
33776         * top/README-release: Update.
33778 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
33780         maint.mk: silent rules
33781         With help from Stefano Lattarini.
33782         * top/maint.mk (writable-files): Use $(AM_V_GEN).
33783         (announcement): Use $(AM_V_at).
33785 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
33787         localename: port gl_locale_name_thread_unsafe to FreeBSD
33788         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
33789         and use the simpler FreeBSD implementation on Mac OS X as well.
33790         Original idea suggested by Ed Maste in
33791         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
33793 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
33795         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
33796         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
33797         * lib/mbuiter.c, lib/xsize.c: New files.
33798         * lib/binary-io.h (BINARY_IO_INLINE):
33799         * lib/eealloc.h (EEALLOC_INLINE):
33800         * lib/mbfile.h (MBFILE_INLINE):
33801         * lib/mbiter.h (MBITER_INLINE):
33802         * lib/mbuiter.h (MBUITER_INLINE):
33803         * lib/xsize.h (XSIZE_INLINE):
33804         New macros.
33805         Replace all uses of 'static inline' with them.
33806         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33807         * m4/eealloc.m4 (gl_EEALLOC):
33808         * m4/mbfile.m4 (gl_MBFILE):
33809         * m4/mbiter.m4 (gl_MBITER):
33810         * m4/xsize.m4 (gl_XSIZE):
33811         Do not require AC_C_INLINE.
33812         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
33813         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
33814         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
33815         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
33816         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
33817         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
33818         * modules/binary-io, modules/eealloc, modules/mbfile:
33819         * modules/mbiter, modules/mbuiter:
33820         (Depends-on): Add extern-inline.
33822         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
33823         * lib/pipe-filter-aux.c: New file.
33824         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
33825         Replace all uses of 'static inline' with it.
33826         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33827         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
33828         (filter_retcode): No real need for inline here.
33829         * modules/pipe-filter-gi, modules/pipe-filter-ii:
33830         (Files): Add lib/pipe-filter-aux.c.
33831         (Depends-on): Add extern-inline.
33832         (configure.ac): Do not require AC_C_INLINE.
33833         (lib_SOURCES): Add pipe-filter-aux.c.
33835         fdutimensat: omit unnecessary AC_C_INLINE
33836         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
33838         fchmodat, fchownat, fstatat: use extern-inline
33839         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
33840         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
33841         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
33842         New macros.
33843         * lib/openat.h:
33844         Replace all uses of 'static inline' with them.
33845         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33846         * modules/fchmodat, modules/fchownat, modules/fstatat:
33847         * modules/openat-h:
33848         (Depends-on):
33849         Add extern-inline.
33850         (configure.ac): Remove AC_C_INLINE.
33852         acl, mbchar, priv-set: use extern-inline
33853         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
33854         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
33855         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
33856         New macros.
33857         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
33858         Replace all uses of 'static inline' with it.
33859         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33860         * m4/acl.m4 (gl_FUNC_ACL):
33861         * m4/mbchar.m4 (gl_MBCHAR):
33862         * m4/priv-set.m4 (gl_PRIV_SET):
33863         Remove AC_C_INLINE, since 'inline' is no longer used directly.
33864         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
33865         Add extern-inline.
33867         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
33868         * m4/sockets.m4 (gl_SOCKETS):
33869         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
33870         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
33871         environments where it's already guaranteed to work, so we needn't
33872         check for it at 'configure'-time.
33874         tls-tests: omit unnecessary 'inline'
33875         * tests/test-tls.c (perhaps_yield): No longer inline.
33876         Simplicity and portability trump efficiency in test cases.
33878         utimens-tests: avoid unnecessary 'inline'
33879         * modules/fdutimensat-tests (configure.ac):
33880         * modules/futimens-tests (configure.ac):
33881         * modules/utimens-tests (configure.ac):
33882         * modules/utimensat-tests (configure.ac):
33883         Remove AC_C_INLINE.
33884         * tests/test-utimens-common.h (ctime_compare):
33885         No longer inline.  Simplicity and portability trump efficiency here.
33887         misc: don't limit commentary to inline functions
33888         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
33889         * lib/xalloc-oversized.h, lib/xsize.h:
33890         Contrast macros to functions in general, not just to inline functions,
33891         when the commentary does not apply only to inline functions.
33893 2012-09-20  Jim Meyering  <meyering@redhat.com>
33895         non-recursive-gnulib-prefix-hack: new module
33896         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
33897         the file that originated in Bison.
33898         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
33899         largely copied from a snippet that resided in bison's configure.ac.
33900         * modules/non-recursive-gnulib-prefix-hack: New file.
33901         * MODULES.html.sh (Support for maintaining and releasing projects):
33902         Add it.
33904 2012-09-18  Jim Meyering  <meyering@redhat.com>
33906         maint.mk: generalize _gl_tight_scope for non-recursive make
33907         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
33908         that *.h would describe additional .h files in the directory
33909         specified by $(_gl_TS_dir).  I.e., add this...
33910         (_gl_TS_other_headers): New variable.
33912         maint.mk: exempt trailing blanks found in "binary" files
33913         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
33914         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
33915         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
33917 2012-09-17  Jim Meyering  <meyering@redhat.com>
33919         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
33920         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
33921         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
33922         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
33924 2012-09-17  Jim Meyering  <meyering@redhat.com>
33926         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
33927         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
33928         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
33929         It is not in the same category as "exit (0)" or "exit (1)", and
33930         besides, I know of no symbolic name for that 77.  Reported by
33931         Richard W.M. Jones in
33932         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
33934 2012-09-17  Jim Meyering  <meyering@redhat.com>
33936         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
33937         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
33938         all uses of #define, not just those that start in column 1.
33939         Richard W.M. Jones reported a false positive in
33940         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
33942 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
33944         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
33945         * lib/localcharset.c (locale_charset) [DARWIN7]:
33946         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
33947         as these two values are incompatible.  Problem reported by Max Horn.
33948         For more discussion, please see
33949         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
33951         doc: document sticky-EOF issue
33952         * doc/posix-functions/fgetc.texi (fgetc):
33953         * doc/posix-functions/fgets.texi (fgets):
33954         * doc/posix-functions/fread.texi (fread):
33955         * doc/posix-functions/fscanf.texi (fscanf):
33956         * doc/posix-functions/getc.texi (getc):
33957         * doc/posix-functions/getchar.texi (getchar):
33958         * doc/posix-functions/scanf.texi (scanf):
33959         Mention that glibc and default Solaris do not conform to
33960         C99 and POSIX-2001 or later, with respect to how getchar
33961         etc. behave when feof reports nonzero.
33963 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
33965         poll: fix poll(0, NULL, msec)
33966         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
33967         but nfd is 0.  In that case poll should behave like select.
33969 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
33970             Paolo Bonzini  <bonzini@gnu.org>
33972         poll: fix for systems that can't recv() on a non-socket
33973         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
33974         is readable.  In this case POLLHUP will not be supported.
33975         * doc/posix-functions/poll.texi: Document this.
33977 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
33979         poll/select: document portability problems not fixed by Gnulib.
33980         * doc/posix-functions/poll.texi: poll does not work well on
33981         pipes under Windows.  It has the same limitations as select on
33982         BeOS.
33983         * doc/posix-functions/select.texi: select does not work well
33984         on pipes under Windows.
33986 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
33988         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
33989         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
33990         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
33991         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
33993 2012-09-06  Eric Blake  <eblake@redhat.com>
33995         net_if: give more details about the bug being fixed
33996         * doc/posix-headers/net_if.texi: Add clarification.
33998 2012-09-05  Eric Blake  <eblake@redhat.com>
34000         net_if: new module
34001         * modules/net_if: New module, borrowing ideas from netinet_in.
34002         * m4/net_if_h.m4: New file.
34003         * lib/net_if.in.h: Likewise.
34004         * doc/posix-headers/net_if.texi (net/if.h): Document it.
34005         * MODULES.html.sh (lacking POSIX:2008): Likewise.
34006         * tests/test-net_if.c: Make function checks conditional.
34007         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
34009 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
34011         readutmp: fix non-portable UT_PID use
34012         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
34013         Use `UT_PID (u) > 0' as absolute condition.
34015 2012-09-04  Jim Meyering  <meyering@redhat.com>
34017         fts: reduce two or more trailing spaces to just one, usually
34018         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
34019         or more slashes, trim all but the final one.  But if a name consists
34020         solely of two slashes, don't modify it.  If it consists solely of
34021         three or more slashes, strip all but one.
34023         This is part of the solution to a minor problem with rm:
34024         it would print a bogus ELOOP diagnostic when failing to remove
34025         the slash-decorated name of a symlink-to-directory:
34027             $ mkdir d && ln -s d s && env rm -r s/
34028             rm: cannot remove 's': Too many levels of symbolic links
34030         With the change below and a trivial don't-trim-trailing-slashes
34031         adjustment to remove.c, it does this:
34033             $ env rm -r s/
34034             rm: cannot remove 's/': Not a directory
34036         Improved by: Eric Blake
34038         fts: when there is no risk of overlap, use memcpy, not memmove
34039         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
34041 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
34043         stdbool: be more compatible with mixed C/C++ compiles
34044         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
34045         Define to bool, true, false, respectively, as GCC's builtin
34046         stdbool.h does.  Problem reported by Michael Goffioul in
34047         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
34049 2012-08-28  Jim Meyering  <meyering@redhat.com>
34051         revert last change: it was not needed
34052         * tests/test-vc-list-files-git.sh: There's already a test for
34053         a working git, just below.
34055 2012-08-28  Jim Meyering  <meyering@redhat.com>
34057         tests: test-vc-list-files-git.sh: skip if git is not available
34058         * tests/test-vc-list-files-git.sh: Skip this test when git is
34059         not available.
34061 2012-08-26  Bruno Haible  <bruno@clisp.org>
34063         gnulib-tool: Remove no-op option --no-changelog.
34064         * gnulib-tool (func_usage): Don't mention --no-changelog.
34065         (do_changelog): Remove variable.
34066         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
34068 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
34070         doc: remove fdl-1.2.texi
34071         It is no longer used or maintained, and its use of @acronym
34072         is problematic.  See the thread containing
34073         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
34074         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
34075         * doc/old-licenses/fdl-1.2.texi: Remove.
34077         execinfo: port to FreeBSD
34078         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
34079         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
34080         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
34081         * modules/execinfo (Link): Add $(LIB_EXECINFO).
34083 2012-08-23  Jim Meyering  <meyering@redhat.com>
34085         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
34086         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
34087         to placate gcc's -Wold-style-declaration.
34089 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
34091         doc: do not use @acronym
34092         * doc/inet_ntoa.texi (inet_ntoa):
34093         * doc/parse-datetime.texi (Seconds since the Epoch)
34094         (Specifying time zone rules):
34095         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
34096         Don't use @acronym.  Problem reported by John Darlington in
34097         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
34099 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
34101         stdnoreturn: port to newer GCCs
34102         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
34103         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
34104         Problem reported by Jim Meyering in
34105         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
34106         Also, rename the 'test' function to a void a clash with the
34107         already-supplied 'main' function; this fixes a bug that incorrectly
34108         rejected GCC 4.7.1's <stdnoreturn.h>.
34109         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
34110         Document GCC problem.
34112 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
34114         pipe-filter: fix comment typo
34115         * lib/pipe-filter.h: Mention correct function.
34117 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
34119         execinfo: new module
34120         This is for Emacs.  Currently, it provides a no-effect stub
34121         on all platforms where it does not already work.
34122         It already works on glibc-based systems, and on Solaris 11.
34123         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
34124         New files.
34125         * doc/glibc-headers/execinfo.texi (execinfo.h):
34126         * MODULES.html.sh (Misc): Document it.
34128 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
34130         extern-inline: support old GCC 'inline'
34131         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
34132         if available.  This applies to GCC versions 2.7 through 4.2, or
34133         when newer GCC is using -fgnu89-inline.  The goal is to address
34134         some of the performance issues mentioned by Bruno Haible in
34135         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
34137 2012-08-20  Eric Blake  <eblake@redhat.com>
34139         maint.mk: avoid redundant file name in message
34140         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
34141         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
34142         (sc_makefile_path_separator_check): Remove bogus $(ME).
34144 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
34146         timer-time: fix link order when static linking on glibc
34147         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
34148         _after_ -lrt so that it's significant.
34150 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
34152         timespec: omit unnecessary AC_C_INLINE
34153         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
34155         stat-time: omit unnecessary AC_C_INLINE
34156         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
34157         Do not require AC_C_INLINE.
34159         ignore-value: omit unnecessary AC_C_INLINE
34160         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
34162         sys_select: avoid 'static inline'
34163         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
34165         mktime: avoid 'static inline'
34166         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
34167         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
34169 2012-08-19  Bruno Haible  <bruno@clisp.org>
34171         gnulib-tool: Improve coding style.
34172         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
34173         func_emit_lib_Makefile_am.
34174         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
34176 2012-08-19  Bruno Haible  <bruno@clisp.org>
34178         gnulib-tool: Fix indentation.
34179         * gnulib-tool (func_import): Fix indentation.
34181 2012-08-19  Bruno Haible  <bruno@clisp.org>
34183         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
34184         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
34185         on the list of removed files.
34187 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
34189         test-parse-datetime: avoid glibc leap-second glitch
34190         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
34191         with the 2012 rules.  Problem reported by Bruce Dubbs in
34192         <http://bugs.gnu.org/12206>.
34194 2012-08-14  Bruno Haible  <bruno@clisp.org>
34196         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
34197         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
34198         from argument.
34199         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
34201 2012-08-14  Eric Blake  <eblake@redhat.com>
34203         ldexp: relax license
34204         * modules/ldexp (License): Trivial relax, since the module only
34205         provides a permissively licensed m4 file.
34207 2012-08-13  Bruno Haible  <bruno@clisp.org>
34209         gnulib-tool: Fix persistence of --witness-c-macro option.
34210         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
34211         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
34213 2012-08-11  Eric Blake  <eblake@redhat.com>
34215         count-leading-zeros: use a lookup table on non-gcc compilers
34216         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
34217         alternate implementation, suggested by Jim Meyering.
34219 2012-08-10  Eric Blake  <eblake@redhat.com>
34221         count-leading-zeros: new module
34222         * modules/count-leading-zeros: New module.
34223         * m4/count-leading-zeros.m4: New file.
34224         * lib/count-leading-zeros.h: Likewise.
34225         * modules/count-leading-zeros-tests: New test.
34226         * tests/test-count-leading-zeros.c: New file.
34227         * MODULES.html.sh (Integer arithmetic functions): Document it.
34229 2012-08-07  Simon Josefsson  <simon@josefsson.org>
34230             Jim Meyering  <meyering@redhat.com>
34232         maintainer-makefile: Fix syntax error with dash.
34233         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
34234         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
34236 2012-08-05  Jim Meyering  <meyering@redhat.com>
34238         extern-inline: also ignore -Wmissing-declarations
34239         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
34240         required with gcc-4.8.0-to-be.
34242         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
34243         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
34244         for /error ?([^,]*)/.  This avoids false-positives for strings like
34245         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
34247 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
34249         gnumakefile: better interaction with Automake-NG
34250         * modules/gnumakefile [Makefile.am]: The makefiles generated by
34251         Automake-NG always contain a definition of VPATH, even in non-VPATH
34252         builds (its value being simply '.' in that case).  So, in the
34253         'clean-GNUmakefile' rule, to determine whether running under a
34254         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
34255         '$(VPATH)' expands to the empty string.
34257 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
34259         base64: Use extern C scope in header file, for C++.
34260         * lib/base64.h: Add C++ namespace protection.
34262 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
34264         stat-time, timespec, u64: support naive out-of-dir builds
34265         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
34266         Use '#include "foo.h"', not '#include <foo.h>', when including
34267         one's own interface.  This works better when configuring with
34268         out-of-directory builds, since packages need not add an
34269         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
34271 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
34273         utimens: use extern-inline
34274         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
34275         * lib/utimens.h: Add copyright notice, since this is now large enough
34276         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34277         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
34278         * modules/utimens (Depends-on): Add extern-inline.
34280         u64: use extern-inline
34281         * lib/u64.c: New file.
34282         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34283         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
34284         * modules/u64 (Files): Add lib/u64.c.
34285         (Depends-on): Add extern-inline.
34286         (configure.ac): No need to require AC_C_INLINE, since extern-inline
34287         does that now.
34288         (lib_SOURCES): Add u64.c.
34290         timespec: use extern-inline
34291         * lib/timespec.c: New file.
34292         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34293         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
34294         * modules/timespec (Files): Add lib/timespec.c.
34295         (Depends-on): Add extern-inline.
34296         (lib_SOURCES): Add timespec.c.
34298         stat-time: use extern-inline
34299         * lib/stat-time.c: New file.
34300         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34301         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
34302         * modules/stat-time (Files): Add lib/stat-time.c.
34303         (Depends-on): Add extern-inline.
34304         (lib_SOURCES): Add stat-time.c.
34306         extern-inline: new module
34307         * modules/extern-inline, m4/extern-inline.m4: New files.
34308         This is for better support of 'extern inline' a la ISO C99,
34309         with a portable alternative on compilers that do not support
34310         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
34311         of the Emacs executable, when compiled with debugging disabled,
34312         which is a typical way that Emacs is built while developing.
34314 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
34316         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
34317         * build-aux/do-release-commit-and-tag: Move variable definitions
34318         together.
34319         ($branch): Instead of defaulting to "master", default to the current
34320         branch (as gnu-web-doc-update does).
34321         (help): Display the current values of the option arguments.
34322         * top/maint.mk (release-commit): New.
34323         * top/README-release: Simplify the corresponding step.
34325 2012-07-30  Eric Blake  <eblake@redhat.com>
34327         passfd: fix comment on recvfd
34328         * lib/passfd.c (recvfd): Fix comment.
34329         Reported by Jann Horn <jannhorn@googlemail.com>.
34331 2012-07-30  Jim Meyering  <meyering@redhat.com>
34333         maint.mk: avoid a sub-shell
34334         * top/maint.mk (release-prep): Remove unneeded sub-shell.
34336 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
34338         maint.mk: use silent-rules support from Automake
34339         * top/maint.mk (news-check, vc-diff-check, announcement)
34340         (no-submodule-changes, alpha beta stable, release-prep)
34341         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
34343 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
34345         maint.mk: provide a web-manual-update target
34346         * top/maint.mk: here.
34347         * top/README-release: Use it to simplify the web manual update step.
34349 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
34351         README-release: shorten the circuit to post a news
34352         * top/README-release: Point directly to the news submission form.
34354 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
34356         gnu-web-doc-update: fix --help
34357         * build-aux/gnu-web-doc-update: The information "top level" was written
34358         twice.
34360 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
34362         maint.mk: absolute VPATH issue
34363         * top/maint.mk (release-prep): Help Git find .git/.
34364         From Jim Meyering.
34366 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
34368         gitlog-to-changelog: fix previous change
34369         * build-aux/gitlog-to-changelog: Fix condition.
34370         Add missing ";".
34372 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
34374         gitlog-to-changelog: don't expect .git to be in $srcdir
34375         Reported by Bruno Haible.
34376         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
34377         * build-aux/gitlog-to-changelog (&git_dir_option): New.
34378         Use it.
34380 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
34382         maint.mk: absolute VPATH build fix
34383         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
34384         $(srcdir) is not a parent of $(builddir).
34386 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
34388         clean-temp: Fix memory leak.
34389         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
34390         'files' members of tmpdir.
34392 2012-07-27  Jim Meyering  <meyering@redhat.com>
34394         maint.mk: new rule: refresh-gnulib-patches
34395         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
34396         Use this rule to refresh them.
34397         * top/maint.mk (refresh-gnulib-patches): New rule.
34399 2012-07-24  Bruno Haible  <bruno@clisp.org>
34401         gnulib-tool: Fix handling of inctests variable.
34402         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
34403         Reported by Nick Bowler <nbowler@elliptictech.com>.
34405 2012-07-22  Bruno Haible  <bruno@clisp.org>
34407         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
34408         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
34409         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
34410         Remove exemption for getpass.h.
34411         Suggested by Eric Blake.
34413 2012-07-20  Eric Blake  <eblake@redhat.com>
34415         verify: document conflict with -Wnested-externs
34416         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
34418         maint.mk: forbid exit(-1)
34419         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
34421 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
34423         fsusage: port back to Solaris
34424         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
34425         error (fsd not declared) on Solaris 10.  Reported privately by
34426         Andrew Borodin.
34428 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
34430         gnu-web-doc-update: fix error messages
34431         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
34433         gnu-web-doc-update: check the requirements.
34434         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
34435         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
34436         * build-aux/bootstrap (find_tool): Comment change.
34438 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
34440         maint.mk: minor simplication.
34441         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
34442         for default values.
34444 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
34446         gitlog-to-changelog: VPATH build issues
34447         If builddir is not a subdirectory of srcdir, running git from it will
34448         fail.
34449         * build-aux/gitlog-to-changelog (--srcdir): New option.
34451 2012-07-15  Bruno Haible  <bruno@clisp.org>
34453         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
34454         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
34455         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
34456         Remove exemption for fpending.h.
34457         Suggested by Eric Blake.
34459 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
34461         pthread_sigmask: fix bug on FreeBSD 9
34462         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
34463         Include string.h.
34464         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
34465         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
34466         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
34467         but pthread_sigmask (1729, NULL, NULL) returns zero.
34468         See <http://bugs.gnu.org/11884>.
34469         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
34470         by inspecting whether the main call changed the old mask.
34472 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
34474         README-release: make it more legible
34475         * top/README-release: Improve typography slightly.
34477 2012-07-15  Jim Meyering  <meyering@redhat.com>
34479         maint: require that each sc_... command start with "@"
34480         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
34481         "make sc_maint" helps us avoid this nit.
34483 2012-07-15  Jim Meyering  <meyering@redhat.com>
34485         maint.mk: add leading "@" to quiet new "make syntax-check" rule
34486         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
34488 2012-07-13  Eric Blake  <eblake@redhat.com>
34490         maint.mk: new syntax check for HAVE_DECL checks
34491         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
34492         * cfg.mk
34493         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
34494         Exempt some false positives.
34495         Based on a report by Karel Zak.
34497         argp: make HAVE_DECL usage consistent
34498         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
34499         macros, not whether they are defined.
34500         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
34501         convention with other declaration checks.
34502         Reported by Karel Zak, with suggestions from Paul Eggert.
34504         stat-time: relax license to LGPLv2+
34505         * modules/stat-time (License): Relax, with consent of all authors.
34507         strndup: fix m4 usage error
34508         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
34509         defined, to either 0 or 1.
34510         Reported by Karel Zak.
34512 2012-07-11  Jim Meyering  <meyering@redhat.com>
34514         maint: enable the sc_avoid_if_before_free syntax-check rule
34515         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
34516         (if_before_free_offenders_): Define.
34517         (if_before_free_basename_re_): Define.
34518         Exempt current files with useless if-before-free.
34520 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
34522         gettext: do not assume '#define ... defined ...' behavior
34523         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
34524         Do not use '#define FOO ... defined BAR ...', as the C standard says
34525         it's not portable to expect that this works after macro expansion.
34526         Problem reported for gzip by Steven M. Schweda in
34527         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
34529 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
34531         getloadavg: clean out old Emacs and Autoconf cruft
34532         See Glenn Morris in <http://bugs.gnu.org/11905>.
34533         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
34534         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
34535         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
34536         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
34538 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
34540         bootstrap: let warn be like tests/init.sh's warn_
34541         Reported by Jim Meyering.
34542         * build-aux/bootstrap (warn): Remove, replaced by...
34543         (warnf_, warn_): these.
34544         Adjust callers.
34545         Shorten messages that no longer fit in 80 columns.
34547 2012-07-09  Bruno Haible  <bruno@clisp.org>
34549         getopt: Simplify after Emacs changed.
34550         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
34551         (gl_GETOPT_IFELSE): Remove macro.
34553 2012-07-09  Jim Meyering  <meyering@redhat.com>
34555         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
34556         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
34558         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
34559         Bugs in both of those conspired to make the
34560         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
34561         _sc_search_regexp's handling of non-empty $in_files would filter
34562         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
34563         choice of in_files value meant there would be no match in most
34564         projects, due to the presence of two or more Makefile.in files.
34565         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
34566         Fix a bug in how a non-empty $$in_files was processed:
34567         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
34568         in spite of the name, it's a regexp, not a list of file names.
34570 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34572         getloadavg, getopt: fix commentary re configure.in
34573         Autoconf is deprecating the name 'configure.in', so change it to
34574         to the new name 'configure.ac' in a couple of places.
34575         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
34576         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
34577         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
34578         Emacs has renamed it to configure.ac, and it no longer refers
34579         to these macros anyway.
34581         timespec: mark functions with const attributes
34582         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
34583         Mark with _GL_ATTRIBUTE_CONST.
34585 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
34587         canonicalize[-lgpl]: handle "guessing" values when cross-building
34588         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34589         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
34590         matches "*yes" instead of just "yes".  Regression introduced in commit
34591         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
34593 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
34594             Bruno Haible  <bruno@clisp.org>
34596         canonicalize: make the right guess when cross-compiling to GNU
34597         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
34598         determine whether cross-compiling to glibc systems, so as to
34599         include GNU/Hurd.
34601 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
34603         timespec-sub: avoid duplicate include
34604         * lib/timespec-sub.c: Do not include <config.h> twice.
34605         Reported by Juanma Barranquero.
34607 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
34609         bootstrap: use a more consistent error reporting scheme
34610         * build-aux/bootstrap (warn, die): New.
34611         Use them.
34613 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
34615         sys_time: allow too-wide tv_sec
34616         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
34617         timeval even if tv_sec is wider than time_t.  This allows
34618         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
34619         as without this patch gnulib replaces struct timeval
34620         and OpenBSD futimes therefore has a type mismatch.
34621         * doc/posix-headers/sys_time.texi: Mention this.
34623         pthread: check for both pthread_create and pthread_join
34624         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
34625         alter the check so that it tests for both pthread_create and
34626         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
34627         Suggested by Bruno Haible and Richard Yao in
34628         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
34630         parse-datetime: doc tuneup
34631         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
34632         spacing issues.
34634 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
34636         do-release-commit-and-tag: fix the previous commit
34637         * build-aux/do-release-commit-and-tag: Actually the test was right,
34638         but the comment and the error message were misleading.
34639         Fix comment, and improve error message.
34640         Perform check first, so that NEWS is not modified uselessly.
34642         do-release-commit-and-tag: fix typo
34643         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
34644         _not_ start with a stub.
34646 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
34648         pthread: check for pthread_create, not pthread_join
34649         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
34650         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
34651         pthread_join in libc.  I hope this removes the need for all the
34652         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
34653         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
34655 2012-07-04  Jim Meyering  <meyering@redhat.com>
34657         parse-datetime: fix failure to diagnose invalid input
34658         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
34659         rather than diagnosing the invalid input.  Now it reports this:
34660         date: invalid date '\260'
34661         * lib/parse-datetime.y (to_uchar): Define.
34662         (yylex): Don't sign-extend "other" bytes.
34663         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
34664         Thanks to Bruno Haible for the patch to this file.
34665         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
34666         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
34668 2012-07-03  Jim Meyering  <meyering@redhat.com>
34670         bootstrap: do not require now-removed build-aux/missing
34671         Now that build-aux/missing is, er, missing, bootstrap would
34672         silently fail.
34673         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
34674         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
34675         no longer part of gnulib.
34676         Diagnose the failure.
34678 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
34680         alloca: add support for HP NonStop TNS/E native
34681         * lib/alloca.in.h (alloca): Support the new host.
34682         From a suggestion by Joachim Schmitz in
34683         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
34685 2012-07-02  Pádraig Brady  <P@draigBrady.com>
34687         fsusage: remove code not needed on non GNU/Linux systems.
34689         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
34690         Don't include headers no longer needed in this case.
34691         * lib/fsusage.c [STAT_STATVFS &&
34692         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
34693         STAT_STATFS2_FRSIZE to exclude code not used in this case.
34695 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
34697         fsusage: include files needed for glibc 2.6 fallback
34698         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
34699         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
34700         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
34701         Problem reported by Ludovic Courtès in
34702         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
34704         fsusage: avoid needless check on GNU/Linux
34705         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
34706         on GNU/Linux systems, since it can't possibly work.
34708 2012-07-01  Bruno Haible  <bruno@clisp.org>
34710         log: Fix an autoconf >= 2.64 warning.
34711         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
34712         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
34714 2012-06-28  Bruno Haible  <bruno@clisp.org>
34716         log10f: Fix possible configuration problem.
34717         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
34718         $LOGF_LIBM.
34719         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
34721 2012-06-28  Bruno Haible  <bruno@clisp.org>
34723         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
34724         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
34725         not gl_cv_func_unlink_works.
34726         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
34728 2012-06-27  Eric Blake  <eblake@redhat.com>
34730         config: drop scripts that automake says are not independent
34731         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
34732         * build-aux/elisp-comp: Delete.
34733         * build-aux/missing: Likewise.
34734         * build-aux/ylwrap: Likewise.
34735         * modules/elisp-comp: Likewise.
34736         * MODULES.html.sh: Drop mention of elisp-comp.
34737         * NEWS: Mention this.
34739 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
34741         root-uid: new module
34742         This is for portability to Tandem's NonStop Kernel.
34743         * lib/root-uid.h, modules/root-uid: New files.
34744         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
34745         * lib/write-any-file.c, tests/test-sethostname2.c:
34746         Include "root-uid.h".
34747         * lib/euidaccess.c (euidaccess):
34748         * lib/pt_chown.c (main):
34749         * lib/unlinkdir.c (cannot_unlink_dir):
34750         * lib/write-any-file.c (can_write_any_file):
34751         * m4/mknod.m4 (gl_FUNC_MKNOD):
34752         * tests/test-sethostname2.c (geteuid, main):
34753         Don't assume ROOT_UID == 0.
34754         * modules/euidaccess (Depends-on):
34755         * modules/pt_chown (Depends-on):
34756         * modules/sethostname-tests (Depends-on):
34757         * modules/unlinkdir (Depends-on):
34758         * modules/write-any-file (Depends-on):
34759         Add root-uid.
34761         regex: use locale-independent comparison for codeset name
34762         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
34763         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
34764         for codeset name.
34765         * lib/regex_internal.h: Do not include <strings.h>, since we
34766         no longer use strcasecmp.
34767         * modules/regex (Depends-on): Remove strcase.
34769 2012-06-23  Bruno Haible  <bruno@clisp.org>
34771         getopt-posix: No longer guarantee that option processing is resettable.
34772         * doc/posix-functions/getopt.texi: Drop description of problem with
34773         internal state. Fix info about mingw and msvc9.
34774         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
34775         option processing by getopt(). Run three test programs instead of one.
34776         Simplify cross-compilation guess.
34777         * NEWS: Mention the change.
34778         Reported by Rich Felker <dalias@aerifal.cx>.
34780 2012-06-26  Bruno Haible  <bruno@clisp.org>
34782         argp, regex: Ensure strcasecmp gets declared.
34783         * lib/argp-help.c: Include <strings.h>.
34784         * lib/regex_internal.h: Likewise.
34785         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
34787 2012-06-24  Bruno Haible  <bruno@clisp.org>
34789         ptsname_r: Make it consistent with ptsname on AIX.
34790         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
34791         implementation as for OSF/1.
34792         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
34793         a pty master.
34795         ptsname_r: Make it consistent with ptsname on OSF/1.
34796         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
34797         OSF/1.
34799 2012-06-24  Bruno Haible  <bruno@clisp.org>
34801         ttyname_r: Fix result on OSF/1, Solaris.
34802         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
34804 2012-06-24  Bruno Haible  <bruno@clisp.org>
34806         ptsname_r: Add support for Solaris.
34807         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
34808         Solaris.
34810         ptsname_r: Fix test failure on native Windows.
34811         * modules/ptsname_r (Depends-on): Add isatty.
34813         ptsname_r: Fix test failures on IRIX, Solaris.
34814         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
34815         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
34816         accordingly.
34817         * lib/ptsname_r.c: Include <fcntl.h>.
34818         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
34819         set errno if fd is invalid.
34820         * tests/test-isatty.c (main): Update comments.
34822 2012-06-24  Bruno Haible  <bruno@clisp.org>
34824         ptsname test: Extend test.
34825         * tests/test-ptsname.c: Include <errno.h>.
34826         (main): Test behaviour with invalid file descriptor.
34828 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
34830         time: fix obsolete comment
34831         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
34832         reference to HAVE_STRUCT_TIMESPEC in comment.
34834 2012-06-23  Bruno Haible  <bruno@clisp.org>
34836         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
34837         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
34838         does not handle abbreviated long options with equivalent
34839         disambiguations, set gl_replace_getopt to yes.
34840         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
34842 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
34844         time_r: fix typo that always overrode localtime_r decl
34845         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
34846         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
34847         not in a standard include.
34849 2012-06-22  Bruno Haible  <bruno@clisp.org>
34851         Write "Mac OS X" instead of "MacOS X".
34852         * README: Write "Mac OS X" instead of "MacOS X".
34853         * build-aux/bootstrap: Likewise.
34854         * build-aux/install-reloc: Likewise.
34855         * lib/acl-internal.h: Likewise.
34856         * lib/acl_entries.c: Likewise.
34857         * lib/argp-ba.c: Likewise.
34858         * lib/argp-pv.c: Likewise.
34859         * lib/config.charset: Likewise.
34860         * lib/copy-acl.c: Likewise.
34861         * lib/csharpexec.c: Likewise.
34862         * lib/euidaccess.c: Likewise.
34863         * lib/fbufmode.c: Likewise.
34864         * lib/fflush.c: Likewise.
34865         * lib/file-has-acl.c: Likewise.
34866         * lib/filemode.h: Likewise.
34867         * lib/fpurge.c: Likewise.
34868         * lib/freadable.c: Likewise.
34869         * lib/freadahead.c: Likewise.
34870         * lib/freading.c: Likewise.
34871         * lib/freadptr.c: Likewise.
34872         * lib/freadseek.c: Likewise.
34873         * lib/fseeko.c: Likewise.
34874         * lib/fseterr.c: Likewise.
34875         * lib/fsusage.c: Likewise.
34876         * lib/fwritable.c: Likewise.
34877         * lib/fwriting.c: Likewise.
34878         * lib/get-rusage-as.c: Likewise.
34879         * lib/get-rusage-data.c: Likewise.
34880         * lib/getdomainname.c: Likewise.
34881         * lib/idpriv-drop.c: Likewise.
34882         * lib/idpriv-droptemp.c: Likewise.
34883         * lib/localcharset.c: Likewise.
34884         * lib/locale.in.h: Likewise.
34885         * lib/localename.c: Likewise.
34886         * lib/mbsrtowcs-state.c: Likewise.
34887         * lib/nproc.c: Likewise.
34888         * lib/passfd.c: Likewise.
34889         * lib/posix_openpt.c: Likewise.
34890         * lib/printf-parse.c: Likewise.
34891         * lib/progreloc.c: Likewise.
34892         * lib/safe-read.h: Likewise.
34893         * lib/safe-write.h: Likewise.
34894         * lib/sched.in.h: Likewise.
34895         * lib/set-mode-acl.c: Likewise.
34896         * lib/signal.in.h: Likewise.
34897         * lib/stdint.in.h: Likewise.
34898         * lib/stdio-impl.h: Likewise.
34899         * lib/stdlib.in.h: Likewise.
34900         * lib/strtod.c: Likewise.
34901         * lib/sys_select.in.h: Likewise.
34902         * lib/tcgetsid.c: Likewise.
34903         * lib/unistd.in.h: Likewise.
34904         * lib/unlockpt.c: Likewise.
34905         * lib/vasnprintf.c: Likewise.
34906         * lib/vma-iter.c: Likewise.
34907         * lib/wcsrtombs-state.c: Likewise.
34908         * m4/acl.m4: Likewise.
34909         * m4/acosl.m4: Likewise.
34910         * m4/asinl.m4: Likewise.
34911         * m4/atanl.m4: Likewise.
34912         * m4/c-stack.m4: Likewise.
34913         * m4/cosl.m4: Likewise.
34914         * m4/expl.m4: Likewise.
34915         * m4/extensions.m4: Likewise.
34916         * m4/fdatasync.m4: Likewise.
34917         * m4/fmal.m4: Likewise.
34918         * m4/frexp.m4: Likewise.
34919         * m4/frexpf.m4: Likewise.
34920         * m4/frexpl.m4: Likewise.
34921         * m4/fsusage.m4: Likewise.
34922         * m4/getdomainname.m4: Likewise.
34923         * m4/getloadavg.m4: Likewise.
34924         * m4/getopt.m4: Likewise.
34925         * m4/gettext.m4: Likewise.
34926         * m4/gnulib-common.m4: Likewise.
34927         * m4/intdiv0.m4: Likewise.
34928         * m4/intlmacosx.m4: Likewise.
34929         * m4/largefile.m4: Likewise.
34930         * m4/ldexpl.m4: Likewise.
34931         * m4/link-follow.m4: Likewise.
34932         * m4/locale-ar.m4: Likewise.
34933         * m4/locale-fr.m4: Likewise.
34934         * m4/locale-ja.m4: Likewise.
34935         * m4/locale-tr.m4: Likewise.
34936         * m4/locale-zh.m4: Likewise.
34937         * m4/locale_h.m4: Likewise.
34938         * m4/lock.m4: Likewise.
34939         * m4/logl.m4: Likewise.
34940         * m4/mathfunc.m4: Likewise.
34941         * m4/minus-zero.m4: Likewise.
34942         * m4/mktime.m4: Likewise.
34943         * m4/mmap-anon.m4: Likewise.
34944         * m4/multiarch.m4: Likewise.
34945         * m4/nanosleep.m4: Likewise.
34946         * m4/nocrash.m4: Likewise.
34947         * m4/poll.m4: Likewise.
34948         * m4/printf-frexpl.m4: Likewise.
34949         * m4/printf.m4: Likewise.
34950         * m4/signbit.m4: Likewise.
34951         * m4/sinl.m4: Likewise.
34952         * m4/sqrtl.m4: Likewise.
34953         * m4/strerror_r.m4: Likewise.
34954         * m4/tanl.m4: Likewise.
34955         * m4/threadlib.m4: Likewise.
34956         * m4/ttyname_r.m4: Likewise.
34957         * m4/unlink.m4: Likewise.
34958         * m4/visibility.m4: Likewise.
34959         * m4/wcwidth.m4: Likewise.
34960         * tests/minus-zero.h: Likewise.
34961         * tests/test-alloca-opt.c: Likewise.
34962         * tests/test-copy-acl.sh: Likewise.
34963         * tests/test-copy-file.sh: Likewise.
34964         * tests/test-fdatasync.c: Likewise.
34965         * tests/test-file-has-acl.sh: Likewise.
34966         * tests/test-flock.c: Likewise.
34967         * tests/test-fsync.c: Likewise.
34968         * tests/test-localename.c: Likewise.
34969         * tests/test-malloca.c: Likewise.
34970         * tests/test-nonblocking-pipe.h: Likewise.
34971         * tests/test-nonblocking-socket.h: Likewise.
34972         * tests/test-openpty.c: Likewise.
34973         * tests/test-posix_openpt.c: Likewise.
34974         * tests/test-ptsname.c: Likewise.
34975         * tests/test-ptsname_r.c: Likewise.
34976         * tests/test-sameacls.c: Likewise.
34977         * tests/test-select.h: Likewise.
34978         * tests/test-set-mode-acl.sh: Likewise.
34979         * tests/test-snprintf-posix.h: Likewise.
34980         * tests/test-sprintf-posix.h: Likewise.
34981         * tests/test-strtod.c: Likewise.
34982         * tests/test-time.c: Likewise.
34983         * tests/test-vasnprintf-posix.c: Likewise.
34984         * tests/test-vasprintf-posix.c: Likewise.
34985         * doc/acl-resources.txt: Likewise.
34986         * doc/**/*.texi: Likewise.
34987         Reported by Max Horn <max@quendi.de>.
34989 2012-06-22  Bruno Haible  <bruno@clisp.org>
34991         grantpt: Relax requirement regarding invalid file descriptors.
34992         * lib/grantpt.c: Don't include <fcntl.h>.
34993         (grantpt): Don't verify the validity of the file descriptor.
34994         * modules/grantpt (Depends-on): Remove fcntl-h.
34995         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
34996         file descriptors.
34997         * doc/posix-functions/grantpt.texi: Document more platforms on which
34998         grantpt succeeds for invalid file descriptors.
34999         Reported by Rich Felker <dalias@aerifal.cx>.
35001 2012-06-22  Bruno Haible  <bruno@clisp.org>
35003         fbufmode test: Don't test unportable behaviour.
35004         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
35005         (main): Invoke it three times.
35006         Reported by Szabolcs Nagy <nsz@port70.net>
35007         and Rich Felker <dalias@aerifal.cx>.
35009 2012-06-21  Bruno Haible  <bruno@clisp.org>
35011         gnulib-tool: Refactor inctests variable.
35012         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
35013         (func_modules_transitive_closure,
35014         func_modules_transitive_closure_separately,
35015         func_import, func_create_testdir): Update.
35017         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
35018         * gnulib-tool: Accept option --without-tests.
35019         (func_usage): Document --without-tests option. Rearrange.
35020         (inctests): Normalize according to the mode.
35021         * NEWS: Mention the change.
35022         Suggested by Simon Josefsson.
35024 2012-06-21  Bruce Korb  <bkorb@gnu.org>
35026         parse-duration test: Avoid spurious output.
35027         * tests/test-parse-duration.sh: Reindent with leading tabs.
35029 2012-06-21  Jim Meyering  <meyering@redhat.com>
35031         maint: disable the strncpy prohibition
35032         * cfg.mk: Do not prohibit strncpy here.
35034 2012-06-21  Bruno Haible  <bruno@clisp.org>
35036         nonblocking: Avoid compilation error on mingw64.
35037         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
35038         fscanf.
35039         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
35040         * modules/vfscanf (configure.ac): Likewise.
35041         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
35042         definition only if stdio.h has prepared it.
35043         Reported by Daniel P. Berrange <berrange@redhat.com>.
35045 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
35047         gnulib-tool: Use readlink if it is available.
35048         * gnulib-tool (func_readlink): Choose function more appropriately.
35050 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
35052         posixtm-tests: port to buggy compiler
35053         Problem reported by Simon Josefsson in
35054         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
35055         * modules/posixtm-tests (Depends-on): Add stdint.
35056         * tests/test-posixtm.c (struct posixtm_test.t_expected):
35057         Now of type int_least64_t, not int64_t, both because that's
35058         what INT64_C returns and because int_least64_t works even
35059         on 72-bit hosts.
35060         (T): Use INT64_C on constants outside the traditional int range,
35061         to work around compiler bug noted by Simon.
35063         mktime: fix integer overflow in 'configure'-time test
35064         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
35065         after integer overflow.  Problem reported by Rich Felker in
35066         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
35067         Also, don't look for further instances of a bug if we've already
35068         found one instance; this helps 'configure' run faster.
35070 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
35072         tmpfile, clean-temp: Fix invocation of GetVersionEx.
35073         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
35074         GetVersionEx correctly.
35075         * lib/clean-temp.c (supports_delete_on_close): Likewise.
35077 2012-06-20  Bruno Haible  <bruno@clisp.org>
35079         fdopen: Allow implementations that don't reject invalid fd arguments.
35080         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
35081         succeeds.
35082         Reported by Rich Felker <dalias@aerifal.cx>.
35084 2012-06-20  Simon Josefsson  <simon@josefsson.org>
35086         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
35087         bring in LIBINTL.
35089 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
35091         init.sh: do not rely on autoupated PWD
35092         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
35093         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
35094         Although Nelson's bug was not necessarily fixed by this patch,
35095         it seems wise to make the change for safety.
35096         * tests/init.sh (path_prepend_): Do not rely on PWD updating
35097         automagically after 'cd'; this is not reliable on older shells.
35098         (setup_): Fail if we cannot cd to temporary directory.
35100 2012-06-19  Bruno Haible  <bruno@clisp.org>
35102         stat, fstat: Avoid warnings on mingw64.
35103         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
35104         redefining.
35105         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
35106         Reported by Daniel P. Berrange <berrange@redhat.com>.
35108 2012-06-19  Bruno Haible  <bruno@clisp.org>
35110         stdioext: Add support for musl libc.
35112         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
35113         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
35115         * m4/fseterr.m4: New file.
35116         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
35117         function exists.
35118         * modules/fseterr (Files): Add m4/fseterr.m4.
35119         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
35120         __fseterr does not exist.
35121         (Makefile.am): Remove fseterr.c from lib_SOURCES.
35123         * lib/freadable.h: Update comment.
35125         * lib/fwritable.h: Update comment.
35127         * lib/freading.h: Update comment.
35129         * lib/fwriting.h: Update comment.
35131         * m4/freadahead.m4: New file.
35132         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
35133         that function exists.
35134         * modules/freadahead (Files): Add m4/freadahead.m4.
35135         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
35136         __freadahead does not exist.
35137         (Makefile.am): Remove freadahead.c from lib_SOURCES.
35139         * m4/freadptr.m4: New file.
35140         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
35141         function exists.
35142         * modules/freadptr (Files): Add m4/freadptr.m4.
35143         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
35144         __freadptr does not exist.
35145         (Makefile.am): Remove freadptr.c from lib_SOURCES.
35147         * m4/freadseek.m4: New file.
35148         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
35149         exists.
35150         * modules/freadseek (Files): Add m4/freadseek.m4.
35151         (configure.ac): Invoke gl_FUNC_FREADSEEK.
35153         * lib/fpurge.c (fpurge): Update comment.
35155         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
35157 2012-06-19  Bruno Haible  <bruno@clisp.org>
35159         *printf-posix: Put more info into config.log.
35160         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
35161         exit code into config.log.
35163 2012-06-19  Bruno Haible  <bruno@clisp.org>
35165         getopt-gnu: Fix exit code overflow in autoconf test.
35166         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
35167         to keep them below < 128.
35169 2012-06-17  Jim Meyering  <meyering@redhat.com>
35171         maint.mk: fix typo in code to derive GPG key at release time
35172         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
35174 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
35176         regex: avoid warning when pointers are not long
35177         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
35178         and uintptr_t, not long, for portability to hosts where pointers and
35179         long have different sizes.  Issue noted by Daniel P. Berrange in
35180         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
35181         and fix suggested by Bruno Haible in
35182         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
35184 2012-06-17  Bruno Haible  <bruno@clisp.org>
35186         dummy: Relicense into the public domain.
35187         * modules/dummy (License): Set to "public domain".
35188         Suggested by Reuben Thomas.
35190 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
35192         announce-gen: VPATH issues
35193         * build-aux/announce-gen (--srcdir): New option, used to trim the
35194         $srcdir part of the path from $builddir to NEWS.
35195         * top/maint.mk (announcement): Adjust.
35197 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
35199         gnu-web-doc-update: VPATH builds
35200         * build-aux/gnu-web-doc-update (--builddir): New option.
35201         Revamp the handling of options.
35202         Prefer $(...) to `...`.
35203         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
35204         the template, and it is GNU mktemp specific.
35205         Prefer set -e to long series of &&.
35206         Restore the initial git branch, not "master".
35207         Properly initialize submodules (don't rely only on bootstrap).
35208         Do not reconfigure blindly, use config.status.
35209         * top/README-release: Update instructions for gnu-web-doc-update.
35211 2012-06-11  Jim Meyering  <meyering@redhat.com>
35213         maint.mk: revert most of the previous change re "all these"
35214         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
35215         For rationale, see the discussion at
35216         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
35218 2012-06-10  Karl Berry  <karl@gnu.org>
35220         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
35222         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
35224 2012-06-10  Bruce Korb  <bkorb@gnu.org>
35226         parse-duration: Relicense under LGPLv2+.
35227         * modules/parse-duration (License): Change to LGPLv2+.
35229 2012-06-10  Jim Meyering  <meyering@redhat.com>
35231         maint.mk: prohibit common grammar error: "all these"
35232         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
35233         the list of prohibited word sequences.  It should be "all of these".
35234         * lib/tempname.c (__gen_tempname): Fix one of them.
35236 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
35238         do-release-commit-and-tag: support VPATH builds
35239         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
35240         (noteworthy): Defined earlier to factor its value.
35241         (noteworthy_stub): New.
35242         Use it to factor.
35243         (help_version): Split into...
35244         (help, version): these.
35245         Adjust the option processing part.
35246         Support "--option=value" in addition to "--option value".
35247         (builddir): New.
35248         (--builddir): New option.
35249         * top/README-release: Document this.
35250         Reword slightly so that the reader cannot understand that he
35251         has to do these steps before calling do-release-commit-and-tag.
35253 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
35255         readme-release: also require announce-gen and maintainer-makefile
35256         * modules/readme-release (Depends-on): here.
35257         * modules/announce-gen, modules/do-release-commit-and-tag,
35258         modules/gnu-web-doc-update, modules/maintainer-makefile
35259         (Description): Point to readme-release.
35261 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
35263         maint.mk: fix VPATH issues.
35264         * top/maint.mk (news-check): GNU Make understand $< very well.
35265         (release-prep): NEWS is in $(srcdir).
35267 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
35269         readme-release: require the promoted modules.
35270         * modules/readme-release (Depends-on): Add
35271         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
35272         in this text.
35274 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
35275             Bruno Haible  <bruno@clisp.org>
35277         error, strerror-override: Support mingw64 from Fedora 17.
35278         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
35279         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
35280         EINPROGRESS.
35281         * lib/strerror-override.h (strerror_override): Test it.
35282         * lib/strerror-override.c (strerror_override): Likewise.
35283         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
35285 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
35286             Bruno Haible  <bruno@clisp.org>
35288         error, strerror-override: Support mingw64 from Fedora 17.
35289         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
35290         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
35291         * lib/strerror-override.h (strerror_override): Test it.
35292         * lib/strerror-override.c (strerror_override): Likewise.
35294 2012-06-03  Bruno Haible  <bruno@clisp.org>
35296         error, strerror-override: Support new errno values from POSIX:2008.
35297         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
35298         ENOTRECOVERABLE.
35299         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
35300         platforms.
35301         * lib/strerror-override.c (strerror_override): Conditionalize the
35302         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
35303         * lib/strerror-override.h (strerror_override): Declare also if
35304         GNULIB_defined_EOWNERDEAD is defined.
35305         * tests/test-errno.c (e130, e131): New variables.
35306         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
35307         ENOTRECOVERABLE.
35308         Reported by Paolo Bonzini.
35310 2012-05-31  Jim Meyering  <meyering@redhat.com>
35312         savewd: add missing dependency on sys_wait module
35313         * modules/savewd (Depends-on): Add sys_wait, needed at least
35314         for MSVC.  Report and suggested change by Michael Goffioul.
35316 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
35318         system-quote-tests: port to CentOS 5
35319         Problem reported by Tom G. Christensen in
35320         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
35321         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
35323 2012-05-29  Jim Meyering  <meyering@redhat.com>
35325         maint: fix typos in comments and ChangeLog
35326         Culprits identified and fixed mostly automatically using these commands:
35327         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
35328         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
35329         using http://github.com/lyda/misspell-check
35330         * ChangeLog: Fix typos.
35331         * doc/solaris-versions: Likewise.
35332         * lib/regexec.c (re_search_stub): Likewise.
35333         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
35335 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
35337         manywarnings: remove duplicate -Wmultichar entry
35338         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
35339         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
35340         so keep the entry marked as documented.
35342 2012-05-27  Karl Berry  <karl@gnu.org>
35344         * config/srclist.txt (mktime.c): remove last libc sync,
35345         perhaps just temporarily.
35347 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
35349         regex: don't assume uint64_t or uint32_t
35350         * lib/regcomp.c (init_word_char): Don't assume that the types
35351         uint64_t and uint32_t exist.  The C standard doesn't guarantee
35352         them, and on some 32-bit compilers there is no uint64_t.
35353         Problem reported by Gianluigi Tiesi in
35354         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
35356 2012-05-25  Jim Meyering  <meyering@redhat.com>
35358         maint.mk: add strncpy-prohibiting syntax-check rule
35359         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
35361 2012-05-24  Jim Meyering  <meyering@redhat.com>
35363         maint.mk: compute $(gpg_key_ID) more portably
35364         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
35365         That use of sed is not portable to some fringe systems.
35366         Reported by Paul Eggert in
35367         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
35369 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
35371         mktime: sync from glibc
35372         * config/srclist.txt: Uncomment mktime.c.
35373         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
35374         First, indent with tabs, since glibc uses tabs and doesn't want to
35375         change and we'd rather be identical to glibc.  Also, two small
35376         coding changes:
35377         (isdst_differ): Use &&, not &, as && is the usual style.
35378         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
35379         for clarity.
35381 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
35383         announce-gen: du -h is more portable than du --human
35384         * build-aux/announce-gen (sizes): Invoke du with -h instead
35385         of --human.  Accept leading white space in its output.
35387 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
35389         announce-gen: Improve diagnostics.
35390         * build-aux/announce-gen: When parsing command line options,
35391         prefer "announce-gen: option --release-type requires an argument"
35392         to "Option release-type requires an argument".
35394 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
35396         maint.mk: gpg_key_ID: use sed more portably
35397         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
35398         the closing brace.
35399         (refresh-po): Fuse two sed invocations into one.
35401 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
35403         gitlog-to-changelog: support the log message format used in Bison.
35404         * build-aux/gitlog-to-changelog: Support --strip-tab and
35405         --strip-cherry-picked.
35407 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
35409         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
35410         the rest of the current time slice to another thread in the current
35411         process. So if the thread that feeds the file decscriptor we're
35412         polling is not in the current process, we get busy-waiting.
35413         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
35414         Patch from Theodore Leblond.
35415         * lib/select.c: Split polling out of the loop that sets the output
35416         fd_sets.  Check for zero result and loop if the wait timeout is
35417         infinite.
35419 2012-05-21  Simon Josefsson  <simon@josefsson.org>
35421         select: Fix build error on IRIX 6.5.
35422         * lib/select.c: Include stddef.h for NULL.
35424 2012-05-21  Simon Josefsson  <simon@josefsson.org>
35426         gc: fix libgcrypt detection on older machines.
35427         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
35428         copyright years because the file has been distributed every year
35429         since it was created.
35431 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
35433         crypto: fix bug in large buffer handling
35434         Problem reported by Serge Belyshev for glibc in
35435         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
35436         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
35437         * lib/md4.c (md4_process_block):
35438         * lib/md5.c (md5_process_block):
35439         * lib/sha1.c (sha1_process_block):
35440         * lib/sha256.c (sha256_process_block):
35441         Don't assume the buffer length is less than 2**32.
35442         * lib/sha512.c (sha512_process_block): Likewise.
35443         Here, the bug is present only in the rare case where the host does
35444         not support uint64_t or where size_t is wider than 64 bits.
35445         Use u64size to work around the problems.
35446         * lib/u64.h (u64size): New macro.
35448 2012-05-15  Pádraig Brady  <P@draigBrady.com>
35450         fsusage: fix block size returned on older Linux 2.6
35452         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
35453         which is available since Linux 2.6.
35454         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
35455         when the member is available so it can be used as a fallback.
35456         * doc/posix-functions/statvfs.texi: Mention the hang issue
35457         on Linux < 2.6.36.
35459 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
35461         bootstrap: suppress stderr chatter
35462         * build-aux/bootstrap (insert_sorted_if_absent, main program):
35463         Omit unnecessary chatter to stderr.  The main program chatter
35464         was there only inadvertantly.
35466         bootstrap: .gitignore files created by autopoint, libtool
35467         I ran into this problem when bootstrapping the latest diffutils.
35468         After './bootstrap', 'git status' reported lots of untracked files
35469         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
35470         autopoint and do not need to be version-controlled.
35471         * build-aux/bootstrap: Put into .gitignore the files that
35472         autopoint and libtool create, by keeping track of files that exist
35473         after but not before these programs are run.
35474         (version_controlled_file): Move up.  2nd arg is now full file
35475         name, not base name; this is more convenient.  Put CVS at the end,
35476         as it's now somewhat deprecated.
35478 2012-05-14  Jim Meyering  <meyering@redhat.com>
35480         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
35481         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
35482         definition.  Reported by Bruno Haible.
35484 2012-05-13  Bruno Haible  <bruno@clisp.org>
35485             Paul Eggert  <eggert@cs.ucla.edu>
35487         binary-io: Define set_binary_mode function.
35488         * lib/binary-io.h (set_binary_mode): New function.
35489         (SET_BINARY): Define in terms of set_binary_mode.
35490         * modules/binary-io (configure.ac): Require AC_C_INLINE.
35491         * tests/test-binary-io.c (main): Accept an argument, and test either
35492         set_binary_mode or SET_BINARY depending on the argument.
35493         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
35494         argument. Clean up also t-bin-out0.tmp.
35496 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
35498         bootstrap: take advantage of POSIX shell features
35500         The 'bootstrap' script offered by Gnulib script already uses POSIX
35501         shell features (like $((...)) arithmetic expansions) that are not
35502         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
35503         means that bootstrap must already be run using a proper POSIX shell,
35504         which will thus provide more features, like ${var#pattern} parameter
35505         expansion or inversion of a command exit status with '!'.  We can
35506         thus use these features to improve the clarity and the performances
35507         of the bootstrap script.
35509         Suggested by Eric Blake.
35511         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
35512         of sed/expr plus command substitutions, to save some forks.  While
35513         we are at it, prefer the POSIX $(...) form of command substitution,
35514         rather than the legacy form `...` (since the former is visually
35515         clearer and interacts better with quoting), and prefer the idiom:
35516           "if ! CMD; then ACTION ..."
35517         over the idiom:
35518           "if CMD; then :; else ACTION ..."
35519         which was required by legacy Bourne shells not supporting '!'.
35521 2012-05-12  Bruno Haible  <bruno@clisp.org>
35523         system-quote: Add more comments.
35524         * lib/system-quote.h: Add more comments about wilcards and limitations.
35525         Suggested by Eli Zaretskii <eliz@gnu.org>.
35527         sh-quote, system-quote: Add comments about wildcards.
35528         * lib/sh-quote.h: Clarify what happens with wildcard characters.
35529         * lib/system-quote.h: Likewise.
35530         Reported by Eli Zaretskii <eliz@gnu.org>.
35532 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
35534         fsusage: check for GNU/Linux statvfs problem dynamically
35535         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
35536         Define STAT_STATFS2_BSIZE too, since in this case the code now
35537         checks dynamically whether statvfs is reliable, falling back on
35538         Linux-style statfs otherwise.
35539         (statvfs_works): New function, for dynamically testing statvfs.
35540         (get_fs_usage) [STAT_STATVFS]: Use it.
35541         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
35542         statvfs on GNU/Linux hosts, since it's now done dynamically.
35544 2012-05-10  Bruno Haible  <bruno@clisp.org>
35546         system-quote, execute, spawn-pipe: Escape '?' on Windows.
35547         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
35548         '?' character.
35549         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
35550         * tests/test-system-quote-main.c (check_all): Check also strings like
35551         "??????????".
35552         Reported by Eli Zaretskii <eliz@gnu.org>.
35554 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
35556         _Noreturn: port config.h to gcc -Wundef
35557         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
35558         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
35559         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
35561 2012-05-10  Bruno Haible  <bruno@clisp.org>
35563         system-quote: Refactor.
35564         * lib/system-quote.h (system_quote_copy): Fix comment.
35565         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
35566         New functions, extracted from system_quote_copy.
35567         (system_quote_length, system_quote_copy): Use these functions.
35568         Reported by Paul Eggert.
35570 2012-05-08  Bruno Haible  <bruno@clisp.org>
35572         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
35573         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
35575 2012-05-08  Bruno Haible  <bruno@clisp.org>
35577         Tests for module 'system-quote'.
35578         * modules/system-quote-tests: New file.
35579         * tests/test-system-quote.sh: New file.
35580         * tests/test-system-quote-main.c: New file.
35581         * tests/test-system-quote-child.c: New file.
35583         New module 'system-quote'.
35584         * lib/system-quote.h: New file.
35585         * lib/system-quote.c: New file.
35586         * modules/system-quote: New file.
35588 2012-05-08  Bruno Haible  <bruno@clisp.org>
35590         sh-quote: Make C++ safe and allow multiple inclusion.
35591         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
35592         declarations in extern "C".
35594 2012-05-08  Bruno Haible  <bruno@clisp.org>
35596         sh-quote tests: Make tests stricter.
35597         * tests/test-sh-quote.c (check_one): Check the return value of
35598         shell_quote_copy.
35599         (main): Check a string with a CR character. Check a string that
35600         contains UCHAR_MAX.
35602 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
35604         warnings.m4: provide a means to specify the program to compile.
35605         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
35606         (gl_WARN_ADD): here.
35607         Use gl_AS_VAR_APPEND.
35608         Support an argument to specify the program to compile.
35609         (gl_WARN_ADD): Accept an argument to specify the program to compile.
35610         AC_SUBST the WARN_CFLAGS when they are used.
35611         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
35612         leave this to gl_WARN_ADD.
35614 2012-05-08  Eric Blake  <eblake@redhat.com>
35616         doc: recommendations on gettext version
35617         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
35618         choice between versions.
35619         * DEPENDENCIES (gettext): Cover both approaches.
35621 2012-05-08  Jim Meyering  <meyering@redhat.com>
35623         init.sh: explain why EXEEXT support uses aliases rather than functions
35624         * tests/init.sh: Add a comment.
35626         init.sh: don't let bash aliases interfere with tests
35627         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
35628         is bash.  This avoids problems for those who alias standard commands to
35629         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
35630         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
35632 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
35634         stdint: be more consistent with glibc, SunOS libc
35635         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
35636         (gl_int_fast16_t, gl_uint_fast16_t)
35637         (gl_int_fast32_t, gl_uint_fast32_t)
35638         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
35639         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
35640         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
35641         Be consistent with glibc by default, and with SunOS 5.10 and later
35642         if __sun is defined.  This lessens the likelihood of clashes if
35643         code compiled for older hosts is combined with code compiled for
35644         newer ones.  Problem reported by Niels Möller in
35645         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
35647 2012-05-07  Eric Blake  <eblake@redhat.com>
35649         isatty: relax license to LGPLv2+
35650         * modules/isatty (License): Relax license.
35652 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
35654         stat-size: comment fix
35655         * lib/stat-size.h: Remove obsolete comment about indenting.
35657 2012-05-06  Bruno Haible  <bruno@clisp.org>
35659         Tests for module 'sh-quote'.
35660         * modules/sh-quote-tests: New file.
35661         * tests/test-sh-quote.c: New file.
35663 2012-05-06  Bruno Haible  <bruno@clisp.org>
35665         sh-quote: Improve shell_quote_argv's signature.
35666         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
35667         * lib/sh-quote.c (shell_quote_argv): Likewise.
35669 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
35671         stdint: document issues with int_fast8_t etc.
35672         * doc/posix-headers/stdint.texi (stdint.h): Say that other
35673         stdint.h substitutes may define these types differently.  See
35674         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
35676 2012-05-05  Bruno Haible  <bruno@clisp.org>
35678         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
35679         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
35680         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
35681         or 'guessing no (mishandles large arguments)'.
35683 2012-05-05  Bruno Haible  <bruno@clisp.org>
35685         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
35686         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
35687         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
35688         set gl_cv_func_link_follows_symlink to "guessing no".
35690 2012-05-05  Bruno Haible  <bruno@clisp.org>
35692         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
35693         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
35694         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
35695         "guessing no".
35696         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
35698 2012-05-05  Bruno Haible  <bruno@clisp.org>
35700         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
35701         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
35702         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
35703         set gl_cv_struct_dirent_d_ino to "guessing yes".
35705 2012-05-05  Bruno Haible  <bruno@clisp.org>
35707         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
35708         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
35709         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
35710         "guessing yes".
35712 2012-05-05  Bruno Haible  <bruno@clisp.org>
35714         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
35715         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
35716         compiling to a glibc system, set gl_cv_func_signbit and
35717         gl_cv_func_signbit_gcc to "guessing yes".
35719 2012-05-05  Bruno Haible  <bruno@clisp.org>
35721         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
35722         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
35723         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
35724         to "guessing yes".
35725         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
35726         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
35728 2012-05-05  Bruno Haible  <bruno@clisp.org>
35730         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
35731         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
35732         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
35733         gl_cv_func_realpath_works to "guessing yes".
35735 2012-05-05  Bruno Haible  <bruno@clisp.org>
35737         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
35738         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
35739         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
35741 2012-05-04  Bruno Haible  <bruno@clisp.org>
35743         Tweak last commit.
35744         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
35745         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
35747 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
35749         unistd_h: make it easier to avoid sys_types_h
35750         This is useful for Emacs, which has its own method of porting to
35751         Windows, and which therefore does not need the sys_types_h module.
35752         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
35753         code moved here from gl_SYS_TYPES_H.
35754         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
35755         using the code directly.
35756         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
35757         gl_SYS_TYPES_H.
35758         * modules/sys_types (Files):
35759         * modules/unistd (Files): Add m4/off_t.m4.
35761 2012-05-03  Bruno Haible  <bruno@clisp.org>
35763         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
35764         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
35765         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
35766         "guessing yes" or "guessing no".
35767         (gl_FUNC_LSTAT): Update.
35768         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
35769         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
35770         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
35772 2012-05-03  Bruno Haible  <bruno@clisp.org>
35774         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
35775         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
35776         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
35777         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
35778         cross-compiling, choose the first alternative on glibc systems.
35779         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
35781 2012-05-03  Bruno Haible  <bruno@clisp.org>
35783         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
35784         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
35785         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
35787 2012-05-03  Bruno Haible  <bruno@clisp.org>
35789         chown: Avoid "guessing no" when cross-compiling to glibc systems.
35790         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
35792 2012-05-03  Bruno Haible  <bruno@clisp.org>
35794         Avoid "guessing no" guesses when cross-compiling to glibc systems.
35795         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
35796         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
35797         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
35798         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
35799         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
35800         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
35801         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
35802         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
35803         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
35804         compiling to glibc systems, set gl_cv_func_chown_slash_works,
35805         gl_cv_func_chown_ctime_works to "guessing yes".
35806         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
35807         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
35808         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
35809         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
35810         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
35811         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
35812         compiling to glibc systems, set gl_cv_func_open_directory_works to
35813         "guessing yes".
35814         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
35815         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
35816         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
35817         "guessing yes".
35818         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
35819         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
35820         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
35821         compiling to glibc systems, set gl_cv_func_floorf_ieee to
35822         "guessing yes".
35823         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
35824         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
35825         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
35826         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
35827         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
35828         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
35829         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
35830         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
35831         "guessing yes".
35832         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
35833         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
35834         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
35835         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
35836         "guessing yes".
35837         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
35838         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
35839         "guessing yes".
35840         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
35841         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
35842         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
35843         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
35844         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
35845         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
35846         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
35847         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
35848         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
35849         compiling to glibc systems, set gl_cv_func_log10f_ieee to
35850         "guessing yes".
35851         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
35852         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
35853         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
35854         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
35855         "guessing yes".
35856         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
35857         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
35858         "guessing yes".
35859         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
35860         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
35861         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
35862         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
35863         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
35864         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
35865         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
35866         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
35867         compiling to glibc systems, set gl_cv_func_mkfifo_works to
35868         "guessing yes".
35869         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
35870         compiling to glibc systems, set gl_cv_func_mknod_works to
35871         "guessing yes".
35872         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
35873         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
35874         "guessing yes".
35875         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
35876         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
35877         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
35878         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
35879         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
35880         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
35881         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
35882         compiling to glibc systems, set gl_cv_func_svid_putenv to
35883         "guessing yes".
35884         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
35885         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
35886         "guessing yes".
35887         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
35888         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
35889         "guessing yes".
35890         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
35891         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
35892         to "guessing yes".
35893         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
35894         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
35895         to "guessing yes".
35896         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
35897         compiling to glibc systems, set gl_cv_func_rmdir_works to
35898         "guessing yes".
35899         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
35900         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
35901         gl_cv_func_unlink_parent_fails to "guessing yes".
35902         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
35903         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
35904         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
35905         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
35906         gl_cv_func_rename_dest_works to "guessing yes".
35907         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
35908         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
35909         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
35910         compiling to glibc systems, set gl_cv_func_roundf_ieee to
35911         "guessing yes".
35912         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
35913         compiling to glibc systems, set gl_cv_func_roundl_ieee to
35914         "guessing yes".
35915         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
35916         compiling to glibc systems, set gl_cv_func_setenv_works to
35917         "guessing yes".
35918         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
35919         compiling to glibc systems, set gl_cv_func_unsetenv_works to
35920         "guessing yes".
35921         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
35922         compiling to glibc systems, set gl_cv_func_sleep_works to
35923         "guessing yes".
35924         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
35925         compiling to glibc systems, set gl_cv_func_stat_file_slash to
35926         "guessing yes".
35927         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
35928         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
35929         "guessing yes".
35930         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
35931         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
35932         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
35933         compiling to glibc systems, set gl_cv_func_truncf_ieee to
35934         "guessing yes".
35935         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
35936         compiling to glibc systems, set gl_cv_func_truncl_ieee to
35937         "guessing yes".
35938         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
35939         compiling to glibc systems, set gl_cv_func_usleep_works to
35940         "guessing yes".
35941         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
35942         compiling to glibc systems, set gl_cv_func_futimesat_works to
35943         "guessing yes".
35945 2012-05-03  Bruno Haible  <bruno@clisp.org>
35947         Say "guessing yes" or "guessing no" when cross-compiling.
35948         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
35949         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
35950         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
35951         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
35952         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
35953         am_cv_func_working_getline to "guessing yes" or "guessing no".
35954         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
35955         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
35956         (gl_FUNC_MEMMEM): When cross-compiling, set
35957         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
35958         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
35959         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
35960         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
35961         set gl_cv_func_strcasestr_works_always to "guessing yes" or
35962         "guessing no".
35963         (gl_FUNC_STRCASESTR): When cross-compiling, set
35964         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
35965         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
35966         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
35967         (gl_FUNC_STRSTR): When cross-compiling, set
35968         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
35969         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
35970         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
35971         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
35972         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
35974 2012-05-01  Bruno Haible  <bruno@clisp.org>
35976         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
35977         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
35978         * build-aux/reloc-ldflags: Likewise.
35979         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
35981 2012-05-01  Bruno Haible  <bruno@clisp.org>
35983         gnulib-tool: Remove transitional code.
35984         * gnulib-tool: Don't warn about --import with 0 arguments any more.
35985         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
35987 2012-05-01  Bruno Haible  <bruno@clisp.org>
35989         getcwd: Fix misindentation.
35990         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
35992 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
35994         exclude: process exclude and include directives in order
35995         This restores the pre-2009 behavior, and is part of a fix of a
35996         grep bug reported by Quentin Arce in
35997         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
35998         * lib/exclude.c (struct exclude): Remove 'tail' member.
35999         (new_exclude_segment): Prepend the new segment instead of appending.
36000         Return void, since that's now more convenient.
36001         (file_pattern_matches): Renamed from excluded_file_pattern_p.
36002         (file_name_matches): Renamed from excluded_file_name_p.
36003         (file_pattern_matches, file_name_matches):
36004         Return true if the pattern matches, not if it excludes.
36005         All callers changed.
36006         (excluded_file_name): Process the list in reverse order;
36007         since the list is now reversed this restores the pre-2009 behavior.
36008         (add_exclude): Adjust to new reversed-order list.  Use local var
36009         rather than macro, for clarity.
36010         * tests/test-exclude7.sh: Adjust to corrected behavior.
36012         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
36013         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
36014         it's not possible here.  Handle the case of \ at end of pattern
36015         without dumping core.
36016         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
36018         _Noreturn: future-proof non-GNU and non-MSVC compilers
36019         * build-aux/snippet/_Noreturn.h (_Noreturn):
36020         * m4/gnulib-common.m4 (gl_COMMON_BODY):
36021         Do not define _Noreturn if __STDC_VERSION__ indicates this is
36022         C11 or later.  This is more likely to work with random future C
36023         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
36024         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
36026         exclude: handle wildcards with FNM_EXTMATCH
36027         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
36028         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
36029         comment that "has wildcards" really means "has or may have
36030         wildcards".  Simplify by avoiding the need to call strcspn.
36032 2012-04-29  Bruno Haible  <bruno@clisp.org>
36034         gnulib-tool: Fix list of authors.
36035         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
36037 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
36039         bootstrap: support Automake-NG in $buildreq
36040         * bootstrap (check_versions): Handle automake and aclocal from
36041         Automake-NG specially.  They can be specified as respectively
36042         the "automake-ng" and "aclocal-ng" requirements.
36044 2012-04-25  Eric Blake  <eblake@redhat.com>
36046         bootstrap: only force latest Makefile.in.in for gettext module
36047         * build-aux/bootstrap (with_gettext): Only install latest
36048         Makefile.in.in for projects requesting bleeding edge gettext.
36050 2012-04-22  Bruno Haible  <bruno@clisp.org>
36052         doc: Mention reason for replacement on glibc/Linux systems.
36053         * doc/posix-functions/dprintf.texi: Mention the problem with special
36054         'long double' values.
36055         * doc/posix-functions/fprintf.texi: Likewise.
36056         * doc/posix-functions/printf.texi: Likewise.
36057         * doc/posix-functions/snprintf.texi: Likewise.
36058         * doc/posix-functions/sprintf.texi: Likewise.
36059         * doc/posix-functions/vdprintf.texi: Likewise.
36060         * doc/posix-functions/vfprintf.texi: Likewise.
36061         * doc/posix-functions/vprintf.texi: Likewise.
36062         * doc/posix-functions/vsnprintf.texi: Likewise.
36063         * doc/posix-functions/vsprintf.texi: Likewise.
36064         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
36065         platforms with F_DUPFD_CLOEXEC problems.
36066         * doc/posix-functions/glob.texi: Mention which platforms are affected
36067         by the problem with symbolic links.
36068         * doc/posix-functions/linkat.texi: Mention the problem with
36069         AT_SYMLINK_FOLLOW on Linux.
36071 2012-04-22  Bruno Haible  <bruno@clisp.org>
36073         pwrite: Don't replace on all platforms.
36074         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
36076 2012-04-22  Bruno Haible  <bruno@clisp.org>
36078         rint* tests: Avoid gcc warnings.
36079         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
36080         * tests/test-rintf.c (INFINITY, NAN): Likewise.
36081         * tests/test-rintl.c (INFINITY, NAN): Likewise.
36083 2012-04-21  Bruno Haible  <bruno@clisp.org>
36085         users.txt: Update.
36086         * users.txt: Add freedink, wdiff. Update URLs for projects that have
36087         switched from CVS to git, bzr, or svn.
36089 2012-04-21  Bruno Haible  <bruno@clisp.org>
36091         Large File Support for native Windows platforms.
36093         * m4/largefile.m4 (gl_LARGEFILE): New macro.
36094         * modules/largefile (configure.ac): Require gl_LARGEFILE.
36096         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
36097         type.
36098         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
36099         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
36100         * doc/posix-headers/sys_types.texi: Mention the effect of the
36101         'largefile' module.
36103         * lib/fcntl.in.h: Add comments about off_t.
36104         * modules/fcntl-h (Depends-on): Add sys_types.
36106         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
36107         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
36108         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
36109         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
36110         * modules/unistd (Depends-on): Add sys_types.
36111         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
36113         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
36114         instead of lseek.
36115         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
36116         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
36117         * modules/lseek (Depends-on): Add sys_types.
36119         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
36120         msvc-nothrow.h.
36121         (SetFileSize): New function.
36122         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
36123         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
36124         if Large File Support is requested.
36125         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
36126         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
36128         * lib/stdio.in.h: Add comments about off_t.
36129         * modules/stdio (Depends-on): Add sys_types.
36131         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
36132         instead of ftello.
36133         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
36134         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
36135         (gl_PREREQ_FTELLO): New macro.
36136         * modules/ftello (Depends-on): Add sys_types.
36137         (configure.ac): Incoke gl_PREREQ_FTELLO.
36139         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
36140         instead of fseeko.
36141         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
36142         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
36143         (gl_PREREQ_FSEEKO): New macro.
36144         * modules/fseeko (Depends-on): Add sys_types.
36145         (configure.ac): Invoke gl_PREREQ_FSEEKO.
36147         * lib/sys_stat.in.h: Add comments about off_t.
36148         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
36149         64-bit integer for st_size in 'struct stat'.
36150         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
36151         Define _GL_WINDOWS_64_BIT_ST_SIZE.
36152         * modules/sys_stat (Depends-on): Add sys_types.
36153         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
36155         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
36156         instead of stat or _stat.
36158         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
36159         'struct _stati64' instead of fstat and 'struct stat'.
36160         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
36161         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
36163         Reported by Ray Satiro <raysatiro@yahoo.com>.
36165 2012-04-19  Eric Blake  <eblake@redhat.com>
36167         bootstrap: accommodate older libtool
36168         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
36169         Reported by Daniel P. Berrange.
36171 2012-04-19  Jim Meyering  <meyering@redhat.com>
36173         announce-gen: avoid failure due to lack of Digest::SHA1
36174         Even with the preferred Digest::SHA available, this script
36175         would fail when the backup module, Digest::SHA1, was not installed.
36176         * build-aux/announce-gen: Quote the conditional use of "use".
36177         Reported by Reuben Thomas in:
36178         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
36180         bootstrap: don't let a user's CDPATH setting affect this script
36181         When CDPATH is set, cd will sometimes generate output.
36182         When "cd" is run in a subshell whose output matters, that
36183         surprising-to-some output can cause malfunction.
36184         Unsetting CDPATH turns off this shell "feature."
36185         * build-aux/bootstrap (CDPATH): Unset.
36186         Reported by Reuben Thomas in:
36187         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
36188         and inspired by his patch here:
36189         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
36191 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
36192         and Jim Meyering  <meyering@redhat.com>
36194         maint.mk: catch "see @xref{}" and similar
36195         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
36196         prohibit "See also @xref{", "Also see @pxref{", and similar.
36198 2012-04-16  Jim Meyering  <meyering@redhat.com>
36200         bootstrap: really use gnulib's po/Makefile.in.in
36201         * build-aux/bootstrap: Correct the source file name in previous change.
36202         Reported by Akim Demaille.
36204         configmake: correct minor inconsistency in Makefile rule
36205         * modules/configmake (Makefile.am): All other rules like this one
36206         run the final "mv -f ..." in the same backslash-continued command
36207         as the one that does everything else.  This one put the mv -f ...
36208         command on a separate, non-backslash-continued line.
36209         Make it like the others.
36211         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
36212         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
36213         the one from gettext.  Reported by Akim Demaille.
36215 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
36217         Fix recursion of install-* into po directories.
36218         Bison's install-pdf bug reported by Hans Aberg at
36219         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
36220         * build-aux/po/Makefile.in.in (install-dvi, install-html)
36221         (install-info, install-pdf, install-ps): New targets.
36223 2012-04-16  Jim Meyering  <meyering@redhat.com>
36225         maint: avoid spurious "make sc_maint" failure
36226         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
36227         exempt all *.class file names, for lib/javaversion.class.
36229 2012-04-15  Bruno Haible  <bruno@clisp.org>
36231         lseek: Make configure test independent of environment.
36232         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
36233         Windows, we know that lseek() on pipes is broken; skip the runtime
36234         test.
36236 2012-04-14  Bruno Haible  <bruno@clisp.org>
36238         stat: Bypass buggy override in mingw64.
36239         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
36240         * lib/stat.c (stat) [mingw64]: Define to _stat.
36241         * doc/posix-functions/stat.texi: Mention mingw64 bug.
36243 2012-04-14  Bruno Haible  <bruno@clisp.org>
36245         pathmax: Fix compilation error on MSVC 9.
36246         * modules/pathmax (Depends-on): Add unistd.
36248 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
36250         README: document pointer comparison assumption
36251         * README (Portability guidelines): Document assumption about
36252         pointer comparisons, in response to a recent bug-gnulib comment by
36253         Jeffrey Kegler.
36255 2012-04-12  Bruno Haible  <bruno@clisp.org>
36257         Tests for module 'getrusage'.
36258         * modules/getrusage-tests: New file.
36259         * tests/test-getrusage.c: New file.
36261         New module 'getrusage'.
36262         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
36263         warn-on-use.h.
36264         (getrusage): New declaration.
36265         * lib/getrusage.c: New file.
36266         * m4/getrusage.m4: New file.
36267         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
36268         is declared.
36269         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
36270         HAVE_GETRUSAGE.
36271         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
36272         snippet/c++defs, snippet/warn-on-use.
36273         (Makefile.am): Update generation of sys/resource.h. Substitute
36274         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
36275         * modules/getrusage: New file.
36276         * doc/posix-functions/getrusage.texi: Mention the new module.
36278 2012-04-12  Bruno Haible  <bruno@clisp.org>
36280         Tests for module 'sys_resource'.
36281         * modules/sys_resource-tests: New file.
36282         * tests/test-sys_resource.c: New file.
36284         New module 'sys_resource'.
36285         * lib/sys_resource.in.h: New file.
36286         * m4/sys_resource_h.m4: New file.
36287         * modules/sys_resource: New file.
36288         * doc/posix-headers/sys_resource.texi: Mention the new module.
36290 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
36292         ioctl: Fix compilation error on mingw.
36293         * lib/ioctl.c: Include <windows.h>.
36294         Also reported by Ray Satiro <raysatiro@yahoo.com>.
36296 2012-04-04  Jim Meyering  <meyering@redhat.com>
36298         regex: correct #pragma guard expression
36299         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
36300         not 4.3.  Correct its cpp guard expression.
36302 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
36304         regex: remove unnecessary type punning
36305         Problem reported by Vladimir Serbinenko in
36306         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
36307         * lib/regex.h (struct re_pattern_buffer): Change the type of
36308         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
36309         Fix comment to match code.
36310         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
36311         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
36312         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
36313         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
36314         (set_regs):
36315         Omit no-longer-necessary casts.
36317 2012-04-03  Bruno Haible  <bruno@clisp.org>
36319         Tests for module 'ilogbl'.
36320         * modules/ilogbl-tests: New file.
36321         * tests/test-ilogbl.c: New file.
36323         New module 'ilogbl'.
36324         * lib/math.in.h (ilogbl): New declaration.
36325         * lib/ilogbl.c: New file.
36326         * m4/ilogbl.m4: New file.
36327         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
36328         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
36329         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
36330         Split sed invocation, to avoid the limit of 100 substitutions of
36331         HP-UX 'sed'.
36332         * modules/ilogbl: New file.
36333         * tests/test-math-c++.cc: Check the declaration of ilogbl.
36334         * doc/posix-functions/ilogbl.texi: Mention the new module.
36336 2012-04-03  Bruno Haible  <bruno@clisp.org>
36338         Tests for module 'ilogbf'.
36339         * modules/ilogbf-tests: New file.
36340         * tests/test-ilogbf.c: New file.
36342         New module 'ilogbf'.
36343         * lib/math.in.h (ilogbf): New declaration.
36344         * lib/ilogbf.c: New file.
36345         * m4/ilogbf.m4: New file.
36346         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
36347         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
36348         REPLACE_ILOGBF.
36349         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
36350         REPLACE_ILOGBF.
36351         * modules/ilogbf: New file.
36352         * tests/test-math-c++.cc: Check the declaration of ilogbf.
36353         * doc/posix-functions/ilogbf.texi: Mention the new module.
36355 2012-04-03  Bruno Haible  <bruno@clisp.org>
36357         Tests for module 'ilogb'.
36358         * modules/ilogb-tests: New file.
36359         * tests/test-ilogb.c: New file.
36360         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
36361         tests/test-logb-ieee.h.
36363         New module 'ilogb'.
36364         * lib/math.in.h (ilogb): New declaration.
36365         * lib/ilogb.c: New file.
36366         * m4/ilogb.m4: New file.
36367         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
36368         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
36369         REPLACE_ILOGB.
36370         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
36371         REPLACE_ILOGB.
36372         * modules/ilogb: New file.
36373         * tests/test-math-c++.cc: Check the declaration of ilogb.
36374         * doc/posix-functions/ilogb.texi: Mention the new module.
36376 2012-04-03  Bruno Haible  <bruno@clisp.org>
36378         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
36379         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
36380         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
36381         (main): Check their values.
36382         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
36383         problem.
36385 2012-04-03  Bruno Haible  <bruno@clisp.org>
36387         Tests for module 'logbl-ieee'.
36388         * modules/logbl-ieee-tests: New file.
36389         * tests/test-logbl-ieee.c: New file.
36391         New module 'logbl-ieee'.
36392         * modules/logbl-ieee: New file.
36394         Tests for module 'logb-ieee'.
36395         * modules/logb-ieee-tests: New file.
36396         * tests/test-logb-ieee.c: New file.
36398         New module 'logb-ieee'.
36399         * modules/logb-ieee: New file.
36401         Tests for module 'logbf-ieee'.
36402         * modules/logbf-ieee-tests: New file.
36403         * tests/test-logbf-ieee.c: New file.
36404         * tests/test-logb-ieee.h: New file.
36406         New module 'logbf-ieee'.
36407         * modules/logbf-ieee: New file.
36409 2012-04-03  Bruno Haible  <bruno@clisp.org>
36411         Tests for module 'logbl'.
36412         * modules/logbl-tests: New file.
36413         * tests/test-logbl.c: New file.
36415         New module 'logbl'.
36416         * lib/math.in.h (logbl): New declaration.
36417         * lib/logbl.c: New file.
36418         * m4/logbl.m4: New file.
36419         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
36420         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
36421         REPLACE_LOGBL.
36422         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
36423         REPLACE_LOGBL.
36424         * modules/logbl: New file.
36425         * tests/test-math-c++.cc: Check the declaration of logbl.
36426         * doc/posix-functions/logbl.texi: Mention the new module.
36428 2012-04-02  Bruno Haible  <bruno@clisp.org>
36430         Tests for module 'logbf'.
36431         * modules/logbf-tests: New file.
36432         * tests/test-logbf.c: New file.
36434         New module 'logbf'.
36435         * lib/math.in.h (logbf): New declaration.
36436         * lib/logbf.c: New file.
36437         * m4/logbf.m4: New file.
36438         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
36439         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
36440         REPLACE_LOGBF.
36441         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
36442         REPLACE_LOGBF.
36443         * modules/logbf: New file.
36444         * tests/test-math-c++.cc: Check the declaration of logbf.
36445         * doc/posix-functions/logbf.texi: Mention the new module.
36447 2012-04-02  Bruno Haible  <bruno@clisp.org>
36449         logb tests: More tests.
36450         * tests/test-logb.h: New file, based on tests/test-logb.c and
36451         tests/test-frexp.h.
36452         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
36453         (main): Just invoke test_function.
36454         * modules/logb-tests (Files): Add tests/test-logb.h,
36455         tests/minus-zero.h, tests/randomd.c.
36456         (Makefile.am): Add randomd.c to test_logb_SOURCES.
36458         logb: Provide replacement and workarounds.
36459         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
36460         is 1.
36461         * lib/logb.c: New file.
36462         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
36463         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
36464         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
36465         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
36466         * modules/logb (Files): Add lib/logb.c.
36467         (Depends-on): Add isfinite, frexp, isnand.
36468         (configure.ac): Compile the replacement code logb.c if needed.
36469         * tests/test-math-c++.cc: Check the declaration of logb.
36470         * doc/posix-functions/logb.texi: Mention the replacement and the bug
36471         with subnormal numbers.
36473 2012-04-02  Bruno Haible  <bruno@clisp.org>
36475         log10* tests: Speed up.
36476         * tests/test-log10.h (test_function): Reduce amount of random numbers
36477         to test.
36479 2012-04-01  Bruno Haible  <bruno@clisp.org>
36481         logf-ieee: Fix test whether logf works.
36482         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
36484 2012-04-01  Bruno Haible  <bruno@clisp.org>
36486         log10l: Work around log10l-ieee test failure on IRIX 6.5.
36487         * lib/log10l.c: Include <float.h>
36488         (log10l): On IRIX, normalize the +Infinity value.
36489         * modules/log10l (Depends-on): Add 'float'.
36490         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
36491         +Infinity.
36493         log10f-ieee: Work around test failure on NetBSD 5.1.
36494         * m4/log10f-ieee.m4: New file.
36495         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
36496         test whether log10f works with a negative argument. Replace it if not.
36497         * lib/log10f.c (log10f): For negative arguments, return NaN.
36498         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
36499         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
36500         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
36502         log10f-ieee: Work around test failure on Solaris 9.
36503         * modules/log10f-ieee (Depends-on): Add log10-ieee.
36504         (configure.ac): Require gl_FUNC_LOG10F.
36506         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
36507         * m4/log10-ieee.m4: New file.
36508         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
36509         whether log10 works with a negative argument. Replace it if not.
36510         * lib/log10.c (log10): For negative arguments, return NaN.
36511         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
36512         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
36513         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
36515         Tests for module 'log10l-ieee'.
36516         * modules/log10l-ieee-tests: New file.
36517         * tests/test-log10l-ieee.c: New file.
36519         New module 'log10l-ieee'.
36520         * modules/log10l-ieee: New file.
36522         Tests for module 'log10-ieee'.
36523         * modules/log10-ieee-tests: New file.
36524         * tests/test-log10-ieee.c: New file.
36526         New module 'log10-ieee'.
36527         * modules/log10-ieee: New file.
36529         Tests for module 'log10f-ieee'.
36530         * modules/log10f-ieee-tests: New file.
36531         * tests/test-log10f-ieee.c: New file.
36532         * tests/test-log10-ieee.h: New file.
36534         New module 'log10f-ieee'.
36535         * modules/log10f-ieee: New file.
36537 2012-04-01  Bruno Haible  <bruno@clisp.org>
36539         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
36540         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
36541         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
36542         workaround.
36543         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
36544         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
36545         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
36546         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
36547         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
36548         (Depends-on): Update conditions.
36549         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
36550         IRIX 6.5, OSF/1 5.1 problems.
36552 2012-04-01  Bruno Haible  <bruno@clisp.org>
36554         log10f: Work around OSF/1 5.1 bug.
36555         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
36556         * lib/log10f.c (log10f): If logf exists, use it and provide just the
36557         workaround.
36558         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
36559         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
36560         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
36561         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
36562         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
36563         (Depends-on): Update conditions.
36564         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
36566 2012-04-01  Bruno Haible  <bruno@clisp.org>
36568         log10: Work around OSF/1 5.1 bug.
36569         * lib/math.in.h (log10): New declaration.
36570         * lib/log10.c: New file.
36571         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
36572         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
36573         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
36574         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
36575         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
36576         * modules/log10 (Files): Add lib/log10.c.
36577         (Depends-on): Add math.
36578         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
36579         * tests/test-math-c++.cc: Check the declaration of log10.
36580         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
36582 2012-03-31  Bruno Haible  <bruno@clisp.org>
36584         log10l tests: More tests.
36585         * modules/log10l-tests (Files): Add tests/test-log10l.h,
36586         tests/minus-zero.h, tests/randoml.c.
36587         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
36588         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
36589         (main): Invoke test_function.
36591         log10f tests: More tests.
36592         * modules/log10f-tests (Files): Add tests/test-log10.h,
36593         tests/minus-zero.h, tests/randomf.c.
36594         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
36595         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
36596         (main): Invoke test_function.
36598         log10 tests: More tests.
36599         * tests/test-log10.h: New file.
36600         * modules/log10-tests (Files): Add tests/test-log10.h,
36601         tests/minus-zero.h, tests/randomd.c.
36602         (Makefile.am): Add randomd.c to test_log10_SOURCES.
36603         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
36604         (main): Invoke test_function.
36606 2012-03-31  Simon Josefsson  <simon@josefsson.org>
36608         fflush: Fix syntax error.
36609         * lib/fflush.c: Include unused-parameter.h, needed for
36610         _GL_UNUSED_PARAMETER.
36611         * modules/fflush (Depends-on): Add snippet/unused-parameter.
36613 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
36615         regex: pacify GCC when compiling GRUB
36616         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
36617         a diagnostic.  Reported by Vladimir Serbinenko in
36618         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
36620 2012-03-29  Eric Blake  <eblake@redhat.com>
36622         stdio: don't assume gets any more
36623         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
36624         support.
36625         * modules/stdio (Makefile.am): Likewise.
36626         * lib/stdio-read.c (gets): Likewise.
36627         * tests/test-stdio-c++.cc: Likewise.
36628         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
36629         * lib/stdio.in.h (gets): Make warning occur in more places.
36630         * doc/posix-functions/gets.texi (gets): Update documentation.
36631         Reported by Christer Solskogen.
36633         maint.mk: fix syntax checks without exclusions
36634         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
36635         Reported by Daniel P. Berrange.
36637         strerror_r: avoid compiler warning
36638         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
36639         level.
36641         fflush: avoid compiler warning
36642         * lib/fflush.c (update_fpos_cache): Mark variables that are
36643         potentially unused.
36645 2012-03-25  Bruno Haible  <bruno@clisp.org>
36647         Tests for module 'localeconv'.
36648         * modules/localeconv-tests: New file.
36649         * tests/test-localeconv.c: New file.
36651         New module 'localeconv'.
36652         * lib/locale.in.h (localeconv): New declaration.
36653         * lib/localeconv.c: New file.
36654         * m4/localeconv.m4: New file.
36655         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
36656         REPLACE_LOCALECONV.
36657         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
36658         REPLACE_LOCALECONV.
36659         * modules/localeconv: New file.
36660         * modules/nl_langinfo (Depends-on): Add localeconv.
36661         * modules/human (Depends-on): Likewise.
36662         * doc/posix-functions/localeconv.texi: Mention the new module.
36664 2012-03-25  Bruno Haible  <bruno@clisp.org>
36666         locale: Provide a complete 'struct lconv'.
36667         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
36668         'struct lconv' does not contain int_p_cs_precedes.
36669         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
36670         * doc/posix-headers/locale.texi: Update.
36672         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
36673         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
36674         * doc/posix-headers/locale.texi: Update.
36676         locale: Provide a working 'struct lconv'.
36677         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
36678         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
36679         'struct lconv' does not even contain decimal_point.
36680         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
36681         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
36682         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
36683         * doc/posix-headers/locale.texi: Mention the problems with
36684         'struct lconv'.
36685         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
36687 2012-03-24  Bruno Haible  <bruno@clisp.org>
36689         Enable common subexpression optimization in GCC.
36690         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
36691         macros.
36692         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
36693         GCC attribute 'const'.
36694         (uc_locale_language): Declare with GCC attribute 'pure'.
36695         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
36696         with GCC attribute 'const'.
36697         * lib/unictype.in.h (uc_is_general_category_withtable,
36698         uc_combining_class, uc_combining_class_name,
36699         uc_combining_class_long_name, uc_bidi_class_name,
36700         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
36701         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
36702         uc_decimal_value, uc_digit_value, uc_numeric_value,
36703         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
36704         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
36705         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
36706         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
36707         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
36708         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
36709         Declare with GCC attribute 'const'.
36710         (uc_general_category_name, uc_general_category_long_name,
36711         uc_general_category_byname, uc_general_category,
36712         uc_is_general_category, uc_combining_class_byname,
36713         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
36714         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
36715         Declare with GCC attribute 'pure'.
36716         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
36717         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
36718         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
36719         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
36720         with GCC attribute 'pure'.
36721         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
36722         'const'.
36723         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
36724         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
36725         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
36726         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
36727         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
36728         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
36729         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
36730         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
36731         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
36732         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
36733         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
36734         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
36735         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
36736         GCC attribute 'pure'.
36737         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
36738         'const'.
36739         * lib/uniwidth.in.h (uc_width): Simplify declaration.
36740         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
36741         u32_strwidth): Declare with GCC attribute 'pure'.
36743         Enable common subexpression optimization in GCC.
36744         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
36745         (alphasort): Declare with GCC attribute 'pure'.
36746         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
36747         (atoll): Declare with GCC attribute 'pure'.
36748         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
36749         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
36750         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
36751         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
36752         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
36753         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
36754         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
36756 2012-03-24  Bruno Haible  <bruno@clisp.org>
36758         gnulib-tool: Avoid unintended error output from 'cmp'.
36759         * gnulib-tool (func_add_file, func_update_file, func_import): Use
36760         "cmp -s", not "cmp > /dev/null".
36762 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
36764         gnulib-tool: fix imprecise comments w.r.t. an automake bug
36766         It's not just Automake versions < 1.9b that creates an empty
36767         pkgdatadir at installation time if pkgdata_DATA is specified
36768         to empty; modern automake versions do this as well, at least
36769         until automake 1.11.4 (not yet released at the moment of writing,
36770         but soon to appear).  That behaviour was generally considered a
36771         feature rather than a bug, at least until this discussion:
36772         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
36774         See also automake bugs #10997 and #11030.
36776         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
36777         reference to relevant automake bug numbers.
36778         (func_emit_tests_Makefile_am): Likewise.
36780 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
36782         announce-gen: use Digest::SHA when possible
36783         * build-aux/announce-gen: Use Digest::SHA when possible, falling
36784         back to Digest::SHA1 if necessary.
36786 2012-03-20  Jim Meyering  <meyering@redhat.com>
36788         tests: avoid gcc warnings about argv vs. const initializers
36789         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
36790         warnings about discarding 'const' qualifier from pointer target type.
36791         * tests/test-posix_spawn2.c (main): Likewise.
36793 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
36795         README-release: simplify slightly
36796         * top/README-release: Run "git checkout master" only once.
36798 2012-03-15  Mark Wielaard  <mark@klomp.org>
36800         git-merge-changelog: add specific example on how to use with hg.
36801         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
36803 2012-03-18  Mark Wielaard  <mark@klomp.org>
36805         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
36807 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
36809         git-version-gen: don't let "prefix" envvar cause trouble
36810         * build-aux/git-version-gen (prefix): Initialize properly,
36811         so as not to use a value specified via the environment.
36812         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
36814 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
36816         regex: diagnose too-large repeat counts in EREs
36817         Previously, the code did not diagnose the too-large repeat count
36818         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
36819         as if it were 'b\{1000000000}', which is unexpected.
36820         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
36821         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
36822         is a reasonable one for this problem.  Another option would be to
36823         create a new REG_OVERFLOW error for repeat counts that are too large.
36824         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
36825         count is too large, so that the caller can distinguish the two cases.
36826         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
36827         "Too large" return code, and that repeat counts are one example of this.
36829 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
36831         doc: some glibc x32 integer width issues
36832         * doc/posix-headers/sys_types.texi (sys/types.h):
36833         * doc/posix-headers/time.texi (time.h):
36834         Mention that glibc x32 does not conform to POSIX in a couple of
36835         areas related to integer widths.
36837 2012-03-15  Bruno Haible  <bruno@clisp.org>
36839         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
36840         * lib/fma.c (VOLATILE): New macro.
36841         (FUNC): Use it to work around a GCC compiler bug.
36843 2012-03-13  Bruno Haible  <bruno@clisp.org>
36845         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
36846         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
36847         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
36848         REPLACE_HYPOTL to 1.
36849         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
36851 2012-03-13  Bruno Haible  <bruno@clisp.org>
36853         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
36854         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
36855         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
36856         REPLACE_REMAINDERL to 1.
36857         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
36858         bug.
36860 2012-03-13  Bruno Haible  <bruno@clisp.org>
36862         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
36863         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
36864         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
36865         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
36866         too big rounding errors.
36867         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
36868         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
36869         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
36870         (Depends-on): Update conditions.
36871         * tests/test-sqrtl.c (my_ldexpl): New function.
36872         (main): Add test of a particular value.
36873         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
36875 2012-03-13  Pádraig Brady  <P@draigBrady.com>
36877         doc: Update timer_* platform portability notes.
36878         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
36879         that always return ENOSYS.
36880         * doc/posix-functions/timer_delete.texi: Likewise.
36881         * doc/posix-functions/timer_gettime.texi: Likewise.
36882         * doc/posix-functions/timer_settime.texi: Likewise.
36884 2012-03-13  Bruno Haible  <bruno@clisp.org>
36886         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
36887         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
36888         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
36889         REPLACE_CBRTL to 1.
36890         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
36892 2012-03-13  Bruno Haible  <bruno@clisp.org>
36894         remainderl: Avoid compilation error on AIX >= 5.2.
36895         * lib/math.in.h (remainderl): Undefine macro from the system header.
36897 2012-03-13  Bruno Haible  <bruno@clisp.org>
36899         Avoid compilation errors with MSVC option -fp:strict.
36900         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
36901         * lib/cbrtf.c: Likewise.
36902         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
36904 2012-03-12  Bruno Haible  <bruno@clisp.org>
36906         uninorm: Don't crash in out-of-memory conditions.
36907         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
36908         gracefully.
36909         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
36910         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
36912 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
36914         quote: fix syntax-check
36915         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
36916         also exports quote_quoting_options.
36918 2012-03-12  Simon Josefsson  <simon@josefsson.org>
36920         Collapse list of copyright years to ranges.  See
36921         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
36922         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
36923         build-aux/csharpexec.sh.in, build-aux/gnupload,
36924         build-aux/install-reloc, build-aux/javacomp.sh.in,
36925         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
36926         build-aux/move-if-change, build-aux/reloc-ldflags,
36927         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
36929 2012-03-11  Bruno Haible  <bruno@clisp.org>
36931         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
36932         * m4/log2f-ieee.m4: New file.
36933         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
36934         whether log2f works with a minus zero argument. Replace it if not.
36935         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
36936         (Depends-on): Add log2-ieee.
36937         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
36938         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
36940         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
36941         * m4/log2-ieee.m4: New file.
36942         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
36943         whether log2 works with a minus zero argument. Replace it if not.
36944         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
36945         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
36946         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
36948         Tests for module 'log2l-ieee'.
36949         * modules/log2l-ieee-tests: New file.
36950         * tests/test-log2l-ieee.c: New file.
36952         New module 'log2l-ieee'.
36953         * modules/log2l-ieee: New file.
36955         Tests for module 'log2-ieee'.
36956         * modules/log2-ieee-tests: New file.
36957         * tests/test-log2-ieee.c: New file.
36959         New module 'log2-ieee'.
36960         * modules/log2-ieee: New file.
36962         Tests for module 'log2f-ieee'.
36963         * modules/log2f-ieee-tests: New file.
36964         * tests/test-log2f-ieee.c: New file.
36965         * tests/test-log2-ieee.h: New file.
36967         New module 'log2f-ieee'.
36968         * modules/log2f-ieee: New file.
36970 2012-03-11  Bruno Haible  <bruno@clisp.org>
36972         Tests for module 'log2l'.
36973         * modules/log2l-tests: New file.
36974         * tests/test-log2l.c: New file.
36976         New module 'log2l'.
36977         * lib/math.in.h (log2l): New declaration.
36978         * lib/log2l.c: New file.
36979         * m4/log2l.m4: New file.
36980         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
36981         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
36982         REPLACE_LOG2L.
36983         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
36984         REPLACE_LOG2L.
36985         * modules/log2l: New file.
36986         * tests/test-math-c++.cc: Check the declaration of log2l.
36987         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
36988         and OSF/1 problems.
36990 2012-03-11  Bruno Haible  <bruno@clisp.org>
36992         Tests for module 'log2f'.
36993         * modules/log2f-tests: New file.
36994         * tests/test-log2f.c: New file.
36996         New module 'log2f'.
36997         * lib/math.in.h (log2f): New declaration.
36998         * lib/log2f.c: New file.
36999         * m4/log2f.m4: New file.
37000         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
37001         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
37002         REPLACE_LOG2F.
37003         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
37004         REPLACE_LOG2F.
37005         * modules/log2f: New file.
37006         * tests/test-math-c++.cc: Check the declaration of log2f.
37007         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
37008         and OSF/1 and Cygwin problems.
37010 2012-03-11  Bruno Haible  <bruno@clisp.org>
37012         Tests for module 'log2'.
37013         * modules/log2-tests: New file.
37014         * tests/test-log2.c: New file.
37015         * tests/test-log2.h: New file.
37017         New module 'log2'.
37018         * lib/math.in.h (log2): New declaration.
37019         * lib/log2.c: New file.
37020         * m4/log2.m4: New file.
37021         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
37022         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
37023         REPLACE_LOG2.
37024         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
37025         REPLACE_LOG2.
37026         * modules/log2: New file.
37027         * tests/test-math-c++.cc: Check the declaration of log2.
37028         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
37029         and OSF/1 and Cygwin problems.
37031 2012-03-11  Bruno Haible  <bruno@clisp.org>
37033         exp2* tests: More tests.
37034         * tests/test-exp2.h (test_function): Test all integral arguments that
37035         don't need to overflow or denormalized numbers.
37036         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
37037         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
37038         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
37040 2012-03-10  Bruno Haible  <bruno@clisp.org>
37042         log1pl-ieee: Work around test failure on AIX 7.1.
37043         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
37045         log1pl-ieee: Work around test failure on IRIX 6.5.
37046         * m4/log1pl-ieee.m4: New file.
37047         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
37048         test whether log1pl works with a minus zero argument. Replace it if
37049         not.
37050         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
37051         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
37052         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
37053         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
37054         (Depends-on): Update conditions.
37055         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
37056         m4/signbit.m4.
37057         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
37058         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
37060         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
37061         * m4/log1pf-ieee.m4: New file.
37062         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
37063         test whether log1pf works with a minus zero argument. Replace it if
37064         not.
37065         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
37066         m4/signbit.m4.
37067         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
37068         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
37070         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
37071         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
37072         (configure.ac): Require gl_FUNC_LOG1PF.
37074         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
37075         * m4/log1p-ieee.m4: New file.
37076         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
37077         whether log1p works with a minus zero argument. Replace it if not.
37078         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
37079         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
37080         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
37081         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
37082         (Depends-on): Update conditions.
37083         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
37084         m4/signbit.m4.
37085         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
37086         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
37088         Tests for module 'log1pl-ieee'.
37089         * modules/log1pl-ieee-tests: New file.
37090         * tests/test-log1pl-ieee.c: New file.
37092         New module 'log1pl-ieee'.
37093         * modules/log1pl-ieee: New file.
37095         Tests for module 'log1p-ieee'.
37096         * modules/log1p-ieee-tests: New file.
37097         * tests/test-log1p-ieee.c: New file.
37099         New module 'log1p-ieee'.
37100         * modules/log1p-ieee: New file.
37102         Tests for module 'log1pf-ieee'.
37103         * modules/log1pf-ieee-tests: New file.
37104         * tests/test-log1pf-ieee.c: New file.
37105         * tests/test-log1p-ieee.h: New file.
37107         New module 'log1pf-ieee'.
37108         * modules/log1pf-ieee: New file.
37110 2012-03-10  Bruno Haible  <bruno@clisp.org>
37112         Tests for module 'log1pl'.
37113         * modules/log1pl-tests: New file.
37114         * tests/test-log1pl.c: New file.
37116         New module 'log1pl'.
37117         * lib/math.in.h (log1pl): New declaration.
37118         * lib/log1pl.c: New file.
37119         * m4/log1pl.m4: New file.
37120         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
37121         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
37122         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
37123         * modules/log1pl: New file.
37124         * tests/test-math-c++.cc: Check the declaration of log1pl.
37125         * doc/posix-functions/log1pl.texi: Mention the new module.
37127 2012-03-10  Bruno Haible  <bruno@clisp.org>
37129         Tests for module 'log1pf'.
37130         * modules/log1pf-tests: New file.
37131         * tests/test-log1pf.c: New file.
37133         New module 'log1pf'.
37134         * lib/math.in.h (log1pf): New declaration.
37135         * lib/log1pf.c: New file.
37136         * m4/log1pf.m4: New file.
37137         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
37138         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
37139         REPLACE_LOG1PF.
37140         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
37141         REPLACE_LOG1PF.
37142         * modules/log1pf: New file.
37143         * tests/test-math-c++.cc: Check the declaration of log1pf.
37144         * doc/posix-functions/log1pf.texi: Mention the new module.
37146 2012-03-10  Bruno Haible  <bruno@clisp.org>
37148         log1p tests: More tests.
37149         * tests/test-log1p.h: New file.
37150         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
37151         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
37152         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
37153         (main): Invoke test_function.
37155         log1p: Provide replacement for Minix and MSVC.
37156         * lib/math.in.h (log1p): New declaration.
37157         * lib/log1p.c: New file.
37158         * m4/log1p.m4: New file.
37159         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
37160         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
37161         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
37162         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
37163         (Depends-on): Add math, isnand, log, round.
37164         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
37165         HAVE_LOG1P is 0.
37166         * tests/test-math-c++.cc: Check the declaration of log1p.
37167         * doc/posix-functions/log1p.texi: Mention the replacement.
37169 2012-03-10  Bruno Haible  <bruno@clisp.org>
37171         math tests: Small simplification.
37172         * tests/test-exp.h (test_function): Use the same err_bound for
37173         'double' on platforms with sizeof (long double) == sizeof (double)
37174         than on platforms with sizeof (long double) > sizeof (double).
37175         * tests/test-exp2.h (test_function): Likewise.
37176         * tests/test-expm1.h (test_function): Likewise.
37177         * tests/test-log.h (test_function): Likewise.
37179 2012-03-10  Bruno Haible  <bruno@clisp.org>
37181         Fix some comments.
37182         * lib/expl.c: Fix an ambiguous comment.
37183         * lib/expm1.c: Likewise.
37184         * lib/expm1l.c: Likewise.
37185         * lib/exp2.c: Likewise.
37186         * lib/exp2l.c: Likewise.
37188 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
37190         regex: allow inclusion of <regex.h> before <limits.h>
37191         Without this patch, portable programs had to include <limits.h> before
37192         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
37193         I ran into this problem with a test version of GNU grep on Solaris 8.
37194         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
37195         This is done conditionally so that this change can be merged
37196         back to glibc.
37197         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
37198         using the included regex.
37200         fts: depend on fdopendir
37201         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
37202         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
37203         problem was introduced when fdopendir was split out.
37205 2012-03-10  Bruno Haible  <bruno@clisp.org>
37207         Remove unused variables.
37208         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
37209         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
37211 2012-03-10  Bruno Haible  <bruno@clisp.org>
37213         isnanf-nolibm: Fix last commit.
37214         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
37216         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
37217         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
37219 2012-03-10  Bruno Haible  <bruno@clisp.org>
37221         logf-ieee: Work around test failure on NetBSD 5.1.
37222         * m4/logf-ieee.m4: New file.
37223         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
37224         whether logf works with a negative argument. Replace it if not.
37225         * lib/logf.c (logf): For negative arguments, return NaN.
37226         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
37227         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
37228         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
37230         logf-ieee: Work around test failure on Solaris 9.
37231         * modules/logf-ieee (Depends-on): Add log-ieee.
37232         (configure.ac): Require gl_FUNC_LOGF.
37234         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
37235         * m4/log-ieee.m4: New file.
37236         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
37237         log works with a negative argument. Replace it if not.
37238         * lib/log.c (log): For negative arguments, return NaN.
37239         * modules/log-ieee (Files): Add m4/log-ieee.m4.
37240         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
37241         * doc/posix-functions/log.texi: Mention the log-ieee module.
37243         Tests for module 'logl-ieee'.
37244         * modules/logl-ieee-tests: New file.
37245         * tests/test-logl-ieee.c: New file.
37247         New module 'logl-ieee'.
37248         * modules/logl-ieee: New file.
37250         Tests for module 'log-ieee'.
37251         * modules/log-ieee-tests: New file.
37252         * tests/test-log-ieee.c: New file.
37254         New module 'log-ieee'.
37255         * modules/log-ieee: New file.
37257         Tests for module 'logf-ieee'.
37258         * modules/logf-ieee-tests: New file.
37259         * tests/test-logf-ieee.c: New file.
37260         * tests/test-log-ieee.h: New file.
37262         New module 'logf-ieee'.
37263         * modules/logf-ieee: New file.
37265 2012-03-10  Bruno Haible  <bruno@clisp.org>
37267         log: Fix bug introduced on 2012-03-09.
37268         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
37270 2012-03-10  Pádraig Brady  <P@draigBrady.com>
37272         timer-time: link explicitly with pthreads on glibc
37273         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
37274         to support static linking, when newer glibc is
37275         detected, as that contains pthread emulation of
37276         POSIX timer functions where required.
37277         * modules/timer-time: Depend on threadlib to
37278         pull in the appropriate library to link.
37280 2012-03-10  Bruno Haible  <bruno@clisp.org>
37282         log* tests: More tests.
37283         * tests/test-log.h: New file.
37284         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
37285         (main): Invoke test_function.
37286         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
37287         (main): Invoke test_function.
37288         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
37289         (main): Invoke test_function.
37290         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
37291         tests/randomd.c.
37292         (Makefile.am): Add randomd.c to test_log_SOURCES.
37293         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
37294         tests/randomf.c.
37295         (Makefile.am): Add randomf.c to test_logf_SOURCES.
37296         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
37297         tests/randoml.c.
37298         (Depends-on): Add 'float'.
37299         (Makefile.am): Add randoml.c to test_logl_SOURCES.
37301 2012-03-09  Bruno Haible  <bruno@clisp.org>
37303         logl: Work around OSF/1 5.1 bug.
37304         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
37305         * lib/logl.c (logl): If logl exists, use it and provide just the
37306         workaround.
37307         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
37308         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
37309         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
37310         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
37311         * modules/logl (configure.ac): Consider REPLACE_LOGL.
37312         (Depends-on): Update conditions.
37313         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
37315 2012-03-09  Bruno Haible  <bruno@clisp.org>
37317         logf: Work around OSF/1 5.1 bug.
37318         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
37319         * lib/logf.c (logf): If logf exists, use it and provide just the
37320         workaround.
37321         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
37322         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
37323         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
37324         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
37325         * modules/logf (configure.ac): Consider REPLACE_LOGF.
37326         (Depends-on): Update conditions.
37327         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
37329 2012-03-09  Bruno Haible  <bruno@clisp.org>
37331         log: Work around OSF/1 5.1 bug.
37332         * lib/math.in.h (log): New declaration.
37333         * lib/log.c: New file.
37334         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
37335         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
37336         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
37337         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
37338         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
37339         * modules/log (Files): Add lib/log.c.
37340         (Depends-on): Add math.
37341         (configure.ac): If REPLACE_LOG is 1, compile an override.
37342         * tests/test-math-c++.cc: Check the declaration of log.
37343         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
37345 2012-03-09  Jim Meyering  <meyering@redhat.com>
37347         readtokens.c: adjust wording in a comment
37348         * lib/readtokens.c: Insert omitted "that" in a comment.
37350 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
37352         modechange: add notations +40, 00440, etc.
37353         * lib/modechange.c (mode_compile): Support new notations
37354         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
37356 2012-03-08  Bruno Haible  <bruno@clisp.org>
37358         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
37359         * m4/exp2l-ieee.m4: New file.
37360         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
37361         test whether exp2l works with a NaN argument and with a negative
37362         infinity argument. Replace it if not.
37363         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
37364         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
37365         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
37366         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
37367         (Depends-on): Update conditions.
37368         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
37369         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
37370         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
37372         Tests for module 'exp2l-ieee'.
37373         * modules/exp2l-ieee-tests: New file.
37374         * tests/test-exp2l-ieee.c: New file.
37376         New module 'exp2l-ieee'.
37377         * modules/exp2l-ieee: New file.
37379         Tests for module 'exp2-ieee'.
37380         * modules/exp2-ieee-tests: New file.
37381         * tests/test-exp2-ieee.c: New file.
37383         New module 'exp2-ieee'.
37384         * modules/exp2-ieee: New file.
37386         Tests for module 'exp2f-ieee'.
37387         * modules/exp2f-ieee-tests: New file.
37388         * tests/test-exp2f-ieee.c: New file.
37389         * tests/test-exp2-ieee.h: New file.
37391         New module 'exp2f-ieee'.
37392         * modules/exp2f-ieee: New file.
37394 2012-03-08  Bruno Haible  <bruno@clisp.org>
37396         Tests for module 'exp2l'.
37397         * modules/exp2l-tests: New file.
37398         * tests/test-exp2l.c: New file.
37400         New module 'exp2l'.
37401         * lib/math.in.h (exp2l): New declaration.
37402         * lib/exp2l.c: New file.
37403         * lib/expl-table.c: New file, extracted from lib/expl.c.
37404         * lib/expl.c (gl_expl_table): New declaration.
37405         (expl): Remove expl_table. Update reference.
37406         * m4/exp2l.m4: New file.
37407         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
37408         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
37409         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
37410         * modules/exp2l: New file.
37411         * modules/expl (Files): Add lib/expl-table.c.
37412         (configure.ac): Compile also expl-table.c.
37413         * tests/test-math-c++.cc: Check the declaration of exp2l.
37414         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
37415         problem.
37417 2012-03-08  Bruno Haible  <bruno@clisp.org>
37419         Tests for module 'exp2f'.
37420         * modules/exp2f-tests: New file.
37421         * tests/test-exp2f.c: New file.
37423         New module 'exp2f'.
37424         * lib/math.in.h (exp2f): New declaration.
37425         * lib/exp2f.c: New file.
37426         * m4/exp2f.m4: New file.
37427         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
37428         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
37429         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
37430         * modules/exp2f: New file.
37431         * tests/test-math-c++.cc: Check the declaration of exp2f.
37432         * doc/posix-functions/exp2f.texi: Mention the new module and the
37433         IRIX problem.
37435 2012-03-08  Bruno Haible  <bruno@clisp.org>
37437         Tests for module 'exp2'.
37438         * modules/exp2-tests: New file.
37439         * tests/test-exp2.c: New file.
37440         * tests/test-exp2.h: New file.
37442         New module 'exp2'.
37443         * lib/math.in.h (exp2): New declaration.
37444         * lib/exp2.c: New file.
37445         * m4/exp2.m4: New file.
37446         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
37447         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
37448         REPLACE_EXP2.
37449         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
37450         REPLACE_EXP2.
37451         * modules/exp2: New file.
37452         * tests/test-math-c++.cc: Check the declaration of exp2.
37453         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
37454         and OpenBSD problems.
37456 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
37458         savedir: fix comment typo
37459         * lib/savedir.c (savedirstream): Fix typo in comment.
37461 2012-03-08  Bruno Haible  <bruno@clisp.org>
37463         test-readtokens.c: use const; remove unwarranted cast
37464         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
37466 2012-03-08  Bruno Haible  <bruno@clisp.org>
37468         fmal: Avoid compilation error on AIX.
37469         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
37470         AIX 5.2..7.1.
37472 2012-03-08  Bruno Haible  <bruno@clisp.org>
37474         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
37475         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
37476         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
37477         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
37478         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
37479         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
37480         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
37482 2012-03-08  Bruno Haible  <bruno@clisp.org>
37484         remainderf: Override buggy system function on IRIX 6.5.
37485         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
37486         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
37487         when it exists.
37488         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
37490 2012-03-08  Jim Meyering  <meyering@redhat.com>
37492         test-readtokens.c: avoid const-related compilation warnings
37493         * tests/test-readtokens.c: Avoid const-related compilation warnings.
37495 2012-03-07  Jim Meyering  <meyering@redhat.com>
37496             Bruno Haible  <bruno@clisp.org>
37498         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
37499         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
37500         tests/randomd.c.
37501         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
37502         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
37503         tests/randoml.c.
37504         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
37506 2012-03-07  Bruno Haible  <bruno@clisp.org>
37508         expm1l: Avoid compilation error on AIX.
37509         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
37510         AIX 5.2..7.1.
37512 2012-03-07  Bruno Haible  <bruno@clisp.org>
37514         expm1l: Don't override undeclared system function on IRIX 6.5.
37515         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
37516         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
37517         it exists. Set HAVE_DECL_EXPM1L.
37518         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
37519         HAVE_EXPM1L.
37520         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
37521         HAVE_EXPM1L.
37522         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
37524 2012-03-07  Bruno Haible  <bruno@clisp.org>
37526         remainderl: Don't override undeclared system function on IRIX 6.5.
37527         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
37528         HAVE_REMAINDERL.
37529         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
37530         declared when it exists. Set HAVE_DECL_REMAINDERL.
37531         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
37532         not HAVE_REMAINDERL.
37533         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
37534         HAVE_REMAINDERL.
37535         * doc/posix-functions/remainderl.texi: Mention missing declaration
37536         problem.
37538 2012-03-07  Bruno Haible  <bruno@clisp.org>
37540         rintf: Don't override undeclared system function on IRIX 6.5.
37541         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
37542         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
37543         exists. Set HAVE_DECL_RINTF.
37544         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
37545         HAVE_RINTF.
37546         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
37547         HAVE_RINTF.
37548         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
37550 2012-03-07  Bruno Haible  <bruno@clisp.org>
37552         roundl: Avoid compilation error on AIX.
37553         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
37554         AIX 5.2..7.1.
37556 2012-03-07  Bruno Haible  <bruno@clisp.org>
37558         roundl: Don't override undeclared system function on IRIX 6.5.
37559         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
37560         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
37561         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
37562         * modules/roundl (configure.ac): For replacement code, test
37563         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
37564         (Depends-on): Update conditions.
37565         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
37567 2012-03-07  Bruno Haible  <bruno@clisp.org>
37569         roundf: Don't override undeclared system function on IRIX 6.5.
37570         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
37571         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
37572         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
37573         * modules/roundf (configure.ac): For replacement code, test
37574         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
37575         (Depends-on): Update conditions.
37576         * modules/roundf-ieee (Depends-on): Update conditions.
37577         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
37579 2012-03-07  Bruno Haible  <bruno@clisp.org>
37581         round: Don't override undeclared system function on IRIX 6.5.
37582         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
37583         argument.
37584         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
37585         also when it is not declared. Set HAVE_ROUND. For replacement code,
37586         test HAVE_ROUND, not HAVE_DECL_ROUND.
37587         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
37588         not HAVE_DECL_ROUND.
37589         (Depends-on): Update conditions.
37590         * modules/round-ieee (Depends-on): Update conditions.
37591         * doc/posix-functions/round.texi: Mention the IRIX problem.
37593 2012-03-07  Bruno Haible  <bruno@clisp.org>
37595         copysignf: Don't override undeclared system function on IRIX 6.5.
37596         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
37597         HAVE_COPYSIGNF.
37598         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
37599         declared when it exists. Set HAVE_DECL_COPYSIGNF.
37600         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
37601         not HAVE_COPYSIGNF.
37602         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
37603         HAVE_COPYSIGNF.
37604         * doc/posix-functions/copysignf.texi: Mention missing declaration
37605         problem.
37607 2012-03-07  Jim Meyering  <meyering@redhat.com>
37609         readtokens: add tests
37610         * modules/readtokens-tests: New file.
37611         * tests/test-readtokens.c: New file.
37613 2012-03-07  Jim Meyering  <meyering@redhat.com>
37615         quotearg: the module must now include quote.h
37616         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
37617         So must the module.
37618         * modules/quotearg (Files): Add quote.h.
37620 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
37622         readtokens: avoid core dumps with unusual calling patterns
37623         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
37624         * lib/readtokens.c: Include limits.h.
37625         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
37626         (readtoken): Don't cache the delimiters; the cache code was buggy
37627         if !delim && saved_delim, or if the new n_delim differs from the old.
37628         Also, it wasn't thread-safe.
37630 2012-03-07  Bruno Haible  <bruno@clisp.org>
37632         quote: Adhere to common module description layout.
37633         * modules/quote (Makefile.am): Add back empty section.
37635 2012-03-06  Akim Demaille  <demaille@gostai.com>
37637         quote: fuse into quotearg
37638         This patch is made for the benefit of Bison.
37639         quote does not leave the choice of the quoting style to the user.
37640         quoting_style provides poor customizability, yet quoting_options,
37641         which is very rich, is hidden inside quotearg.c.  So in order to
37642         allow quote customization, move its implementation to quotearg.c.
37643         * lib/quote.c: Remove.
37644         * modules/quote: Adjust.
37645         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
37646         warning: provide all the members of literal structs.
37647         (quote_quoting_options): New.
37648         (quote, quote_n): Import implementation from quote.c.
37649         * lib/quote.h: Import the comments from quote.c.
37650         (quote_quoting_options): New.
37652 2012-03-06  Bruno Haible  <bruno@clisp.org>
37654         Tests for module 'expm1l-ieee'.
37655         * modules/expm1l-ieee-tests: New file.
37656         * tests/test-expm1l-ieee.c: New file.
37658         New module 'expm1l-ieee'.
37659         * modules/expm1l-ieee: New file.
37661         Tests for module 'expm1f-ieee'.
37662         * modules/expm1f-ieee-tests: New file.
37663         * tests/test-expm1f-ieee.c: New file.
37665         New module 'expm1f-ieee'.
37666         * modules/expm1f-ieee: New file.
37668         Tests for module 'expm1-ieee'.
37669         * modules/expm1-ieee-tests: New file.
37670         * tests/test-expm1-ieee.c: New file.
37671         * tests/test-expm1-ieee.h: New file.
37673         New module 'expm1-ieee'.
37674         * modules/expm1-ieee: New file.
37675         * m4/expm1-ieee.m4: New file.
37676         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
37677         whether expm1 works with a minus zero argument. Replace it if not.
37678         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
37679         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
37680         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
37681         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
37682         (Depends-on): Update conditions.
37683         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
37684         AIX problem.
37686 2012-03-06  Bruno Haible  <bruno@clisp.org>
37688         Work around expm1f bug on IRIX 6.5.
37689         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
37690         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
37691         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
37692         not work.
37693         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
37694         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
37695         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
37696         (Depends-on): Update conditions.
37697         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
37699 2012-03-06  Bruno Haible  <bruno@clisp.org>
37701         Tests for module 'expm1l'.
37702         * modules/expm1l-tests: New file.
37703         * tests/test-expm1l.c: New file.
37705         New module 'expm1l'.
37706         * lib/math.in.h (expm1l): New declaration.
37707         * lib/expm1l.c: New file.
37708         * m4/expm1l.m4: New file.
37709         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
37710         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
37711         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
37712         * modules/expm1l: New file.
37713         * tests/test-math-c++.cc: Check the declaration of expm1l.
37714         * doc/posix-functions/expm1l.texi: Mention the new module.
37716 2012-03-06  Bruno Haible  <bruno@clisp.org>
37718         Tests for module 'expm1f'.
37719         * modules/expm1f-tests: New file.
37720         * tests/test-expm1f.c: New file.
37722         New module 'expm1f'.
37723         * lib/math.in.h (expm1f): New declaration.
37724         * lib/expm1f.c: New file.
37725         * m4/expm1f.m4: New file.
37726         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
37727         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
37728         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
37729         * modules/expm1f: New file.
37730         * tests/test-math-c++.cc: Check the declaration of expm1f.
37731         * doc/posix-functions/expm1f.texi: Mention the new module.
37733 2012-03-06  Bruno Haible  <bruno@clisp.org>
37735         Tests for module 'expm1'.
37736         * modules/expm1-tests: New file.
37737         * tests/test-expm1.c: New file.
37738         * tests/test-expm1.h: New file.
37740         New module 'expm1'.
37741         * lib/math.in.h (expm1): New declaration.
37742         * lib/expm1.c: New file.
37743         * m4/expm1.m4: New file.
37744         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
37745         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
37746         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
37747         * modules/expm1: New file.
37748         * tests/test-math-c++.cc: Check the declaration of expm1.
37749         * doc/posix-functions/expm1.texi: Mention the new module.
37751 2012-03-06  Bruno Haible  <bruno@clisp.org>
37753         math: Ensure declarations of math functions.
37754         * modules/acosf (Depends-on): Add 'extensions'.
37755         * modules/asinf (Depends-on): Likewise.
37756         * modules/atan2f (Depends-on): Likewise.
37757         * modules/atanf (Depends-on): Likewise.
37758         * modules/cbrt (Depends-on): Likewise.
37759         * modules/cbrtf (Depends-on): Likewise.
37760         * modules/cbrtl (Depends-on): Likewise.
37761         * modules/copysignf (Depends-on): Likewise.
37762         * modules/copysignl (Depends-on): Likewise.
37763         * modules/cosf (Depends-on): Likewise.
37764         * modules/coshf (Depends-on): Likewise.
37765         * modules/expf (Depends-on): Likewise.
37766         * modules/fabsf (Depends-on): Likewise.
37767         * modules/fabsl (Depends-on): Likewise.
37768         * modules/fmaf (Depends-on): Likewise.
37769         * modules/fmal (Depends-on): Likewise.
37770         * modules/fmodf (Depends-on): Likewise.
37771         * modules/fmodl (Depends-on): Likewise.
37772         * modules/frexpf (Depends-on): Likewise.
37773         * modules/frexpl (Depends-on): Likewise.
37774         * modules/hypot (Depends-on): Likewise.
37775         * modules/hypotf (Depends-on): Likewise.
37776         * modules/hypotl (Depends-on): Likewise.
37777         * modules/ldexpf (Depends-on): Likewise.
37778         * modules/ldexpl (Depends-on): Likewise.
37779         * modules/log10f (Depends-on): Likewise.
37780         * modules/log10l (Depends-on): Likewise.
37781         * modules/log1p (Depends-on): Likewise.
37782         * modules/logb (Depends-on): Likewise.
37783         * modules/logf (Depends-on): Likewise.
37784         * modules/modff (Depends-on): Likewise.
37785         * modules/modfl (Depends-on): Likewise.
37786         * modules/powf (Depends-on): Likewise.
37787         * modules/remainderf (Depends-on): Likewise.
37788         * modules/remainderl (Depends-on): Likewise.
37789         * modules/rintf (Depends-on): Likewise.
37790         * modules/rintl (Depends-on): Likewise.
37791         * modules/sinf (Depends-on): Likewise.
37792         * modules/sinhf (Depends-on): Likewise.
37793         * modules/sqrtf (Depends-on): Likewise.
37794         * modules/tanf (Depends-on): Likewise.
37795         * modules/tanhf (Depends-on): Likewise.
37796         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
37797         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
37798         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
37799         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
37800         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
37801         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
37802         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
37803         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
37804         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
37805         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
37806         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
37807         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
37808         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
37809         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
37810         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
37811         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
37812         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
37813         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
37814         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
37815         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
37816         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
37817         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
37818         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
37819         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
37820         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
37821         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
37822         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
37823         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
37824         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
37825         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
37826         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
37827         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
37828         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
37829         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
37830         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
37831         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
37832         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
37833         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
37834         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
37835         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
37836         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
37838 2012-03-06  Bruno Haible  <bruno@clisp.org>
37840         math: Update module names in warnings.
37841         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
37842         tanl): Use specific module name in warn-on-use warning.
37844 2012-03-06  Bruno Haible  <bruno@clisp.org>
37846         expl: Simplify computation.
37847         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
37849 2012-03-05  Bruno Haible  <bruno@clisp.org>
37851         exp* tests: More tests.
37852         * tests/test-exp.h: New file.
37853         * tests/test-exp.c: Include <float.h> and test-exp.h.
37854         (main): Invoke test_function.
37855         * tests/test-expf.c: Include <float.h> and test-exp.h.
37856         (main): Invoke test_function.
37857         * tests/test-expl.c: Include <float.h> and test-exp.h.
37858         (main): Invoke test_function.
37859         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
37860         (Makefile.am): Add randomd.c to test_exp_SOURCES.
37861         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
37862         (Makefile.am): Add randomf.c to test_expf_SOURCES.
37863         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
37864         (Depends-on): Add 'float'.
37865         (Makefile.am): Add randoml.c to test_expl_SOURCES.
37867         expl: Fix precision of computed result.
37868         * lib/expl.c: Completely rewritten.
37869         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
37870         (Maintainer): Add me.
37871         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
37873 2012-03-05  Bruno Haible  <bruno@clisp.org>
37875         cbrt* tests: More tests.
37876         * tests/test-cbrt.h: New file.
37877         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
37878         (main): Invoke test_function.
37879         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
37880         (main): Invoke test_function.
37881         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
37882         (main): Invoke test_function.
37883         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
37884         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
37885         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
37886         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
37887         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
37888         (Depends-on): Add 'float'.
37889         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
37891 2012-03-05  Bruno Haible  <bruno@clisp.org>
37893         hypot* tests: More tests.
37894         * tests/test-hypot.h: New file, partially extracted from
37895         tests/test-hypotl.c.
37896         * tests/test-hypot.c: Include test-hypot.h.
37897         (main): Invoke test_function.
37898         * tests/test-hypotf.c: Include test-hypot.h.
37899         (main): Invoke test_function.
37900         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
37901         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
37902         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
37903         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
37904         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
37905         tests/randomf.c.
37906         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
37907         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
37908         tests/randoml.c.
37909         (Depends-on): Add 'fpucw', 'float'.
37910         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
37912 2012-03-05  Bruno Haible  <bruno@clisp.org>
37914         fpucw: Doc about FreeBSD.
37915         * lib/fpucw.h: Mention FreeBSD in comments.
37917 2012-03-04  Bruno Haible  <bruno@clisp.org>
37919         sqrt* tests: More tests.
37920         * tests/test-sqrt.h: New file.
37921         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
37922         (main): Invoke test_function.
37923         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
37924         (main): Invoke test_function.
37925         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
37926         (main): Invoke test_function.
37927         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
37928         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
37929         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
37930         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
37931         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
37932         (Depends-on): Add 'float'.
37933         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
37935 2012-03-04  Bruno Haible  <bruno@clisp.org>
37937         remainder* tests: More tests.
37938         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
37939         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
37940         (main): Invoke test_function.
37941         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
37942         (main): Invoke test_function.
37943         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
37944         (main): Invoke test_function.
37945         * modules/remainder-tests (Files): Add tests/test-remainder.h,
37946         tests/randomd.c.
37947         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
37948         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
37949         tests/randomf.c.
37950         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
37951         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
37952         tests/randoml.c.
37953         (Depends-on): Add 'float'.
37954         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
37956 2012-03-04  Bruno Haible  <bruno@clisp.org>
37958         remainder, remainderf, remainderl: Fix computation for large quotients.
37959         * lib/remainder.c: Completely rewritten.
37960         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
37961         USE_FLOAT.
37962         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
37963         USE_LONG_DOUBLE.
37964         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
37965         isnand, isinf. Remove round, fma.
37966         * modules/remainderf (Files): Add lib/remainder.c.
37967         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
37968         Remove roundf, fmaf.
37969         * modules/remainderl (Files): Add lib/remainder.c.
37970         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
37971         isinf. Remove roundl, fmal.
37972         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
37973         REMAINDER_LIBM.
37974         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
37975         REMAINDERF_LIBM.
37976         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
37977         REMAINDERL_LIBM.
37979 2012-03-04  Bruno Haible  <bruno@clisp.org>
37981         fmod* tests: More tests.
37982         * tests/test-fmod.h (my_ldexp): New function.
37983         (test_function): Reduce amount of random numbers to test. Add tests
37984         of very large quotients x / y.
37985         * tests/test-fmod.c (MAX_EXP): New macro.
37986         * tests/test-fmodf.c (MAX_EXP): Likewise.
37987         * tests/test-fmodl.c (MAX_EXP): Likewise.
37989 2012-03-04  Bruno Haible  <bruno@clisp.org>
37991         fmod, fmodl: Fix computation for large quotients x / y.
37992         * lib/fmod.c: Completely rewritten.
37993         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
37994         USE_LONG_DOUBLE.
37995         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
37996         isnand. Remove fma.
37997         * modules/fmodl (Files): Add lib/fmod.c.
37998         (Depends-on): Add float, isfinite, signbit, fabsl,
37999         frexpl, ldexpl, isnanl. Remove fma.
38000         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
38001         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
38003 2012-03-03  Bruno Haible  <bruno@clisp.org>
38005         fmod* tests: More tests.
38006         * tests/test-fmod.h: New file.
38007         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
38008         (main): Invoke test_function.
38009         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
38010         (main): Invoke test_function.
38011         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
38012         (main): Invoke test_function.
38013         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
38014         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
38015         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
38016         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
38017         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
38018         (Depends-on): Add 'float'.
38019         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
38021 2012-03-03  Bruno Haible  <bruno@clisp.org>
38023         rint* tests: More tests.
38024         * tests/test-rint.h: New file, partially extracted from
38025         tests/test-rintl.c.
38026         * tests/test-rint.c: Include test-rint.h.
38027         (main): Invoke test_function.
38028         * tests/test-rintf.c: Include test-rint.h.
38029         (main): Invoke test_function.
38030         * tests/test-rintl.c: Include test-rint.h.
38031         (main): Invoke test_function.
38032         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
38033         (Makefile.am): Add randomd.c to test_rint_SOURCES.
38034         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
38035         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
38036         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
38037         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
38039 2012-03-03  Bruno Haible  <bruno@clisp.org>
38041         modf* tests: More tests.
38042         * tests/test-modf.h: New file.
38043         * tests/test-modf.c: Include <float.h> and test-modf.h.
38044         (main): Invoke test_function.
38045         * tests/test-modff.c: Include <float.h> and test-modf.h.
38046         (main): Invoke test_function.
38047         * tests/test-modfl.c: Include <float.h> and test-modf.h.
38048         (main): Invoke test_function.
38049         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
38050         (Makefile.am): Add randomd.c to test_modf_SOURCES.
38051         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
38052         (Makefile.am): Add randomf.c to test_modff_SOURCES.
38053         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
38054         (Depends-on): Add 'float'.
38055         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
38057 2012-03-03  Bruno Haible  <bruno@clisp.org>
38059         fabs* tests: More tests.
38060         * tests/test-fabs.h: New file, partially extracted from
38061         tests/test-fabsl.c.
38062         * tests/test-fabs.c (RANDOM): New macro.
38063         * tests/test-fabsf.c (RANDOM): New macro.
38064         * tests/test-fabsl.c (RANDOM): New macro.
38065         * modules/fabs-tests (Files): Add tests/randomd.c.
38066         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
38067         * modules/fabsf-tests (Files): Add tests/randomf.c.
38068         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
38069         * modules/fabsl-tests (Files): Add tests/randoml.c.
38070         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
38072 2012-03-03  Bruno Haible  <bruno@clisp.org>
38074         ldexp* tests: More tests.
38075         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
38076         * tests/test-ldexp.c (RANDOM): New macro.
38077         * tests/test-ldexpf.c (RANDOM): New macro.
38078         * tests/test-ldexpl.c (RANDOM): New macro.
38079         * modules/ldexp-tests (Files): Add tests/randomd.c.
38080         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
38081         * modules/ldexpf-tests (Files): Add tests/randomf.c.
38082         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
38083         * modules/ldexpl-tests (Files): Add tests/randoml.c.
38084         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
38086 2012-03-03  Bruno Haible  <bruno@clisp.org>
38088         frexp* tests: More tests.
38089         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
38090         * tests/test-frexp.c (RANDOM): New macro.
38091         * tests/test-frexpf.c (RANDOM): New macro.
38092         * tests/test-frexpl.c (RANDOM): New macro.
38093         * modules/frexp-tests (Files): Add tests/randomd.c.
38094         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
38095         * modules/frexpf-tests (Files): Add tests/randomf.c.
38096         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
38097         * modules/frexpl-tests (Files): Add tests/randoml.c.
38098         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
38100 2012-03-03  Bruno Haible  <bruno@clisp.org>
38102         Support for pseudo-random numbers in tests.
38103         * tests/randomf.c: New file.
38104         * tests/randomd.c: New file.
38105         * tests/randoml.c: New file.
38106         * tests/macros.h (randomf, randomd, randoml): New declarations.
38108 2012-03-03  Bruno Haible  <bruno@clisp.org>
38110         frexp* tests: Refactor.
38111         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
38112         * tests/test-frexp.c: Include and use it.
38113         * tests/test-frexpf.c: Likewise.
38114         * tests/test-frexpl.c: Likewise.
38115         * modules/frexp-tests (Files): Add tests/test-frexp.h.
38116         * modules/frexpf-tests (Files): Likewise.
38117         * modules/frexpl-tests (Files): Likewise.
38119 2012-03-02  Jim Meyering  <meyering@redhat.com>
38121         maint: don't specify XZ_OPT=-9ev in dist-related rule
38122         Using xz's -9 option is warranted only if you have a very large
38123         tarball (see xz's documentation for the sizes vs. presets), and
38124         requires 64MiB of memory at decompression time.
38125         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
38126         Automake's default of just "-e" is fine.  Override on a
38127         per-package basis by setting XZ_OPT e.g., in cfg.mk.
38129 2012-03-01  Eric Blake  <eblake@redhat.com>
38131         maint.mk: allow announcement for non-gnulib project
38132         * maint.mk (announcement): Skip gnulib version if not used.
38134 2012-03-01  Jim Meyering  <meyering@redhat.com>
38136         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
38137         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
38138         envvar settings cannot interfere.  Otherwise, setting envvars like
38139         prohibit=foo require=bar, etc. would cause spurious test failures.
38141 2012-03-01  Eric Blake  <eblake@redhat.com>
38143         maint.mk: add per-line exclusions to prohibitions
38144         * maint.mk (_sc_search_regexp): Add $exclude parameter.
38145         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
38146         (sc_const_long_option): Use it.
38148 2012-03-01  Bruno Haible  <bruno@clisp.org>
38150         Tests for module 'expl-ieee'.
38151         * modules/expl-ieee-tests: New file.
38152         * tests/test-expl-ieee.c: New file.
38154         New module 'expl-ieee'.
38155         * modules/expl-ieee: New file.
38157         Tests for module 'exp-ieee'.
38158         * modules/exp-ieee-tests: New file.
38159         * tests/test-exp-ieee.c: New file.
38161         New module 'exp-ieee'.
38162         * modules/exp-ieee: New file.
38164         Tests for module 'expf-ieee'.
38165         * modules/expf-ieee-tests: New file.
38166         * tests/test-expf-ieee.c: New file.
38167         * tests/test-exp-ieee.h: New file.
38169         New module 'expf-ieee'.
38170         * modules/expf-ieee: New file.
38172 2012-02-29  Bruno Haible  <bruno@clisp.org>
38174         cbrtl-ieee: Work around test failure on IRIX 6.5.
38175         * m4/cbrtl-ieee.m4: New file.
38176         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
38177         test whether cbrtl works with a minus zero argument. Replace it if not.
38178         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
38179         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
38180         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
38181         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
38182         (Depends-on): Update conditions.
38183         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
38184         m4/signbit.m4.
38185         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
38186         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
38187         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
38189         Tests for module 'cbrtl-ieee'.
38190         * modules/cbrtl-ieee-tests: New file.
38191         * tests/test-cbrtl-ieee.c: New file.
38193         New module 'cbrtl-ieee'.
38194         * modules/cbrtl-ieee: New file.
38196         Tests for module 'cbrt-ieee'.
38197         * modules/cbrt-ieee-tests: New file.
38198         * tests/test-cbrt-ieee.c: New file.
38200         New module 'cbrt-ieee'.
38201         * modules/cbrt-ieee: New file.
38203         Tests for module 'cbrtf-ieee'.
38204         * modules/cbrtf-ieee-tests: New file.
38205         * tests/test-cbrtf-ieee.c: New file.
38206         * tests/test-cbrt-ieee.h: New file.
38208         New module 'cbrtf-ieee'.
38209         * modules/cbrtf-ieee: New file.
38211 2012-02-29  Bruno Haible  <bruno@clisp.org>
38213         cbrtf: Work around bug in IRIX 6.5 system function.
38214         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
38215         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
38216         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
38217         work.
38218         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
38219         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
38220         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
38221         (Depends-on): Update conditions.
38222         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
38224 2012-02-29  Bruno Haible  <bruno@clisp.org>
38226         Tests for module 'cbrtl'.
38227         * modules/cbrtl-tests: New file.
38228         * tests/test-cbrtl.c: New file.
38230         New module 'cbrtl'.
38231         * lib/math.in.h (cbrtl): New declaration.
38232         * lib/cbrtl.c: New file.
38233         * m4/cbrtl.m4: New file.
38234         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
38235         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
38236         HAVE_DECL_CBRTL.
38237         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
38238         HAVE_DECL_CBRTL.
38239         * modules/cbrtl: New file.
38240         * tests/test-math-c++.cc: Check the declaration of cbrtl.
38241         * doc/posix-functions/cbrtl.texi: Mention the new module.
38243 2012-02-29  Bruno Haible  <bruno@clisp.org>
38245         Tests for module 'cbrtf'.
38246         * modules/cbrtf-tests: New file.
38247         * tests/test-cbrtf.c: New file.
38249         New module 'cbrtf'.
38250         * lib/math.in.h (cbrtf): New declaration.
38251         * lib/cbrtf.c: New file.
38252         * m4/cbrtf.m4: New file.
38253         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
38254         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
38255         HAVE_DECL_CBRTF.
38256         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
38257         HAVE_DECL_CBRTF.
38258         * modules/cbrtf: New file.
38259         * tests/test-math-c++.cc: Check the declaration of cbrtf.
38260         * doc/posix-functions/cbrtf.texi: Mention the new module.
38262 2012-02-29  Bruno Haible  <bruno@clisp.org>
38264         cbrt: Provide replacement on MSVC and Minix.
38265         * lib/math.in.h (cbrt): New declaration.
38266         * lib/cbrt.c: New file.
38267         * m4/cbrt.m4: New file.
38268         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
38269         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
38270         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
38271         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
38272         (Depends-on): Add dependencies.
38273         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
38274         * tests/test-math-c++.cc: Check the declaration of cbrt.
38275         * doc/posix-functions/cbrt.texi: Mention that the module provides a
38276         replacement.
38278 2012-02-29  Bruno Haible  <bruno@clisp.org>
38280         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
38281         * m4/hypotl-ieee.m4: New file.
38282         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
38283         test whether hypotl works with mixed NaN and Infinity arguments.
38284         Replace it if not.
38285         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
38286         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
38287         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
38288         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
38289         (Depends-on): Update conditions.
38290         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
38291         (Depends-on): Add hypot-ieee.
38292         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
38293         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
38295         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
38296         * m4/hypotf-ieee.m4: New file.
38297         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
38298         test whether hypotf works with mixed NaN and Infinity arguments.
38299         Replace it if not.
38300         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
38301         (Depends-on): Add hypot-ieee.
38302         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
38303         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
38305         hypot-ieee: Work around test failure on OSF/1 and native Windows.
38306         * lib/math.in.h (hypot): New declaration.
38307         * lib/hypot.c: New file.
38308         * m4/hypot-ieee.m4: New file.
38309         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
38310         whether hypot works with mixed NaN and Infinity arguments. Replace it
38311         if not.
38312         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
38313         REPLACE_HYPOT.
38314         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
38315         * modules/hypot (Files): Add lib/hypot.c.
38316         (Depends-on): Add dependencies.
38317         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
38318         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
38319         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
38320         * tests/test-math-c++.cc: Check the declaration of hypot.
38321         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
38323         Tests for module 'hypotl-ieee'.
38324         * modules/hypotl-ieee-tests: New file.
38325         * tests/test-hypotl-ieee.c: New file.
38327         New module 'hypotl-ieee'.
38328         * modules/hypotl-ieee: New file.
38330         Tests for module 'hypot-ieee'.
38331         * modules/hypot-ieee-tests: New file.
38332         * tests/test-hypot-ieee.c: New file.
38334         New module 'hypot-ieee'.
38335         * modules/hypot-ieee: New file.
38337         Tests for module 'hypotf-ieee'.
38338         * modules/hypotf-ieee-tests: New file.
38339         * tests/test-hypotf-ieee.c: New file.
38340         * tests/test-hypot-ieee.h: New file.
38342         New module 'hypotf-ieee'.
38343         * modules/hypotf-ieee: New file.
38345 2012-02-29  Bruno Haible  <bruno@clisp.org>
38347         Remove unused variables.
38348         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
38349         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
38350         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
38351         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
38353 2012-02-29  Eric Blake  <eblake@redhat.com>
38355         termios: fix pid_t always, not just for tcgetsid
38356         * doc/posix-headers/termios.texi (termios.h): Mention problem.
38357         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
38358         just when building tcgetsid.
38360 2012-02-29  Bruno Haible  <bruno@clisp.org>
38362         Tests for module 'hypotl'.
38363         * modules/hypotl-tests: New file.
38364         * tests/test-hypotl.c: New file.
38366         New module 'hypotl'.
38367         * lib/math.in.h (hypotl): New declaration.
38368         * lib/hypotl.c: New file.
38369         * m4/hypotl.m4: New file.
38370         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
38371         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
38372         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
38373         * modules/hypotl: New file.
38374         * tests/test-math-c++.cc: Check the hypotl declaration.
38375         * doc/posix-functions/hypotl.texi: Mention the new module.
38377 2012-02-29  Eric Blake  <eblake@redhat.com>
38379         tcgetsid: fix cygwin header bug
38380         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
38382         docs: update cygwin progress
38383         * doc/posix-functions/llround.texi (llround): Added in cygwin
38384         1.7.8.
38385         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
38386         * doc/glibc-functions/program_invocation_name.texi
38387         (program_invocation_name): Likewise.
38388         * doc/glibc-functions/program_invocation_short_name.texi
38389         (program_invocation_short_name): Likewise.
38390         * doc/glibc-functions/madvise.texi (madvise): Likewise.
38391         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
38392         Likewise.
38393         * doc/posix-functions/pthread_spin_destroy.texi
38394         (pthread_spin_destroy): Added in cygwin 1.7.10.
38395         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
38396         Likewise.
38397         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
38398         Likewise.
38399         * doc/posix-functions/pthread_spin_trylock.texi
38400         (pthread_spin_trylock): Likewise.
38401         * doc/posix-functions/pthread_spin_unlock.texi
38402         (pthread_spin_unlock): Likewise.
38403         * doc/posix-functions/pthread_setschedprio.texi
38404         (pthread_setschedprio): Likewise.
38405         * doc/posix-functions/pthread_attr_getstack.texi
38406         (pthread_attr_getstack): Likewise.
38407         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
38408         (pthread_attr_getstackaddr): Likewise.
38409         * doc/glibc-functions/pthread_getattr_np.texi
38410         (pthread_getattr_np): Likewise.
38411         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
38412         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
38413         * doc/posix-functions/clock_settime.texi (clock_settime):
38414         Likewise.
38415         * doc/posix-functions/pthread_attr_getguardsize.texi
38416         (pthread_attr_getguardsize): Likewise.
38417         * doc/posix-functions/pthread_attr_setguardsize.texi
38418         (pthread_attr_setguardsize): Likewise.
38419         * doc/posix-functions/pthread_attr_setstack.texi
38420         (pthread_attr_setstack): Likewise.
38421         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
38422         (pthread_attr_setstackaddr): Likewise.
38423         * doc/posix-functions/clock_getcpuclockid.texi
38424         (clock_getcpuclockid): Likewise.
38425         * doc/posix-functions/pthread_getcpuclockid.texi
38426         (pthread_getcpuclockid): Likewise.
38427         * doc/glibc-functions/error.texi (error): Likewise.
38428         * doc/glibc-functions/error_at_line.texi (error_at_line):
38429         Likewise.
38430         * doc/glibc-functions/error_message_count.texi
38431         (error_message_count): Likewise.
38432         * doc/glibc-functions/error_one_per_line.texi
38433         (error_one_per_line): Likewise.
38434         * doc/glibc-functions/error_print_progname.texi
38435         (error_print_progname): Likewise.
38436         * doc/posix-functions/pthread_condattr_getclock.texi
38437         (pthread_condattr_getclock): Likewise.
38438         * doc/posix-functions/pthread_condattr_setclock.texi
38439         (pthread_condattr_setclock): Likewise.
38440         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
38441         Likewise.
38442         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
38443         * doc/glibc-functions/getpt.texi (getpt): Likewise.
38444         * doc/glibc-functions/get_current_dir_name.texi
38445         (get_current_dir_name): Likewise.
38446         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
38447         Likewise.
38448         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
38449         wrong return type.
38450         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
38451         1.7.11.
38453 2012-02-29  Bruno Haible  <bruno@clisp.org>
38455         Tests for module 'hypotf'.
38456         * modules/hypotf-tests: New file.
38457         * tests/test-hypotf.c: New file.
38459         New module 'hypotf'.
38460         * lib/math.in.h (hypotf): New declaration.
38461         * lib/hypotf.c: New file.
38462         * m4/hypotf.m4: New file.
38463         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
38464         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
38465         REPLACE_HYPOTF.
38466         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
38467         REPLACE_HYPOTF.
38468         * modules/hypotf: New file.
38469         * tests/test-math-c++.cc: Check the hypotf declaration.
38470         * doc/posix-functions/hypotf.texi: Mention the new module.
38472         hypot: Prepare for hypotf module.
38473         * m4/hypot.m4: New file.
38474         * modules/hypot (Files): Add m4/hypot.m4.
38475         (configure.ac): Invoke gl_FUNC_HYPOT.
38477 2012-02-29  Bruno Haible  <bruno@clisp.org>
38479         hypot tests: More tests.
38480         * tests/test-hypot.c: Include <float.h>.
38481         (main): Add tests about overflow and underflow.
38483 2012-02-29  Bruno Haible  <bruno@clisp.org>
38485         math code: Add comments.
38486         * lib/acosl.c: Add comment about related glibc source files.
38487         * lib/asinl.c: Likewise.
38488         * lib/atanl.c: Likewise.
38489         * lib/expl.c: Likewise.
38490         * lib/logl.c: Likewise.
38491         * lib/sincosl.c: Likewise.
38492         * lib/sinl.c: Likewise.
38493         * lib/tanl.c: Likewise.
38494         * lib/trigl.c: Likewise.
38495         * lib/cosl.c: Likewise. Fix comments.
38497 2012-02-28  Bruno Haible  <bruno@clisp.org>
38499         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
38500         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
38501         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
38502         HUGE_VALL are defined.
38503         (numeric_equald): Renamed from numeric_equal.
38504         (numeric_equalf, numeric_equall): New functions.
38505         (main): Check also HUGE_VALF, HUGE_VALL.
38506         * modules/math-tests (Files): Add tests/macros.h.
38507         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
38508         HUGE_VALL.
38510 2012-02-28  Bruno Haible  <bruno@clisp.org>
38512         doc: Move ISO C11 feature notes into POSIX chapters.
38513         * doc/posix-functions/aligned_alloc.texi: Renamed from
38514         doc/glibc-functions/aligned_alloc.texi.
38515         * doc/posix-functions/quick_exit.texi: Renamed from
38516         doc/glibc-functions/quick_exit.texi.
38517         * doc/posix-headers/uchar.texi: Renamed from
38518         doc/glibc-headers/uchar.texi.
38519         * doc/posix-functions/c16rtomb.texi: Renamed from
38520         doc/glibc-functions/c16rtomb.texi.
38521         * doc/posix-functions/c32rtomb.texi: Renamed from
38522         doc/glibc-functions/c32rtomb.texi.
38523         * doc/posix-functions/mbrtoc16.texi: Renamed from
38524         doc/glibc-functions/mbrtoc16.texi.
38525         * doc/posix-functions/mbrtoc32.texi: Renamed from
38526         doc/glibc-functions/mbrtoc32.texi.
38527         * doc/gnulib.texi: Update.
38528         (Glibc uchar.h): Remove section.
38529         Suggested by Eric Blake.
38531 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
38533         stdnoreturn: port to MSVC better
38534         MSVC standard headers use __declspec(noreturn), so #define noreturn
38535         to empty on that platform.  Reported by Bruno Haible in
38536         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
38537         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
38538         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
38540 2012-02-28  Bruno Haible  <bruno@clisp.org>
38542         doc: Mention new glibc headers and functions.
38543         * doc/glibc-headers/uchar.texi: New file.
38544         * doc/glibc-functions/aligned_alloc.texi: New file.
38545         * doc/glibc-functions/c16rtomb.texi: New file.
38546         * doc/glibc-functions/c32rtomb.texi: New file.
38547         * doc/glibc-functions/clock_adjtime.texi: New file.
38548         * doc/glibc-functions/fanotify_init.texi: New file.
38549         * doc/glibc-functions/fanotify_mark.texi: New file.
38550         * doc/glibc-functions/inet6_opt_append.texi: New file.
38551         * doc/glibc-functions/inet6_opt_find.texi: New file.
38552         * doc/glibc-functions/inet6_opt_finish.texi: New file.
38553         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
38554         * doc/glibc-functions/inet6_opt_init.texi: New file.
38555         * doc/glibc-functions/inet6_opt_next.texi: New file.
38556         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
38557         * doc/glibc-functions/inet6_rth_add.texi: New file.
38558         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
38559         * doc/glibc-functions/inet6_rth_init.texi: New file.
38560         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
38561         * doc/glibc-functions/inet6_rth_segments.texi: New file.
38562         * doc/glibc-functions/inet6_rth_space.texi: New file.
38563         * doc/glibc-functions/login.texi: New file.
38564         * doc/glibc-functions/mbrtoc16.texi: New file.
38565         * doc/glibc-functions/mbrtoc32.texi: New file.
38566         * doc/glibc-functions/name_to_handle_at.texi: New file.
38567         * doc/glibc-functions/ntp_gettimex.texi: New file.
38568         * doc/glibc-functions/open_by_handle_at.texi: New file.
38569         * doc/glibc-functions/prlimit.texi: New file.
38570         * doc/glibc-functions/process_vm_readv.texi: New file.
38571         * doc/glibc-functions/process_vm_writev.texi: New file.
38572         * doc/glibc-functions/recvmmsg.texi: New file.
38573         * doc/glibc-functions/scandirat.texi: New file.
38574         * doc/glibc-functions/sendmmsg.texi: New file.
38575         * doc/glibc-functions/setns.texi: New file.
38576         * doc/glibc-functions/timespec_get.texi: New file.
38577         * doc/gnulib.texi: Include them.
38578         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
38579         sections.
38580         Reported by Eric Blake.
38582 2012-02-28  Bruno Haible  <bruno@clisp.org>
38584         Avoid compilation errors with MSVC option -fp:strict.
38585         * lib/floor.c: Use MSVC specific pragma fenv_access.
38586         * lib/ceil.c: Likewise.
38587         * lib/trunc.c: Likewise.
38588         * lib/round.c: Likewise.
38589         * lib/rint.c: Likewise.
38590         * lib/fma.c: Likewise.
38591         * lib/integer_length.c: Likewise.
38592         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
38593         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
38594         * tests/test-floor2.c: Likewise.
38595         * tests/test-floorf2.c: Likewise.
38596         * tests/test-ceil2.c: Likewise.
38597         * tests/test-ceilf2.c: Likewise.
38598         * tests/test-trunc2.c: Likewise.
38599         * tests/test-truncf2.c: Likewise.
38600         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
38602 2012-02-27  Bruno Haible  <bruno@clisp.org>
38604         Tests for module 'sqrtl-ieee'.
38605         * modules/sqrtl-ieee-tests: New file.
38606         * tests/test-sqrtl-ieee.c: New file.
38608         New module 'sqrtl-ieee'.
38609         * modules/sqrtl-ieee: New file.
38611         Tests for module 'sqrt-ieee'.
38612         * modules/sqrt-ieee-tests: New file.
38613         * tests/test-sqrt-ieee.c: New file.
38615         New module 'sqrt-ieee'.
38616         * modules/sqrt-ieee: New file.
38618         Tests for module 'sqrtf-ieee'.
38619         * modules/sqrtf-ieee-tests: New file.
38620         * tests/test-sqrtf-ieee.c: New file.
38621         * tests/test-sqrt-ieee.h: New file.
38623         New module 'sqrtf-ieee'.
38624         * modules/sqrtf-ieee: New file.
38626 2012-02-27  Bruno Haible  <bruno@clisp.org>
38628         remainderl-ieee: Work around test failure on OSF/1.
38629         * m4/remainderl-ieee.m4: New file.
38630         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
38631         present, test whether remainderl works with a zero second argument.
38632         Replace it if not.
38633         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
38634         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
38635         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
38636         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
38637         (Depends-on): Update conditions.
38638         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
38639         (Depends-on): Add remainder-ieee.
38640         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
38641         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
38642         module.
38644         remainderf-ieee: Work around test failure on OSF/1.
38645         * m4/remainderf-ieee.m4: New file.
38646         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
38647         present, test whether remainderf works with a zero second argument.
38648         Replace it if not.
38649         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
38650         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
38651         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
38652         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
38653         (Depends-on): Update conditions.
38654         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
38655         (Depends-on): Add remainder-ieee.
38656         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
38657         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
38658         module.
38660         remainder-ieee: Work around test failure on OSF/1.
38661         * m4/remainder-ieee.m4: New file.
38662         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
38663         present, test whether remainder works with a zero second argument.
38664         Replace it if not.
38665         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
38666         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
38667         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
38668         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
38669         (Depends-on): Update dependencies.
38670         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
38671         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
38672         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
38674         Tests for module 'remainderl-ieee'.
38675         * modules/remainderl-ieee-tests: New file.
38676         * tests/test-remainderl-ieee.c: New file.
38678         New module 'remainderl-ieee'.
38679         * modules/remainderl-ieee: New file.
38681         Tests for module 'remainder-ieee'.
38682         * modules/remainder-ieee-tests: New file.
38683         * tests/test-remainder-ieee.c: New file.
38685         New module 'remainder-ieee'.
38686         * modules/remainder-ieee: New file.
38688         Tests for module 'remainderf-ieee'.
38689         * modules/remainderf-ieee-tests: New file.
38690         * tests/test-remainderf-ieee.c: New file.
38691         * tests/test-remainder-ieee.h: New file.
38693         New module 'remainderf-ieee'.
38694         * modules/remainderf-ieee: New file.
38696 2012-02-27  Bruno Haible  <bruno@clisp.org>
38698         modff, modfl: Fix configure syntax error.
38699         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
38700         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
38702 2012-02-27  Bruno Haible  <bruno@clisp.org>
38704         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
38705         * m4/fmodl-ieee.m4: New file.
38706         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
38707         whether fmodl works with zero arguments. Replace it if not.
38708         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
38709         (Depends-on): Add fmod-ieee.
38710         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
38711         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
38713         fmodf-ieee: Work around test failure on OSF/1.
38714         * m4/fmodf-ieee.m4: New file.
38715         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
38716         whether fmodf works with zero arguments. Replace it if not.
38717         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
38718         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
38719         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
38720         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
38721         (Depends-on): Update dependencies.
38722         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
38723         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
38724         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
38726         fmodf-ieee: Work around test failure on MSVC 9.
38727         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
38728         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
38730         fmod-ieee: Work around test failures on OSF/1, mingw.
38731         * m4/fmod-ieee.m4: New file.
38732         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
38733         whether fmod works with zero arguments. Replace it if not.
38734         * lib/math.in.h (fmod): New declaration.
38735         * lib/fmod.c: New file.
38736         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
38737         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
38738         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
38739         * modules/fmod (Files): Add lib/fmod.c.
38740         (Depends-on): Add math, isinf, trunc, fma.
38741         (configure.ac): Arrange to compile lib/fmod.c if needed.
38742         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
38743         m4/signbit.m4.
38744         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
38745         * tests/test-math-c++.cc: Check the declaration of fmod.
38746         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
38748         fmodl-ieee: Fix test failures.
38749         * lib/fmodl.c (fmodl): Treat Inf specially.
38750         * modules/fmodl (Depends-on): Add isinf.
38752         Tests for module 'fmodl-ieee'.
38753         * modules/fmodl-ieee-tests: New file.
38754         * tests/test-fmodl-ieee.c: New file.
38756         New module 'fmodl-ieee'.
38757         * modules/fmodl-ieee: New file.
38759         Tests for module 'fmod-ieee'.
38760         * modules/fmod-ieee-tests: New file.
38761         * tests/test-fmod-ieee.c: New file.
38763         New module 'fmod-ieee'.
38764         * modules/fmod-ieee: New file.
38766         Tests for module 'fmodf-ieee'.
38767         * modules/fmodf-ieee-tests: New file.
38768         * tests/test-fmodf-ieee.c: New file.
38769         * tests/test-fmod-ieee.h: New file.
38771         New module 'fmodf-ieee'.
38772         * modules/fmodf-ieee: New file.
38774 2012-02-27  Bruno Haible  <bruno@clisp.org>
38776         Tests for module 'rintl-ieee'.
38777         * modules/rintl-ieee-tests: New file.
38778         * tests/test-rintl-ieee.c: New file.
38780         New module 'rintl-ieee'.
38781         * modules/rintl-ieee: New file.
38783         Tests for module 'rint-ieee'.
38784         * modules/rint-ieee-tests: New file.
38785         * tests/test-rint-ieee.c: New file.
38787         New module 'rint-ieee'.
38788         * modules/rint-ieee: New file.
38790         Tests for module 'rintf-ieee'.
38791         * modules/rintf-ieee-tests: New file.
38792         * tests/test-rintf-ieee.c: New file.
38793         * tests/test-rint-ieee.h: New file.
38795         New module 'rintf-ieee'.
38796         * modules/rintf-ieee: New file.
38798 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
38800         regex: re_search etc. should return -2 when memory exhausted
38801         This bug was uncovered when testing 'grep'.  Without the fix,
38802         re_search and friends return -1 when memory is exhausted, but -1
38803         means no match, and this causes grep to falsely report no-match
38804         instead of memory-exhaustion.  See
38805         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
38806         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
38807         trouble; this can occur if re_search_internal ran out of memory.
38809 2012-02-26  Bruno Haible  <bruno@clisp.org>
38811         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
38812         * m4/modfl-ieee.m4: New file.
38813         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
38814         whether modfl works with Inf. Replace it if not.
38815         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
38816         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
38817         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
38818         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
38819         (Depends-on): Update dependencies.
38820         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
38821         m4/signbit.m4.
38822         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
38823         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
38825         modfl-ieee: Fix dependencies.
38826         * modules/modfl-ieee (Depends-on): Add modf-ieee.
38828         modfl-ieee: Fix test failures.
38829         * lib/modfl.c (modfl): Treat NaN and Inf specially.
38830         * modules/modfl (Depends-on): Add isfinite, isinf.
38832         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
38833         * m4/modff-ieee.m4: New file.
38834         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
38835         whether modff works with NaN and Inf. Replace it if not.
38836         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
38837         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
38838         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
38839         * modules/modff (configure.ac): Consider REPLACE_MODFF.
38840         (Depends-on): Update dependencies.
38841         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
38842         m4/signbit.m4.
38843         (Depends-on): Add modf-ieee.
38844         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
38845         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
38847         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
38848         * m4/modf-ieee.m4: New file.
38849         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
38850         whether modf works with NaN and Inf. Replace it if not.
38851         * lib/math.in.h (modf): New declaration.
38852         * lib/modf.c: New file.
38853         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
38854         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
38855         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
38856         * modules/modf (Files): Add lib/modf.c.
38857         (Depends-on): Add math, isfinite, trunc, isinf.
38858         (configure.ac): Addrange to compile lib/modf.c if needed.
38859         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
38860         m4/signbit.m4.
38861         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
38862         * tests/test-math-c++.cc: Check the declaration of modf.
38863         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
38865         Tests for module 'modfl-ieee'.
38866         * modules/modfl-ieee-tests: New file.
38867         * tests/test-modfl-ieee.c: New file.
38869         New module 'modfl-ieee'.
38870         * modules/modfl-ieee: New file.
38872         Tests for module 'modf-ieee'.
38873         * modules/modf-ieee-tests: New file.
38874         * tests/test-modf-ieee.c: New file.
38876         New module 'modf-ieee'.
38877         * modules/modf-ieee: New file.
38879         Tests for module 'modff-ieee'.
38880         * modules/modff-ieee-tests: New file.
38881         * tests/test-modff-ieee.c: New file.
38882         * tests/test-modf-ieee.h: New file.
38884         New module 'modff-ieee'.
38885         * modules/modff-ieee: New file.
38887 2012-02-26  Bruno Haible  <bruno@clisp.org>
38889         Tests for module 'fabsl-ieee'.
38890         * modules/fabsl-ieee-tests: New file.
38891         * tests/test-fabsl-ieee.c: New file.
38893         New module 'fabsl-ieee'.
38894         * modules/fabsl-ieee: New file.
38896         Tests for module 'fabs-ieee'.
38897         * modules/fabs-ieee-tests: New file.
38898         * tests/test-fabs-ieee.c: New file.
38900         New module 'fabs-ieee'.
38901         * modules/fabs-ieee: New file.
38903         Tests for module 'fabsf-ieee'.
38904         * modules/fabsf-ieee-tests: New file.
38905         * tests/test-fabsf-ieee.c: New file.
38906         * tests/test-fabs-ieee.h: New file.
38908         New module 'fabsf-ieee'.
38909         * modules/fabsf-ieee: New file.
38911 2012-02-26  Bruno Haible  <bruno@clisp.org>
38913         Tests for module 'fmal-ieee'.
38914         * modules/fmal-ieee-tests: New file.
38915         * tests/test-fmal-ieee.c: New file.
38917         New module 'fmal-ieee'.
38918         * modules/fmal-ieee: New file.
38920         Tests for module 'fma-ieee'.
38921         * modules/fma-ieee-tests: New file.
38922         * tests/test-fma-ieee.c: New file.
38924         New module 'fma-ieee'.
38925         * modules/fma-ieee: New file.
38927         Tests for module 'fmaf-ieee'.
38928         * modules/fmaf-ieee-tests: New file.
38929         * tests/test-fmaf-ieee.c: New file.
38930         * tests/test-fma-ieee.h: New file.
38932         New module 'fmaf-ieee'.
38933         * modules/fmaf-ieee: New file.
38935 2012-02-26  Bruno Haible  <bruno@clisp.org>
38937         Tests for module 'ldexpl-ieee'.
38938         * modules/ldexpl-ieee-tests: New file.
38939         * tests/test-ldexpl-ieee.c: New file.
38941         New module 'ldexpl-ieee'.
38942         * modules/ldexpl-ieee: New file.
38944         Tests for module 'ldexp-ieee'.
38945         * modules/ldexp-ieee-tests: New file.
38946         * tests/test-ldexp-ieee.c: New file.
38948         New module 'ldexp-ieee'.
38949         * modules/ldexp-ieee: New file.
38951         Tests for module 'ldexpf-ieee'.
38952         * modules/ldexpf-ieee-tests: New file.
38953         * tests/test-ldexpf-ieee.c: New file.
38954         * tests/test-ldexp-ieee.h: New file.
38956         New module 'ldexpf-ieee'.
38957         * modules/ldexpf-ieee: New file.
38959 2012-02-26  Bruno Haible  <bruno@clisp.org>
38961         Refactor frexp*-ieee tests.
38962         * tests/test-frexp-ieee.h: New file.
38963         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
38964         (main): Just call test_function.
38965         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
38966         (main): Just call test_function.
38967         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
38968         (main): Just call test_function.
38969         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
38970         * modules/frexp-ieee-tests (Files): Likewise.
38971         * modules/frexpl-ieee-tests (Files): Likewise.
38973         Tests for module 'frexpl-ieee'.
38974         * modules/frexpl-ieee-tests: New file.
38975         * tests/test-frexpl-ieee.c: New file.
38977         New module 'frexpl-ieee'.
38978         * modules/frexpl-ieee: New file.
38980         Tests for module 'frexp-ieee'.
38981         * modules/frexp-ieee-tests: New file.
38982         * tests/test-frexp-ieee.c: New file.
38984         New module 'frexp-ieee'.
38985         * modules/frexp-ieee: New file.
38987         Tests for module 'frexpf-ieee'.
38988         * modules/frexpf-ieee-tests: New file.
38989         * tests/test-frexpf-ieee.c: New file.
38991         New module 'frexpf-ieee'.
38992         * modules/frexpf-ieee: New file.
38994 2012-02-26  Bruno Haible  <bruno@clisp.org>
38996         roundl-ieee tests: More tests.
38997         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
38998         (main): Add tests for [MX] shaded specification in POSIX.
38999         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39000         (Depends-on): Add isnanl-nolibm.
39002         round-ieee tests: More tests.
39003         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
39004         (main): Add tests for [MX] shaded specification in POSIX.
39005         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39006         (Depends-on): Add isnand-nolibm.
39008         roundf-ieee tests: More tests.
39009         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
39010         (main): Add tests for [MX] shaded specification in POSIX.
39011         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39012         (Depends-on): Add isnanf-nolibm.
39014         truncl-ieee tests: More tests.
39015         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
39016         (main): Add tests for [MX] shaded specification in POSIX.
39017         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39018         (Depends-on): Add isnanl-nolibm.
39020         trunc-ieee tests: More tests.
39021         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
39022         (main): Add tests for [MX] shaded specification in POSIX.
39023         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39024         (Depends-on): Add isnand-nolibm.
39026         truncf-ieee tests: More tests.
39027         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
39028         (main): Add tests for [MX] shaded specification in POSIX.
39029         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39030         (Depends-on): Add isnanf-nolibm.
39032         ceill-ieee tests: More tests.
39033         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
39034         (main): Add tests for [MX] shaded specification in POSIX.
39035         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39036         (Depends-on): Add isnanl-nolibm.
39038         ceil-ieee tests: More tests.
39039         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
39040         (main): Add tests for [MX] shaded specification in POSIX.
39041         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39042         (Depends-on): Add isnand-nolibm.
39044         ceilf-ieee tests: More tests.
39045         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
39046         (main): Add tests for [MX] shaded specification in POSIX.
39047         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39048         (Depends-on): Add isnanf-nolibm.
39050         floorl-ieee tests: More tests.
39051         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
39052         (main): Add tests for [MX] shaded specification in POSIX.
39053         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39054         (Depends-on): Add isnanl-nolibm.
39056         floor-ieee tests: More tests.
39057         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
39058         (main): Add tests for [MX] shaded specification in POSIX.
39059         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39060         (Depends-on): Add isnand-nolibm.
39062         floorf-ieee tests: More tests.
39063         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
39064         (main): Add tests for [MX] shaded specification in POSIX.
39065         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39066         (Depends-on): Add isnanf-nolibm.
39068 2012-02-26  Bruno Haible  <bruno@clisp.org>
39070         fpieee: More comments.
39071         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
39073 2012-02-25  Bruno Haible  <bruno@clisp.org>
39075         Tests for module 'log10l'.
39076         * modules/log10l-tests: New file.
39077         * tests/test-log10l.c: New file.
39078         * tests/test-math-c++.cc: Check the declaration of log10l.
39080         New module 'log10l'.
39081         * lib/math.in.h (log10l): New declaration.
39082         * lib/log10l.c: New file.
39083         * m4/log10l.m4: New file.
39084         * modules/log10l: New file.
39085         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
39086         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
39087         HAVE_DECL_LOG10L.
39088         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
39089         HAVE_DECL_LOG10L.
39090         * doc/posix-functions/log10l.texi: Mention the new module.
39092 2012-02-25  Bruno Haible  <bruno@clisp.org>
39094         fmodl, remainder*: Avoid wrong results due to rounding errors.
39095         * lib/fmodl.c (fmodl): Correct the result if it is not within the
39096         expected bounds.
39097         * lib/remainderf.c (remainderf): Likewise.
39098         * lib/remainder.c (remainder): Likewise.
39099         * lib/remainderl.c (remainderl): Likewise.
39101 2012-02-25  Bruno Haible  <bruno@clisp.org>
39103         Tests for module 'remainderl'.
39104         * modules/remainderl-tests: New file.
39105         * tests/test-remainderl.c: New file.
39106         * tests/test-math-c++.cc: Check the declaration of remainderl.
39108         New module 'remainderl'.
39109         * lib/math.in.h (remainderl): New declaration.
39110         * lib/remainderl.c: New file.
39111         * m4/remainderl.m4: New file.
39112         * modules/remainderl: New file.
39113         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
39114         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
39115         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
39116         HAVE_REMAINDERL.
39117         * doc/posix-functions/remainderl.texi: Mention the new module.
39119 2012-02-25  Bruno Haible  <bruno@clisp.org>
39121         Tests for module 'remainderf'.
39122         * modules/remainderf-tests: New file.
39123         * tests/test-remainderf.c: New file.
39124         * tests/test-math-c++.cc: Check the declaration of remainderf.
39126         New module 'remainderf'.
39127         * lib/math.in.h (remainderf): New declaration.
39128         * lib/remainderf.c: New file.
39129         * m4/remainderf.m4: New file.
39130         * modules/remainderf: New file.
39131         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
39132         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
39133         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
39134         HAVE_REMAINDERF.
39135         * doc/posix-functions/remainderf.texi: Mention the new module.
39137 2012-02-25  Bruno Haible  <bruno@clisp.org>
39139         remainder: Support for MSVC.
39140         * lib/math.in.h (remainder): New declaration.
39141         * lib/remainder.c: New file.
39142         * m4/remainder.m4: New file.
39143         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
39144         (Depends-on): Add math, round, fma.
39145         (configure.ac): Use results of gl_FUNC_REMAINDER.
39146         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
39147         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
39148         HAVE_DECL_REMAINDER.
39149         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
39150         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
39151         * tests/test-math-c++.cc: Check the declaration of remainder.
39152         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
39153         problems are fixed.
39155 2012-02-25  Bruno Haible  <bruno@clisp.org>
39157         Tests for module 'fmodl'.
39158         * modules/fmodl-tests: New file.
39159         * tests/test-fmodl.c: New file.
39160         * tests/test-math-c++.cc: Check the declaration of fmodl.
39162         New module 'fmodl'.
39163         * lib/math.in.h (fmodl): New declaration.
39164         * lib/fmodl.c: New file.
39165         * m4/fmodl.m4: New file.
39166         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
39167         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
39168         REPLACE_FMODL.
39169         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
39170         REPLACE_FMODL.
39171         * modules/fmodl: New file.
39172         * doc/posix-functions/fmodl.texi: Mention the new module.
39174 2012-02-25  Bruno Haible  <bruno@clisp.org>
39176         Tests for module 'modfl'.
39177         * modules/modfl-tests: New file.
39178         * tests/test-modfl.c: New file.
39179         * tests/test-math-c++.cc: Check the declaration of modfl.
39181         New module 'modfl'.
39182         * lib/math.in.h (modfl): New declaration.
39183         * lib/modfl.c: New file.
39184         * m4/modfl.m4: New file.
39185         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
39186         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
39187         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
39188         * modules/modfl: New file.
39189         * doc/posix-functions/modfl.texi: Mention the new module.
39191 2012-02-25  Bruno Haible  <bruno@clisp.org>
39193         Tests for module 'fabsl'.
39194         * modules/fabsl-tests: New file.
39195         * tests/test-fabsl.c: New file.
39196         * tests/test-math-c++.cc: Check the declaration of fabsl.
39198         New module 'fabsl'.
39199         * lib/math.in.h (fabsl): New declaration.
39200         * lib/fabsl.c: New file.
39201         * m4/fabsl.m4: New file.
39202         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
39203         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
39204         REPLACE_FABSL.
39205         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
39206         REPLACE_FABSL.
39207         * modules/fabsl: New file.
39208         * doc/posix-functions/fabsl.texi: Mention the new module.
39210 2012-02-25  Bruno Haible  <bruno@clisp.org>
39212         fabs tests: More tests.
39213         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
39214         (zero): New variable.
39215         (main): Add tests for signed zero.
39216         * modules/fabs-tests (Files): Add tests/minus-zero.h.
39218         fabsf tests: More tests.
39219         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
39220         (zero): New variable.
39221         (main): Add tests for signed zero.
39222         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
39224 2012-02-24  Bruno Haible  <bruno@clisp.org>
39226         atanl: Provide function definition on MSVC.
39227         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
39228         function pointer.
39229         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
39231 2012-02-24  Bruno Haible  <bruno@clisp.org>
39233         acosl: Provide function definition on MSVC.
39234         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
39235         function pointer.
39236         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
39238 2012-02-24  Bruno Haible  <bruno@clisp.org>
39240         asinl: Provide function definition on MSVC.
39241         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
39242         function pointer.
39243         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
39245 2012-02-24  Bruno Haible  <bruno@clisp.org>
39247         tanl: Provide function definition on MSVC.
39248         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
39249         function pointer.
39250         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
39252 2012-02-24  Bruno Haible  <bruno@clisp.org>
39254         cosl: Provide function definition on MSVC.
39255         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
39256         function pointer.
39257         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
39259 2012-02-24  Bruno Haible  <bruno@clisp.org>
39261         sinl: Provide function definition on MSVC.
39262         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
39263         function pointer.
39264         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
39266 2012-02-24  Bruno Haible  <bruno@clisp.org>
39268         logl: Provide function definition on MSVC.
39269         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
39270         function pointer.
39271         * lib/math.in.h (logl): Undefine if it does not exist as a function.
39273 2012-02-24  Bruno Haible  <bruno@clisp.org>
39275         expl: Provide function definition on MSVC.
39276         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
39277         function pointer.
39278         * lib/math.in.h (expl): Undefine if it does not exist as a function.
39280 2012-02-24  Bruno Haible  <bruno@clisp.org>
39282         sqrtl: Provide function definition on MSVC.
39283         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
39284         a function pointer.
39285         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
39287 2012-02-24  Bruno Haible  <bruno@clisp.org>
39289         ceill: Provide function definition on MSVC.
39290         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
39291         used as a function pointer.
39292         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
39294 2012-02-24  Bruno Haible  <bruno@clisp.org>
39296         floorl: Provide function definition on MSVC.
39297         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
39298         used as a function pointer.
39299         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
39301 2012-02-24  Bruno Haible  <bruno@clisp.org>
39303         ceilf: Provide function definition on MSVC.
39304         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
39305         used as a function pointer.
39306         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
39308 2012-02-24  Bruno Haible  <bruno@clisp.org>
39310         floorf: Provide function definition on MSVC.
39311         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
39312         used as a function pointer.
39313         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
39315 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
39317         stdnoreturn: new module
39318         This implements a replacement for C11's <stdnoreturn.h>.
39319         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
39320         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
39321         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
39322         * tests/test-stdnoreturn.c: New files.
39324 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
39326         regex: fix false multibyte matches in some regular expressions
39327         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
39328         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
39329         * lib/regex_internal.c (re_string_skip_chars):
39330         Fix miscomputation of remain_len that may cause incomplete
39331         multi-byte character and false match.
39333 2012-02-24  Jim Meyering  <meyering@redhat.com>
39335         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
39336         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
39337         uses with "==" *before* the call, e.g., 0 == strcmp (...)
39338         Remove now-unnecessary str''cmp obfuscation.
39339         Suggested by Akim Demaille.
39341 2012-02-24  Bruno Haible  <bruno@clisp.org>
39343         streq: Rename macro.
39344         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
39345         * NEWS: Mention the change.
39346         * lib/mbrtowc.c (mbrtowc): Update.
39347         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
39348         * lib/wcwidth.c (wcwidth): Update.
39349         Suggested by Akim Demaille and Jim Meyering.
39351 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
39353         regex: fix typo in definition of MIN
39354         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
39355         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
39357 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
39358             Bruno Haible  <bruno@clisp.org>
39360         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
39361         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
39362         entries into a stack-allocated buffer directly.
39363         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
39365 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
39366             Bruno Haible  <bruno@clisp.org>
39368         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
39370          - There were several instances of this pattern:
39372              for (;;) {
39373                n = acl (f, GETACLCNT, 0, NULL);
39374                [ allocate an array A of size N ]
39375                if (acl (f, GETACL, n, a) == n)
39376                  break;
39377              }
39379            This loop might never terminate if some other process is constantly
39380            manipulating the file's ACL.  The loop should be rewritten to
39381            terminate.
39383          - The acl (... GETACLNT ...) call is merely an optimization; its value
39384            is merely a hint as to how big to make the array.  A better
39385            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
39386            and just guess a reasonably-big size, growing the size and trying
39387            again if it's not large enough.  This guarantees termination, and
39388            saves a system call.
39390         * lib/acl-internal.h: Include <limits.h>.
39391         (MIN, SIZE_MAX): New macros.
39392         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
39393         a stack-allocated buffer, and use malloc if it does not fit. Don't
39394         use GETACLCNT.
39395         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
39397 2012-02-19  Bruno Haible  <bruno@clisp.org>
39399         acl: Fix endless loop on Solaris with vxfs.
39400         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
39401         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
39402         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
39403         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
39404         * tests/test-sameacls.c (main)[Solaris]: Likewise.
39405         Reported by Bill Jones in
39406         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
39408 2012-02-19  Bruno Haible  <bruno@clisp.org>
39410         acl: Fix copy-acl test failure on Solaris 11.0.
39411         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
39412         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
39413         that this function returns 0 in some more cases.
39415 2012-02-19  Bruno Haible  <bruno@clisp.org>
39417         acl: Update doc references.
39418         * doc/acl-resources.txt: Update links to Solaris documentation.
39420 2012-02-19  Bruno Haible  <bruno@clisp.org>
39422         Fix test failure in many locales on Solaris 11.
39423         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
39424         'tr' arguments.
39425         * tests/test-pipe-filter-ii1.c (main): Likewise.
39426         * build-aux/bootstrap (check_versions): Run 'tr' command with range
39427         expressions in the C locale.
39428         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
39429         * m4/host-os.m4 (gl_HOST_OS): Likewise.
39431 2012-02-19  Bruno Haible  <bruno@clisp.org>
39433         gnulib-tool: Improve usage message.
39434         * gnulib-tool (func_usage): Move doc of --help and --version to the
39435         section "Operation modes".
39437 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
39439         README-release: make it easier to execute commands
39440         * top/README-release: break commands out on to separate lines.
39442 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
39444         GNUmakefile: simplify detection of unconfigured trees
39445         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
39446         whether the tree make is being run from is already configured or
39447         not.  Related simplifications.
39449 2012-02-13  Simon Josefsson  <simon@josefsson.org>
39451         * gnulib-tool (func_usage): Document --help and --version.
39453 2012-02-11  Jim Meyering  <meyering@redhat.com>
39455         bootstrap: don't exit 0 upon gnulib-tool failure
39456         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
39457         its exit status, not 0.
39459 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
39461         README-release: various improvements
39462         * top/README-release: Give a command to push changes for the
39463         release.  Add "distcheck" to list of other pre-release checks.
39464         Fix instance of "make stable" which should be "make TYPE".
39466 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
39468         maint: replace FSF snail-mail addresses with URLs
39469         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
39470         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
39471         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
39472         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
39473         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
39474         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
39475         * lib/check-version.c, lib/check-version.h, lib/config.charset:
39476         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
39477         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
39478         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
39479         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
39480         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
39481         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
39482         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
39483         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
39484         * lib/glthread/thread.c, lib/glthread/thread.h:
39485         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
39486         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
39487         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
39488         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
39489         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
39490         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
39491         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
39492         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
39493         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
39494         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
39495         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
39496         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
39497         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
39498         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
39499         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
39500         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
39501         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
39502         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
39503         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
39504         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
39505         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
39506         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
39507         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
39508         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
39509         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
39510         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
39511         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
39512         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
39513         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
39514         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
39515         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
39516         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
39517         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
39518         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
39519         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
39520         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
39521         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
39522         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
39523         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
39524         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
39525         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
39526         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
39527         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
39528         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
39529         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
39530         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
39531         * tests/test-poll.c, tests/test-quotearg-simple.c:
39532         * tests/test-quotearg.c, tests/test-quotearg.h:
39533         * tests/test-round-ieee.c, tests/test-round1.c:
39534         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
39535         * tests/test-roundl-ieee.c, tests/test-roundl.c:
39536         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
39537         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
39538         * tests/test-strerror.c, tests/test-strerror_r.c:
39539         * tests/test-strsignal.c, tests/test-strverscmp.c:
39540         * tests/test-xmemdup0.c:
39541         Replace FSF snail mail addresses with URLs, as per GNU coding
39542         standards.  See glibc bug
39543         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
39545 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
39547         README-release: capitalize a word and split a line
39548         * top/README-release: Fix punctuation and spacing.
39550 2012-02-08  Akim Demaille  <demaille@gostai.com>
39552         fatal-signal: use C prototypes (with explicit void).
39553         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
39554         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
39556 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
39558         regex: spelling fix
39559         * lib/regexec.c: spelling fix
39561         regex: rely on stdint.h for SIZE_MAX
39562         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
39564 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
39566         regex: merge glibc changes
39568         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
39569         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
39570         (init_word_char): Work even if bitset words are not exactly 32 or
39571         64 bits wide.  Don't assume there are no padding bits.
39572         * lib/regex.c [_LIBC]: Do not include <config.h>.
39573         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
39574         and -Wtype-limits.
39575         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
39576         needless disagreement with glibc.  All uses changed.  Define it to
39577         1 only if _GNU_SOURCE, to match glibc.
39578         (_REG_RM_NAME): Remove; no longer needed, since the names in
39579         question are now all protected by __USE_GNU.
39580         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
39581         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
39582         * lib/regex_internal.h (MIN): New macro.
39584         2012-01-03 Ulrich Drepper <drepper@gmail.com>
39585         * lib/regcomp.c (init_word_char): Optimize regex a bit.
39587         2011-12-30 Jakub Jelinek <jakub@redhat.com>
39588         * lib/regex_internal.c (re_string_fetch_byte_case):
39589         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
39590         is miscompiled, and it turns out it is because of an incorrect
39591         attribute on re_string_fetch_byte_case.  Unlike
39592         re_string_peek_byte_case, this one is really not pure, it modifies
39593         memory (increments pstr->cur_idx), and with the pure attribute GCC
39594         assumed it doesn't and it cached the presumed value of
39595         regexp->cur_idx in a variable across the
39596          for (;; ++i)
39597            {
39598              if (i >= BRACKET_NAME_BUF_SIZE)
39599                return REG_EBRACK;
39600              if (token->type == OP_OPEN_CHAR_CLASS)
39601                ch = re_string_fetch_byte_case (regexp);
39602              else
39603                ch = re_string_fetch_byte (regexp);
39604              if (re_string_eoi(regexp))
39605                return REG_EBRACK;
39606              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
39607                break;
39608              elem->opr.name[i] = ch;
39609            }
39611         2011-11-29 Andreas Schwab <schwab@redhat.com>
39612         * lib/regcomp.c (build_equiv_class):
39613         Fix access after end of search string in regex matcher.
39615         2011-11-12 Ulrich Drepper <drepper@redhat.com>
39616         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
39618         2011-10-12 Ulrich Drepper <drepper@redhat.com>
39619         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
39621         2011-10-11 Ulrich Drepper <drepper@redhat.com>
39622         * lib/regcomp.c (parse_branch, parse_sub_exp):
39623         More regex memory leak fixes and tests.
39624         (parse_sub_exp, parse_bracket_exp):
39625         Fix memory leak for some invalid regular expressions.
39627         2011-05-28 Ulrich Drepper <drepper@gmail.com>
39628         * lib/regex_internal.c, lib/regexec.c:
39629         Fix unnecessary overallocation due to incomplete character.  When
39630         incomplete characters are found at the end of a string the code
39631         ran amok and allocated lots of memory.  Stricter limits are now in
39632         place.
39634         2011-05-20 Reuben Thomas <rrt@sc3d.org>
39635         * lib/regex.h: Update documentation.
39637         2011-05-16 Aharon Robbins <arnold@skeeve.com>
39638         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
39640         2010-05-05 Andreas Schwab <schwab@redhat.com>
39641         * lib/regexec.c (find_collation_sequence_value):
39642         Fix lookup of collation sequence value during regexp matching.
39644         2010-01-22 Ulrich Drepper <drepper@redhat.com>
39645         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
39647         2008-01-16 Ulrich Drepper <drepper@redhat.com>
39648         * lib/regex.h: Cleanup namespace.
39650         2007-11-26 Ulrich Drepper <drepper@redhat.com>
39651         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
39653         2007-08-26 Ulrich Drepper <drepper@redhat.com>
39654         * lib/regex_internal.h: Prevent some declarations and definitions
39655         to be seen when used in tests.
39657         2005-05-06 Ulrich Drepper <drepper@redhat.com>
39658         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
39659         __libc_lock_* macros if not _LIBC.
39660         (struct re_dfa_t): Add lock.
39662 2012-02-07  Eric Blake  <eblake@redhat.com>
39664         maint.mk: also prohibit lower-case @var@
39665         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
39666         lower case, like @top_srcdir@.
39668 2012-02-04  Eric Blake  <eblake@redhat.com>
39670         canonicalize: avoid uninitialized memory use
39671         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
39672         random '/' left in dest.
39673         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
39675 2012-02-04  Bruno Haible  <bruno@clisp.org>
39677         isatty: Fix test failure of ptsname_r on native Windows.
39678         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
39679         and don't set errno.
39680         (isatty): Test first whether fd is valid. Set errno when returning 0.
39682 2012-02-04  Bruno Haible  <bruno@clisp.org>
39684         spawn-pipe tests: Fix a NULL program name in a diagnostic.
39685         * tests/test-spawn-pipe-main.c: Include progname.h.
39686         (main): Invoke set_program_name.
39687         * modules/spawn-pipe-tests (Depends-on): Add progname.
39689         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
39690         * tests/test-nonblocking-socket-main.c: Include progname.h.
39691         (main): Invoke set_program_name.
39692         * modules/nonblocking-socket-tests (Depends-on): Add progname.
39694         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
39695         * tests/test-nonblocking-pipe-main.c: Include progname.h.
39696         (main): Invoke set_program_name.
39697         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
39699 2012-02-04  Eric Blake  <eblake@redhat.com>
39701         canonicalize-lgpl: fix // handling
39702         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
39704         canonicalize: fix // handling
39705         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
39706         /// to //, since only // is special.
39708 2012-02-04  Bruno Haible  <bruno@clisp.org>
39710         ioctl: Fix test failure on native Windows.
39711         * lib/ioctl.c: Include msvc-nothrow.h.
39712         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
39714 2012-02-04  Bruno Haible  <bruno@clisp.org>
39716         fsync: Avoid test failure on native Windows.
39717         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
39718         read-only.
39720 2012-02-04  Bruno Haible  <bruno@clisp.org>
39722         sys_select: Avoid syntax error on OpenBSD 5.0.
39723         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
39724         currently being included, just include the system's <sys/select.h>.
39726 2012-02-04  Bruno Haible  <bruno@clisp.org>
39728         sys_select: Avoid syntax error on OpenBSD 5.0.
39729         * lib/sys_select.in.h: Include <signal.h> only after the include_next
39730         <sys/select.h>, not before.
39731         Reported by Jiri B <jirib@devio.us>.
39733 2012-02-04  Bruno Haible  <bruno@clisp.org>
39735         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
39736         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
39737         global variables.
39738         * tests/test-get-rusage-data.c (main): Likewise.
39739         Reported by Jim Meyering.
39741 2012-02-04  Bruno Haible  <bruno@clisp.org>
39743         stdioext: Fix last commit.
39744         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
39746 2012-02-03  Bruno Haible  <bruno@clisp.org>
39748         stdioext: Add tentative support for Plan9.
39749         * lib/stdio-impl.h: Include <errno.h>.
39750         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
39751         * lib/freadable.c (freadable): Likewise.
39752         * lib/fwritable.c (fwritable): Likewise.
39753         * lib/fbufmode.c (fbufmode): Likewise.
39754         * lib/freading.c (freading): Likewise.
39755         * lib/fwriting.c (fwriting): Likewise.
39756         * lib/freadptr.c (freadptr): Likewise.
39757         * lib/freadseek.c (freadptrinc): Likewise.
39758         * lib/freadahead.c (freadahead): Likewise.
39759         * lib/fpurge.c (fpurge): Likewise.
39760         * lib/fseeko.c (rpl_fseeko): Likewise.
39761         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
39762         Reported by Jens Staal <staal1978@gmail.com>.
39764 2012-02-02  Jim Meyering  <meyering@redhat.com>
39766         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
39767         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
39768         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
39769         not even to try to add the attribute.  Instead, add a pragma to suppress
39770         the suggestion/warning.
39772 2012-01-31  Karl Berry  <karl@gnu.org>
39774         setstate doc: typo.
39775         * doc/posix-functions/setstate.texi (setstate): { not (.
39777 2012-01-31  Bruno Haible  <bruno@clisp.org>
39779         popen: Make more robust on Windows.
39780         * lib/popen.c: On native Windows, use the _popen based code even if
39781         HAVE_POPEN is set.
39782         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
39783         environment variable on native Windows.
39785 2012-01-30  Bruno Haible  <bruno@clisp.org>
39787         pclose: Fix typo.
39788         * lib/stdio.in.h (pclose): Fix typo in warning message.
39790 2012-01-30  Bruno Haible  <bruno@clisp.org>
39792         doc about getlogin_r, setstate.
39793         * doc/posix-functions/getlogin_r.texi: List the incompatible
39794         declaration problem under "not fixed by gnulib".
39795         * doc/posix-functions/setstate.texi: Mention incompatible declaration
39796         problem on Solaris 11 and other platforms.
39798 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
39799             Bruno Haible  <bruno@clisp.org>
39801         poll tests: Make test more robust.
39802         * tests/test-poll.c: Include macros.h.
39803         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
39804         return value of various I/O operations.
39805         * modules/poll-tests (Files): Add tests/macros.h.
39807 2012-01-30  Bruno Haible  <bruno@clisp.org>
39809         sys_stat: Fix support for mingw64 and MSVC.
39810         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
39811         header files already do it.
39812         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
39813         stat itself.
39814         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
39816 2012-01-30  Bruno Haible  <bruno@clisp.org>
39818         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
39819         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
39820         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
39822 2012-01-29  Bruno Haible  <bruno@clisp.org>
39824         quotearg: Fix test failure on MacOS X 10.5.
39825         * tests/test-quotearg-simple.c: Include localcharset.h.
39826         (main): If the locale encoding is not ASCII, bypass the tests of
39827         locale_quoting_style and clocale_quoting_style.
39828         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
39830 2012-01-29  Jim Meyering  <meyering@redhat.com>
39832         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
39833         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
39834         detect uses of canonicalize_file_name.
39836 2012-01-28  Bruno Haible  <bruno@clisp.org>
39838         test-framework-sh: Fix test failure with AIX 7.1 diff.
39839         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
39840         in column 1, like 'diff -c' does.
39841         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
39842         whether 'diff -u' is used. Instead, test whether the output contains
39843         some '@' character.
39845 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
39847         strtoimax: eliminate need for stdint.h, inttypes.h checks
39848         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
39849         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
39850         the prerequisites for a recently-introduced strtoimax test.
39851         I guess this might cause strtoimax to be replaced when not
39852         strictly necessary on older hosts, but this shouldn't introduce
39853         any bugs and it should make Emacs 'configure' faster on typical
39854         modern hosts.  Problem discovered when importing the latest gnulib
39855         to an Emacs test version.
39856         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
39858 2012-01-28  Bruno Haible  <bruno@clisp.org>
39860         sys_time: Override 'struct timeval' on some native Windows platforms.
39861         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
39862         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
39863         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
39864         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
39865         needs to be overridden.
39866         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
39867         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
39868         * tests/test-sys_select.c: Check that the tv_sec member has the same
39869         size as a 'time_t'.
39870         * tests/test-sys_time.c: Likewise.
39871         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
39872         is set, set also REPLACE_GETTIMEOFDAY.
39873         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
39874         convert the resulting 'struct timeval' before returning.
39875         * lib/select.c: Include <sys/time.h>.
39876         (select, timeval): Undefine at the right place.
39877         * modules/select (Depends-on): Add sys_time.
39878         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
39879         some Windows platforms.
39880         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
39882 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
39884         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
39885         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
39886         an integer.
39887         * lib/fcntl.c (dupfd): Likewise.
39888         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
39890 2012-01-28  Bruno Haible  <bruno@clisp.org>
39892         fcntl: Avoid compilation error on native Windows.
39893         * modules/fcntl (Depends-on): Add 'close'.
39895 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
39897         select, poll, isatty: Avoid warnings on x86_64 mingw64.
39898         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
39899         pointer to an integer.
39900         * lib/poll.c (IsConsoleHandle): Likewise.
39901         * lib/isatty.c (IsConsoleHandle): Likewise.
39903 2012-01-28  Jim Meyering  <meyering@redhat.com>
39905         doc: clarify README-release
39906         * top/README-release: Clarify: you should make a point to have
39907         the latest stable versions of build tools in your PATH, and the
39908         reference to buildreq is solely for its list of tool names, not
39909         for its minimal-functional version numbers.
39910         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
39912         maint.mk: use more readable (yet functionally equivalent) quoting
39913         It is common to quote a single quote in a single quoted string like
39914         this:  '...'\''...'.  Unless you know the idiom, that looks like
39915         gibberish, so prefer to double-quote the string when possible.
39916         Then you can use a more readable, lone single quote: "...'..."
39917         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
39918         "don't" is more readable than the equivalent 'don'\''t'.
39919         (sc_cast_of_x_alloc_return_value): Likewise.
39920         (sc_cast_of_alloca_return_value): Likewise.
39921         (sc_makefile_path_separator_check): Similar: use ":" in '...',
39922         rather than '\'':'\''.
39924 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
39926         stdalign: relax _Alignof and tighten _Alignas test
39927         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
39928         as it was too strict: alignof must divide offsetof, but it need
39929         not equal offsetof.  Inspired by Joseph S. Myers's comment
39930         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
39931         Conversely, tighten the _Alignas test a bit, as the resulting
39932         alignment must be exactly 8.
39934 2012-01-27  Bruno Haible  <bruno@clisp.org>
39936         stdalign: Document the last change.
39937         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
39939 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
39941         stdalign: check that alignof and offsetof are consistent
39942         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
39943         Problem reported for gnulib by Richard W.M. Jones in
39944         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
39946 2012-01-27  Jim Meyering  <meyering@redhat.com>
39948         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
39949         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
39950         convert a sequence with gaps to the minimal containing range.
39951         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
39952         * tests/test-update-copyright.sh: Test for this.
39953         The FSF confirmed it is ok to do this, assuming there is at
39954         least one significant change per year in the affected range:
39955         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
39957 2012-01-26  Bruno Haible  <bruno@clisp.org>
39959         pipe2: refine doc about thread-safety
39960         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
39961         multithread-safety problem.
39962         * doc/glibc-functions/accept4.texi: Likewise.
39964 2012-01-26  Bruno Haible  <bruno@clisp.org>
39966         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
39967         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
39968         In the test program, include <fcntl.h>, for O_RDONLY.
39970 2012-01-26  Eric Blake  <eblake@redhat.com>
39972         pipe2: document lack of thread-safety in replacement
39973         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
39974         issue in replacement.
39975         * doc/glibc-functions/accept4.texi (accept4): Likewise.
39976         Based on a report by Eric Wong.
39978 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
39979             Bruno Haible  <bruno@clisp.org>
39981         malloca: Avoid warnings on x86_64 mingw64.
39982         * lib/malloca.c: Include <stdint.h>.
39983         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
39984         * modules/malloca (Depends-on): Add stdint.
39985         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
39987 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
39989         obstack: remove __STDC__ conditionals
39990         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
39991         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
39992         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
39993         m4/include_next.m4 as the only gnulib-maintained places that still
39994         refer to __STDC__.
39996 2012-01-24  Bruno Haible  <bruno@clisp.org>
39998         havelib: Modern quoting.
39999         * build-aux/config.rpath: Quote 'like this', not `like this', as per
40000         the recent change to the GNU coding standards.
40002 2012-01-24  Bruno Haible  <bruno@clisp.org>
40004         stdint: Improve support for Android.
40005         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
40006         Reported by Simon Josefsson <simon@josefsson.org>.
40008 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
40010         doc: omit trailing empty lines from INSTALL etc.
40011         * doc/Makefile (INSTALL): Omit trailing empty lines.
40012         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
40013         omit trailing empty lines.  This simplifies the build procedure.
40015 2012-01-23  Jim Meyering  <meyering@redhat.com>
40017         tests: avoid spurious warnings about gl_sockets_startup
40018         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
40019         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
40020         reporting a "statement with no effect".
40021         * tests/test-accept.c (main): Mark as "(void)".
40022         * tests/test-accept4.c (main): Likewise.
40023         * tests/test-bind.c (main): Likewise.
40024         * tests/test-connect.c (main): Likewise.
40025         * tests/test-getpeername.c (main): Likewise.
40026         * tests/test-getsockname.c (main): Likewise.
40027         * tests/test-getsockopt.c (main): Likewise.
40028         * tests/test-listen.c (main): Likewise.
40029         * tests/test-recv.c (main): Likewise.
40030         * tests/test-recvfrom.c (main): Likewise.
40031         * tests/test-send.c (main): Likewise.
40032         * tests/test-sendto.c (main): Likewise.
40033         * tests/test-setsockopt.c (main): Likewise.
40034         * tests/test-shutdown.c (main): Likewise.
40036 2012-01-21  Bruno Haible  <bruno@clisp.org>
40038         locale-fr.m4: Fix for Android.
40039         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
40040         failure of the test program on Bionic libc.
40042 2012-01-21  Jim Meyering  <meyering@redhat.com>
40044         bootstrap: fail when bootstrap_post_import_hook fails
40045         Otherwise, it's far too easy to miss diagnostics emitted
40046         between gnulib-tool's output and that of running configure.
40047         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
40049 2012-01-17  Jim Meyering  <meyering@redhat.com>
40051         maint: enable sc_trailing_blank
40052         * build-aux/pmccabe.css: Remove trailing blanks.
40053         * doc/acl-cygwin.txt: Likewise.
40054         * doc/gnu-oids.texi: Likewise
40055         * cfg.mk: Enable sc_trailing_blank.
40056         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
40058 2012-01-17  Jim Meyering  <meyering@redhat.com>
40060         maint: enable sc_prohibit_openat_without_use
40061         * cfg.mk: Enable sc_prohibit_openat_without_use.
40062         Exempt lib/selinux-at.c.
40064 2012-01-17  Jim Meyering  <meyering@redhat.com>
40066         maint: enable sc_prohibit_cloexec_without_use
40067         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
40068         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
40070 2012-01-17  Jim Meyering  <meyering@redhat.com>
40072         maint: enable sc_prohibit_intprops_without_use
40073         * cfg.mk: Enable sc_prohibit_intprops_without_use
40074         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
40076 2012-01-17  Jim Meyering  <meyering@redhat.com>
40078         maint: enable sc_prohibit_hash_pjw_without_use
40079         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
40080         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
40081         to match any use of \<hash_pjw\>, i.e., not necessarily with a
40082         following " (".
40084 2012-01-17  Jim Meyering  <meyering@redhat.com>
40086         maint: enable double-word-prohibiting rule
40087         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
40088         Exempt three files.
40090 2012-01-17  Jim Meyering  <meyering@redhat.com>
40092         maint: remove empty lines at EOF, but excluding modules/*
40093         Apply syntax rules at home as well as abroad.  Most changes
40094         were induced by running this:
40095           make srcdir=. _build-aux=build-aux -f top/maint.mk \
40096             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
40097             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
40098         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
40099         Exempt modules/* and two binary files.
40100         Also exempt doc/INSTALL*, per request from Bruno Haible.
40101         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
40102         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
40103         * doc/Copyright/request-assign.future: Likewise.
40104         * doc/Copyright/request-disclaim.changes: Likewise.
40105         * doc/INSTALL: Likewise.
40106         * doc/INSTALL.ISO: Likewise.
40107         * doc/INSTALL.UTF-8: Likewise.
40108         * doc/acl-cygwin.txt: Likewise.
40109         * doc/acl-resources.txt: Likewise.
40110         * doc/fdl-1.2.texi: Likewise.
40111         * doc/fdl-1.3.texi: Likewise.
40112         * doc/fdl.texi: Likewise.
40113         * lib/argp-pin.c: Likewise.
40114         * lib/round.c: Likewise.
40115         * lib/unicase/u16-totitle.c: Likewise.
40116         * lib/unictype/block_test.c: Likewise.
40117         * lib/uninorm/canonical-decomposition.c: Likewise.
40118         * m4/README: Likewise.
40119         * m4/relocatable-lib.m4: Likewise.
40120         * tests/test-isnand-nolibm.c: Likewise.
40121         * tests/test-isnand.c: Likewise.
40122         * tests/uninorm/NormalizationTest.txt: Likewise.
40124 2012-01-17  Jim Meyering  <meyering@redhat.com>
40126         maint: add framework to run syntax-check rules against gnulib sources
40127         * cfg.mk: New file, to disable all currently-failing tests.
40128         We'll enable them one by one, as they are made to pass.
40129         * Makefile (sc_maint): New rule.
40131 2012-01-21  Bruno Haible  <bruno@clisp.org>
40133         stdint: Add support for Android.
40134         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
40135         include the system's <stdint.h>.
40136         Reported by Simon Josefsson <simon@josefsson.org>.
40138 2012-01-19  Jim Meyering  <meyering@redhat.com>
40140         bootstrap: add bootstrap_post_import_hook
40141         Bison does still need something like the gnulib_mk_hook whose
40142         invocation I had to remove along with slurp in commit 767ccd40.
40143         Technically, we could get along without it, but doing so would
40144         have required living with a warning and a mandatory post-bootstrap
40145         automake rerun.
40146         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
40147         (bootstrap_post_import_hook): New function.
40148         Invoke it after gnulib-tool --import and before autoreconf.
40150 2012-01-18  Jim Meyering  <meyering@redhat.com>
40152         gitlog-to-changelog: don't use "no_"-prefixed variable name
40153         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
40154         to enable both --cluster and --no-cluster.  Change variable name,
40155         s/\$no_cluster/$cluster/, and reverse usage to match.
40157         gitlog-to-changelog: use "||", not "or" in expressions
40158         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
40159         expressions.
40161 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
40163         gitlog-to-changelog: new option --no-cluster
40164         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
40165         clustering of adjacent commit messages.
40167 2012-01-17  Jim Meyering  <meyering@redhat.com>
40169         maint: spell file systems with two words, not one
40170         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
40171         two words, not one.
40173 2012-01-16  Jim Meyering  <meyering@redhat.com>
40175         bootstrap: add a FIXME comment to ensure we eventually remove the hack
40176         * build-aux/bootstrap (gnulib_tool_options): Add comment.
40178 2012-01-16  Eric Blake  <eblake@redhat.com>
40180         bootstrap: cater to autoconf 2.59
40181         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
40182         is not available.
40184         bootstrap: properly check for libtool
40185         * build-aux/bootstrap (libtoolize): Also run libtool when older
40186         usage is detected.
40188 2012-01-15  Bruno Haible  <bruno@clisp.org>
40190         Improve support for MSVC 9.
40191         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
40192         clashes on MSVC.
40193         * lib/fcntl.in.h: Likewise.
40194         * lib/stdlib.in.h: Likewise.
40195         * lib/sys_stat.in.h: Likewise.
40197 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
40199         gnupload: we hold the master copy of this script now
40200         For motivation and more information, see:
40201         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
40202         * build-aux/gnupload: Make it clear in the heading comments that the
40203         master copy of this file is maintained by gnulib.  Since we are at
40204         it, bump its copyright year and ...
40205         ($scriptversion): ... the date in its version.
40206         ($usage): Patches and bug reports should be sent to the gnulib list,
40207         not the automake one.
40208         * config/srclist.txt: Don't try to sync 'gnupload' from automake
40209         anymore.
40211 2012-01-15  Bruno Haible  <bruno@clisp.org>
40213         Fix module 'random'.
40214         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
40215         initstate, setstate are declared.
40217 2012-01-14  Bruno Haible  <bruno@clisp.org>
40219         Tests for module 'random'.
40220         * modules/random-tests: New file.
40221         * tests/test-random.c: New file, based on tests/test-random_r.c.
40223         New module 'random'.
40224         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
40225         declarations.
40226         * lib/random.c: New file, based on glibc/stdlib/random.c.
40227         * m4/random.m4: New file.
40228         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
40229         HAVE_RANDOM.
40230         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
40231         * modules/random: New file.
40232         * config/srclist.txt: Add an entry for random.c.
40233         * doc/posix-functions/random.texi: Mention the 'random' module.
40234         * doc/posix-functions/initstate.texi: Likewise.
40235         * doc/posix-functions/setstate.texi: Likewise.
40236         * doc/posix-functions/srandom.texi: Likewise.
40238 2012-01-12  Bruno Haible  <bruno@clisp.org>
40240         random_r: Use common idioms.
40241         * lib/random_r.c: Include <stdlib.h> first.
40243         random_r: Override incompatible API on AIX, OSF/1.
40244         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
40245         Override the system function if REPLACE_RANDOM_R is 1.
40246         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
40247         and OSF/1, set REPLACE_RANDOM_R.
40248         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
40249         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
40250         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
40251         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
40252         * doc/glibc-functions/random_r.texi: Likewise.
40253         * doc/glibc-functions/setstate_r.texi: Likewise.
40255         random_r: Support for MSVC 9.
40256         * lib/random_r.c: Include stdint.h, not inttypes.h.
40258 2012-01-12  Eric Blake  <eblake@redhat.com>
40260         inet_ntop: guard extra work by IF_LINT
40261         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
40262         better code generation when not checking for warnings.
40263         Suggested by Paul Eggert and Jim Meyering.
40265         strptime: fix regression on mingw
40266         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
40267         Fix regression.  Reported by Bruno Haible.
40269 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
40270             Bruno Haible  <bruno@clisp.org>
40272         copy-file: add error-code-returning variant.
40273         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
40274         (qcopy_file_preserving): New declaration.
40275         * lib/copy-file.c (qcopy_file_preserving): Renamed from
40276         copy_file_preserving. Change return type to 'int'. Don't emit an error
40277         message here.
40278         (copy_file_preserving): New function.
40279         * tests/test-copy-file.c: Include <stdlib.h>.
40280         (main): Test qcopy_file_preserving if the environment variable
40281         NO_STDERR_OUTPUT is set.
40282         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
40283         with NO_STDERR_OUTPUT
40284         * tests/test-copy-file-2.sh: Likewise.
40286 2012-01-10  Bruno Haible  <bruno@clisp.org>
40288         copy-file: Use 'quote' module consistently.
40289         * lib/copy-file.c (copy_file_preserving): Use quote().
40291         copy-file: Refactor.
40292         * lib/copy-file.c: Include quote.h.
40293         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
40294         message here.
40295         * modules/copy-file (Depends-on): Add quote.
40297         acl: Export qcopy_acl.
40298         * lib/acl.h (qcopy_acl): New declaration.
40299         * lib/copy-acl.c (qcopy_acl): Make non-static.
40301         acl: Rename a local variable.
40302         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
40304         acl: Align return values of copy_acl and qcopy_acl.
40305         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
40306         maybe < -1.
40308 2012-01-11  Eric Blake  <eblake@redhat.com>
40310         strptime: silence gcc warnings
40311         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
40312         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
40313         Reported by Daniel P. Berrange.
40315         inet_ntop: silence gcc warning
40316         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
40317         Reported by Daniel P. Berrange.
40319 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
40321         getloadavg test: skip the test on GNU/Linux without /proc mounted
40322         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
40323         file.  When /proc is not mounted, it always fails with ENOENT.
40324         * tests/test-getloadavg.c (main): Treat ENOENT return code from
40325         getloadavg(3) the same way as ENOSYS and ENOTSUP.
40327 2012-01-10  Bruno Haible  <bruno@clisp.org>
40329         regex: Avoid link error on MSVC 9.
40330         * modules/regex (Depends-on): Add wctype.
40332 2012-01-10  Bruno Haible  <bruno@clisp.org>
40334         doc: Mention --with-tests option.
40335         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
40336         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
40337         --with-tests.
40338         Reported by Reuben Thomas.
40340 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
40342         users.txt: order package names lexicographically.
40343         * users.txt: Order package names lexicographically.
40345 2012-01-10  Jim Meyering  <meyering@redhat.com>
40347         maint.mk: fix description in comment
40348         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
40350         ignore-value: remove deprecated ignore_ptr function
40351         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
40352         * NEWS: Note this.
40354 2012-01-09  Jim Meyering  <meyering@redhat.com>
40356         test-init.sh: avoid a subshell
40357         * tests/test-init.sh: Remove protective subshell.
40358         Suggested by Bernhard Voelker.  While a subshell is normally
40359         required to protect against older shells (Solaris, FreeBSD) that
40360         warn about a missing program before performing redirection, the
40361         shell-selection tests performed by init.sh probably exclude any
40362         offending shell.
40364 2012-01-08  Bruno Haible  <bruno@clisp.org>
40366         setlocale tests: Avoid test failure on Solaris 11.0.
40367         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
40368         variable.
40370 2012-01-08  Bruno Haible  <bruno@clisp.org>
40372         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
40373         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
40374         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
40375         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
40376         macro.
40377         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
40378         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
40379         * lib/spawn_faction_addopen.c: Add workaround implementation if
40380         HAVE_WORKING_POSIX_SPAWN.
40381         * modules/spawn (Makefile): Substitute
40382         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
40383         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
40384         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
40385         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
40386         (Depends-on): Update conditions.
40387         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
40388         the Solaris 11 bug.
40390 2012-01-08  Bruno Haible  <bruno@clisp.org>
40392         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
40393         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
40394         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
40395         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
40396         macro.
40397         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
40398         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
40399         * lib/spawn_faction_adddup2.c: Add workaround implementation if
40400         HAVE_WORKING_POSIX_SPAWN.
40401         * modules/spawn (Makefile): Substitute
40402         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
40403         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
40404         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
40405         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
40406         (Depends-on): Update conditions.
40407         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
40408         the Solaris 11 bug.
40410 2012-01-08  Bruno Haible  <bruno@clisp.org>
40412         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
40413         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
40414         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
40415         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
40416         HAVE_WORKING_POSIX_SPAWN.
40417         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
40418         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
40419         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
40420         * lib/spawn_faction_addclose.c: Add workaround implementation if
40421         HAVE_WORKING_POSIX_SPAWN.
40422         * modules/spawn (Makefile): Substitute
40423         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
40424         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
40425         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
40426         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
40427         (Depends-on): Update conditions.
40428         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
40429         the Solaris 11 bug.
40431 2012-01-08  Bruno Haible  <bruno@clisp.org>
40433         doc: Update for Solaris 11.0.
40434         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
40435         * m4/printf.m4: Update comments.
40437 2012-01-08  Bruno Haible  <bruno@clisp.org>
40439         mktime: Avoid compilation error on Solaris 11.
40440         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
40442 2012-01-08  Bruno Haible  <bruno@clisp.org>
40444         doc: Small fix.
40445         * doc/posix-headers/nl_types.texi: Correct platforms list.
40447 2012-01-08  Simon Josefsson  <simon@josefsson.org>
40449         Add lgpl-3.0 module.
40450         * MODULES.html.sh (Support for building documentation): Add
40451         lgpl-3.0.
40452         * modules/lgpl-3.0: New file.
40454 2012-01-08  Jim Meyering  <meyering@redhat.com>
40456         select.c: indent with spaces, not TABs
40457         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
40459 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
40461         quotearg: do not use grave accent for left quote
40462         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
40463         locale_quoting_style.
40464         (quotearg_buffer_restyled): Fix example.
40465         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
40467 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
40469         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
40470         Most programs do not have translation catalogs for English and much
40471         less separate catalogs for British and American English.  Drop the
40472         suggestion to translators about these two, and provide it
40473         automatically for Unicode locales.  Like most programs, even those
40474         using American English, we use single quotation marks.  This conflicts
40475         with the American typographic convention, but works better when you
40476         cite the entire error message within double quotes.  It also tries not
40477         to clash with established practice and with what non-gnulib programs
40478         will usually do.
40479         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
40480         using an UTF-8 or GB-18030 locale.  The list of other locales with
40481         quotes was provided by Bruno Haible.
40482         (quotearg_buffer_restyled): Adjust instructions to translators.
40483         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
40484         text, since this would be wrong when using Unicode.
40485         * modules/quotearg: Depend on c-strcaseeq.
40487 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
40489         quotearg: fix Wikipedia link
40490         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
40492 2012-01-07  Simon Josefsson  <simon@josefsson.org>
40494         Fix for mingw with MSVC9.
40495         * m4/ld-version-script.m4: Check that compiler rejects version
40496         scripts with syntax errors.  Reported by Bruno Haible
40497         <bruno@clisp.org>.
40499 2012-01-06  Bruno Haible  <bruno@clisp.org>
40501         Talk about "native Windows API", not "Woe32".
40502         * lib/accept4.c: Update comments to mention native Windows.
40503         * lib/execute.c: Likewise.
40504         * lib/fatal-signal.c: Likewise.
40505         * lib/localcharset.c: Likewise.
40506         * lib/nanosleep.c: Likewise.
40507         * lib/nl_langinfo.c: Likewise.
40508         * lib/pclose.c: Likewise.
40509         * lib/pipe-filter-gi.c: Likewise.
40510         * lib/pipe-filter-ii.c: Likewise.
40511         * lib/pipe.c: Likewise.
40512         * lib/pipe2.c: Likewise.
40513         * lib/popen.c: Likewise.
40514         * lib/progreloc.c: Likewise.
40515         * lib/relocatable.c: Likewise.
40516         * lib/sigaction.c: Likewise.
40517         * lib/sigprocmask.c: Likewise.
40518         * lib/spawn-pipe.h: Likewise.
40519         * lib/spawn-pipe.c: Likewise.
40520         * lib/spawni.c: Likewise.
40521         * lib/stat-time.h: Likewise.
40522         * lib/w32spawn.h: Likewise.
40523         * tests/test-isatty.c: Likewise.
40524         * lib/config.charset: More comments.
40525         * doc/gnulib-intro.texi: Mention native Windows.
40526         * doc/posix-functions/_Exit_C99.texi: Likewise.
40527         * doc/posix-headers/fcntl.texi: Likewise.
40529 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
40531         argp: Avoid crash if translator uses % characters in a translation.
40532         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
40533         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
40535 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
40537         doc: C11 and C++11 are now official
40538         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
40539         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
40540         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
40541         * modules/stdalign:
40542         Replace references to draft C1X to C11, and to draft C++0X to C++11.
40544 2012-01-06  Bruno Haible  <bruno@clisp.org>
40546         uc-is-grapheme-break tests: Tweak.
40547         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
40548         message.
40550 2012-01-06  Bruno Haible  <bruno@clisp.org>
40552         test-init.sh: correct the test for diff -u
40553         * tests/test-init.sh: Also redirect stdout to /dev/null.
40555 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
40557         Use ', not `, for quoting output.
40558         * build-aux/announce-gen (usage, sizes, print_news_deltas)
40559         (print_changelog_deltas, get_tool_versions, main program):
40560         * build-aux/git-version-gen:
40561         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
40562         * build-aux/move-if-change (help):
40563         * build-aux/useless-if-before-free (usage, main program):
40564         * check-module (parse_module_file, usage)
40565         (find_included_lib_files, check_module):
40566         * lib/argmatch.c (main) [TEST]:
40567         * lib/argp-help.c (_help):
40568         * lib/getopt1.c (main) [TEST]:
40569         * lib/git-merge-changelog.c (usage):
40570         * lib/xstrtol-error.c (xstrtol_error):
40571         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
40572         * m4/argz.m4 (gl_FUNC_ARGZ):
40573         * m4/bison.m4 (gl_BISON):
40574         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
40575         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
40576         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
40577         * m4/fpending.m4 (gl_PREREQ_FPENDING):
40578         * m4/gc-random.m4 (gl_GC_RANDOM):
40579         * m4/intl.m4 (gt_CHECK_DECL):
40580         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
40581         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
40582         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
40583         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
40584         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
40585         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
40586         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
40587         * tests/test-dirname.c (main):
40588         * tests/test-getpass.c (main):
40589         * tests/test-iconvme.c (main):
40590         * tests/test-parse-datetime.c (LOG):
40591         * tests/test-xstrtoimax.sh:
40592         * tests/test-xstrtol.sh:
40593         * tests/test-xstrtoll.sh:
40594         * tests/test-xstrtoumax.sh:
40595         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
40596         * top/GNUmakefile (abort-due-to-no-makefile):
40597         Quote 'like this', not `like this', as per the recent change to
40598         the GNU coding standards.
40600 2012-01-05  Bruno Haible  <bruno@clisp.org>
40602         strtoimax: Don't force a replacement on systems where intmax_t is int.
40603         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
40604         'intmax_t' is not larger than 'int'.
40605         Reported by Pádraig Brady <P@draigBrady.com>.
40607 2012-01-05  Bruno Haible  <bruno@clisp.org>
40609         doc: Mention NetBSD bugs.
40610         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
40611         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
40613 2012-01-05  Bruno Haible  <bruno@clisp.org>
40615         strtoumax tests: Enhance tests.
40616         * tests/test-strtoumax.c (main): Add tests for large values.
40618 2012-01-05  Bruno Haible  <bruno@clisp.org>
40620         strtoimax: Work around AIX 5.1 bug.
40621         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
40622         definition.
40623         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
40624         Set HAVE_STRTOIMAX.
40625         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
40626         REPLACE_STRTOIMAX.
40627         * modules/inttypes-incomplete (Makefile.am): Substitute
40628         REPLACE_STRTOIMAX.
40629         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
40630         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
40631         (Depends-on): Update conditions.
40632         * tests/test-strtoimax.c (main): Add tests for large values.
40633         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
40635 2012-01-05  Bruno Haible  <bruno@clisp.org>
40637         inttypes: Modernize.
40638         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
40639         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
40640         (Makefile.am): Update inttypes.h rule.
40642 2012-01-05  Jim Meyering  <meyering@redhat.com>
40644         init.sh: don't waste a subshell just to redirect stderr
40645         * tests/init.sh: In testing for diff -u and diff -c, use a
40646         stderr-redirecting exec inside `...` rather than a subshell.
40648         test-init.sh: avoid failure on HP-UX 11.00
40649         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
40650         resolves to diff -c or cmp.  Reported by Bruno Haible.
40652 2012-01-05  Bruno Haible  <bruno@clisp.org>
40654         Tests for module 'strtoull'.
40655         * modules/strtoull-tests: New file.
40656         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
40658 2012-01-05  Bruno Haible  <bruno@clisp.org>
40660         Tests for module 'strtoll'.
40661         * modules/strtoll-tests: New file.
40662         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
40664 2012-01-05  Bruno Haible  <bruno@clisp.org>
40666         Tests for module 'strtoul'.
40667         * modules/strtoul-tests: New file.
40668         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
40670 2012-01-05  Bruno Haible  <bruno@clisp.org>
40672         Tests for module 'strtol'.
40673         * modules/strtol-tests: New file.
40674         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
40676 2012-01-04  Jim Meyering  <meyering@redhat.com>
40678         test-init.sh: accommodate Solaris 5.10's different diff -u output
40679         * tests/test-init.sh: Also exempt @@ lines from the comparison
40680         of diff output, since Solaris 5.10 and GNU diff formats differ.
40681         Reported by Stefano Lattarini.
40683 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
40685         test-posixtm: don't assume signed integer wraparound
40686         * tests/test-posixtm.c (main): Don't assume wraparound semantics
40687         after signed integer overflow.  Inspired by (though it may not
40688         fix) Bruno Haible's bug report in
40689         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
40691         Spell out "Windows 9x" and "Windows XP".
40692         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
40693         "Windows 9x" and "WinXP" with "Windows XP".
40695 2012-01-04  Jim Meyering  <meyering@redhat.com>
40697         test-vc-list-files-cvs.sh: remove obsolete comment
40698         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
40699         double exit.  Now that's all encapsulated via skip_ and Exit.
40701 2012-01-04  Bruno Haible  <bruno@clisp.org>
40703         Talk about "native Windows API", not "Win32".
40704         * lib/classpath.c: Update comments to mention native Windows.
40705         * lib/csharpexec.c: Likewise.
40706         * lib/dup2.c: Likewise.
40707         * lib/error.c: Likewise.
40708         * lib/fcntl.c: Likewise.
40709         * lib/filename.h: Likewise.
40710         * lib/findprog.c: Likewise.
40711         * lib/get-rusage-as.c: Likewise.
40712         * lib/get-rusage-data.c: Likewise.
40713         * lib/getpagesize.c: Likewise.
40714         * lib/javaexec.c: Likewise.
40715         * lib/msvc-inval.c: Likewise.
40716         * lib/msvc-nothrow.c: Likewise.
40717         * lib/nanosleep.c: Likewise.
40718         * lib/nonblocking.c: Likewise.
40719         * lib/printf-parse.c: Likewise.
40720         * lib/setlocale.c: Likewise.
40721         * lib/sigaction.c: Likewise.
40722         * lib/strerror_r.c: Likewise.
40723         * lib/tmpdir.c: Likewise.
40724         * lib/vasnprintf.c: Likewise.
40725         * lib/w32spawn.h: Likewise.
40726         * lib/waitpid.c: Likewise.
40727         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
40728         * m4/locale-ar.m4: Likewise.
40729         * m4/locale-fr.m4: Likewise.
40730         * m4/locale-ja.m4: Likewise.
40731         * m4/locale-tr.m4: Likewise.
40732         * m4/locale-zh.m4: Likewise.
40733         * m4/printf.m4: Likewise.
40734         * tests/test-cloexec.c: Likewise.
40735         * tests/test-copy-acl.sh: Likewise.
40736         * tests/test-copy-file.sh: Likewise.
40737         * tests/test-file-has-acl.sh: Likewise.
40738         * tests/test-set-mode-acl.sh: Likewise.
40739         * tests/test-dup-safer.c: Likewise.
40740         * tests/test-dup2.c: Likewise.
40741         * tests/test-dup3.c: Likewise.
40742         * tests/test-fcntl.c: Likewise.
40743         * tests/test-nonblocking-pipe.h: Likewise.
40744         * tests/test-nonblocking-socket.h: Likewise.
40745         * tests/test-pipe.c: Likewise.
40746         * tests/test-pipe2.c: Likewise.
40747         * tests/test-spawn-pipe-child.c: Likewise.
40748         * doc/acl-resources.txt: Likewise.
40749         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
40750         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
40751         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
40752         * lib/localcharset.c: Update comments to mention native Windows.
40753         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
40754         * lib/localename.c: Likewise.
40755         * lib/progreloc.c: Likewise.
40756         * lib/relocatable.c: Likewise.
40757         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
40758         (windows_compute_revents): Renamed from win32_compute_revents.
40759         (windows_compute_revents_socket): Renamed from
40760         win32_compute_revents_socket.
40761         * lib/select.c: Update comments to mention native Windows.
40762         (windows_poll_handle): Renamed from win32_poll_handle.
40763         * m4/threadlib.m4: Update comments to mention native Windows.
40764         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
40765         --enable-threads=windows instead of --enable-threads=win32. Set
40766         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
40767         * lib/glthread/lock.h: Update comments to mention native Windows.
40768         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
40769         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
40770         USE_WIN32_THREADS.
40771         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
40772         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
40773         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
40774         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
40775         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
40776         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
40777         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
40778         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
40779         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
40780         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
40781         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
40782         * tests/test-tls.c: Likewise.
40783         Rationale:
40784         Microsoft renamed the "Win32 API" to "Windows API", as it is available
40785         on both 32-bit and 64-bit Windows systems.
40786         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
40787         line of distinction is between "native Windows" on one side and Unix/
40788         POSIX systems on the other side. More details in
40789         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
40790         Suggested by Paul Eggert.
40792 2012-01-03  Bruno Haible  <bruno@clisp.org>
40794         isatty: Support for MSVC 9.
40795         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
40796         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
40797         (_isatty_nothrow): New function.
40798         (isatty): Use it instead of _isatty.
40799         (IsConsoleHandle): Add comment, from Paolo Bonzini.
40800         * lib/poll.c (IsConsoleHandle): Likewise.
40801         * lib/select.c (IsConsoleHandle): Likewise.
40802         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
40803         (gl_PREREQ_ISATTY): New macro.
40804         * modules/isatty (Depends-on): Add msvc-inval.
40805         (configure.ac): Invoke gl_PREREQ_ISATTY.
40807 2012-01-03  Jim Meyering  <meyering@redhat.com>
40809         maint.mk: remove temporary transition aid from over 1.5 years ago
40810         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
40811         purpose was to aid in the transition (avoiding silent malfunction)
40812         from that old name to the new _sc_search_regexp.  This shim was
40813         added by commit 219c504b.
40815         init.sh: do not try to accommodate compare arguments starting with "-"
40816         * tests/init.sh (compare_dev_null_): Do not try to accommodate
40817         compare arguments that start with "-".  Besides, we do not worry
40818         about this when invoking diff or cmp; why start now with sed?
40819         Using "--" to separate options from argument would trigger sed
40820         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
40821         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
40823 2012-01-02  Bruno Haible  <bruno@clisp.org>
40825         Enhance tests for module 'isatty'.
40826         * modules/isatty-tests (Depends-on): Add pipe-posix.
40827         * tests/test-isatty.c: Include <fcntl.h>.
40828         (DEV_NULL): New macro.
40829         (main): Test the resut of isatty() also on regular files, pipes, and
40830         /dev/null.
40832         New module 'isatty'.
40833         * lib/unistd.in.h (isatty): New declaration.
40834         * lib/isatty.c: New file, based on an idea of
40835         Bastien Roucariès <roucaries.bastien@gmail.com>.
40836         * m4/isatty.m4: New file.
40837         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
40838         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
40839         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
40840         REPLACE_ISATTY.
40841         * modules/isatty: New file.
40842         * doc/posix-functions/isatty.texi: Mention the new module.
40843         Suggested by Paolo Bonzini.
40845 2012-01-02  Bruno Haible  <bruno@clisp.org>
40847         canonicalize: Tweak 2011-12-29 commit.
40848         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
40849         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
40851 2012-01-02  Jim Meyering  <meyering@redhat.com>
40853         gitlog-to-changelog: describe input syntax in --help output
40854         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
40856         gitlog-to-changelog: fix typo in --help: show backslash before email @
40857         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
40858         in sources, but not in actual output.
40860 2011-12-30  Jim Meyering  <meyering@redhat.com>
40862         gitlog-to-changelog: don't malfunction when name contains %-directive
40863         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
40864         in a name string cause trouble.  E.g., with a user name of "%s",
40865         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
40867 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
40869         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
40870         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
40871         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
40872         the "  (tiny change)" notation that is appended to the standard
40873         ChangeLog "date  name  email" header line.
40875 2012-01-01  Jim Meyering  <meyering@redhat.com>
40877         test-framework-sh: init.sh: fix "make dist" failure
40878         When using gnulib-tool's --with-tests option and any module that
40879         depends on test-framework-sh, "make dist" would fail due to the
40880         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
40881         in the gltests directory, and not in the gllib/ directory.
40882         One way to work around that is to move the EXTRA_DIST += init.sh
40883         from the primary module to the -tests one:
40884         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
40885         * modules/test-framework-sh (Makefile.am): ...not here.
40886         Reported by Tom G. Christensen in
40887         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
40889         version-etc: update copyright year reported by --version
40890         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
40892 2011-12-31  Pádraig Brady  <P@draigBrady.com>
40894         canonicalize: only stat() if required
40895         * lib/canonicalize.c (canonicalize_filename_mode):
40896         Avoid calling l?stat() when both CAN_MISSING,
40897         and CAN_NOLINKS are set, as we neither need
40898         to resolve symlinks or test component existence.
40900 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
40902         doc: cover st_ino issues once; add OpenVMS etc.
40903         * doc/posix-functions/stat.texi (stat):
40904         * doc/posix-functions/lstat.texi (lstat):
40905         * doc/posix-functions/fstatat.texi (fstatat):
40906         * doc/posix-functions/fstat.texi (fstat):
40907         Move general 'struct stat' stuff to sys_stat.texi,
40908         leaving behind a pointer.
40909         * doc/posix-headers/sys_stat.texi (sys/stat.h):
40910         Merge duplicate info about 'struct stat' problems into here.
40911         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
40912         and suggest partial workarounds.
40914         same-inode: port to OpenVMS
40915         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
40916         three st_ino values.
40918 2011-12-30  Pádraig Brady  <P@draigBrady.com>
40920         canonicalize: fix references to stat() and lstat()
40921         * lib/canonicalize.c (canonicalize_filename_mode):
40922         Ensure references always resolve to a replacement
40923         function if required (even via a macro).
40925 2011-12-30  Jim Meyering  <meyering@redhat.com>
40927         gitlog-to-changelog: remove a little duplication
40928         * build-aux/gitlog-to-changelog (main): Grep @lines once,
40929         rather than twice.
40931 2011-12-29  Pádraig Brady  <P@draigBrady.com>
40933         canonicalize: add support for not resolving symlinks
40934         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
40935         indicate we don't want to follow symlinks.  Also
40936         provide CAN_MODE_MASK to aid setting these existing
40937         mutually exclusive values.
40938         * lib/canonicalize.c (canonicalize_filename_mode):
40939         Extract the flags from can_mode parameter, which
40940         are currently just used to select between stat()
40941         and lstat().  Also ensure that mutually exclusive
40942         values are flagged immediately as invalid.
40943         * tests/test-canonicalize.c: Verify symlinks are
40944         not followed, and that invalid flag combinations
40945         are diagnosed.
40947 2011-12-25  Jim Meyering  <meyering@redhat.com>
40949         gitlog-to-changelog: do not clump multi-paragraph entries
40950         Identical header lines (date,name,email+coauthors) are suppressed,
40951         thus putting all entries with those same characteristics under
40952         a single header.  However, when a log entry consists of two or
40953         more paragraphs, it may not be clear where it starts and ends.
40954         This change makes it so that such an entry is always separated
40955         from others by a header line, even when that header would
40956         otherwise be suppressed.
40957         * build-aux/gitlog-to-changelog: Implement the above.
40958         Inspired by a related request from Stefano Lattarini in
40959         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
40961 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
40963         announce-gen: fix `cmd' typo in diagnostic
40964         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
40965         diagnostic: a missing '$' meant that the command was not output.
40967 2011-12-23  Jim Meyering  <meyering@redhat.com>
40969         test-framework-sh: distribute init.sh
40970         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
40971         Otherwise, "make -C gnulib-tests check" (at least in grep) would
40972         fail due to the lack of init.sh.
40974         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
40975         * modules/atexit-tests: Rather than listing tests/init.sh,
40976         now that there's a module for it, simply depend on that new module.
40977         * modules/closein-tests: Likewise.
40978         * modules/exclude-tests: Likewise.
40979         * modules/getcwd-tests: Likewise.
40980         * modules/perror-tests: Likewise.
40981         * modules/pread-tests: Likewise.
40982         * modules/pwrite-tests: Likewise.
40983         * modules/vc-list-files-tests: Likewise.
40984         * modules/verify-tests: Likewise.
40985         * modules/xalloc-die-tests: Likewise.
40986         * modules/xstrtoimax-tests: Likewise.
40987         * modules/xstrtol-tests: Likewise.
40988         * modules/xstrtoll-tests: Likewise.
40989         * modules/xstrtoumax-tests: Likewise.
40990         * modules/yesno-tests: Likewise.
40992 2011-12-22  Jim Meyering  <meyering@redhat.com>
40994         test-framework-sh: add minimal tests of init.sh's compare function
40995         * modules/test-framework-sh-tests: New file.
40996         * tests/test-init.sh: New file.
40998         test-framework-sh: new module
40999         * modules/test-framework-sh: New file.
41000         * MODULES.html.sh (Support for maintaining and releasing projects):
41001         List it.
41003         init.sh: do not emit simulated diff output to stderr
41004         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
41006 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
41008         .gitignore: ignore gnulib.dvi and regex.info
41009         * doc/.gitignore:add gnulib.dvi and regex.info
41011 2011-12-22  Jim Meyering  <meyering@redhat.com>
41013         init.sh: correct previous change
41014         * tests/init.sh (compare): My previous change was wrong.
41015         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
41017         init.sh: avoid unwarranted test failure when using "set -e"
41018         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
41019         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
41020         a use like "compare exp out" would get evoke an unconditional failure.
41022 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
41024         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
41025         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
41026         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
41027         autoreconf that did not.
41028         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
41029         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
41031 2011-12-17  Jim Meyering  <meyering@redhat.com>
41033         bootstrap: remove some now-unneeded code
41034         This script arose back when gnulib-tool was young.
41035         Since then, it has seen improvements that render much of this
41036         script unnecessary.  In particular, it can now make symlinks
41037         to the files it uses.  Also, I no longer see as much value in
41038         marking files as read-only via comments.
41039         If you relied on the symlink-creation feature of the preceding
41040         version of this script, you can get most of that functionality
41041         by adding the --symlink option to the definition of
41042         gnulib_tool_option_extras in your bootstrap.conf file.
41043         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
41044         Run autopoint and libtoolize *before* gnulib-tool.
41045         After it, run an abbreviated autoreconf, rather than a loop around
41046         all tools.
41047         (slirp, bt_mark_as_generated): Remove functions.
41049 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41051         ftoastr: fix typo
41052         * lib/ftoastr.h: Fix misspelling in comment.
41054 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
41056         * top/README-release: fix punctuation.
41058 2011-12-17  Jim Meyering  <meyering@redhat.com>
41060         bootstrap: correct the recent buildreq change
41061         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
41062         had no effect.
41063         * build-aux/bootstrap (buildreq): Bracket each search term with
41064         "*...*", so that the shell "case" statement works as intended.
41065         Add comments.
41067 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
41069         build: let bootstrap resort to wget when downloading .po files
41070         * build-aux/bootstrap (download_po_files): Fallback to wget when
41071         downloading the .po files via rsync fails.  This is necessary to
41072         bootstrap from behind a strict firewall.
41074 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
41076         stdint: don't assume C++11 when compiling with g++
41077         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
41078         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
41079         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
41080         work also in C++ before C++11, as that improperly inhibits
41081         generating a substitute stdint.h for that case.
41083 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
41085         alloca: protect comment from gnulib-tool
41086         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
41087         that gnulib-tool doesn't think it's a license, and munge it to
41088         say "GCC version 3".
41090 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
41092         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
41093         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
41094         $(abs_top_builddir) instead of $(top_builddir).
41096 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
41098         strftime-tests: also test nanoseconds
41099         * tests/test-strftime.c (T): Add a test of %N.
41101 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
41103         inttypes, stdint: add C++11 support
41104         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
41105         when including inttypes.h and stdint.h.  Support this change to
41106         the standard.
41107         * doc/posix-headers/inttypes.texi (inttypes.h):
41108         * doc/posix-headers/stdint.texi (stdint.h): Document this.
41109         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
41110         Define if not defined already, for the benefit of pre-C++11 hosts.
41111         Define the standard format macros (e.g., PRId8) always.
41112         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
41113         Likewise, if __cpluspus.  Define the standard constant and limit
41114         macros (e.g., INT8_C, INT8_MAX) always.
41115         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
41116         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
41117         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
41118         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
41119         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
41120         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
41121         Likewise.
41123 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
41125         nonblocking tests: Fix test failure on Linux/PPC.
41126         Suggested by Prerna Saxena in
41127         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
41128         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
41129         Set to 1100000.
41131 2011-12-12  Jim Meyering  <meyering@redhat.com>
41133         argmatch: don't hard-code `' when listing valid option arguments
41134         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
41135         use the quote function to add quotes.  Use fputs rather than
41136         fprintf for the format string with no format directive.
41138 2011-12-07  Eric Blake  <eblake@redhat.com>
41140         bootstrap: detect tools required by gnulib-tool
41141         * build-aux/bootstrap (buildreq): Provide minimum implicit
41142         dependencies.
41143         * DEPENDENCIES: Mention patch as a prereq.
41145 2011-12-04  Bruno Haible  <bruno@clisp.org>
41147         sethostname: Port to Windows platforms.
41148         * lib/sethostname.c: Provide an alternate implementation for Windows
41149         platforms.
41150         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
41151         (main): Skip the test if sethostname() fails with EPERM. On Windows
41152         platforms, don't check the result of gethostname().
41154 2011-12-04  Bruno Haible  <bruno@clisp.org>
41155             Jim Meyering  <meyering@redhat.com>
41157         tests: Avoid spurious error message on platforms without mktemp program.
41158         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
41160 2011-12-04  Bruno Haible  <bruno@clisp.org>
41162         sethostname: Fix documentation.
41163         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
41164         "not fixed" section.
41166 2011-12-03  Bruno Haible  <bruno@clisp.org>
41168         gnulib-tool: Verify that the License field is present and non-empty.
41169         * gnulib-tool (func_get_license_raw): New function, extracted from
41170         func_get_license.
41171         (func_get_license): Use it. Warn if the module is not a test module and
41172         has no license.
41173         Suggested by Jim Meyering.
41175 2011-12-03  Bruno Haible  <bruno@clisp.org>
41177         sethostname tests: Fix link error on mingw.
41178         * tests/test-sethostname1.c: New file, extracted from
41179         tests/test-sethostname.c.
41180         * tests/test-sethostname2.c: New file, extracted from
41181         tests/test-sethostname.c.
41182         * tests/test-sethostname.c: Remove file.
41183         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
41184         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
41185         (Depends-on): Add gethostname.
41186         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
41187         Link the latter with $(GETHOSTNAME_LIB).
41189         sethostname tests: Fix compilation error on mingw.
41190         * tests/test-sethostname.c: Don't include <sys/types.h>.
41191         (geteuid): Use a dummy value without uid_t.
41192         * modules/sethostname-tests (Depends-on): Remove sys_types.
41194         sethostname tests: Avoid a gcc warning.
41195         * tests/test-sethostname.c (main): Remove an unused variable.
41197         Tweak last commit.
41198         * modules/sethostname-tests (Files): Sort by decreasing importance.
41199         (configure.ac): Check for geteuid.
41200         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
41201         the test when there's nothing to test. Drop an unnecessary cast.
41202         Improve an error message. Verify that the final sethostname() call
41203         succeeds.
41205 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
41207         Add a test suite for the sethostname module.
41208         * modules/sethostname-tests: New file.  A test program
41209         for the sethostname module.
41210         * tests/test-sethostname.c: Likewise.
41212 2011-12-03  Bruno Haible  <bruno@clisp.org>
41214         Tweak last commit.
41215         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
41216         Fix preprocessor directives indentation. Fix typos.
41217         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
41218         * modules/unistd (Makefile): Likewise.
41220 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
41222         Integrate the sethostname module into unistd.
41223         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
41224         into the unistd.h header.
41225         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
41226         preprocessor directives.
41227         * modules/unistd: Setup the Makefile substitutions of the
41228         SETHOSTNAME preprocessor directives.
41230 2011-12-03  Bruno Haible  <bruno@clisp.org>
41232         Tweak last commit.
41233         * lib/sethostname.c: Don't include <string.h>.
41234         (sethostname): No need to copy the argument string to the stack. Don't
41235         call clearerr. Preserve errno when fprintf failed.
41236         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
41237         Don't invoke AC_REPLACE_FUNCS.
41238         * modules/sethostname (Link): Remove empty section.
41239         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
41240         failure problem.
41242 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
41244         New module 'sethostname'.
41245         * lib/sethostname.c (sethostname): New file.  Provide sethostname
41246         for systems that lack it.
41247         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
41248         sethostname declaration and function.
41249         * modules/sethostname: New file.  Define the sethostname module.
41251 2011-12-03  Bruno Haible  <bruno@clisp.org>
41253         Tweak last commit.
41254         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
41256 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
41258         Split the HOST_NAME_MAX detection into a separate m4 macro.
41259         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
41260         macro so it can be used by the pending sethostname module.
41262 2011-12-03  Bruno Haible  <bruno@clisp.org>
41264         Fix module descriptions syntax.
41265         * modules/argv-iter (License): Fix syntax.
41266         * modules/di-set (License): Likewise.
41267         * modules/ino-map (License): Likewise.
41268         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
41270 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
41272         stdalign: port to Clang 3.0
41273         Problem reported by Simon Josefsson in
41274         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
41275         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
41276         which has <stdalign.h> but which does not define alignof.
41277         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
41279 2011-12-01  Eric Blake  <eblake@redhat.com>
41281         mktempd: silence dd usage
41282         * build-aux/mktempd (rand_bytes): Silence dd.
41284 2011-11-30  Simon Josefsson  <simon@josefsson.org>
41286         manywarnings: Don't mention gcc version in docstring.
41287         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
41288         Jim Meyering <meyering@redhat.com>.
41290 2011-11-30  Jim Meyering  <meyering@redhat.com>
41292         hash: mark a few floating point constants with "f" suffix
41293         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
41294         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
41295         floating point constants with "f", since they're destined to be
41296         saved/used as "float"s.
41298 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
41300         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
41301         * tests/test-float.c (test_long_double): Correct and re-enable the
41302         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
41304 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
41306         Avoid subtracting two pointers that don't point into the same block.
41307         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
41308         only pointers into the same memory block are subtracted. We cannot
41309         assume that sizeof (ptrdiff_t) == sizeof (void *).
41311 2011-11-29  Eric Blake  <eblake@redhat.com>
41313         maint.mk: add syntax check for use of compare from init.sh
41314         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
41315         moved here from coreutils.
41317         manywarnings: drop -Wunsuffixed-float-constants
41318         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
41319         '1.0D', which is the only way to silence this warning for 'double'.
41321 2011-11-29  Jim Meyering  <meyering@redhat.com>
41323         hash: mark compute_bucket_size with the pure attribute
41324         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
41326         quotearg, propername: correct pragma guard expression
41327         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
41328         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
41330 2011-11-28  Jim Meyering  <meyering@redhat.com>
41332         propername: do not mark proper_name with the const attribute
41333         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
41334         since it examines data pointed to by its parameter.
41335         * lib/propername.c (proper_name): Instead, add a pragma to suppress
41336         the suggestion from -Wsuggest-attribute=const.
41338         propername: mark one more function as const
41339         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
41341 2011-11-27  Jim Meyering  <meyering@redhat.com>
41343         mark functions with const and pure attributes
41345         Mark functions per suggestions from gcc-4.6 when using these options:
41346         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
41347         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
41348         Follow these guidelines: when possible, apply the attribute to
41349         an extern declaration, not to its definition.  Apply it to the
41350         definition only when the definition is static.
41351         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
41352         * lib/argv-iter.h (argv_iter_n_args): Likewise.
41353         * lib/base64.h (isbase64): Likewise.
41354         * lib/basename-lgpl.c (last_component, base_len): Likewise.
41355         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
41356         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
41357         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
41358         (c_tolower, c_toupper): Likewise.
41359         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
41360         * lib/chdir-long.c (find_non_slash): Likewise.
41361         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
41362         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
41363         * lib/file-type.h (file_type): Likewise.
41364         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
41365         * lib/filevercmp.c (verrevcmp): Likewise.
41366         * lib/freadahead.h (freadahead): Likewise.
41367         * lib/fts.c (fts_maxarglen): Likewise.
41368         * lib/hash-pjw.h (hash_pjw): Likewise.
41369         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
41370         * lib/hash.c (is_prime, next_prime): Likewise.
41371         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
41372         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
41373         (hash_table_ok, hash_get_first, hash_string): Likewise.
41374         (compute_bucket_size): Likewise.
41375         * lib/i-ring.h (i_ring_empty): Likewise.
41376         * lib/isnan.c (isnanl): Likewise.
41377         * lib/math.h (isnanl, rpl_isnanl): Likewise.
41378         * lib/memcasecmp.h (memcasecmp): Likewise.
41379         * lib/memchr2.h (memchr2): Likewise.
41380         * lib/memcmp2.h (memcmp2): Likewise.
41381         * lib/parse-datetime.y (lookup_zone): Likewise.
41382         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
41383         [!WINDOWS_SOCKETS]: Likewise.
41384         * lib/strnlen1.h (strnlen1): Likewise.
41385         * lib/uniwidth.in.h (uc_width): Likewise.
41386         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
41387         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
41388         (quoting_options_from_style): Add a comment.
41389         * lib/propername.h (proper_name): Add a comment.
41391 2011-11-27  Bruno Haible  <bruno@clisp.org>
41393         Remove unused macros from !_LIBC code in glibc-borrowed files.
41394         * lib/fnmatch.c (STRCOLL): Remove macro.
41395         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
41396         * lib/glob.c (__stat, __readdir64): Remove macros.
41397         * lib/tempname.c (__open64, __xstat64): Remove macros.
41398         Suggested by Paul Eggert.
41400 2011-11-27  Bruno Haible  <bruno@clisp.org>
41402         getcwd: Fix link error on MSVC 9.
41403         * modules/getcwd (Depends-on): Add readdir, rewinddir.
41405 2011-11-27  Bruno Haible  <bruno@clisp.org>
41407         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
41408         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
41409         HAVE_OPENDIR is 0.
41410         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
41411         HAVE_CLOSEDIR is 0.
41412         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
41413         is 0.
41414         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
41416 2011-11-27  Bruno Haible  <bruno@clisp.org>
41418         getcwd: Fix bug from 2011-08-17.
41419         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
41420         platforms that need it.
41421         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
41422         code of 4 to be a failure, not a success. This ensures that
41423         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
41425 2011-11-27  Bruno Haible  <bruno@clisp.org>
41427         binary-io tests: Avoid test failure on mingw when libtool is used.
41428         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
41429         Don't verify the size of t-bin-out1.tmp here.
41430         * tests/test-binary-io.sh: Verify it here.
41431         Reported by Simon Josefsson.
41433 2011-11-26  Bruno Haible  <bruno@clisp.org>
41435         Fix conflict between two instantiations of module 'unistd'.
41436         * gnulib-tool (func_emit_autoconf_snippet): Substitute
41437         ${include_guard_prefix} also in the autoconf snippet.
41438         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
41439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
41440         GNULIB_UNISTD_H_GETOPT.
41441         * modules/getopt-posix (configure.ac): Set the
41442         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
41443         * modules/getopt-gnu (configure.ac): Likewise.
41444         * modules/unistd (Makefile.am): Change the substitution value of
41445         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
41446         Reported by Simon Josefsson.
41448 2011-11-25  Bruno Haible  <bruno@clisp.org>
41450         pagealign_alloc: Doc and comments.
41451         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
41452         module.
41453         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
41455 2011-11-25  Jim Meyering  <meyering@redhat.com>
41457         test-update-copyright.sh: avoid false-positive failure
41458         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
41459         around false positive failure on Cygwin/Windows.  The latter was
41460         matching erroneously-created files with names like
41461         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
41463 2011-11-25  Simon Josefsson  <simon@josefsson.org>
41465         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
41466         * m4/valgrind-tests.m4: Check that the parameters that will be
41467         used works, not just a subset of them.  Reported by Bruno Haible
41468         <bruno@clisp.org>.
41470 2011-11-24  Jim Meyering  <meyering@redhat.com>
41472         test-stdalign.c: comment out long double tests
41473         * tests/test-stdalign.c: Don't try to reduce alignment of long double
41474         variables.  That provokes errors like this from gcc-4.7.0 20111124:
41475         error: '_Alignas' specifiers cannot reduce alignment of \
41476         'static_longdouble_alignas'.
41478 2011-11-22  Jim Meyering  <meyering@redhat.com>
41480         init.sh: make "compare /dev/null FILE" output more readable
41481         * tests/init.sh (compare_): Document the preferred order of arguments.
41482         (emit_diff_u_header_): New function.
41483         (compare_dev_null_): Emit a simulated diff, rather than just the
41484         contents of the unexpected file.  Suggestion from Bruno Haible.
41486 2011-11-21  Jim Meyering  <meyering@redhat.com>
41487             Eric Blake  <eblake@redhat.com>
41489         init.sh: work around OSF/1 5.1's mishandling of /dev/null
41490         * tests/init.sh: Make our compare function slightly more portable.
41491         Reported by Bruno Haible in
41492         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
41494 2011-11-21  Simon Josefsson  <simon@josefsson.org>
41496         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
41497         before using it, in code that ends up in config.h.
41499 2011-11-20  Bruno Haible  <bruno@clisp.org>
41501         getcwd: Work around getcwd bug on AIX 5..7.
41502         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
41503         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
41504         Use a different value for gl_cv_func_getcwd_path_max. Move the
41505         definition of HAVE_PARTLY_WORKING_GETCWD from here...
41506         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
41507         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
41508         Define HAVE_MINIMALLY_WORKING_GETCWD.
41509         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
41510         where it is not even minimally working, that is, on AIX.
41511         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
41512         m4/getcwd-path-max.m4.
41513         (main): Update exit code computation.
41514         * doc/posix-functions/getcwd.texi: Mention list of platforms where
41515         getcwd does not handle long file names.
41517 2011-11-20  Bruno Haible  <bruno@clisp.org>
41519         getcwd: Fix bug from 2009-09-10.
41520         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
41521         like "no".
41523 2011-11-20  Simon Josefsson  <simon@josefsson.org>
41525         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
41527 2011-11-20  Bruno Haible  <bruno@clisp.org>
41529         fma tests: Avoid shadowing local variables.
41530         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
41531         expected.
41533 2011-11-20  Bruno Haible  <bruno@clisp.org>
41535         copysignf tests: Fix.
41536         * tests/test-copysignf.c: Fix signature check.
41538 2011-11-20  Bruno Haible  <bruno@clisp.org>
41540         fma: Remove unused code.
41541         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
41542         unused macros.
41544 2011-11-20  Bruno Haible  <bruno@clisp.org>
41546         sethostname: Fix doc about AIX.
41547         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
41548         sethostname; it has it.
41550         sethostname: Mention more portability problems.
41551         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
41552         problem.
41553         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
41555 2011-11-19  Bruno Haible  <bruno@clisp.org>
41557         Depend on module fcntl-h when AT_FDCWD is used.
41558         * modules/utimens (Depends-on): Add fcntl-h.
41559         * modules/areadlinkat (Depends-on): Likewise.
41560         * modules/areadlinkat-with-size (Depends-on): Likewise.
41561         * modules/faccessat (Depends-on): Likewise.
41562         * modules/fchmodat (Depends-on): Likewise.
41563         * modules/fchownat (Depends-on): Likewise.
41564         * modules/getcwd (Depends-on): Likewise.
41565         * modules/mkdirat (Depends-on): Likewise.
41566         * modules/mkfifoat (Depends-on): Likewise.
41567         * modules/readlinkat (Depends-on): Likewise.
41568         * modules/symlinkat (Depends-on): Likewise.
41569         * modules/dup2-tests (Depends-on): Likewise.
41570         * modules/fdutimensat-tests (Depends-on): Likewise.
41571         * modules/futimens-tests (Depends-on): Likewise.
41573 2011-11-19  Bruno Haible  <bruno@clisp.org>
41575         euidaccess: Update a comment.
41576         * lib/euidaccess.c: Update comment about platforms with faccessat.
41578 2011-11-19  Bruno Haible  <bruno@clisp.org>
41580         openat: Fix file list.
41581         * modules/openat (Files): Remove lib/at-func.c.
41583 2011-11-19  Bruno Haible  <bruno@clisp.org>
41585         fstatat: Simplify.
41586         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
41587         gnulib should define rpl_fstatat, there is a
41588         "#define fstatat rpl_fstatat" in <sys/stat.h>.
41590 2011-11-19  Bruno Haible  <bruno@clisp.org>
41592         Ensure 'inline' can be used in tests/test-utimens-common.h.
41593         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
41594         * modules/futimens-tests (configure.ac): Likewise.
41595         * modules/utimens-tests (configure.ac): Likewise.
41596         * modules/utimensat-tests (configure.ac): Likewise.
41598 2011-11-19  Simon Josefsson  <simon@josefsson.org>
41600         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
41601         not hash_insert0.
41602         (hash_insert_if_absent): Doc fix.
41604 2011-11-19  Simon Josefsson  <simon@josefsson.org>
41606         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
41608 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
41610         test-getcwd: disambiguate exit status
41611         * tests/test-getcwd.c (test_long_name): Return 0..7.
41612         (main): Exit with an unambiguous exit status.  The old
41613         code yielded a mysterious mixture of two failure codes.
41615         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
41616         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
41617         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
41618         rpl_fstatat or fstatat.  This should fix the other problem
41619         reported by Kai Habel in
41620         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
41621         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
41622         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
41623         and I reproduced it on a Solaris 8 host we still have in production.
41625 2011-11-18  Jim Meyering  <meyering@redhat.com>
41627         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
41628         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
41629         Add a sentence to the comment.
41630         (hash_insert0): New function that simply calls hash_insert_if_absent.
41631         * lib/hash.h (hash_insert_if_absent): Declare it.
41632         (hash_insert0): Add deprecation attribute.
41633         (_GL_ATTRIBUTE_DEPRECATED): Define.
41634         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
41635         not hash_insert0.
41636         * NEWS: Mention it, even though it's not really an incompatible change.
41638 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
41640         openat: avoid compilation failure due to lack of <errno.h> inclusion
41641         * lib/openat.c: Include <errno.h>.
41643 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
41645         * modules/getcwd (Depends-on): Add fdopendir.
41646         This fixes one of the two problems reported by Kai Habel in
41647         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
41649         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
41650         stdalign problem reported by Ian Beckwith in
41651         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
41652         * modules/crypto/gc-arcfour (Depends-on):
41653         Depend conditionally on crypto/arcfour.
41654         * modules/crypto/gc-arctwo (Depends-on):
41655         Depend conditionally on crypto/arctwo.
41656         * modules/crypto/gc-des (Depends-on):
41657         Depend conditionally on crypto/des.
41658         * modules/crypto/gc-hmac-md5 (Depends-on):
41659         Depend conditionally on crypto/hmac-md5.
41660         * modules/crypto/gc-hmac-sha1 (Depends-on):
41661         Depend conditionally on crypto/hmac-sha1.
41662         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
41663         * modules/crypto/gc-md4 (Depends-on):
41664         Depend conditionally on crypto/md4.
41665         * modules/crypto/gc-md5 (Depends-on):
41666         Depend conditionally on crypto/md5.
41667         * modules/crypto/gc-rijndael (Depends-on):
41668         Depend conditionally on crypto/rijndael.
41669         * modules/crypto/gc-sha1 (Depends-on):
41670         Depend conditionally on crypto/sha1.
41671         * modules/crypto/gc-arcfour:
41672         * modules/crypto/gc-arctwo:
41673         * modules/crypto/gc-des:
41674         * modules/crypto/gc-hmac-md5:
41675         * modules/crypto/gc-hmac-sha1:
41676         * modules/crypto/gc-md2:
41677         * modules/crypto/gc-md4:
41678         * modules/crypto/gc-md5:
41679         * modules/crypto/gc-rijndael:
41680         * modules/crypto/gc-sha1:
41681         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
41682         now that the conditional dependencies do the work for us.
41684 2011-11-17  Jim Meyering  <meyering@redhat.com>
41686         tests: factor st_ctime-comparison out of two headers
41687         * tests/test-utimens-common.h (ctime_compare): Define.
41688         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
41689         * tests/test-lutimens.h (test_lutimens): Likewise.
41690         * tests/test-utimens.h (test_utimens): Likewise.
41692         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
41693         Invoke the test program via an init.sh-using wrapper.
41694         * tests/test-getcwd.sh: New file.
41695         * modules/getcwd-tests (Files): Add it.
41696         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
41698 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
41700         gitlog-to-changelog: support multi-author commits.
41701         The FSF cares about keeping track of all authors of patches to its
41702         projects, but Git doesn't provide obvious support for multi-author
41703         changesets. Consensus seems to be forming around the use of extra
41704         Signed-off-by inspired lines in the log message formatted as
41705         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
41706         multi-author commits between version control systems.
41707         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
41708         log message and output in standard ChangeLog multi-author format.
41709         Reported by Peter Rosin <peda@lysator.liu.se>
41711 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
41712             Bruno Haible  <bruno@clisp.org>
41714         Fix some modules' file list.
41715         * modules/fstatat (Files): Add m4/lstat.m4.
41716         * modules/openat (Files): Likewise.
41717         * modules/unlinkat (Files): Likewise.
41719 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
41721         maint.mk: fix tight-scope.mk generation in VPATH builds.
41722         * top/maint.mk (tight-scope.mk): Make sure to prefix file
41723         reference with $(srcdir) so that the file is found correctly even
41724         when running `make syntax-check' in a VPATH build.
41726 2011-11-13  Bruno Haible  <bruno@clisp.org>
41727             Jim Meyering  <meyering@redhat.com>
41729         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
41730         * tests/init.sh (compare): Remove "No differences encountered" or
41731         synonymous output from the 'diff' program.
41733 2011-11-13  Bruno Haible  <bruno@clisp.org>
41735         Makefile: Tweak indentation.
41736         * Makefile: Use tab as first character in every line that contains rule
41737         commands.
41739 2011-11-13  Bruno Haible  <bruno@clisp.org>
41741         Syntax check for copyright statements.
41742         * check-copyright: New file.
41743         * Makefile (sc_check_copyright): New rule.
41745 2011-11-13  Simon Josefsson  <simon@josefsson.org>
41747         * build-aux/git-version-gen: Add --prefix to configure the tag
41748         match string.
41750 2011-11-13  Simon Josefsson  <simon@josefsson.org>
41752         * build-aux/git-version-gen: Add --help and --version.
41754 2011-11-12  Jim Meyering  <meyering@redhat.com>
41756         revamp the other test-exclude?.sh scripts to use init.sh, too
41757         * tests/test-exclude1.sh: Use init.sh.
41758         * tests/test-exclude2.sh: Likewise.
41759         * tests/test-exclude3.sh: Likewise.
41760         * tests/test-exclude4.sh: Likewise.
41761         * tests/test-exclude5.sh: Likewise.
41762         * tests/test-exclude6.sh: Likewise.
41763         * tests/test-exclude7.sh: Likewise.
41764         * tests/test-exclude8.sh: Likewise.
41765         * modules/exclude-tests (Files): List init.sh.
41767         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
41768         These shell scripts ignored failure of the binary test-exclude,
41769         so making the latter return 77 didn't cause them to be skipped.
41770         * tests/test-exclude5.sh: Exit with test-exclude's error status
41771         when that program fails.  Revamp to use init.sh.
41772         * tests/test-exclude2.sh: Likewise.
41774         test-exclude: fix a typo
41775         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
41777 2011-11-11  Bruno Haible  <bruno@clisp.org>
41779         obstack: Fix compilation error on MSVC 9.
41780         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
41782 2011-11-11  Jim Meyering  <meyering@redhat.com>
41784         test-exclude: skip tests rather than failing on deficient systems
41785         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
41786         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
41787         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
41788         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
41790 2011-11-10  Bruno Haible  <bruno@clisp.org>
41792         ptsname_r test: Avoid gcc warning on glibc systems.
41793         * tests/test-ptsname_r.c (null_ptr): New function.
41794         (test_errors): Use it.
41796 2011-11-10  Bruno Haible  <bruno@clisp.org>
41798         ptsname_r: Avoid compilation error on OSF/1 5.1.
41799         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
41800         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
41801         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
41802         function is not declared or incompatibly declared.
41803         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
41804         * modules/ptsname_r (Depends-on, configure.ac): Update.
41805         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
41807 2011-11-10  Bruno Haible  <bruno@clisp.org>
41809         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
41810         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
41811         When cross-compiling, guess yes on all platforms except AIX.
41812         Reported by Ludovic Courtès <ludo@gnu.org>.
41814 2011-11-09  Bruno Haible  <bruno@clisp.org>
41816         ptsname_r tests: Fix bugs.
41817         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
41818         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
41820 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41822         fstatat: work with cross-compilation
41823         Problem reported by Ludovic Courtès in
41824         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
41825         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
41826         "cross-compiling" and assume the bug is present.  Replace
41827         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
41828         an inverted sense, to be more conservative about our assumptions.
41829         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
41831 2011-11-09  Bruno Haible  <bruno@clisp.org>
41833         Improve MODULES.html output.
41834         * modules/mkfifoat (Description): Use the word "function".
41835         * modules/readlinkat (Description): Likewise.
41836         * modules/symlinkat (Description): Likewise.
41838 2011-11-09  Eric Blake  <eblake@redhat.com>
41840         ptsname_r-tests: new test module
41841         * modules/ptsname_r-tests: New module.
41842         * tests/test-ptsname_r.c: New file.
41844         ptsname_r: new module
41845         * modules/ptsname_r: New module.
41846         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
41847         * lib/ptsname.c (__ptsname_r): Split...
41848         * lib/ptsname_r.c: ...into new file.
41849         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
41850         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
41851         * modules/stdlib (Makefile.am): Substitute witnesses.
41852         * lib/stdlib.in.h (ptsname_r): Declare it.
41853         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
41854         * MODULES.html.sh (Misc): Likewise.
41855         * modules/ptsname (Depends-on): Alter dependency.
41856         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
41858 2011-11-09  Jim Meyering  <meyering@redhat.com>
41860         announce-gen: be more concise when there's only one URL+tarball
41861         * build-aux/announce-gen (get_tool_versions): When you distribute
41862         only one type of tarball, combine the first two "Here are..."
41863         sections and make the key-checking grammar independent of
41864         how many tarballs there are.
41866 2011-11-09  Eric Blake  <eblake@redhat.com>
41868         openpty: provide a stub on mingw
41869         * lib/pty.in.h (includes): Provide forward declarations.
41870         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
41872         raise: fix mingw handling of SIGPIPE
41873         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
41875 2011-11-08  Bruno Haible  <bruno@clisp.org>
41877         More conditional dependencies.
41878         * modules/faccessat (Depends-on): Add conditions.
41879         * modules/fchmodat (Depends-on): Likewise.
41880         * modules/fchownat (Depends-on): Likewise.
41881         * modules/fstatat (Depends-on): Likewise.
41882         * modules/mkfifoat (Depends-on): Likewise.
41883         * modules/readlinkat (Depends-on): Likewise.
41884         * modules/symlinkat (Depends-on): Likewise.
41885         * modules/unlinkat (Depends-on): Likewise.
41886         * modules/utimensat (Depends-on): Likewise.
41887         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
41888         * modules/linkat (Depends-on): Refine the conditions.
41889         * modules/renameat (Depends-on): Likewise.
41891 2011-11-08  Bruno Haible  <bruno@clisp.org>
41893         faccessat: Move AC_LIBOBJ invocation to module description.
41894         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
41895         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
41896         invocation from here...
41897         * modules/faccessat (configure.ac): ... to here. Invoke
41898         gl_PREREQ_FACCESSAT.
41900 2011-11-08  Bruno Haible  <bruno@clisp.org>
41902         faccessat: Simplify autoconf macro.
41903         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
41904         gl_FUNC_EUIDACCESS.
41906 2011-11-08  Bruno Haible  <bruno@clisp.org>
41908         renameat: Fix dependencies.
41909         * modules/renameat (Depends-on): Add stdbool.
41911 2011-11-08  Bruno Haible  <bruno@clisp.org>
41913         mkfifoat: Fix module description.
41914         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
41915         not gl_UNISTD_MODULE_INDICATOR.
41917 2011-11-08  Bruno Haible  <bruno@clisp.org>
41919         fstatat: Remove unused dependency.
41920         * modules/fstatat (Depends-on): Remove fstat.
41922 2011-11-08  Simon Josefsson  <simon@josefsson.org>
41924         GNUmakefile: behave when Makefile is missing.
41925         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
41927 2011-11-08  Bruno Haible  <bruno@clisp.org>
41929         openat: Conditionalize dependencies.
41930         * lib/openat.c: Reduce the scope of some #includes.
41931         * modules/openat (Depends-on): Add conditions.
41933 2011-11-07  Jim Meyering  <meyering@redhat.com>
41935         maint.mk: extract GPG key ID without using a temporary file
41936         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
41937         without using a temporary file.  Based on a suggestion from Werner Koch
41938         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
41940 2011-11-07  Eric Blake  <eblake@redhat.com>
41942         grantpt: fix typo
41943         * lib/stdlib.in.h (grantpt): Check correct function.
41945         maint.mk: silence new syntax check
41946         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
41948 2011-11-06  Bruno Haible  <bruno@clisp.org>
41950         Doc about floating-point and math API.
41951         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
41952         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
41954 2011-11-06  Bruno Haible  <bruno@clisp.org>
41956         stdalign tests: Skip the test when compiled by Sun C.
41957         * tests/test-stdalign.c (main): Skip the test on Sun C.
41959 2011-11-06  Bruno Haible  <bruno@clisp.org>
41961         ansi-c++-opt: Complete the 2011-06-05 change.
41962         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
41963         does not support namespaces, set the variable to "no", not to ":".
41965 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41967         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
41969 2011-11-06  Bruno Haible  <bruno@clisp.org>
41971         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
41972         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
41973         (minus_zerol) [HP-UX]: New macro.
41974         (unary_minus) [HP-UX]: New function.
41975         (copysignl) [HP-UX]: Use unary_minus function.
41977 2011-11-06  Bruno Haible  <bruno@clisp.org>
41979         ldexp, ldexpf, ldexpl: Enhance tests.
41980         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
41981         and tests/test-ldexpl.c.
41982         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
41983         LDEXP, MIN_EXP, MAX_EXP): New macros.
41984         Include test-ldexp.h.
41985         (main): Just call test_function.
41986         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
41987         infinity.h, nan.h.
41988         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
41989         MAX_EXP): New macros.
41990         Include test-ldexp.h.
41991         (x, y): Remove variables.
41992         (main): Just call test_function.
41993         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
41994         infinity.h, nan.h.
41995         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
41996         MAX_EXP): New macros.
41997         Include test-ldexp.h.
41998         (x, y): Remove variables.
41999         (main): Just call test_function.
42000         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
42001         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
42002         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
42003         (Depends-on): Add isnand-nolibm, signbit, float.
42004         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
42005         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
42006         (Depends-on): Add isnanf-nolibm, signbit, float.
42008 2011-11-06  Bruno Haible  <bruno@clisp.org>
42010         math tests: Cosmetics.
42011         * tests/test-math-c++.cc: Reorder declarations.
42013 2011-11-05  Bruno Haible  <bruno@clisp.org>
42015         fma*: Simplify test.
42016         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
42017         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
42019         Tests for module 'fmal'.
42020         * modules/fmal-tests: New file.
42021         * tests/test-fmal1.c: New file.
42022         * tests/test-fmal2.c: New file.
42024         New module 'fmal'.
42025         * lib/math.in.h (fmal): New declaration.
42026         * lib/fmal.c: New file.
42027         * m4/fmal.m4: New file.
42028         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
42029         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
42030         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
42031         REPLACE_FMAL.
42032         * modules/fmal: New file.
42033         * doc/posix-functions/fmal.texi: Mention the new module and the various
42034         bugs.
42036         Tests for module 'fmaf'.
42037         * modules/fmaf-tests: New file.
42038         * tests/test-fmaf1.c: New file.
42039         * tests/test-fmaf2.c: New file.
42041         New module 'fmaf'.
42042         * lib/math.in.h (fmaf): New declaration.
42043         * lib/fmaf.c: New file.
42044         * m4/fmaf.m4: New file.
42045         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
42046         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
42047         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
42048         REPLACE_FMAF.
42049         * modules/fmaf: New file.
42050         * doc/posix-functions/fmaf.texi: Mention the new module and the various
42051         bugs.
42053         Tests for module 'fma'.
42054         * modules/fma-tests: New file.
42055         * tests/test-fma1.c: New file.
42056         * tests/test-fma1.h: New file.
42057         * tests/test-fma2.c: New file.
42058         * tests/test-fma2.h: New file.
42060         New module 'fma'.
42061         * lib/math.in.h (fma): New declaration.
42062         * lib/fma.c: New file.
42063         * m4/fma.m4: New file.
42064         * m4/fegetround.m4: New file.
42065         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
42066         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
42067         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
42068         REPLACE_FMA.
42069         * modules/fma: New file.
42070         * doc/posix-functions/fma.texi: Mention the new module and the various
42071         bugs.
42073         Extend gl_MATHFUNC.
42074         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
42075         Support 'void' as argument type.
42076         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
42078 2011-11-05  Jim Meyering  <meyering@redhat.com>
42080         maint.mk: also prohibit inclusion of dirent.h without use
42081         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
42083 2011-11-05  Bruno Haible  <bruno@clisp.org>
42085         ldexpl tests: Avoid test failure on MSVC 9.
42086         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
42087         value. Needed in order to enforce the conversion from a value greater
42088         than LDBL_MAX to Infinity.
42090 2011-11-05  Bruno Haible  <bruno@clisp.org>
42092         New modules 'at-internal', 'openat-h', split off from module 'openat'.
42093         * modules/at-internal: New file, extracted from modules/openat.
42094         * modules/openat-h: New file.
42095         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
42096         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
42097         * modules/openat (Description): Add reference to POSIX function.
42098         (Files): Remove lib/openat.h, lib/openat-proc.c.
42099         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
42100         intprops, unistd.
42101         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
42102         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
42103         gl_FCNTL_MODULE_INDICATOR.
42104         (Include): Remove unistd.h, openat.h.
42105         * modules/areadlinkat (Files): Add lib/at-func.c.
42106         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
42107         openat-die, openat-h, save-cwd.
42108         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
42109         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
42110         openat-die, openat-h, save-cwd, unistd.
42111         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
42112         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
42113         openat-h, save-cwd. Remove fcntl-h, openat.
42114         * modules/fchmodat (Files): Remove lib/openat.h.
42115         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
42116         openat, stdbool, unistd.
42117         * modules/fchownat (Files): Remove lib/openat.h.
42118         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
42119         openat, stdbool, sys_stat.
42120         * modules/fdopendir (Files): Remove lib/openat-priv.h,
42121         lib/openat-proc.c.
42122         (Depends-on): Add at-internal.
42123         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
42124         * modules/fstatat (Files): Remove lib/openat.h.
42125         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
42126         stdbool, unistd.
42127         * modules/fts (Depends-on): Add openat-h.
42128         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
42129         openat.
42130         * modules/mkdirat (Files): Remove lib/openat.h.
42131         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
42132         openat, stdbool, sys_stat.
42133         * modules/mkfifoat (Files): Add lib/at-func.c.
42134         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
42135         openat-h, save-cwd. Remove fcntl-h, openat.
42136         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
42137         * modules/readlinkat (Files): Add lib/at-func.c.
42138         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
42139         openat-h, save-cwd. Remove fcntl-h, openat.
42140         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
42141         openat.
42142         * modules/selinux-at (Files): Add lib/at-func.c.
42143         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
42144         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
42145         * modules/symlinkat (Files): Add lib/at-func.c.
42146         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
42147         openat-h, save-cwd. Remove fcntl-h, openat.
42148         * modules/unlinkat (Files): Remove lib/openat.h.
42149         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
42150         stdbool.
42151         * modules/utimensat (Files): Add lib/at-func.c.
42152         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
42153         openat-die, openat-h, save-cwd.
42154         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
42155         * modules/fdutimensat-tests (Depends-on): Add openat.
42156         * modules/fstatat-tests (Depends-on): Add openat-h.
42157         * modules/readlinkat-tests (Depends-on): Add openat.
42158         * modules/symlinkat-tests (Depends-on): Add openat.
42160 2011-11-05  Bruno Haible  <bruno@clisp.org>
42162         openat: Include <stdbool.h>.
42163         * lib/openat.c: Include <stdbool.h>.
42165 2011-11-04  Bruno Haible  <bruno@clisp.org>
42167         fchownat, renameat, unlinkat: Fix dependencies.
42168         * modules/fchownat (Depends-on): Add fstatat.
42169         * modules/renameat (Depends-on): Likewise.
42170         * modules/unlinkat (Depends-on): Likewise.
42172 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
42174         openat: remove direct dependency on dirent
42175         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
42176         and hasn't been needed ever since fdopendir was split into its own
42177         module on 2009-08-31.
42178         * modules/openat (Depends-on): Remove dirent.
42180 2011-11-04  Bruno Haible  <bruno@clisp.org>
42182         renameat: Optimize code size.
42183         * modules/renameat (configure.ac): Don't compile at-func2.c if
42184         REPLACE_RENAMEAT is 1.
42186 2011-11-04  Bruno Haible  <bruno@clisp.org>
42188         openat tests: Fix file list.
42189         * modules/openat-tests (Files): Add tests/test-open.h.
42191 2011-11-04  Bruno Haible  <bruno@clisp.org>
42193         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
42194         * modules/fchmodat (Depends-on): Add openat-die.
42195         * modules/fchownat (Depends-on): Likewise.
42196         * modules/linkat (Depends-on): Likewise.
42197         * modules/renameat (Depends-on): Likewise.
42198         * modules/openat (Depends-on): Add dirent.
42200 2011-11-04  Jim Meyering  <meyering@redhat.com>
42202         at-func*.c: fix comments
42203         * lib/at-func2.c: Correct/improve first-line comment.
42204         * lib/at-func.c: Correct grammar in first-line comment.
42206 2011-11-04  Bruno Haible  <bruno@clisp.org>
42208         New module 'mkdirat', split off from module 'openat'.
42209         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
42210         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
42211         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
42212         * modules/mkdirat: New file, extracted from modules/openat.
42213         * modules/openat (Files): Remove lib/mkdirat.c.
42214         (Depends-on): Remove mkdir.
42215         (configure.ac): Remove AC_LIBOBJ of mkdirat.
42216         (Include): Remove <sys/stat.h>.
42217         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
42218         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
42219         tests/test-mkdir.h.
42220         (Depends-on): Remove ignore-value.
42221         (Makefile.am): Remove rules for test-mkdirat.
42222         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
42223         of module 'openat'.
42224         * NEWS: Mention the change.
42226 2011-11-04  Bruno Haible  <bruno@clisp.org>
42228         closedir: Avoid warning on mingw.
42229         * lib/closedir.c: Include <unistd.h>.
42231 2011-11-04  Bruno Haible  <bruno@clisp.org>
42233         New module 'fstatat', split off from module 'openat'.
42234         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
42235         defined.
42236         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
42237         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
42238         gl_FUNC_FSTATAT.
42239         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
42240         * modules/fstatat: New file, extracted from modules/openat.
42241         * modules/openat (Files): Remove lib/fstatat.c.
42242         (Depends-on): Remove lstat.
42243         (configure.ac): Remove AC_LIBOBJ of fstatat.
42244         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
42245         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
42246         tests/test-lstat.h, tests/test-stat.h.
42247         (Depends-on): Remove getcwd-lgpl.
42248         (Makefile.am): Remove rules for test-fstatat.
42249         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
42250         of module 'openat'.
42251         * NEWS: Mention the change.
42252         * modules/getcwd (Depends-on): Add fstatat.
42253         * modules/linkat (Depends-on): Likewise.
42254         * modules/mkfifoat-tests (Depends-on): Likewise.
42255         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
42257 2011-11-03  Bruno Haible  <bruno@clisp.org>
42259         New module 'unlinkat', split off from module 'openat'.
42260         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
42261         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
42262         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
42263         * modules/unlinkat: New file, extracted from modules/openat. Correct
42264         the dependency conditions.
42265         * modules/openat (Files): Remove lib/unlinkat.c.
42266         (Depends-on): Remove rmdir, unlink.
42267         (configure.ac): Remove AC_LIBOBJ of unlinkat.
42268         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
42269         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
42270         tests/test-rmdir.h, tests/test-unlink.h.
42271         (Depends-on): Remove unlinkdir.
42272         (Makefile.am): Remove rules for test-unlinkat.
42273         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
42274         of module 'openat'.
42275         * NEWS: Mention the change.
42276         * modules/linkat-tests (Depends-on): Add unlinkat.
42277         * modules/mkfifoat-tests (Depends-on): Likewise.
42278         * modules/readlinkat-tests (Depends-on): Likewise.
42280 2011-11-02  Bruno Haible  <bruno@clisp.org>
42282         New module 'fchmodat', split off from module 'openat'.
42283         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
42284         defined.
42285         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
42286         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
42287         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
42288         * modules/fchmodat: New file, extracted from modules/openat.
42289         * modules/openat (Files): Remove lib/fchmodat.c.
42290         (configure.ac): Remove AC_LIBOBJ of fchmodat.
42291         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
42292         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
42293         (Makefile.am): Remove rules for test-fchmodat.
42294         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
42295         of module 'openat'.
42296         * NEWS: Mention the change.
42298 2011-11-02  Jim Meyering  <meyering@redhat.com>
42300         putenv: indent #definition of "environ" to placate cppi
42301         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
42303         gitlog-to-changelog: provide a ChangeLog-repair mechanism
42304         Git logs are often treated as immutable, because editing them
42305         changes the SHA1 checksums of all descendants.  Thus, errors in
42306         git logs tend to stay there forever.  However, when we generate
42307         a ChangeLog file -- typically for distribution -- from that git log,
42308         we can actually make corrections in the generated file.  The key
42309         lies in recording in machine-readable/applicable form the desired
42310         corrections.  See --help for description and an example.
42311         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
42312         (usage): Describe it; alphabetize option descriptions.
42313         (main): Honor the new option, carefully.
42315 2011-11-01  Jim Meyering  <meyering@redhat.com>
42317         gitlog-to-changelog: avoid an infloop
42318         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
42319         that ends up being empty.
42321 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
42323         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
42324         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
42325         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
42326         contains (possibly-quoted) backslashes.  This should avoid
42327         all-too-common shell bugs if COMPLICATED contains backslashes in
42328         the "wrong" places.  Reported by David Evans in
42329         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
42330         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
42331         because we want ASCII ranges.  Is there some reason we don't use
42332         the C locale everywhere in this script?
42333         (func_module, top level): Avoid unwanted pathname expansion when
42334         $repo_url_prefix or $repo_url_suffix_repl contain shell
42335         metacharacters like '?' and '*'.
42337 2011-11-01  Bruno Haible  <bruno@clisp.org>
42339         fchownat: Improve description.
42340         * modules/fchownat (Description): Add link to function.
42342 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
42344         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
42345         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
42346         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
42347         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
42349 2011-11-01  Bruno Haible  <bruno@clisp.org>
42351         alignof: Avoid collision with stdalign module.
42352         * lib/alignof.h (alignof): Remove macro.
42353         * NEWS: Mention the change.
42354         Reported by Paul Eggert.
42356 2011-11-01  Bruno Haible  <bruno@clisp.org>
42358         New module 'fchownat', split off from module 'openat'.
42359         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
42360         defined.
42361         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
42362         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
42363         invoke gl_FUNC_FCHOWNAT.
42364         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
42365         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
42366         * modules/fchownat: New file, extracted from modules/openat.
42367         * modules/openat (Files): Remove lib/fchownat.c.
42368         (Depends-on): Remove lchown.
42369         (configure.ac): Remove AC_LIBOBJ of fchownat.
42370         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
42371         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
42372         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
42373         (Depends-on): Remove mgetgroups, usleep, stat-time.
42374         (configure.ac): Remove test for getegid.
42375         (Makefile.am): Remove rules for test-fchownat.
42376         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
42377         of module 'openat'.
42378         * NEWS: Mention the change.
42380 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
42382         stdalign: port better to MSVC and to Sun C 5.11
42383         This fixes some of the problems reported by Bruno Haible in
42384         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
42385         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
42386         shortcomings of MSVC and of Sun C 5.11.
42387         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
42388         around __declspec arg.
42389         * modules/stdalign-tests (Files): Add tests/macros.h.
42390         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
42391         Include macros.h, for ASSERT.
42392         (DECLARE_ALIGNED): Remove.
42393         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
42394         to catch bug), and to 1 if not (simplifies the rest of the code).
42395         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
42396         (CHECK_AUTO): Remove.
42397         (CHECK_ALIGNED): Check only the alignment of the static vars,
42398         since auto var alignment isn't supported by Sun C 5.11.
42399         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
42400         ASSERT failures are easier to diagnose.
42402 2011-10-31  Bruno Haible  <bruno@clisp.org>
42404         doc about some IRIX 5.3 problems.
42405         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
42406         on IRIX 5.3.
42407         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
42408         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
42409         5.3.
42410         * doc/posix-functions/grantpt.texi: Likewise.
42411         * doc/posix-functions/unlockpt.texi: Likewise.
42412         * doc/posix-functions/lgamma.texi: Likewise.
42413         * doc/posix-functions/nextafter.texi: Likewise.
42414         * doc/posix-functions/remainder.texi: Likewise.
42415         * doc/posix-functions/select.texi: Mention misplaced declaration on
42416         IRIX 5.3.
42417         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42419 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
42421         gitlog-to-changelog: fix git-log invocation.
42422         git-log mishandles date strings before 1970-01-01 UTC, and there is
42423         no use to specify --since=1970-01-01 by default anyway.
42424         * build-aux/gitlog-to-changelog: By default, when no --since option
42425         was given, do not specify explicit --since option to git-log.
42427 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
42429         gitlog-to-changelog: new option --append-dot.
42430         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
42431         first non-blank line of each commit message terminated with a dot.
42433 2011-10-30  Bruno Haible  <bruno@clisp.org>
42435         ffsl, ffsll: Avoid compilation error due to 'restrict'.
42436         * lib/ffsl.h: Include <config.h>.
42437         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
42439 2011-10-30  Jim Meyering  <meyering@redhat.com>
42441         GNUmakefile: reenable "make syntax-check" for most projects
42442         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
42443         build-aux variable", "syntax-check" would do nothing but succeed with
42444         the "No version control files detected..." diagnostic (unless you
42445         happened to override _build-aux via cfg.mk).
42446         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
42447         to precede inclusion of maint.mk.  Otherwise, these variables would
42448         be used undefined in any project that does not override the default.
42450 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
42452         gitlog-to-changelog: treat a message with only blank lines as empty.
42453         * build-aux/gitlog-to-changelog: Move the code that removes leading and
42454         trailing blank lines before the code that issues a warning about an
42455         empty commit message.
42457 2011-10-30  Jim Meyering  <meyering@redhat.com>
42459         test-parse-datetime.c: avoid new DST-related false positive test failure
42460         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
42461         based on the time/date we'll convert, not the current time.
42462         Otherwise, the moment we cross a DST boundary like today's in
42463         Europe, (CEST to CET), that offset ends up being one hour off.
42465 2011-10-27  Bruno Haible  <bruno@clisp.org>
42467         fstat: Tweak documentation.
42468         * modules/fstat (Description): More precise description.
42470 2011-10-27  Bruno Haible  <bruno@clisp.org>
42472         Update documentation regarding 'largefile' module.
42473         * doc/posix-functions/fstat.texi: Tweak wording.
42474         * doc/posix-functions/opendir.texi: Mention that the module fixes the
42475         problems with huge directories and/or small ino_t types.
42476         * doc/posix-functions/readdir.texi: Likewise.
42477         * doc/posix-functions/rewinddir.texi: Likewise.
42479 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
42481         maint.mk: don't maintain a second build-aux variable.
42482         * maint.mk (build_aux): Removed.  The maintainer-makefile module
42483         depends on GNUmakefile, which already maintains a cfg.mk
42484         overridable $(_build-aux) for projects with a non-standard
42485         build-aux directory location, although without the $(srcdir)
42486         prefix.  Use that variable consistently instead of introducing a
42487         second one.  Adjust all call sites.
42489 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
42491         Add stdalign module and use it in other modules.
42492         This is based on a previous proposal by Bruno Haible
42493         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
42495         stdalign: new module
42496         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
42497         * modules/stdalign: New files.
42498         * MODULES.html.sh (c1x_core_properties): Add stdalign.
42499         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
42501         stdalign-tests: new module
42502         * modules/stdalign-tests, tests/test-stdalign.c: New files.
42504         argp: use stdalign
42505         * lib/argp-parse.c: Include <stdalign.h>.
42506         (alignof): Remove.
42507         * modules/argp (Depends-on): Add stdalign.
42509         crypto libraries: use stdalign
42510         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
42511         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
42512         Do not include <stdlib.h> twice, in md4.c.
42513         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
42514         because we are accessing a pointer's bit-pattern, not a size.
42515         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
42516         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
42517         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
42518         * modules/crypto/sha512: Likewise.
42520         sys_socket: use stdalign, not alignof
42521         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
42522         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
42524 2011-10-27  Bruno Haible  <bruno@clisp.org>
42526         raise test: Avoid a test failure on Linux/MIPS.
42527         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
42528         because 99 is a valid signal on Linux/MIPS.
42530 2011-10-27  Bruno Haible  <bruno@clisp.org>
42532         nonblocking tests: Fix test failure on Linux/MIPS.
42533         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
42534         Set to 270000.
42536 2011-10-27  Bruno Haible  <bruno@clisp.org>
42538         utimensat: Work around problem on Linux/hppa.
42539         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
42540         values.
42541         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
42543 2011-10-25  Jim Meyering  <meyering@redhat.com>
42545         maint.mk: fix a bug in sc_prohibit_stddef_without_use
42546         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
42547         after symbols like NULL, size_t, etc.
42548         Reported by Alfred M. Szmidt.
42550         maint.mk: exempt ENODATA from a syntax-check rule
42551         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
42552         from the sc_prohibit_always-defined_macros syntax-check rule.
42553         Add a comment.  See this for more details:
42554         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
42556 2011-10-23  Jim Meyering  <meyering@redhat.com>
42558         fts: close parent dir FD before returning from post-traversal fts_read
42559         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
42560         unlink A, even though an FD open on A remained.  This is suboptimal
42561         (holding a file descriptor open longer than needed), but otherwise not
42562         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
42563         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
42564         that represents a real problem: it causes the removal of A to fail
42565         with e.g., "rm: cannot remove `A': Device or resource busy"
42567         fts visits each directory twice and keeps a cache (fts_fd_ring) of
42568         directory file descriptors.  After completing the final, FTS_DP,
42569         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
42570         cache, but then proceeded to add a new FD to it via the subsequent
42571         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
42572         final file descriptor would be closed only via fts_close's call to
42573         fd_ring_clear.  Now, it is usually closed earlier, via the final
42574         FTS_DP-returning fts_read call.
42575         * lib/fts.c (restore_initial_cwd): New function, converted from
42576         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
42577         Update callers.
42578         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
42579         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
42581 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
42582             Bruno Haible  <bruno@clisp.org>
42583             Jim Meyering  <jim@meyering.net>
42585         readme-release: improve safety of release prep instructions.
42586         * README-release: Don't git pull all branches when only master
42587         is needed for the release process.
42588         Run make maintainer-clean before changing trees and merging.
42589         Don't try to run ./configure right after git pull in case files
42590         that influence the bootstrap process have changed, move the
42591         ./configure step to after running ./bootstrap.
42592         Don't bootstrap "one last time"... it's the first time!
42594 2011-10-22  Bruno Haible  <bruno@clisp.org>
42596         errno, strerror-override: Support for MSVC 10.
42597         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
42598         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
42599         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
42600         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
42601         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
42602         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
42603         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
42604         Assign values compatible with MSVC 10.
42605         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
42606         New macros.
42607         (GNULIB_defined_EWINSOCK): New macro.
42608         * lib/strerror-override.c (strerror_override): Update accordingly.
42609         * lib/strerror-override.h: Likewise.
42610         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
42611         longer equal to the corresponding errno value.
42612         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
42614 2011-10-22  Bruno Haible  <bruno@clisp.org>
42616         perror: Recognize when test program crashes.
42617         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
42618         strerror, set gl_cv_func_perror_works to no.
42619         Reported by Daniel Richard G. <skunk@iskunk.org>.
42621         perror: Fix indentation.
42622         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
42624 2011-10-22  Bruno Haible  <bruno@clisp.org>
42626         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
42627         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
42628         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
42629         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
42630         functions, not as a macro.
42631         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
42632         macros.
42633         (isfinite, isinf, isnan, signbit): Check overloaded functions and
42634         absence of macro.
42635         Suggested by Eric Blake.
42636         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
42638 2011-10-21  Bruno Haible  <bruno@clisp.org>
42640         relocatable-prog-wrapper: Don't leave object files behind.
42641         * build-aux/install-reloc: Re-synchronize list of .o files to be
42642         removed with list of compilation units.
42644 2011-10-20  Bruno Haible  <bruno@clisp.org>
42646         openpty, posix_openpt: Remove code duplication.
42647         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
42648         * lib/openpty.c: Include <stdlib.h>.
42649         (openpty): Use posix_openpt on all platforms except IRIX.
42650         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
42652 2011-10-20  Bruno Haible  <bruno@clisp.org>
42654         unlockpt: Detect invalid argument.
42655         * lib/unlockpt.c: Include <fcntl.h>.
42656         (unlockpt): Check whether fd is valid, using fcntl().
42657         * modules/unlockpt (Depends-on): Add fcntl-h.
42659 2011-10-20  Bruno Haible  <bruno@clisp.org>
42661         openpty: Avoid compilation error on AIX 6.1.
42662         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
42664 2011-10-20  Bruno Haible  <bruno@clisp.org>
42666         posix_openpt: Support for OpenBSD.
42667         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
42668         (posix_openpt) [OpenBSD]: New code.
42669         * lib/grantpt.c: Include <fcntl.h>.
42670         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
42671         * modules/grantpt (Depends-on): Add fcntl-h.
42673 2011-10-20  Bruno Haible  <bruno@clisp.org>
42675         posix_openpt test: Coding style.
42676         * tests/test-posix_openpt.c: Use GNU coding style.
42678 2011-10-20  Bruno Haible  <bruno@clisp.org>
42680         grantpt: Support --avoid=pt_chown.
42681         * modules/grantpt (Files): Add lib/pty-private.h.
42683 2011-10-20  Bruno Haible  <bruno@clisp.org>
42685         posix_openpt: Fix autoconf macro.
42686         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
42687         unneeded check for _getpty.
42689 2011-10-20  Bruno Haible  <bruno@clisp.org>
42691         openpty: Update comments.
42692         * lib/openpty.c: Add comments about Minix.
42694 2011-10-19  Eric Blake  <eblake@redhat.com>
42696         openpty: relax license
42697         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
42699         pt_chown: use configmake to simplify build
42700         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
42702         ptsname and others: relax license
42703         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
42704         * modules/unlockpt (License): Likewise.
42705         * modules/pt_chown (License): Likewise.
42706         * modules/ptsname (License): Likewise.
42707         * modules/ttyname_r (License): Likewise.
42709 2011-10-19  Jim Meyering  <meyering@redhat.com>
42711         posix_openpt: remove spurious #endif
42712         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
42714 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
42716         maint.mk: Respect $(build_aux) in web-manual rule.
42717         * top/maint.mk (web-manual): Find gen-announce script in user's
42718         $(build_aux) directory instead of hard-coding 'build-aux'.
42720 2011-10-19  Bruno Haible  <bruno@clisp.org>
42722         posix_openpt: Fix compilation error.
42723         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
42724         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
42725         Mention the openpty module as an alternative.
42727 2011-10-19  Bruno Haible  <bruno@clisp.org>
42729         Support for old NeXTstep 3.3 frexp().
42730         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
42731         execution time of the test to 5 seconds.
42732         Reported by Daniel Richard G. <skunk@iskunk.org>.
42734 2011-10-19  Bruno Haible  <bruno@clisp.org>
42736         Support for old NeXTstep 3.3 sed.
42737         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
42738         part, use /.../, not \|...|. Escape periods in the header file name.
42739         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
42740         Reported by Daniel Richard G. <skunk@iskunk.org>.
42742 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
42744         Support for old NeXTstep 3.3 gcc.
42745         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
42746         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
42747         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
42748         * lib/spawn.in.h (_Restrict_arr_): Likewise.
42749         * lib/regex.h (_Restrict_arr_): Likewise.
42750         * lib/regex_internal.h (re_token_t): Likewise.
42751         * lib/regexec.c (check_node_accept_bytes): Likewise.
42752         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
42754 2011-10-18  Eric Blake  <eblake@redhat.com>
42756         posix_openpt: new module
42757         * modules/posix_openpt: New module.
42758         * m4/posix_openpt.m4: New file.
42759         * lib/posix_openpt.c: Likewise.
42760         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
42761         (gl_STDLIB_H_DEFAULTS): Set defaults.
42762         * modules/stdlib (Makefile.am): Substitute macros.
42763         * lib/stdlib.in.h (posix_openpt): Declare.
42764         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
42765         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
42766         * modules/posix_openpt-tests: New test module.
42767         * tests/test-posix_openpt.c: New test.
42769 2011-10-15  Bruno Haible  <bruno@clisp.org>
42771         xstrtoll: Fix compilation failure.
42772         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
42773         from lib/strtol.c.
42774         * doc/posix-headers/limits.texi: Mention missing numerical limits on
42775         some platforms.
42776         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42778 2011-10-15  Bruno Haible  <bruno@clisp.org>
42780         vasnprintf: Optimize bit search operation.
42781         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
42782         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
42783         gl_DOUBLE_EXPONENT_LOCATION.
42784         * modules/vasnprintf (Files): Add m4/exponentd.m4.
42785         * modules/unistdio/u8-vasnprintf (Files): Likewise.
42786         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
42787         * modules/unistdio/u16-vasnprintf (Files): Likewise.
42788         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
42789         * modules/unistdio/u32-vasnprintf (Files): Likewise.
42790         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
42791         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
42792         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
42794 2011-10-15  Bruno Haible  <bruno@clisp.org>
42796         vasnprintf: Fix comments.
42797         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
42799 2011-10-14  Bruno Haible  <bruno@clisp.org>
42801         Tests for module 'integer_length_ll'.
42802         * modules/integer_length_ll-tests: New file.
42803         * tests/test-integer_length_ll.c: New file.
42805         New module 'integer_length_ll'.
42806         * lib/integer_length_ll.c: New file.
42807         * modules/integer_length_ll: New file.
42809 2011-10-14  Bruno Haible  <bruno@clisp.org>
42811         Tests for module 'integer_length_l'.
42812         * modules/integer_length_l-tests: New file.
42813         * tests/test-integer_length_l.c: New file.
42815         New module 'integer_length_l'.
42816         * lib/integer_length_l.c: New file.
42817         * modules/integer_length_l: New file.
42819 2011-10-14  Bruno Haible  <bruno@clisp.org>
42821         Tests for module 'integer_length'.
42822         * modules/integer_length-tests: New file.
42823         * tests/test-integer_length.c: New file.
42825         New module 'integer_length'.
42826         * lib/integer_length.h: New file.
42827         * lib/integer_length.c: New file.
42828         * modules/integer_length: New file.
42830 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
42832         popen: Fix dependency conditions.
42833         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
42835 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
42837         perror: Fix autoconf test.
42838         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
42839         <stdlib.h> and <string.h>.
42841 2011-10-14  Bruno Haible  <bruno@clisp.org>
42843         ffsl: Optimize on 64-bit platforms.
42844         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
42845         unrolling.
42847 2011-10-13  Bruno Haible  <bruno@clisp.org>
42849         ffsl: Optimize on 32-bit platforms.
42850         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
42851         use ffs() without a loop.
42853         ffsl, ffsll: Optimize for GCC.
42854         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
42855         * lib/ffsl.c (GCC_BUILTIN): New macro.
42856         * lib/ffsll.c (GCC_BUILTIN): Likewise.
42858 2011-10-13  Bruno Haible  <bruno@clisp.org>
42860         ffs, bcopy, memset: Support symbol renaming via config.h.
42861         * lib/ffs.c: Include <config.h>.
42862         * lib/bcopy.c: Likewise.
42863         * lib/memset.c: Likewise.
42865 2011-10-10  Bruno Haible  <bruno@clisp.org>
42867         atanl: Simplify for platforms where 'long double' == 'double'.
42868         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42869         alternative implementation.
42870         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42871         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42872         * modules/atanl (Depends-on): Add atan. Update conditions.
42874 2011-10-10  Bruno Haible  <bruno@clisp.org>
42876         acosl: Simplify for platforms where 'long double' == 'double'.
42877         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42878         alternative implementation.
42879         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42880         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42881         * modules/acosl (Depends-on): Add acos. Update conditions.
42883 2011-10-10  Bruno Haible  <bruno@clisp.org>
42885         asinl: Simplify for platforms where 'long double' == 'double'.
42886         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42887         alternative implementation.
42888         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42889         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42890         * modules/asinl (Depends-on): Add asin. Update conditions.
42892 2011-10-10  Bruno Haible  <bruno@clisp.org>
42894         tanl: Simplify for platforms where 'long double' == 'double'.
42895         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42896         implementation.
42897         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42898         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42899         * modules/tanl (Depends-on): Add tan. Update conditions.
42900         (configure.ac): Don't compile trigl.c if
42901         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42903 2011-10-10  Bruno Haible  <bruno@clisp.org>
42905         cosl: Simplify for platforms where 'long double' == 'double'.
42906         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42907         implementation.
42908         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42909         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42910         * modules/cosl (Depends-on): Add cos. Update conditions.
42911         (configure.ac): Don't compile sincosl.c and trigl.c if
42912         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42914 2011-10-10  Bruno Haible  <bruno@clisp.org>
42916         sinl: Simplify for platforms where 'long double' == 'double'.
42917         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42918         implementation.
42919         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42920         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42921         * modules/sinl (Depends-on): Add sin. Update conditions.
42922         (configure.ac): Don't compile sincosl.c and trigl.c if
42923         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42925 2011-10-10  Bruno Haible  <bruno@clisp.org>
42927         logl: Simplify for platforms where 'long double' == 'double'.
42928         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42929         implementation.
42930         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42931         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42932         * modules/logl (Depends-on): Add log. Update conditions.
42934 2011-10-10  Bruno Haible  <bruno@clisp.org>
42936         expl: Simplify for platforms where 'long double' == 'double'.
42937         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42938         implementation.
42939         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42940         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42941         * modules/expl (Depends-on): Add exp. Update conditions.
42943 2011-10-10  Bruno Haible  <bruno@clisp.org>
42945         sqrtl: Simplify for platforms where 'long double' == 'double'.
42946         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42947         alternative implementation.
42948         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42949         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42950         * modules/sqrtl (Depends-on): Update conditions.
42952 2011-10-10  Bruno Haible  <bruno@clisp.org>
42954         ldexpl: Simplify for platforms where 'long double' == 'double'.
42955         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42956         alternative implementation.
42957         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42958         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42959         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
42961 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
42963         ffsll: set correct witness
42964         * modules/ffsll (configure.ac): Fix typo.
42966 2011-10-10  Bruno Haible  <bruno@clisp.org>
42968         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
42969         * lib/printf-frexpl.c: Include <config.h>.
42970         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42971         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
42972         second time.
42973         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
42974         gl_LONG_DOUBLE_VS_DOUBLE.
42975         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
42976         conditions.
42978 2011-10-10  Bruno Haible  <bruno@clisp.org>
42980         frexpl: Simplify for platforms where 'long double' == 'double'.
42981         * lib/frexpl.c: Include <config.h>.
42982         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42983         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42984         time.
42985         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42986         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42987         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
42988         * modules/frexpl (Depends-on): Add frexp. Update conditions.
42989         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
42990         conditions.
42992 2011-10-10  Jim Meyering  <meyering@redhat.com>
42994         test-renameat: don't leave behind a temporary file
42995         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
42996           ERROR: files left in build directory after distclean:
42997           ./gltests/test-renameat.too
42998           make[1]: *** [distcleancheck] Error 1
42999         Reported by Tom G. Christensen.
43001 2011-10-09  Bruno Haible  <bruno@clisp.org>
43003         rint: Determine RINT_LIBM correctly on AIX 7.
43004         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
43005         directly, not only through a function pointer. Also accept an optional
43006         4th argument with extra code.
43007         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
43008         rintf() call by gcc when optimizing.
43010         mathfunc.m4: Refactor.
43011         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
43012         m4 variable.
43014 2011-10-09  Bruno Haible  <bruno@clisp.org>
43016         rintl: Simplify for platforms where 'long double' == 'double'.
43017         * lib/rintl.c: Include <config.h>.
43018         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43019         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43020         time.
43021         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43022         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43023         * modules/rintl (Depends-on): Add rint. Update conditions.
43025 2011-10-09  Bruno Haible  <bruno@clisp.org>
43027         roundl: Simplify for platforms where 'long double' == 'double'.
43028         * lib/roundl.c: Include <config.h>.
43029         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43030         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43031         time.
43032         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43033         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43034         * modules/roundl (Depends-on): Add round. Update conditions.
43036 2011-10-09  Bruno Haible  <bruno@clisp.org>
43038         truncl: Simplify for platforms where 'long double' == 'double'.
43039         * lib/truncl.c: Include <config.h>.
43040         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43041         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43042         time.
43043         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43044         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43045         * modules/truncl (Depends-on): Add trunc. Update conditions.
43047 2011-10-09  Bruno Haible  <bruno@clisp.org>
43049         ceill: Simplify for platforms where 'long double' == 'double'.
43050         * lib/ceill.c: Include <config.h>.
43051         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43052         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43053         time.
43054         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43055         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43056         * modules/ceill (Depends-on): Add ceil. Update conditions.
43058 2011-10-09  Bruno Haible  <bruno@clisp.org>
43060         floorl: Simplify for platforms where 'long double' == 'double'.
43061         * lib/floorl.c: Include <config.h>.
43062         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43063         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43064         time.
43065         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43066         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43067         * modules/floorl (Depends-on): Add floor. Update conditions.
43069 2011-10-09  Bruno Haible  <bruno@clisp.org>
43071         rint: Fix ordering constraints.
43072         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
43073         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
43074         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
43076 2011-10-09  Bruno Haible  <bruno@clisp.org>
43078         copysignl: Simplify for platforms where 'long double' == 'double'.
43079         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
43080         alternative.
43081         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43082         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43083         * modules/copysignl (Depends-on): Add copysign. Update conditions.
43085 2011-10-09  Bruno Haible  <bruno@clisp.org>
43087         Tests for module 'rintl'.
43088         * modules/rintl-tests: New file.
43089         * tests/test-rintl.c: New file.
43091         New module 'rintl'.
43092         * lib/math.in.h (rintl): New declaration.
43093         * lib/rintl.c: New file.
43094         * m4/rintl.m4: New file.
43095         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
43096         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
43097         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
43098         * modules/rintl: New file.
43099         * tests/test-math-c++.cc: Check the declaration of rintl.
43100         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
43101         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
43102         * doc/posix-functions/rintl.texi: Mention the new module.
43104 2011-10-09  Bruno Haible  <bruno@clisp.org>
43106         Tests for module 'rintf'.
43107         * modules/rintf-tests: New file.
43108         * tests/test-rintf.c: New file.
43110         New module 'rintf'.
43111         * lib/math.in.h (rintf): New declaration.
43112         * lib/rintf.c: New file.
43113         * m4/rintf.m4: New file.
43114         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
43115         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
43116         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
43117         * modules/rintf: New file.
43118         * tests/test-math-c++.cc: Check the declaration of rintf.
43119         * doc/posix-functions/rintf.texi: Mention the new module.
43121 2011-10-09  Bruno Haible  <bruno@clisp.org>
43123         rint: Support for MSVC.
43124         * lib/math.in.h (rint): New declaration.
43125         * lib/rint.c: New file.
43126         * m4/rint.m4: New file.
43127         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
43128         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
43129         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
43130         * modules/rint (Description): Fix.
43131         (Files): Add lib/rint.c, m4/rint.m4.
43132         (Depends-on): Add math.
43133         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
43134         gl_MATH_MODULE_INDICATOR.
43135         * tests/test-math-c++.cc: Check the declaration of rint.
43136         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
43137         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
43138         * doc/posix-functions/rint.texi: Mention the replacement provided by
43139         the module.
43141         rint tests: More tests.
43142         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
43143         minus-zero.h, infinity.h, nan.h.
43144         (main): Skip the test if the current rounding mode is not standard. Add
43145         tests for negative numbers, minus zero, infinity, NaN.
43146         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
43147         tests/nan.h.
43148         (Depends-on): Add isnand-nolibm.
43150 2011-10-09  Bruno Haible  <bruno@clisp.org>
43152         Tests for module 'copysignl'.
43153         * modules/copysignl-tests: New file.
43154         * tests/test-copysignl.c: New file.
43156         New module 'copysignl'.
43157         * lib/math.in.h (copysignl): New declaration.
43158         * lib/copysignl.c: New file.
43159         * m4/copysignl.m4: New file.
43160         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
43161         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
43162         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
43163         HAVE_COPYSIGNL.
43164         * modules/copysignl: New file.
43165         * tests/test-math-c++.cc: Check the declaration of copysignl.
43166         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
43167         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
43168         * doc/posix-functions/copysignl.texi: Mention the new module.
43170 2011-10-09  Bruno Haible  <bruno@clisp.org>
43172         Tests for module 'copysignf'.
43173         * modules/copysignf-tests: New file.
43174         * tests/test-copysignf.c: New file.
43176         New module 'copysignf'.
43177         * lib/math.in.h (copysignf): New declaration.
43178         * lib/copysignf.c: New file.
43179         * m4/copysignf.m4: New file.
43180         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
43181         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
43182         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
43183         HAVE_COPYSIGNF.
43184         * modules/copysignf: New file.
43185         * tests/test-math-c++.cc: Check the declaration of copysignf.
43186         * doc/posix-functions/copysignf.texi: Mention the new module.
43188 2011-10-09  Bruno Haible  <bruno@clisp.org>
43190         Ensure that HAVE_* variables are set to 1 before they are set to 0.
43191         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
43192         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
43193         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
43194         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
43195         gl_SIGNAL_H_DEFAULTS.
43197 2011-10-09  Bruno Haible  <bruno@clisp.org>
43199         poll: Make macro safer.
43200         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
43201         ac_cv_header_poll_h is not set.
43203 2011-10-09  Bruno Haible  <bruno@clisp.org>
43205         copysign: Provide replacement.
43206         * lib/math.in.h (copysign): New declaration.
43207         * lib/copysign.c: New file.
43208         * m4/copysign.m4: New file.
43209         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
43210         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
43211         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
43212         HAVE_COPYSIGN.
43213         * modules/copysign (Description): Clarify.
43214         (Files): Add lib/copysign.c, m4/copysign.m4.
43215         (Depends-on): Add math, signbit.
43216         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
43217         gl_MATH_MODULE_INDICATOR.
43218         * tests/test-math-c++.cc: Check the declaration of copysign.
43219         * doc/posix-functions/copysign.texi: Mention the effects of the module
43220         on Minix and MSVC.
43222 2011-10-09  Bruno Haible  <bruno@clisp.org>
43224         isinf: Ensure macro on AIX 5.1.
43225         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
43226         macro.
43227         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
43229 2011-10-09  Bruno Haible  <bruno@clisp.org>
43231         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
43232         * modules/snprintf-posix-tests (configure.ac): Require
43233         gl_LONG_DOUBLE_VS_DOUBLE.
43234         * modules/sprintf-posix-tests (configure.ac): Likewise.
43235         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
43236         * modules/vasprintf-posix-tests (configure.ac): Likewise.
43237         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
43238         * modules/vsprintf-posix-tests (configure.ac): Likewise.
43239         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
43240         tests on platforms where 'long double' is the same as 'double'.
43241         * tests/test-sprintf-posix.h (test_function): Likewise.
43242         * tests/test-vasnprintf-posix.c (test_function): Likewise.
43243         * tests/test-vasprintf-posix.c (test_function): Likewise.
43245         *printf: Fix for platforms where 'long double' == 'double'.
43246         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
43247         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
43248         * modules/dprintf-posix (Files): Add m4/math_h.m4.
43249         * modules/fprintf-posix (Files): Likewise.
43250         * modules/obstack-printf-posix (Files): Likewise.
43251         * modules/snprintf-posix (Files): Likewise.
43252         * modules/sprintf-posix (Files): Likewise.
43253         * modules/vasnprintf (Files): Likewise.
43254         * modules/vasnprintf-posix (Files): Likewise.
43255         * modules/vasprintf-posix (Files): Likewise.
43256         * modules/vdprintf-posix (Files): Likewise.
43257         * modules/vfprintf-posix (Files): Likewise.
43258         * modules/vsnprintf-posix (Files): Likewise.
43259         * modules/vsprintf-posix (Files): Likewise.
43260         * modules/unistdio/u8-vasnprintf (Files): Likewise.
43261         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
43262         * modules/unistdio/u16-vasnprintf (Files): Likewise.
43263         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
43264         * modules/unistdio/u32-vasnprintf (Files): Likewise.
43265         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
43266         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
43268         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
43269         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
43270         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43271         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
43272         'long double'.
43273         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
43275         isinf: Fix for platforms where 'long double' == 'double'.
43276         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
43277         Don't blindly assume 80-bit 'long double'.
43279         isfinite: Fix for platforms where 'long double' == 'double'.
43280         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
43281         Don't blindly assume 80-bit 'long double'.
43283         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
43284         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
43285         * modules/isfinite-tests (configure.ac): Require
43286         gl_LONG_DOUBLE_VS_DOUBLE.
43287         * modules/isinf-tests (configure.ac): Likewise.
43288         * modules/isnan-tests (configure.ac): Likewise.
43289         * modules/isnanl-tests (configure.ac): Likewise.
43290         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
43291         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
43292         tests on platforms where 'long double' is the same as 'double'.
43293         * tests/test-isinf.c (test_isinfl): Likewise.
43294         * tests/test-isnan.c (test_long_double): Likewise.
43295         * tests/test-isnanl.h (main): Likewise.
43297 2011-10-08  Bruno Haible  <bruno@clisp.org>
43299         Tests for module 'tanhf'.
43300         * modules/tanhf-tests: New file.
43301         * tests/test-tanhf.c: New file.
43303         New module 'tanhf'.
43304         * lib/math.in.h (tanhf): New declaration.
43305         * lib/tanhf.c: New file.
43306         * m4/tanhf.m4: New file.
43307         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
43308         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
43309         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
43310         * modules/tanhf: New file.
43311         * tests/test-math-c++.cc: Check the declaration of tanhf.
43312         * doc/posix-functions/tanhf.texi: Mention the new module.
43314         tanh: Use a .m4 file.
43315         * m4/tanh.m4: New file.
43316         * modules/tanh (Files): Add it.
43317         (configure.ac): Just invoke gl_FUNC_TANH.
43319 2011-10-08  Bruno Haible  <bruno@clisp.org>
43321         Tests for module 'coshf'.
43322         * modules/coshf-tests: New file.
43323         * tests/test-coshf.c: New file.
43325         New module 'coshf'.
43326         * lib/math.in.h (coshf): New declaration.
43327         * lib/coshf.c: New file.
43328         * m4/coshf.m4: New file.
43329         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
43330         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
43331         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
43332         * modules/coshf: New file.
43333         * tests/test-math-c++.cc: Check the declaration of coshf.
43334         * doc/posix-functions/coshf.texi: Mention the new module.
43336         cosh: Use a .m4 file.
43337         * m4/cosh.m4: New file.
43338         * modules/cosh (Files): Add it.
43339         (configure.ac): Just invoke gl_FUNC_COSH.
43341 2011-10-08  Bruno Haible  <bruno@clisp.org>
43343         Tests for module 'sinhf'.
43344         * modules/sinhf-tests: New file.
43345         * tests/test-sinhf.c: New file.
43347         New module 'sinhf'.
43348         * lib/math.in.h (sinhf): New declaration.
43349         * lib/sinhf.c: New file.
43350         * m4/sinhf.m4: New file.
43351         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
43352         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
43353         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
43354         * modules/sinhf: New file.
43355         * tests/test-math-c++.cc: Check the declaration of sinhf.
43356         * doc/posix-functions/sinhf.texi: Mention the new module.
43358         sinh: Use a .m4 file.
43359         * m4/sinh.m4: New file.
43360         * modules/sinh (Files): Add it.
43361         (configure.ac): Just invoke gl_FUNC_SINH.
43363 2011-10-08  Bruno Haible  <bruno@clisp.org>
43365         Tests for module 'atan2f'.
43366         * modules/atan2f-tests: New file.
43367         * tests/test-atan2f.c: New file.
43369         New module 'atan2f'.
43370         * lib/math.in.h (atan2f): New declaration.
43371         * lib/atan2f.c: New file.
43372         * m4/atan2f.m4: New file.
43373         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
43374         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
43375         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
43376         * modules/atan2f: New file.
43377         * tests/test-math-c++.cc: Check the declaration of atan2f.
43378         * doc/posix-functions/atan2f.texi: Mention the new module.
43380         atan2: Use a .m4 file.
43381         * m4/atan2.m4: New file.
43382         * modules/atan2 (Files): Add it.
43383         (configure.ac): Just invoke gl_FUNC_ATAN2.
43385 2011-10-08  Bruno Haible  <bruno@clisp.org>
43387         Tests for module 'atanf'.
43388         * modules/atanf-tests: New file.
43389         * tests/test-atanf.c: New file.
43391         New module 'atanf'.
43392         * lib/math.in.h (atanf): New declaration.
43393         * lib/atanf.c: New file.
43394         * m4/atanf.m4: New file.
43395         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
43396         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
43397         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
43398         * modules/atanf: New file.
43399         * tests/test-math-c++.cc: Check the declaration of atanf.
43400         * doc/posix-functions/atanf.texi: Mention the new module.
43402         atan: Use a .m4 file.
43403         * m4/atan.m4: New file.
43404         * modules/atan (Files): Add it.
43405         (configure.ac): Just invoke gl_FUNC_ATAN.
43407 2011-10-08  Bruno Haible  <bruno@clisp.org>
43409         Tests for module 'acosf'.
43410         * modules/acosf-tests: New file.
43411         * tests/test-acosf.c: New file.
43413         New module 'acosf'.
43414         * lib/math.in.h (acosf): New declaration.
43415         * lib/acosf.c: New file.
43416         * m4/acosf.m4: New file.
43417         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
43418         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
43419         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
43420         * modules/acosf: New file.
43421         * tests/test-math-c++.cc: Check the declaration of acosf.
43422         * doc/posix-functions/acosf.texi: Mention the new module.
43424         acos: Use a .m4 file.
43425         * m4/acos.m4: New file.
43426         * modules/acos (Files): Add it.
43427         (configure.ac): Just invoke gl_FUNC_ACOS.
43429 2011-10-08  Bruno Haible  <bruno@clisp.org>
43431         Tests for module 'asinf'.
43432         * modules/asinf-tests: New file.
43433         * tests/test-asinf.c: New file.
43435         New module 'asinf'.
43436         * lib/math.in.h (asinf): New declaration.
43437         * lib/asinf.c: New file.
43438         * m4/asinf.m4: New file.
43439         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
43440         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
43441         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
43442         * modules/asinf: New file.
43443         * tests/test-math-c++.cc: Check the declaration of asinf.
43444         * doc/posix-functions/asinf.texi: Mention the new module.
43446         asin: Use a .m4 file.
43447         * m4/asin.m4: New file.
43448         * modules/asin (Files): Add it.
43449         (configure.ac): Just invoke gl_FUNC_ASIN.
43451 2011-10-08  Bruno Haible  <bruno@clisp.org>
43453         Tests for module 'tanf'.
43454         * modules/tanf-tests: New file.
43455         * tests/test-tanf.c: New file.
43457         New module 'tanf'.
43458         * lib/math.in.h (tanf): New declaration.
43459         * lib/tanf.c: New file.
43460         * m4/tanf.m4: New file.
43461         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
43462         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
43463         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
43464         * modules/tanf: New file.
43465         * tests/test-math-c++.cc: Check the declaration of tanf.
43466         * doc/posix-functions/tanf.texi: Mention the new module.
43468         tan: Use a .m4 file.
43469         * m4/tan.m4: New file.
43470         * modules/tan (Files): Add it.
43471         (configure.ac): Just invoke gl_FUNC_TAN.
43473 2011-10-08  Bruno Haible  <bruno@clisp.org>
43475         Tests for module 'cosf'.
43476         * modules/cosf-tests: New file.
43477         * tests/test-cosf.c: New file.
43479         New module 'cosf'.
43480         * lib/math.in.h (cosf): New declaration.
43481         * lib/cosf.c: New file.
43482         * m4/cosf.m4: New file.
43483         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
43484         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
43485         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
43486         * modules/cosf: New file.
43487         * tests/test-math-c++.cc: Check the declaration of cosf.
43488         * doc/posix-functions/cosf.texi: Mention the new module.
43490         cos: Use a .m4 file.
43491         * m4/cos.m4: New file.
43492         * modules/cos (Files): Add it.
43493         (configure.ac): Just invoke gl_FUNC_COS.
43495 2011-10-08  Bruno Haible  <bruno@clisp.org>
43497         Tests for module 'sinf'.
43498         * modules/sinf-tests: New file.
43499         * tests/test-sinf.c: New file.
43501         New module 'sinf'.
43502         * lib/math.in.h (sinf): New declaration.
43503         * lib/sinf.c: New file.
43504         * m4/sinf.m4: New file.
43505         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
43506         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
43507         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
43508         * modules/sinf: New file.
43509         * tests/test-math-c++.cc: Check the declaration of sinf.
43510         * doc/posix-functions/sinf.texi: Mention the new module.
43512         sin: Use a .m4 file.
43513         * m4/sin.m4: New file.
43514         * modules/sin (Files): Add it.
43515         (configure.ac): Just invoke gl_FUNC_SIN.
43517 2011-10-08  Bruno Haible  <bruno@clisp.org>
43519         Tests for module 'powf'.
43520         * modules/powf-tests: New file.
43521         * tests/test-powf.c: New file.
43523         New module 'powf'.
43524         * lib/math.in.h (powf): New declaration.
43525         * lib/powf.c: New file.
43526         * m4/powf.m4: New file.
43527         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
43528         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
43529         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
43530         * modules/powf: New file.
43531         * tests/test-math-c++.cc: Check the declaration of powf.
43532         * doc/posix-functions/powf.texi: Mention the new module.
43534         pow: Use a .m4 file.
43535         * m4/pow.m4: New file.
43536         * modules/pow (Files): Add it.
43537         (configure.ac): Just invoke gl_FUNC_POW.
43539 2011-10-08  Bruno Haible  <bruno@clisp.org>
43541         Tests for module 'log10f'.
43542         * modules/log10f-tests: New file.
43543         * tests/test-log10f.c: New file.
43545         New module 'log10f'.
43546         * lib/math.in.h (log10f): New declaration.
43547         * lib/log10f.c: New file.
43548         * m4/log10f.m4: New file.
43549         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
43550         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
43551         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
43552         * modules/log10f: New file.
43553         * tests/test-math-c++.cc: Check the declaration of log10f.
43554         * doc/posix-functions/log10f.texi: Mention the new module.
43556         log10: Use a .m4 file.
43557         * m4/log10.m4: New file.
43558         * modules/log10 (Files): Add it.
43559         (configure.ac): Just invoke gl_FUNC_LOG10.
43561 2011-10-08  Bruno Haible  <bruno@clisp.org>
43563         Tests for module 'logf'.
43564         * modules/logf-tests: New file.
43565         * tests/test-logf.c: New file.
43567         New module 'logf'.
43568         * lib/math.in.h (logf): New declaration.
43569         * lib/logf.c: New file.
43570         * m4/logf.m4: New file.
43571         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
43572         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
43573         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
43574         * modules/logf: New file.
43575         * tests/test-math-c++.cc: Check the declaration of logf.
43576         * doc/posix-functions/logf.texi: Mention the new module.
43578         log: Use a .m4 file.
43579         * m4/log.m4: New file.
43580         * modules/log (Files): Add it.
43581         (configure.ac): Just invoke gl_FUNC_LOG.
43583 2011-10-08  Bruno Haible  <bruno@clisp.org>
43585         Tests for module 'expf'.
43586         * modules/expf-tests: New file.
43587         * tests/test-expf.c: New file.
43589         New module 'expf'.
43590         * lib/math.in.h (expf): New declaration.
43591         * lib/expf.c: New file.
43592         * m4/expf.m4: New file.
43593         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
43594         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
43595         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
43596         * modules/expf: New file.
43597         * tests/test-math-c++.cc: Check the declaration of expf.
43598         * doc/posix-functions/expf.texi: Mention the new module.
43600         exp: Use a .m4 file.
43601         * m4/exp.m4: New file.
43602         * modules/exp (Files): Add it.
43603         (configure.ac): Just invoke gl_FUNC_EXP.
43605 2011-10-08  Bruno Haible  <bruno@clisp.org>
43607         Tests for module 'sqrtf'.
43608         * modules/sqrtf-tests: New file.
43609         * tests/test-sqrtf.c: New file.
43611         New module 'sqrtf'.
43612         * lib/math.in.h (sqrtf): New declaration.
43613         * lib/sqrtf.c: New file.
43614         * m4/sqrtf.m4: New file.
43615         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
43616         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
43617         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
43618         * modules/sqrtf: New file.
43619         * tests/test-math-c++.cc: Check the declaration of sqrtf.
43620         * doc/posix-functions/sqrtf.texi: Mention the new module.
43622 2011-10-08  Bruno Haible  <bruno@clisp.org>
43624         Tests: Avoid link failures w.r.t. libintl.
43625         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
43626         $(LIBINTL).
43627         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
43628         $(LIBINTL).
43629         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
43630         against $(LIBINTL).
43631         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
43632         $(LIBINTL).
43633         * modules/openat-tests (Makefile.am): Link test-fchmodat against
43634         $(LIBINTL).
43635         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
43637 2011-10-08  Bruno Haible  <bruno@clisp.org>
43639         pow tests: Defeat compiler optimizations.
43640         * tests/test-pow.c (main): Assign arguments to x and y before use.
43642 2011-10-08  Bruno Haible  <bruno@clisp.org>
43644         gnulib-tool: Improve last commit.
43645         * gnulib-tool (func_modules_transitive_closure): Simplify code.
43646         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
43647         ignore dependencies that are not among the modules list.
43649 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
43651         gnulib-tool: don't follow dependencies to avoided modules
43652         This fixes a bug that is related to the previous one.
43653         * gnulib-tool (func_modules_transitive_closure)
43654         (func_emit_autoconf_snippets):
43655         Check whether a dependency is acceptable before using it.
43656         (--extract-dependencies): Report an error if --avoid is also used,
43657         since this combination of options is not yet supported.
43659         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
43660         Problem reported by Peter Dyballa in
43661         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
43662         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
43663         when echoing "$condition".
43665 2011-10-07  Bruno Haible  <bruno@clisp.org>
43667         Fix documentation about math functions on MacOS X.
43668         * doc/posix-functions/exp2.texi: Don't say the function is missing on
43669         MacOS X 10.5.
43670         * doc/posix-functions/fdim.texi: Likewise.
43671         * doc/posix-functions/feclearexcept.texi: Likewise.
43672         * doc/posix-functions/fegetenv.texi: Likewise.
43673         * doc/posix-functions/fegetround.texi: Likewise.
43674         * doc/posix-functions/feholdexcept.texi: Likewise.
43675         * doc/posix-functions/feraiseexcept.texi: Likewise.
43676         * doc/posix-functions/fesetenv.texi: Likewise.
43677         * doc/posix-functions/fesetround.texi: Likewise.
43678         * doc/posix-functions/fetestexcept.texi: Likewise.
43679         * doc/posix-functions/feupdateenv.texi: Likewise.
43680         * doc/posix-functions/fmax.texi: Likewise.
43681         * doc/posix-functions/fmin.texi: Likewise.
43682         * doc/posix-functions/log2.texi: Likewise.
43683         * doc/posix-functions/modff.texi: Likewise.
43684         * doc/posix-functions/nan.texi: Likewise.
43685         * doc/posix-functions/nanf.texi: Likewise.
43686         * doc/posix-functions/nextafterf.texi: Likewise.
43687         * doc/posix-functions/remquo.texi: Likewise.
43689 2011-10-07  Bruno Haible  <bruno@clisp.org>
43691         modff: Drop assumption about library that defines modff.
43692         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
43693         AC_CHECK_FUNCS.
43694         * modules/modff (Files): Add m4/mathfunc.m4.
43696 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
43698         raise tests: Avoid a GCC warning.
43699         * tests/test-raise.c (handler): Use _Noreturn.
43701 2011-10-07  Bruno Haible  <bruno@clisp.org>
43703         Tests for module 'ldexpf'.
43704         * modules/ldexpf-tests: New file.
43705         * tests/test-ldexpf.c: New file.
43707         New module 'ldexpf'.
43708         * lib/math.in.h (ldexpf): New declaration.
43709         * lib/ldexpf.c: New file.
43710         * m4/ldexpf.m4: New file.
43711         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
43712         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
43713         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
43714         * modules/ldexpf: New file.
43715         * tests/test-math-c++.cc: Check the declaration of ldexpf.
43716         * doc/posix-functions/ldexpf.texi: Mention the new module.
43718 2011-10-06  Bruno Haible  <bruno@clisp.org>
43720         frexpf: Work around problems on IRIX and mingw.
43721         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
43722         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
43723         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
43724         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
43725         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
43726         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
43727         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
43729 2011-10-06  Bruno Haible  <bruno@clisp.org>
43731         fabsf: Drop assumption about library that defines fabsf.
43732         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
43733         AC_CHECK_FUNCS.
43734         * modules/fabsf (Files): Add m4/mathfunc.m4.
43736 2011-10-06  Bruno Haible  <bruno@clisp.org>
43738         frexpf: Drop assumption about library that defines frexpf.
43739         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
43740         'int *', 'float *', 'long double *', 'float', 'long double'.
43741         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
43742         AC_CHECK_FUNCS.
43743         * modules/frexpf (Files): Add m4/mathfunc.m4.
43745         Tests for module 'frexpf'.
43746         * modules/frexpf-tests: New file.
43747         * tests/test-frexpf.c: New file.
43749         New module 'frexpf'.
43750         * lib/math.in.h (frexpf): New declaration.
43751         * lib/frexpf.c: New file.
43752         * m4/frexpf.m4: New file.
43753         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
43754         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
43755         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
43756         * modules/frexpf: New file.
43757         * tests/test-math-c++.cc: Check the declaration of frexpf.
43758         * doc/posix-functions/frexpf.texi: Mention the new module.
43760 2011-10-06  Bruno Haible  <bruno@clisp.org>
43762         math: Sort function declarations of math.in.h.
43763         * lib/math.in.h (frexp, logb): Move declarations.
43765 2011-10-05  Bruno Haible  <bruno@clisp.org>
43767         Tests for module 'modff'.
43768         * modules/modff-tests: New file.
43769         * tests/test-modff.c: New file.
43771         New module 'modff'.
43772         * lib/math.in.h (modff): New declaration.
43773         * lib/modff.c: New file.
43774         * m4/modff.m4: New file.
43775         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
43776         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
43777         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
43778         * modules/modff: New file.
43779         * tests/test-math-c++.cc: Check the declaration of modff.
43780         * doc/posix-functions/modff.texi: Mention the new module.
43782         modf tests: Make test sharper.
43783         * tests/test-modf.c (main): Strengthen upper bound.
43785         modf: Use a .m4 file.
43786         * m4/modf.m4: New file.
43787         * modules/modf (Files): Add it.
43788         (configure.ac): Just invoke gl_FUNC_MODF.
43790 2011-10-05  Bruno Haible  <bruno@clisp.org>
43792         Tests for module 'fmodf'.
43793         * modules/fmodf-tests: New file.
43794         * tests/test-fmodf.c: New file.
43796         New module 'fmodf'.
43797         * lib/math.in.h (fmodf): New declaration.
43798         * lib/fmodf.c: New file.
43799         * m4/fmodf.m4: New file.
43800         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
43801         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
43802         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
43803         * modules/fmodf: New file.
43804         * tests/test-math-c++.cc: Check the declaration of fmodf.
43805         * doc/posix-functions/fmodf.texi: Mention the new module.
43807         fmod: Use a .m4 file.
43808         * m4/fmod.m4: New file.
43809         * modules/fmod (Files): Add it.
43810         (configure.ac): Just invoke gl_FUNC_FMOD.
43812 2011-10-05  Bruno Haible  <bruno@clisp.org>
43814         Tests for module 'fabsf'.
43815         * modules/fabsf-tests: New file.
43816         * tests/test-fabsf.c: New file.
43818         New module 'fabsf'.
43819         * lib/math.in.h (fabsf): New declaration.
43820         * lib/fabsf.c: New file.
43821         * m4/fabsf.m4: New file.
43822         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
43823         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
43824         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
43825         * modules/fabsf: New file.
43826         * tests/test-math-c++.cc: Check the declaration of fabsf.
43827         * doc/posix-functions/fabsf.texi: Mention the new module.
43829         fabs: Use a .m4 file.
43830         * m4/fabs.m4: New file.
43831         * modules/fabs (Files): Add it.
43832         (configure.ac): Just invoke gl_FUNC_FABS.
43834 2011-10-05  Jim Meyering  <meyering@redhat.com>
43836         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
43837         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
43838         ls -lL regression introduced in coreutils-8.12, it does so at the
43839         cost of an additional stat call in the common case.  Besides, now
43840         that the kernel change that prompted commit 95f7c57f has been reverted
43841         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
43842         we have no use for commit 95f7c57f, "file-has-acl: use
43843         acl_extended_file_nofollow if available".
43845 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
43847         file-has-acl: revert unintended change in behavior of ls -L
43848         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
43849         derived from...
43850         (file_has_acl): ...code here.  Call it.
43851         This problem was introduced with 2011-07-22 commit 95f7c57f,
43852         "file-has-acl: use acl_extended_file_nofollow if available".
43853         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
43855 2011-10-03  Bruno Haible  <bruno@clisp.org>
43857         poll: Avoid link errors on MSVC.
43858         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
43859         * modules/poll (Depends-on): Add sockets.
43860         (Link): New section.
43861         * NEWS: Mention the change.
43862         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
43863         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
43864         $(LIB_POLL) instead of $(LIBSOCKET).
43866 2011-10-03  Bruno Haible  <bruno@clisp.org>
43868         sys_select tests: Fix link error on MSVC 9.
43869         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
43870         with $(LIB_SELECT) instead of $(LIBSOCKET).
43872 2011-10-03  Bruno Haible  <bruno@clisp.org>
43874         sys_select: Fix compilation error on mingw.
43875         * lib/sys_select.in.h: On native Windows, include <io.h>.
43877 2011-10-03  Bruno Haible  <bruno@clisp.org>
43879         wmemset: Support for MSVC.
43880         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
43881         whether wmemset() exists.
43883 2011-10-03  Bruno Haible  <bruno@clisp.org>
43885         wmemmove: Support for MSVC.
43886         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
43887         whether wmemmove() exists.
43889 2011-10-03  Bruno Haible  <bruno@clisp.org>
43891         wmemcpy: Support for MSVC.
43892         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
43893         whether wmemcpy() exists.
43895 2011-10-03  Bruno Haible  <bruno@clisp.org>
43897         wmemcmp: Support for MSVC.
43898         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
43899         whether wmemcmp() exists.
43901 2011-10-03  Bruno Haible  <bruno@clisp.org>
43903         wmemchr: Support for MSVC.
43904         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
43905         whether wmemchr() exists.
43907 2011-10-03  Bruno Haible  <bruno@clisp.org>
43909         glthread/*, strsignal: Support for MSVC.
43910         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
43911         including <winsock.h> on MSVC 9.
43912         * lib/glthread/lock.h: Likewise.
43913         * lib/glthread/thread.h: Likewise.
43914         * lib/glthread/tls.h: Likewise.
43915         * lib/glthread/yield.h: Likewise.
43916         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
43917         if HAVE_UNISTD_H is false.
43918         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
43920 2011-10-03  Bruno Haible  <bruno@clisp.org>
43922         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
43923         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
43924         Set to 100000.
43926 2011-10-03  Bruno Haible  <bruno@clisp.org>
43928         acl: Fix specification.
43929         * lib/file-has-acl.c (file_has_acl): Fix specification.
43931 2011-10-03  Bruno Haible  <bruno@clisp.org>
43933         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
43934         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
43935         (compute_curr_prefix, shared_library_fullname,
43936         find_shared_library_fullname, get_shared_library_fullname, relocate):
43937         Use it together with PIC && INSTALLDIR.
43938         Reported by <jojelino@gmail.com>
43939         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
43941 2011-10-01  Jim Meyering  <meyering@redhat.com>
43943         maint.mk: adjust a release-related rule not to require use of gzip
43944         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
43945         Instead, check each file in $(DIST_ARCHIVES).  This is better for
43946         projects that build only .tar.xz files.  Also fix an erroneous test.
43948         test-linkat: don't leave behind a temporary file
43949         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
43950         Otherwise, coreutils' "make distcheck" would fail with this:
43951           Only in /c/cu/tests/torture/coreutils/test/\
43952             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
43953           make[2]: *** [my-distcheck] Error 1
43955         float, math: add omitted file
43956         * lib/itold.c: Add file, required for yesterday's float change.
43958 2011-10-01  Bruno Haible  <bruno@clisp.org>
43960         isinf: Fix for OpenBSD/x86.
43961         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
43962         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
43963         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
43965 2011-10-01  Bruno Haible  <bruno@clisp.org>
43967         isfinite: Fix syntax error in configure test.
43968         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
43970         isfinite: Fix typo.
43971         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
43972         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
43974 2011-10-01  Bruno Haible  <bruno@clisp.org>
43976         nonblocking tests: Fix test failure on Linux/IA-64.
43977         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
43978         Set to 270000.
43980 2011-10-01  Bruno Haible  <bruno@clisp.org>
43982         mkfifoat tests: Fix a test failure on mingw.
43983         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
43984         with error ENOSYS.
43986 2011-09-30  Bruno Haible  <bruno@clisp.org>
43988         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
43989         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
43990         'long double'. Set REPLACE_ITOLD.
43991         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
43992         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
43993         * lib/itold.c: New file.
43994         * modules/float (Files): Add lib/itold.c.
43995         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
43996         (Makefile.am): Substitute REPLACE_ITOLD.
43997         * modules/math (Depends-on): Add float.
43998         (Makefile.am): Substitute REPLACE_ITOLD.
43999         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
44000         * doc/posix-headers/math.texi: Likewise.
44001         * doc/posix-functions/logl.texi: Likewise.
44003 2011-09-30  Bruno Haible  <bruno@clisp.org>
44005         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
44006         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
44007         Set to 140000.
44009 2011-09-30  Bruno Haible  <bruno@clisp.org>
44011         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
44012         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
44013         invocation, say "right after AC_PROG_CC_STDC", not "right after
44014         AC_PROG_CC".
44015         Reported by Gary V. Vaughan <gary@gnu.org>.
44017 2011-09-30  Bruno Haible  <bruno@clisp.org>
44019         Centralize C99 requirement.
44020         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
44021         * modules/stdarg (configure.ac-early): Invoke it instead of
44022         AC_PROG_CC_STDC.
44023         Reported by Gary V. Vaughan and Paul Eggert.
44025 2011-09-29  Bruno Haible  <bruno@clisp.org>
44027         float: Fix LDBL_MAX value on Linux/PowerPC.
44028         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
44029         on Linux/PowerPC.
44030         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
44031         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
44032         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
44033         platform.
44034         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
44036 2011-09-29  Bruno Haible  <bruno@clisp.org>
44038         doc: Improve doc about gl_EARLY.
44039         * doc/gnulib-tool.texi (Initial import): Mention where to place an
44040         AC_PROG_CC_STDC invocation.
44041         Reported by Gary V. Vaughan <gary@gnu.org>.
44043 2011-09-28  Bruno Haible  <bruno@clisp.org>
44045         fgetc, fputc, fread, fwrite tests: Fix link error.
44046         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
44047         on non-MSVC platforms.
44048         * tests/test-fputc.c (main): Likewise.
44049         * tests/test-fread.c (main): Likewise.
44050         * tests/test-fwrite.c (main): Likewise.
44051         Reported by Jim Meyering.
44053 2011-09-27  Bruno Haible  <bruno@clisp.org>
44055         fputc, fwrite tests: Avoid test failure on MSVC.
44056         * tests/test-fgetc.c: Include msvc-inval.h.
44057         (main): Invoke gl_msvc_inval_ensure_handler.
44058         * tests/test-fputc.c: Include msvc-inval.h.
44059         (main): Invoke gl_msvc_inval_ensure_handler.
44060         * tests/test-fread.c: Include msvc-inval.h.
44061         (main): Invoke gl_msvc_inval_ensure_handler.
44062         * tests/test-fwrite.c: Include msvc-inval.h.
44063         (main): Invoke gl_msvc_inval_ensure_handler.
44064         * modules/fgetc-tests (Depends-on): Add msvc-inval.
44065         * modules/fputc-tests (Depends-on): Likewise.
44066         * modules/fread-tests (Depends-on): Likewise.
44067         * modules/fwrite-tests (Depends-on): Likewise.
44069 2011-09-27  Bruno Haible  <bruno@clisp.org>
44071         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
44072         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
44073         (raise): Remove older, duplicated declaration.
44074         (_gl_raise_SIGPIPE): New declaration.
44075         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
44076         (rpl_raise): Remove function.
44077         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
44078         a gnulib-defined SIGPIPE here.
44079         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
44080         'sigprocmask' has detected missing signal-blocking and the module
44081         'sigpipe' is enabled.
44082         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
44084 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
44086         base64-tests: avoid memory leak
44087         * tests/test-base64.c (main): Plug memory leak.
44089         base32: new module
44090         * modules/base32: New module.
44091         * lib/base32.c: New file.
44092         * lib/base32.h: Likewise.
44093         * m4/base32.m4: Likewise.
44094         * modules/base32-tests: New test.
44095         * tests/test-base32.c: Likewise.
44096         * MODULES.html.sh (Misc): Mention it.
44098 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
44100         gnulib: use more-standard license notice wording
44101         * gnulib-tool (func_emit_copyright_notice): When emitting a
44102         license notice into a file, use the standard wording as suggested
44103         by the current information for GNU maintainers, except say "file"
44104         rather than "program".  The new wording gives a license version
44105         number, which addresses an issue raised by Glenn Morris in
44106         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
44107         * m4/onceonly.m4: Use that same wording here, too.
44109         dup2: minor simplification
44110         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
44111         as lib/dup2.c no longer uses 'inline'.
44113 2011-09-25  Bruno Haible  <bruno@clisp.org>
44115         strings: Fix compilation error on MSVC.
44116         * lib/strings.in.h: Include <stddef.h> for size_t.
44118 2011-09-25  Bruno Haible  <bruno@clisp.org>
44120         fflush et al.: Document limitation on MSVC.
44121         * doc/posix-functions/fflush.texi: Document possible crash in handling
44122         mode other than DEFAULT_HANDLING.
44123         * doc/posix-functions/fgetc.texi: Likewise.
44124         * doc/posix-functions/fputc.texi: Likewise.
44125         * doc/posix-functions/fread.texi: Likewise.
44126         * doc/posix-functions/fwrite.texi: Likewise.
44128 2011-09-25  Bruno Haible  <bruno@clisp.org>
44130         msvc-inval: Allow three invalid parameter handling modes.
44131         * lib/msvc-inval.h: Don't include <stdlib.h> here.
44132         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
44133         macros.
44134         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
44135         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
44136         SANE_LIBRARY_HANDLING as a no-op.
44137         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
44138         <stdlib.h>.
44139         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
44141 2011-09-25  Bruno Haible  <bruno@clisp.org>
44143         msvc-inval: Make handler multithread-safe.
44144         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
44145         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
44146         declarations.
44147         (gl_msvc_inval_current): New declaration.
44148         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
44149         Operate on the structure returned by gl_msvc_inval_current().
44150         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
44151         Remove varaiables.
44152         (tls_index, tls_initialized): New variables.
44153         (not_per_thread): New variable.
44154         (gl_msvc_inval_current): New function.
44155         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
44156         returned by gl_msvc_inval_current().
44158 2011-09-25  Bruno Haible  <bruno@clisp.org>
44160         msvc-inval: Install handler globally.
44161         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
44162         !_MSC_VER.
44163         (gl_msvc_invalid_parameter_handler): Remove declaration.
44164         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
44165         declarations.
44166         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
44167         Install the handler globally, don't uninstall it.
44168         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
44169         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
44170         currently valid, call RaiseException instead.
44171         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
44172         for !_MSC_VER.
44174 2011-09-25  Bruno Haible  <bruno@clisp.org>
44176         strerror_r-posix: Fix for MSVC 9.
44177         * lib/strerror_r.c (local_snprintf): New function.
44178         (snprintf): Define to local_snprintf, not to _snprintf.
44180 2011-09-25  Bruno Haible  <bruno@clisp.org>
44182         ftruncate: Support for MSVC 9.
44183         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
44184         (chsize_nothrow): New function.
44185         (chsize): Redefine as a macro.
44186         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
44187         * modules/ftruncate (Depends-on): Add msvc-inval.
44189 2011-09-25  Bruno Haible  <bruno@clisp.org>
44191         New module 'fstat'.
44192         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
44193         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
44194         * lib/fchdir.c (rpl_fstat): Remove function.
44195         * m4/fstat.m4: New file.
44196         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
44197         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
44198         declared.
44199         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
44200         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
44201         * modules/fstat: New file.
44202         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
44203         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
44204         is set.
44205         * doc/posix-functions/fstat.texi: Mention the new module and the
44206         problem on MSVC.
44207         * NEWS: Mention the change.
44208         * modules/acl (Depends-on): Add fstat.
44209         * modules/chdir-safer (Depends-on): Likewise.
44210         * modules/chown (Depends-on): Likewise.
44211         * modules/copy-file (Depends-on): Likewise.
44212         * modules/fchdir (Depends-on): Likewise.
44213         * modules/fdopendir (Depends-on): Likewise.
44214         * modules/fopen (Depends-on): Likewise.
44215         * modules/fts (Depends-on): Likewise.
44216         * modules/getcwd (Depends-on): Likewise.
44217         * modules/isapipe (Depends-on): Likewise.
44218         * modules/linkat (Depends-on): Likewise.
44219         * modules/lseek (Depends-on): Likewise.
44220         * modules/mkdir-p (Depends-on): Likewise.
44221         * modules/open (Depends-on): Likewise.
44222         * modules/openat (Depends-on): Likewise.
44223         * modules/read-file (Depends-on): Likewise.
44224         * modules/renameat (Depends-on): Likewise.
44225         * modules/utimens (Depends-on): Likewise.
44227 2011-09-25  Bruno Haible  <bruno@clisp.org>
44229         linkat: Fix compilation on MSVC 9.
44230         * lib/linkat.c: Don't include <stdint.h>.
44232 2011-09-25  Bruno Haible  <bruno@clisp.org>
44234         fclose: Support for MSVC 9.
44235         * lib/fclose.c: Include msvc-inval.h.
44236         (fclose_nothrow): New function.
44237         (rpl_fclose): Use it.
44238         * modules/fclose (Depends-on): Add msvc-inval.
44239         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
44241 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
44243         dup2: minor simplifications
44244         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
44245         that it's a performance win.
44246         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
44247         ! defined __CYGWIN__)" to "ifdef F_GETFL".
44249 2011-09-24  Jim Meyering  <meyering@redhat.com>
44251         test-futimens: avoid a warning from gcc -Wshadow
44252         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
44253         to avoid a shadowing warning.
44255 2011-09-24  Bruno Haible  <bruno@clisp.org>
44257         fdopen: Support for MSVC 9.
44258         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
44259         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
44260         * lib/fdopen.c: Include msvc-inval.h.
44261         (fdopen_nothrow): New function.
44262         (rpl_fdopen): Use it.
44263         * modules/fdopen (Depends-on): Add msvc-inval.
44264         * modules/fclose-tests (Depends-on): Add fdopen.
44265         * modules/fflush-tests (Depends-on): Likewise.
44266         * modules/fgetc-tests (Depends-on): Likewise.
44267         * modules/fputc-tests (Depends-on): Likewise.
44268         * modules/fread-tests (Depends-on): Likewise.
44269         * modules/freopen-tests (Depends-on): Likewise.
44270         * modules/fseeko-tests (Depends-on): Likewise.
44271         * modules/ftello-tests (Depends-on): Likewise.
44272         * modules/fwrite-tests  (Depends-on): Likewise.
44273         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
44275 2011-09-24  Bruno Haible  <bruno@clisp.org>
44277         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
44278         * modules/fgetc-tests (Depends-on): Add unistd.
44279         * modules/fputc-tests (Depends-on): Likewise.
44280         * modules/fread-tests (Depends-on): Likewise.
44281         * modules/fwrite-tests (Depends-on): Likewise.
44283 2011-09-24  Bruno Haible  <bruno@clisp.org>
44285         dup: Simplify autoconf test.
44286         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
44287         on gl_MSVC_INVAL's result.
44289 2011-09-24  Bruno Haible  <bruno@clisp.org>
44291         Tests for function fwrite().
44292         * modules/fwrite-tests: New file.
44293         * tests/test-fwrite.c: New file.
44294         * modules/stdio-tests (Depends-on): Add fwrite-tests.
44296         Tests for function fread().
44297         * modules/fread-tests: New file.
44298         * tests/test-fread.c: New file.
44299         * modules/stdio-tests (Depends-on): Add fread-tests.
44301         Activate fputc tests.
44302         * modules/stdio-tests (Depends-on): Add fputc-tests.
44304         Enhance fgetc, fputc tests.
44305         * tests/test-fgetc.c (main): Also test the stream's error indicator.
44306         * tests/test-fputc.c (main): Likewise.
44308 2011-09-24  Bruno Haible  <bruno@clisp.org>
44310         write: Support for MSVC 9.
44311         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
44312         is not 1.
44313         * lib/write.c (write_nothrow): New function.
44314         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
44315         not 1. Use write_nothrow.
44316         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
44317         invalid parameter handler.
44318         (gl_PREREQ_WRITE): New macro.
44319         * modules/write (Depends-on): Add msvc-inval.
44320         (configure.ac): Invoke gl_PREREQ_WRITE.
44321         * doc/posix-functions/write.texi: Mention the problem on MSVC.
44323 2011-09-24  Bruno Haible  <bruno@clisp.org>
44325         read: Fix last commit.
44326         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
44328 2011-09-24  Bruno Haible  <bruno@clisp.org>
44330         dup2: Fix last commit.
44331         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
44332         (rpl_dup2): Disable fcntl workaround on native Windows.
44334         sigprocmask: Make code safer.
44335         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
44336         section that changes macro definitions for this compilation unit.
44338 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
44340         dup2: clarify by coalescing Windows-specific material
44341         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
44342         "msvc-nothrow.h"' to the Windows-specific section, so that the
44343         Emacs source need not contain these include files.
44344         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
44345         Windows-specific fixes into this function rather than just the
44346         nothrow fix, as this shortens and clarifies the code.  Always
44347         define as a function, as that's a bit cleaner than having it be
44348         sometimes a function and sometimes a macro.
44349         (rpl_dup2): Move the Windows-specific stuff out of here and into
44350         ms_windows_dup2.  Don't protect the Haiku-related fix with
44351         "#if !defined __linux__", as the same code also works around
44352         a Linux kernel bug, and it doesn't add any system calls on any
44353         platform.  Add comment about FreeBSD 6.1.
44355         sigprocmask: move #include directive
44356         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
44357         Windows-specific section, so that the Emacs source need not
44358         contain msvc-inval.h.
44360 2011-09-23  Bruno Haible  <bruno@clisp.org>
44362         read: Support for MSVC 9.
44363         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
44364         is not 1.
44365         * lib/read.c (read_nothrow): New function.
44366         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
44367         read_nothrow.
44368         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
44369         invalid parameter handler.
44370         (gl_PREREQ_READ): New macro.
44371         * modules/read (Depends-on): Add msvc-inval.
44372         (configure.ac): Invoke gl_PREREQ_READ.
44373         * doc/posix-functions/read.texi: Mention the problem on MSVC.
44375 2011-09-23  Bruno Haible  <bruno@clisp.org>
44377         close: Support for MSVC 9.
44378         * lib/close.c: Include <errno.h>, msvc-inval.h.
44379         (close_nothrow): New function.
44380         (rpl_close): Use it.
44381         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
44382         invalid parameter handler.
44383         * modules/close (Depends-on): Add msvc-inval.
44384         * modules/dup2-tests (Depends-on): Add close.
44385         * modules/dup3-tests (Depends-on): Likewise.
44386         * modules/fcntl-tests (Depends-on): Likewise.
44387         * modules/spawn-pipe-tests (Depends-on): Likewise.
44388         * modules/unistd-safer-tests (Depends-on): Likewise.
44389         * doc/posix-functions/close.texi: Mention the problem on MSVC.
44391 2011-09-23  Bruno Haible  <bruno@clisp.org>
44393         New module 'dup'.
44394         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
44395         Allow replacement.
44396         * lib/dup.c: New file.
44397         * lib/fchdir.c (rpl_dup): Remove function.
44398         * m4/dup.m4: New file.
44399         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
44400         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
44401         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
44402         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
44403         * modules/dup: New file.
44404         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
44405         'dup' module is in use.
44406         * modules/fdopendir (Depends-on): Add dup.
44407         * modules/fdutimensat-tests (Depends-on): Likewise.
44408         * modules/fts (Depends-on): Likewise.
44409         * modules/futimens-tests (Depends-on): Likewise.
44410         * modules/posix_spawnp-tests (Depends-on): Likewise.
44411         * modules/unistd-safer-tests (Depends-on): Likewise.
44412         * modules/utimens-tests (Depends-on): Likewise.
44413         * doc/posix-functions/dup.texi: Mention the new module and the problem
44414         on MSVC.
44416 2011-09-23  Bruno Haible  <bruno@clisp.org>
44418         getdtablesize: Support for MSVC 9.
44419         * lib/getdtablesize.c: Include msvc-inval.h.
44420         (_setmaxstdio_nothrow): New function.
44421         (_setmaxstdio): Redefine it.
44422         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
44423         * modules/getdtablesize (Depends-on): Add msvc-inval.
44424         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
44426 2011-09-23  Bruno Haible  <bruno@clisp.org>
44428         signal-h: Rename from signal.
44429         * modules/signal-h: Renamed from modules/signal.
44430         * modules/pthread_sigmask (Depends-on): Update.
44431         * modules/raise (Depends-on): Likewise.
44432         * modules/sigaction (Depends-on): Likewise.
44433         * modules/sigpipe (Depends-on): Likewise.
44434         * modules/sigprocmask (Depends-on): Likewise.
44435         * modules/sys_select (Depends-on): Likewise.
44436         * modules/signal-h-tests: Renamed from modules/signal-tests.
44437         (Files, Depends-on, Makefile.am): Update.
44438         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
44439         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
44440         (Files, Makefile.am): Update.
44441         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
44442         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
44443         * modules/signal: New placeholder file.
44444         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
44445         * doc/posix-headers/signal.texi: Update.
44446         * NEWS: Mention the change.
44448 2011-09-23  Bruno Haible  <bruno@clisp.org>
44450         sigprocmask: Avoid crashes through signal() on MSVC 9.
44451         * lib/sigprocmask.c: Include msvc-inval.h.
44452         (signal_nothrow): New function.
44453         (signal): Redefine it.
44454         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
44455         * modules/sigprocmask (Depends-on): Add msvc-inval.
44456         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
44458 2011-09-23  Bruno Haible  <bruno@clisp.org>
44460         Tests for module 'raise'.
44461         * modules/raise-tests: New file.
44462         * tests/test-raise.c: New file.
44464         raise: Support for MSVC.
44465         * lib/signal.in.h (raise): New declaration.
44466         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
44467         for native Windows platforms.
44468         * m4/raise.m4: New file.
44469         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
44470         HAVE_RAISE, REPLACE_RAISE.
44471         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
44472         REPLACE_RAISE.
44473         * modules/raise (Status, Notice): Remove fields.
44474         (Files): Add m4/raise.m4.
44475         (Depends-on): Add signal, msvc-inval.
44476         (configure.ac): Use the common idioms.
44477         (Maintainer): Add me.
44478         * tests/test-signal-c++.cc: Check the signature of raise.
44479         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
44481 2011-09-23  Bruno Haible  <bruno@clisp.org>
44483         pipe2: Fix compilation on pre-C99 compilers.
44484         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
44486 2011-09-23  Bruno Haible  <bruno@clisp.org>
44488         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
44489         * lib/msvc-nothrow.h: New file.
44490         * lib/msvc-nothrow.c: New file.
44491         * m4/msvc-nothrow.m4: New file.
44492         * modules/msvc-nothrow: New file.
44493         * lib/dup2.c: Include msvc-nothrow.h.
44494         (rpl_dup2): No need to protect _get_osfhandle call here.
44495         * lib/accept4.c: Include msvc-nothrow.h.
44496         * lib/error.c: Likewise.
44497         * lib/fcntl.c: Likewise.
44498         * lib/lseek.c: Likewise.
44499         * lib/nonblocking.c: Likewise.
44500         * lib/poll.c: Likewise.
44501         * lib/read.c: Likewise.
44502         * lib/select.c: Likewise.
44503         * lib/sockets.h: Likewise.
44504         * lib/sockets.c: Likewise.
44505         * lib/stdio-read.c: Likewise.
44506         * lib/stdio-write.c: Likewise.
44507         * lib/write.c: Likewise.
44508         * lib/w32sock.h: Likewise.
44509         * lib/w32spawn.h: Likewise.
44510         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
44511         * lib/fsync.c: Likewise.
44512         * lib/isapipe.c: Likewise.
44513         * modules/dup2 (Depends-on): Add msvc-nothrow.
44514         * modules/accept4 (Depends-on): Likewise.
44515         * modules/error (Depends-on): Likewise.
44516         * modules/fcntl (Depends-on): Likewise.
44517         * modules/lseek (Depends-on): Likewise.
44518         * modules/nonblocking (Depends-on): Likewise.
44519         * modules/poll (Depends-on): Likewise.
44520         * modules/read (Depends-on): Likewise.
44521         * modules/select (Depends-on): Likewise.
44522         * modules/sockets (Depends-on): Likewise.
44523         * modules/sigpipe (Depends-on): Likewise.
44524         * modules/write (Depends-on): Likewise.
44525         * modules/accept (Depends-on): Likewise.
44526         * modules/bind (Depends-on): Likewise.
44527         * modules/connect (Depends-on): Likewise.
44528         * modules/gethostname (Depends-on): Likewise.
44529         * modules/getpeername (Depends-on): Likewise.
44530         * modules/getsockname (Depends-on): Likewise.
44531         * modules/getsockopt (Depends-on): Likewise.
44532         * modules/ioctl (Depends-on): Likewise.
44533         * modules/listen (Depends-on): Likewise.
44534         * modules/recv (Depends-on): Likewise.
44535         * modules/recvfrom (Depends-on): Likewise.
44536         * modules/send (Depends-on): Likewise.
44537         * modules/sendto (Depends-on): Likewise.
44538         * modules/setsockopt (Depends-on): Likewise.
44539         * modules/shutdown (Depends-on): Likewise.
44540         * modules/socket (Depends-on): Likewise.
44541         * modules/execute (Depends-on): Likewise.
44542         * modules/spawn-pipe (Depends-on): Likewise.
44543         * modules/flock (Depends-on): Likewise.
44544         * modules/fsync (Depends-on): Likewise.
44545         * modules/isapipe (Depends-on): Likewise.
44546         * tests/test-cloexec.c: Include msvc-nothrow.h.
44547         * tests/test-dup-safer.c: Likewise.
44548         * tests/test-dup2.c: Likewise.
44549         * tests/test-dup3.c: Likewise.
44550         * tests/test-fcntl.c: Likewise.
44551         * tests/test-pipe.c: Likewise.
44552         * tests/test-pipe2.c: Likewise.
44553         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
44554         * modules/unistd-safer-tests (Depends-on): Likewise.
44555         * modules/dup2-tests (Depends-on): Likewise.
44556         * modules/dup3-tests (Depends-on): Likewise.
44557         * modules/fcntl-tests (Depends-on): Likewise.
44558         * modules/pipe-posix-tests (Depends-on): Likewise.
44559         * modules/pipe2-tests (Depends-on): Likewise.
44561 2011-09-23  Bruno Haible  <bruno@clisp.org>
44563         dup2: Make code more maintainable.
44564         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
44565         (rpl_dup2): Use it.
44566         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
44567         * modules/dup2 (configure.ac): Invoke it.
44568         Reported by Paul Eggert.
44570 2011-09-23  Bruno Haible  <bruno@clisp.org>
44572         msvc-inval: Fix compilation error.
44573         * lib/msvc-inval.h: Include <excpt.h>.
44575 2011-09-23  Bruno Haible  <bruno@clisp.org>
44577         mkdir: Tweak for MSVC 9.
44578         * lib/sys_stat.in.h: Update comments.
44579         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
44581         Tests for module 'chdir'.
44582         * modules/chdir-tests: New file.
44583         * tests/test-chdir.c: New file.
44585         New module 'chdir'.
44586         * modules/chdir: New file.
44587         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
44588         (chdir): New declaration.
44589         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
44590         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
44591         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
44592         * tests/test-unistd-c++.cc: Check signature of chdir.
44593         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
44594         * modules/chdir-long (Depends-on): Add chdir.
44595         * modules/fchdir (Depends-on): Likewise.
44596         * modules/rename (Depends-on): Likewise.
44597         * modules/savewd (Depends-on): Likewise.
44599         rmdir: Support for mingw, MSVC 9.
44600         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
44601         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
44603         getcwd: Tweak for MSVC 9.
44604         * lib/unistd.in.h: Update comments.
44605         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
44607 2011-09-22  Bruno Haible  <bruno@clisp.org>
44609         strerror_r-posix: Avoid a link error on MSVC.
44610         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
44611         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
44613 2011-09-22  Bruno Haible  <bruno@clisp.org>
44615         select: Avoid link errors on MSVC.
44616         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
44617         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
44618         * modules/pselect (Link): Likewise.
44619         * NEWS: Mention the change.
44620         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
44621         test-select-stdin against $(LIB_SELECT).
44622         * modules/pselect-tests (Makefile.am): Link test-pselect against
44623         $(LIB_SELECT).
44625 2011-09-22  Bruno Haible  <bruno@clisp.org>
44627         select: Avoid compilation error on MSVC.
44628         * lib/select.c: Don't include <stdbool.h>.
44630 2011-09-21  Bruno Haible  <bruno@clisp.org>
44632         Consolidate all uses of PATH_MAX in *.m4 files.
44633         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
44634         macros.
44635         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
44636         and gl_PATHMAX_SNIPPET.
44637         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
44638         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
44639         * modules/chdir-long (Files): Add m4/pathmax.m4.
44640         * modules/getcwd (Files): Likewise.
44642 2011-09-21  Bruno Haible  <bruno@clisp.org>
44644         ftruncate: Un-deprecate, concentrate on Win32 support.
44645         * modules/ftruncate (Status, Notice): Remove sections.
44646         (Depends-on): Add largefile.
44647         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
44648         non-mingw platforms.
44649         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
44650         include <io.h>.
44651         * modules/perror-tests (Depends-on): Add ftruncate.
44652         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
44653         'ftruncate' module.
44655 2011-09-21  Bruno Haible  <bruno@clisp.org>
44657         Add dependencies to new dirent related modules.
44658         * modules/opendir (Depends-on): Add closedir.
44659         * modules/getcwd (Depends-on): Add opendir, closedir.
44660         * modules/dirent-safer-tests (Depends-on): Likewise.
44661         * modules/fdopendir-tests (Depends-on): Likewise.
44662         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
44663         * modules/renameat-tests (Depends-on): Likewise.
44665 2011-09-21  Bruno Haible  <bruno@clisp.org>
44667         opendir: Avoid compilation error on mingw.
44668         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
44669         * modules/opendir (Depends-on): Add unistd.
44671 2011-09-21  Bruno Haible  <bruno@clisp.org>
44673         ftruncate tests: Avoid a test failure on mingw.
44674         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
44676 2011-09-21  Bruno Haible  <bruno@clisp.org>
44678         select tests: Avoid test failures on OSF/1 5.1 and mingw.
44679         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
44680         native Windows.
44682 2011-09-21  Bruno Haible  <bruno@clisp.org>
44684         New module 'fdopen'.
44685         * lib/stdio.in.h (fdopen): New declaration.
44686         * lib/fdopen.c: New file.
44687         * m4/fdopen.m4: New file.
44688         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
44689         REPLACE_FDOPEN.
44690         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
44691         REPLACE_FDOPEN.
44692         * modules/fdopen: New file.
44693         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
44694         * tests/test-stdio-c++.cc: Check signature of fdopen.
44695         * doc/posix-functions/fdopen.texi: Mention the new module.
44697 2011-09-21  Bruno Haible  <bruno@clisp.org>
44699         unlockpt tests: Avoid test failure on NetBSD 5.1.
44700         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
44701         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
44703 2011-09-21  Bruno Haible  <bruno@clisp.org>
44705         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
44706         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
44707         * tests/test-getlogin_r.c (main): Likewise.
44709 2011-09-20  Bruno Haible  <bruno@clisp.org>
44711         time tests: Don't require pid_t.
44712         * doc/posix-headers/time.texi: Revert last change.
44713         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
44714         * tests/test-time.c: Comment out the check for pid_t.
44716 2011-09-20  Bruno Haible  <bruno@clisp.org>
44718         fsync tests: Avoid a test failure on mingw.
44719         * tests/test-fsync.c (main): Allow a failure with EIO.
44721 2011-09-20  Bruno Haible  <bruno@clisp.org>
44723         euidaccess: Update comments.
44724         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
44726 2011-09-20  Bruno Haible  <bruno@clisp.org>
44728         Ensure EBADF returns for socket functions on mingw.
44729         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
44730         descriptor is invalid.
44731         * lib/bind.c (rpl_bind): Likewise.
44732         * lib/connect.c (rpl_connect): Likewise.
44733         * lib/getpeername.c (rpl_getpeername): Likewise.
44734         * lib/getsockname.c (rpl_getsockname): Likewise.
44735         * lib/getsockopt.c (rpl_getsockopt): Likewise.
44736         * lib/listen.c (rpl_listen): Likewise.
44737         * lib/recv.c (rpl_recv): Likewise.
44738         * lib/recvfrom.c (rpl_recvfrom): Likewise.
44739         * lib/send.c (rpl_send): Likewise.
44740         * lib/sendto.c (rpl_sendto): Likewise.
44741         * lib/setsockopt.c (rpl_setsockopt): Likewise.
44742         * lib/shutdown.c (rpl_shutdown): Likewise.
44744 2011-09-20  Bruno Haible  <bruno@clisp.org>
44746         select tests: EBADF tests.
44747         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
44748         test_bad_fd): New functions.
44749         (test_function): Invoke also test_bad_fd.
44751 2011-09-20  Bruno Haible  <bruno@clisp.org>
44753         Tests for module 'posix_spawn_file_actions_addopen.
44754         * modules/posix_spawn_file_actions_addopen-tests: New file.
44755         * tests/test-posix_spawn_file_actions_addopen.c: New file.
44757         Tests for module 'posix_spawn_file_actions_adddup2'.
44758         * modules/posix_spawn_file_actions_adddup2-tests: New file.
44759         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
44761         Tests for module 'posix_spawn_file_actions_addclose'.
44762         * modules/posix_spawn_file_actions_addclose-tests: New file.
44763         * tests/test-posix_spawn_file_actions_addclose.c: New file.
44765 2011-09-20  Bruno Haible  <bruno@clisp.org>
44767         Tests for module 'unlockpt'.
44768         * modules/unlockpt-tests: New file.
44769         * tests/test-unlockpt.c: New file.
44770         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
44772         Tests for module 'grantpt'.
44773         * modules/grantpt-tests: New file.
44774         * tests/test-grantpt.c: New file.
44775         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
44777 2011-09-20  Bruno Haible  <bruno@clisp.org>
44779         freopen tests: EBADF tests.
44780         * tests/test-freopen.c: Include errno.h, unistd.h.
44781         (main): Add tests for EBADF, commented out for the moment.
44783         fclose tests: EBADF tests.
44784         * tests/test-fclose.c (main): Add tests for EBADF.
44786         fflush tests: EBADF tests.
44787         * tests/test-fflush.c: Include errno.h, macros.h.
44788         (main): Add tests for EBADF.
44790         ftello tests: EBADF tests.
44791         * tests/test-ftello4.sh: New file.
44792         * tests/test-ftello4.c: New file.
44793         * modules/ftello-tests (Files): Add them.
44794         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
44796         fseeko tests: EBADF tests.
44797         * tests/test-fseeko4.sh: New file.
44798         * tests/test-fseeko4.c: New file.
44799         * modules/fseeko-tests (Files): Add them.
44800         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
44802         Tests for function fputc().
44803         * modules/fputc-tests: New file.
44804         * tests/test-fputc.c: New file.
44805         * modules/stdio-tests (Depends-on): Add fputc-tests.
44807         Tests for function fgetc().
44808         * modules/fgetc-tests: New file.
44809         * tests/test-fgetc.c: New file.
44810         * modules/stdio-tests (Depends-on): Add fgetc-tests.
44812         Tests for function fdopen().
44813         * modules/fdopen-tests: New file.
44814         * tests/test-fdopen.c: New file.
44815         * modules/stdio-tests (Depends-on): Add fdopen-tests.
44817         Tests for module 'vdprintf'.
44818         * modules/vdprintf-tests: New file.
44819         * tests/test-vdprintf.c: New file.
44821         Tests for module 'dprintf'.
44822         * modules/dprintf-tests: New file.
44823         * tests/test-dprintf.c: New file.
44825 2011-09-20  Bruno Haible  <bruno@clisp.org>
44827         Tests for module 'ioctl'.
44828         * modules/ioctl-tests: New file.
44829         * tests/test-ioctl.c: New file.
44831 2011-09-20  Bruno Haible  <bruno@clisp.org>
44833         fcntl tests: EBADF tests.
44834         * tests/test-fcntl.c (main): Add more tests for EBADF.
44836 2011-09-20  Bruno Haible  <bruno@clisp.org>
44838         utimensat tests: EBADF tests.
44839         * tests/test-utimensat.c (main): Add tests for EBADF.
44841         renameat tests: EBADF tests.
44842         * tests/test-renameat.c (main): Add tests for EBADF.
44844         mkfifoat tests: EBADF tests.
44845         * tests/test-mkfifoat.c (main): Add tests for EBADF.
44847         readlinkat tests: EBADF tests.
44848         * tests/test-readlinkat.c (main): Add tests for EBADF.
44850         symlinkat tests: EBADF tests.
44851         * tests/test-symlinkat.c (main): Add tests for EBADF.
44853         linkat tests: EBADF tests.
44854         * tests/test-linkat.c (main): Add tests for EBADF.
44856         Tests for module 'faccessat'.
44857         * modules/faccessat-tests: New file.
44858         * tests/test-faccessat.c: New file.
44860         fdopendir tests: EBADF tests.
44861         * tests/test-fdopendir.c (main): Add more tests for EBADF.
44863         openat tests: EBADF tests.
44864         * tests/test-fchownat.c (main): Add tests for EBADF.
44865         * tests/test-fstatat.c (main): Likewise.
44866         * tests/test-mkdirat.c (main): Likewise.
44867         * tests/test-openat.c (main): Likewise.
44868         * tests/test-unlinkat.c (main): Likewise.
44869         * tests/test-fchmodat.c: New file.
44870         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
44871         (Makefile.am): Also run 'test-fchmodat'.
44873 2011-09-20  Bruno Haible  <bruno@clisp.org>
44875         utimens, futimens, fdutimensat tests: EBADF tests.
44876         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
44878         Tests for function fstat().
44879         * modules/fstat-tests: New file.
44880         * tests/test-fstat.c: New file.
44881         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
44883 2011-09-20  Bruno Haible  <bruno@clisp.org>
44885         test-ttyname_r tests: EBADF tests.
44886         * tests/test-ttyname_r.c (main): Add tests for EBADF.
44888         Tests for module 'isatty'.
44889         * modules/isatty-tests: New file.
44890         * tests/test-isatty.c: New file.
44892         Tests for module 'write'.
44893         * modules/write-tests: New file.
44894         * tests/test-write.c: New file.
44896         Tests for module 'read'.
44897         * modules/read-tests: New file.
44898         * tests/test-read.c: New file.
44900         pwrite tests: EBADF tests.
44901         * tests/test-pwrite.c (main): Add tests for EBADF.
44903         pread tests: EBADF tests.
44904         * tests/test-pread.c (main): Add tests for EBADF.
44906         lseek tests: EBADF tests.
44907         * tests/test-lseek.c (main): Add more tests for EBADF.
44909         Tests for module 'ftruncate'.
44910         * modules/ftruncate-tests: New file.
44911         * tests/test-ftruncate.sh: New file.
44912         * tests/test-ftruncate.c: New file.
44914         fsync tests: EBADF tests.
44915         * tests/test-fsync.c (main): Add more tests for EBADF.
44917         fdatasync tests: EBADF tests.
44918         * tests/test-fdatasync.c (main): Add more tests for EBADF.
44920         Tests for module 'fchown'.
44921         * modules/fchown-tests: New file.
44922         * tests/test-fchown.c: New file.
44924         Tests for module 'fchmod'.
44925         * modules/fchmod-tests: New file.
44926         * tests/test-fchmod.c: New file.
44928         fchdir tests: EBADF tests.
44929         * tests/test-fchdir.c (main): Add more tests for EBADF.
44931         dup2 tests: EBADF tests.
44932         * tests/test-dup2.c (main): Add more tests for EBADF.
44934         Tests for module 'dup'.
44935         * modules/dup-tests: New file.
44936         * tests/test-dup.c: New file.
44938         Tests for module 'close'.
44939         * modules/close-tests: New file.
44940         * tests/test-close.c: New file.
44942 2011-09-20  Bruno Haible  <bruno@clisp.org>
44944         Tests for module 'shutdown'.
44945         * modules/shutdown-tests: New file.
44946         * tests/test-shutdown.c: New file.
44948         Tests for module 'setsockopt'.
44949         * modules/setsockopt-tests: New file.
44950         * tests/test-setsockopt.c: New file.
44952         Tests for module 'sendto'.
44953         * modules/sendto-tests: New file.
44954         * tests/test-sendto.c: New file.
44956         Tests for module 'send'.
44957         * modules/send-tests: New file.
44958         * tests/test-send.c: New file.
44960         Tests for module 'recvfrom'.
44961         * modules/recvfrom-tests: New file.
44962         * tests/test-recvfrom.c: New file.
44964         Tests for module 'recv'.
44965         * modules/recv-tests: New file.
44966         * tests/test-recv.c: New file.
44968         Tests for module 'listen'.
44969         * modules/listen-tests: New file.
44970         * tests/test-listen.c: New file.
44972         Tests for module 'getsockopt'.
44973         * modules/getsockopt-tests: New file.
44974         * tests/test-getsockopt.c: New file.
44976         Tests for module 'getsockname'.
44977         * modules/getsockname-tests: New file.
44978         * tests/test-getsockname.c: New file.
44980         Tests for module 'getpeername'.
44981         * modules/getpeername-tests: New file.
44982         * tests/test-getpeername.c: New file.
44984         Tests for module 'connect'.
44985         * modules/connect-tests: New file.
44986         * tests/test-connect.c: New file.
44988         Tests for module 'bind'.
44989         * modules/bind-tests: New file.
44990         * tests/test-bind.c: New file.
44992         accept4 tests: Fix for native Windows.
44993         * tests/test-accept4.c: Include sockets.h.
44994         (main): Invoke gl_sockets_startup.
44995         * modules/accept4-tests (Depends-on): Add sockets.
44997         accept tests: Fix for native Windows.
44998         * tests/test-accept.c: Include sockets.h.
44999         (main): Invoke gl_sockets_startup.
45000         * modules/accept-tests (Depends-on): Add sockets.
45002 2011-09-19  Bruno Haible  <bruno@clisp.org>
45004         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
45005         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
45006         do...while(0).
45007         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
45008         Suggested by Paul Eggert.
45010 2011-09-19  Bruno Haible  <bruno@clisp.org>
45012         sched: Ensure pid_t is defined.
45013         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
45014         not define pid_t.
45015         * lib/sched.in.h: Include <sys/types.h>.
45016         * doc/posix-headers/sched.texi: Mention the pid_t problem.
45017         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45019 2011-09-19  Bruno Haible  <bruno@clisp.org>
45021         msvc-inval: Ensure the entire expansion is a single statement.
45022         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
45023         of braces.
45025 2011-09-19  Jim Meyering  <meyering@redhat.com>
45027         tests: use printf, not echo in init.sh's warn_ function
45028         * tests/init.sh (warn_): Use printf, not echo.  The latter would
45029         misbehave when given strings containing a backslash or starting
45030         with e.g., -n.  James Youngman suggested setting IFS.
45032 2011-09-19  Eric Blake  <eblake@redhat.com>
45034         futimens: enhance test
45035         * tests/test-futimens.h (test_futimens): Also check for EBADF on
45036         closed non-negative fd.
45038         date: accept 'hence' as opposite of 'ago'
45039         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
45040         * tests/test-parse-datetime.c (main): Enhance test.
45041         Suggested by Jesse Wilson.
45043 2011-09-19  Jim Meyering  <meyering@redhat.com>
45045         getcwd: don't fail in a deep directory on a system without openat
45046         Before this change, getcwd would fail when called from a directory
45047         of depth PATH_MAX / 3 or greater.  That was due to the fact that
45048         the non-openat implementation used "..", "../..", "../../..", etc.
45049         to access ancestor directories.  With too many, that string would
45050         be longer than PATH_MAX.
45051         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
45052         using gnulib's openat replacement.
45053         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
45054         we're using the replacement function.
45056 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
45058         maint.mk: avoid warnings from perl about missing files
45059         * top/maint.mk (def_sym_regex): Ignore files listed in
45060         $(gl_other_headers_) that do not exist, say because a project
45061         does not use a corresponding module.
45063 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
45065         stat: use pathmax.h only if needed
45066         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
45067         This is better for Emacs, which does not have a mingw port and
45068         therefore can avoid the pathmax module.
45070         utimens: remove dependency on dup2
45071         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
45072         to work around the Linux kernel bug.
45073         * modules/utimens (Depends-on): Remove dup2.
45075 2011-09-18  Bruno Haible  <bruno@clisp.org>
45077         inet_ntop, inet_pton: Look for it also in libresolv.
45078         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
45079         libnsl, search for it in libresolv.
45080         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
45081         Needed on Solaris 7.
45083 2011-09-18  Bruno Haible  <bruno@clisp.org>
45085         accept, accept4 tests: Avoid link error on Solaris.
45086         * modules/accept-tests (Makefile.am): Link test-accept against
45087         $(LIBSOCKET).
45088         * modules/accept4-tests (Makefile.am): Link test-accept4 against
45089         $(LIBSOCKET).
45091         accept4: Avoid link error on Solaris.
45092         * modules/accept4 (Link): New section.
45094         socket functions: Avoid link errors on Solaris.
45095         * modules/accept (Depends-on): Add socketlib.
45096         (Link): New section.
45097         * modules/bind (Depends-on): Add socketlib.
45098         (Link): New section.
45099         * modules/connect (Depends-on): Add socketlib.
45100         (Link): New section.
45101         * modules/getpeername (Depends-on): Add socketlib.
45102         (Link): New section.
45103         * modules/getsockname (Depends-on): Add socketlib.
45104         (Link): New section.
45105         * modules/getsockopt (Depends-on): Add socketlib.
45106         (Link): New section.
45107         * modules/listen (Depends-on): Add socketlib.
45108         (Link): New section.
45109         * modules/recv (Depends-on): Add socketlib.
45110         (Link): New section.
45111         * modules/recvfrom (Depends-on): Add socketlib.
45112         (Link): New section.
45113         * modules/send (Depends-on): Add socketlib.
45114         (Link): New section.
45115         * modules/sendto (Depends-on): Add socketlib.
45116         (Link): New section.
45117         * modules/setsockopt (Depends-on): Add socketlib.
45118         (Link): New section.
45119         * modules/shutdown (Depends-on): Add socketlib.
45120         (Link): New section.
45121         * modules/socket (Depends-on): Add socketlib.
45122         (Link): New section.
45124 2011-09-18  Bruno Haible  <bruno@clisp.org>
45126         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
45127         * tests/test-ptsname.c (main): Terminate the test if it takes longer
45128         than 5 seconds.
45129         * modules/ptsname-tests (configure.ac): Test for alarm.
45131 2011-09-18  Bruno Haible  <bruno@clisp.org>
45133         posix_spawn_file_actions_add*: Fix module dependencies.
45134         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
45135         posix_spawn_file_actions_init.
45136         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
45137         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
45139 2011-09-18  Bruno Haible  <bruno@clisp.org>
45141         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
45142         * tests/test-rename.h (test_rename): Allow error code EEXIST.
45143         * tests/test-renameat.c (main): Likewise.
45145 2011-09-18  Bruno Haible  <bruno@clisp.org>
45147         Tests for module 'accept4'.
45148         * modules/accept4-tests: New file.
45149         * tests/test-accept4.c: New file.
45151 2011-09-18  Bruno Haible  <bruno@clisp.org>
45153         Tests for module 'accept'.
45154         * modules/accept-tests: New file.
45155         * tests/test-accept.c: New file.
45157 2011-09-18  Bruno Haible  <bruno@clisp.org>
45159         dup2: Support for MSVC.
45160         * lib/dup2.c: Include msvc-inval.h.
45161         (rpl_dup2): Handle invalid parameter notifications during dup2 and
45162         _get_osfhandle calls.
45163         * modules/dup2 (Depends-on): Add msvc-inval.
45164         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
45166         New module 'msvc-inval'.
45167         * lib/msvc-inval.h: New file.
45168         * lib/msvc-inval.c: New file.
45169         * m4/msvc-inval.m4: New file.
45170         * modules/msvc-inval: New file.
45172 2011-09-17  Bruno Haible  <bruno@clisp.org>
45174         Tests for module 'pclose'.
45175         * modules/pclose-tests: New file.
45177         New module 'pclose'.
45178         * lib/stdio.in.h (pclose): New declaration.
45179         * lib/pclose.c: New file.
45180         * m4/pclose.m4: New file.
45181         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
45182         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
45183         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
45184         * modules/pclose: New file.
45185         * modules/popen-tests (Depends-on): Add pclose.
45186         * modules/popen-safer-tests (Depends-on): Likewise.
45187         * doc/posix-functions/pclose.texi: Mention the new module.
45189 2011-09-17  Bruno Haible  <bruno@clisp.org>
45191         popen: Support for MSVC.
45192         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
45193         * lib/popen.c (popen): Provide alternate definition for native Windows.
45194         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
45195         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
45196         * modules/popen (Depends-on, configure.ac): Update condition.
45197         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
45198         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
45199         fixed.
45201 2011-09-17  Bruno Haible  <bruno@clisp.org>
45203         isnanl, isnand, isnanf: Work around MSVC bug.
45204         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
45206 2011-09-17  Bruno Haible  <bruno@clisp.org>
45208         sys_socket tests: Fix recent mistake.
45209         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
45211 2011-09-17  Bruno Haible  <bruno@clisp.org>
45213         putenv: Support for MSVC.
45214         * modules/putenv (Depends-on): Add environ.
45215         * lib/putenv.c (environ): Disable declaration.
45216         * lib/unistd.in.h: Update comment.
45218 2011-09-17  Bruno Haible  <bruno@clisp.org>
45220         math: Avoid macro redefinition warnings on MSVC.
45221         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
45222         Undefine before redefining.
45224 2011-09-17  Bruno Haible  <bruno@clisp.org>
45226         doc: Mention functions which are declared as macros.
45227         * doc/posix-functions/*[fl].texi: Mention that some functions are
45228         defined as macros with arguments only.
45230 2011-09-17  Bruno Haible  <bruno@clisp.org>
45232         Add dependencies to new dirent related modules.
45233         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
45234         * modules/fts (Depends-on): Likewise.
45235         * modules/glob (Depends-on): Likewise.
45236         * modules/savedir (Depends-on): Likewise.
45237         * modules/scandir (Depends-on): Likewise.
45238         * modules/dirent-safer (Depends-on): Add opendir, closedir.
45239         * modules/fdopendir (Depends-on): Add opendir.
45241 2011-09-17  Bruno Haible  <bruno@clisp.org>
45243         inet_pton: Support for MSVC on Windows Vista or newer.
45244         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
45245         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
45246         HAVE_DECL_INET_PTON is defined.
45247         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
45248         On platforms with <winsock2.h>, test whether inet_pton is declared in
45249         <ws2tcpip.h>. If so, arrange to replace it.
45250         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
45251         REPLACE_INET_PTON.
45252         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
45253         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
45254         (Depends-on, configure.ac): Update condition.
45255         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
45257 2011-09-17  Bruno Haible  <bruno@clisp.org>
45259         inet_ntop: Support for MSVC on Windows Vista or newer.
45260         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
45261         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
45262         HAVE_DECL_INET_NTOP is defined.
45263         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
45264         On platforms with <winsock2.h>, test whether inet_ntop is declared in
45265         <ws2tcpip.h>. If so, arrange to replace it.
45266         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
45267         REPLACE_INET_NTOP.
45268         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
45269         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
45270         (Depends-on, configure.ac): Update condition.
45271         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
45273 2011-09-16  Eric Blake  <eblake@redhat.com>
45275         test-fsync: yet another enhancement
45276         * tests/test-fsync.c (main): Also test behavior on read-only text
45277         file.
45279 2011-09-16  Bruno Haible  <bruno@clisp.org>
45281         Enhance fsync, fdatasync tests.
45282         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
45283         * tests/test-fdatasync.c (main): Likewise.
45285 2011-09-16  Bruno Haible  <bruno@clisp.org>
45287         Support for MSVC compiler: Ensure mode_t gets defined.
45288         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
45289         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
45290         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
45291         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
45292         * tests/test-fcntl-h.c: Check that mode_t is defined.
45293         * tests/test-sys_stat.c: Likewise.
45294         * tests/test-sys_types.c: Likewise.
45295         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
45296         * doc/posix-headers/sys_stat.texi: Likewise.
45297         * doc/posix-headers/sys_types.texi: Likewise.
45299 2011-09-16  Bruno Haible  <bruno@clisp.org>
45301         sys_stat: Support for MSVC.
45302         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
45303         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
45304         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
45305         MSVC.
45307 2011-09-16  Bruno Haible  <bruno@clisp.org>
45309         Support for MSVC compiler: Ensure off_t gets defined.
45310         * lib/unistd.in.h: Include <sys/types.h>.
45311         * tests/test-fcntl-h.c: Check that off_t is defined.
45312         * tests/test-sys_stat.c: Likewise.
45313         * tests/test-sys_types.c: Likewise.
45315 2011-09-16  Eric Blake  <eblake@redhat.com>
45317         fdatasync: port to Solaris
45318         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
45319         * modules/fdatasync (Link): Document it.
45320         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
45322         fdatasync: port to MacOS X 10.7
45323         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
45324         declared.
45325         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
45326         * modules/unistd (Makefile.am): Substitute it.
45327         * lib/unistd.in.h (fdatasync): Declare on MacOS.
45328         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
45330         fdatasync: minor improvements
45331         * modules/fdatasync (Depends-on): Add condition for fsync.
45332         * lib/fdatasync.c (fdatasync): Add comment.
45333         * tests/test-unistd-c++.cc: Test fdatasync.
45335         unistd: update refs to newer POSIX
45336         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
45337         Suggested by Bruno Haible.
45339         fdatasync: new module
45340         * modules/fsync (Description): Document difference to fdatasync.
45341         * modules/fdatasync: New module.
45342         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
45343         * lib/fdatasync.c (fdatasync): Likewise.
45344         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
45345         defaults.
45346         * modules/unistd (Makefile.am): Set witnesses.
45347         * lib/unistd.in.h (fdatasync): Declare.
45348         * MODULES.html.sh: Document it.
45349         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
45350         * modules/fdatasync-tests: New test.
45351         * tests/test-fdatasync.c: Likewise.
45353 2011-09-16  Eric Blake  <eblake@redhat.com>
45355         test-fsync: enhance tests
45356         * modules/fsync-tests (Depends-on): Add errno, for mingw.
45357         * tests/test-fsync.c (main): Enhance test.
45359 2011-09-15  Bruno Haible  <bruno@clisp.org>
45361         Support for MSVC compiler: Ensure ssize_t gets defined.
45362         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
45363         * doc/posix-headers/stdio.texi: Likewise.
45364         * modules/stdio (Depends-on): Add ssize_t.
45365         * modules/sys_socket (Depends-on): Likewise.
45366         * modules/sys_types (Depends-on): Likewise.
45367         * modules/sys_uio (Depends-on): Likewise.
45368         * modules/unistd (Depends-on): Likewise.
45369         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
45370         * tests/test-sys_types.c: Check that ssize_t is defined.
45372 2011-09-14  Bruno Haible  <bruno@clisp.org>
45374         Avoid using #, the m4 comment starter character, near brackets.
45375         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
45376         delimiter character in sed expressions.
45377         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
45378         Suggested by Eric Blake.
45380         Properly quote AC_CHECK_DECLS' 4th argument.
45381         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
45382         argument.
45383         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
45384         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
45385         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45386         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
45387         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
45388         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
45389         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
45390         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
45391         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
45392         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45393         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
45394         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
45395         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
45396         * m4/isinf.m4 (gl_ISINF): Likewise.
45397         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
45398         * m4/readutmp.m4 (gl_READUTMP): Likewise.
45399         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
45400         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
45401         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
45402         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
45403         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
45404         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
45405         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
45406         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
45407         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
45408         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
45409         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
45410         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
45411         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45412         Reported by Eric Blake.
45414         Properly quote AC_CHECK_DECL's 4th argument.
45415         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
45416         argument.
45417         * m4/argp.m4 (gl_ARGP): Likewise.
45418         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
45419         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
45420         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
45421         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
45422         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
45423         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
45424         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
45425         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
45426         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
45427         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
45428         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
45429         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
45430         Reported by Eric Blake.
45432 2011-09-14  Eric Blake  <eblake@redhat.com>
45434         opendir: avoid compile warning
45435         * lib/opendir.c (includes): Always include errno.h.
45436         Reported by Tatsuro MATSUOKA.
45438 2011-09-14  Jim Meyering  <meyering@redhat.com>
45440         maint.mk: sc_tight_scope: propagate failure from sub-make
45441         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
45442         Reported by Martin von Gagern.
45444 2011-09-13  Bruno Haible  <bruno@clisp.org>
45446         tempname: Support for MSVC.
45447         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
45448         MSVC.
45449         * modules/tempname (Depends-on): Add fcntl-h.
45451 2011-09-13  Bruno Haible  <bruno@clisp.org>
45453         sys_time: Support for MSVC.
45454         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
45455         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
45456         include <winsock2.h>.
45457         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
45458         function declarations that collide with POSIX.
45459         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
45460         (Makefile.am): Substitute HAVE_WINSOCK2_H.
45462 2011-09-13  Bruno Haible  <bruno@clisp.org>
45464         stat: Support for MSVC.
45465         * lib/stat.c: Include pathmax.h.
45466         * modules/stat (Depends-on): Add pathmax.
45468         pathmax: Support for native Windows.
45469         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
45471 2011-09-12  Bruno Haible  <bruno@clisp.org>
45473         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
45474         * lib/dirent.in.h (struct dirent): New type.
45475         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
45476         DT_WHT): New macros.
45477         (DIR): New type.
45478         (opendir, closedir): Declare only if the module 'opendir' is enabled.
45479         (readdir, rewinddir): New declarations.
45480         * lib/dirent-private.h: New file.
45481         * lib/opendir.c: New file.
45482         * lib/readdir.c: New file.
45483         * lib/rewinddir.c: New file.
45484         * lib/closedir.c: New file.
45485         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
45486         * m4/opendir.m4: New file.
45487         * m4/readdir.m4: New file.
45488         * m4/rewinddir.m4: New file.
45489         * m4/closedir.m4: New file.
45490         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
45491         REPLACE_CLOSEDIR here.
45492         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
45493         readdir, rewinddir are declared.
45494         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
45495         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
45496         HAVE_REWINDDIR, HAVE_CLOSEDIR.
45497         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
45498         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
45499         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
45500         * modules/opendir: New file.
45501         * modules/readdir: New file.
45502         * modules/rewinddir: New file.
45503         * modules/closedir: New file.
45504         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
45505         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
45506         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
45507         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
45508         * NEWS: Mention the 'fchdir' change.
45510 2011-09-11  Bruno Haible  <bruno@clisp.org>
45512         asm-underscore.m4: Support for MSVC.
45513         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
45514         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
45516 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
45518         Doc about crypt functions.
45519         * doc/posix-functions/crypt.texi: Expand range of glibc versions
45520         needing for _GNU_SOURCE to get crypt.
45521         * doc/posix-functions/encrypt.texi: Likewise.
45522         * doc/posix-functions/setkey.texi: Likewise.
45524 2011-09-11  Bruno Haible  <bruno@clisp.org>
45526         doc: Update regarding MSVC 9.
45527         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
45528         tested".
45529         * doc/posix-functions/*.texi: Update with info about MSVC 9.
45530         * doc/posix-headers/*.texi: Likewise.
45531         * doc/pastposix-functions/*.texi: Likewise.
45532         * doc/glibc-functions/*.texi: Likewise.
45533         * doc/glibc-headers/*.texi: Likewise.
45535 2011-09-11  Bruno Haible  <bruno@clisp.org>
45537         unistd et al.: Don't assume <unistd.h> exists.
45538         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
45539         does not exist.
45540         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
45541         exist. But include <stdlib.h>.
45542         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
45543         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
45544         symlink() does not exist.
45545         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
45546         include <io.h> instead.
45547         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
45548         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
45549         include <direct.h> instead.
45550         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
45551         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
45552         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
45553         <io.h> instead.
45554         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
45555         correctly if the system does not have hard links.
45556         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
45557         <direct.h> instead.
45558         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
45559         it when looking for function declarations.
45560         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
45561         <direct.h> and <io.h> instead.
45562         * doc/posix-headers/unistd.texi: More details about MSVC problem.
45564 2011-09-11  Bruno Haible  <bruno@clisp.org>
45566         strcase: Support for MSVC.
45567         * modules/strcase (Status, Notice): Remove obsoletion mark.
45568         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
45569         * doc/posix-functions/strncasecmp.texi: Likewise.
45571         strings: Don't assume <strings.h> exists.
45572         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
45573         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
45574         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
45575         * doc/posix-headers/strings.texi: Mention the MSVC problem.
45577 2011-09-11  Bruno Haible  <bruno@clisp.org>
45579         dirent: Don't assume <dirent.h> exists.
45580         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
45581         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
45582         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
45583         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
45585 2011-09-11  Bruno Haible  <bruno@clisp.org>
45587         Fix wint_t on MSVC.
45588         * lib/wchar.in.h (wint_t): On MSVC, override it.
45589         * lib/wctype.in.h (wint_t): Likewise.
45590         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
45591         MSVC.
45592         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
45593         * doc/posix-headers/wctype.texi: Likewise.
45595 2011-09-11  Bruno Haible  <bruno@clisp.org>
45597         sys_types: Fix typo.
45598         * lib/sys_types.in.h: Fix typo in comment.
45599         Reported by Paul Eggert.
45601         Support for MSVC compiler: Ensure size_t gets defined.
45602         * modules/strings (Depends-on): Add 'sys_types'.
45603         * modules/sys_uio (Depends-on): Likewise.
45604         * lib/sys_uio.in.h: Update comment.
45606         C++ tests for module 'sys_types'.
45607         * modules/sys_types-c++-tests: New file.
45608         * tests/test-sys_types-c++.cc: New file.
45610         Tests for module 'sys_types'.
45611         * modules/sys_types-tests: New file.
45612         * tests/test-sys_types.c: New file.
45614         New module 'sys_types'.
45615         * lib/sys_types.in.h: New file.
45616         * m4/sys_types_h.m4: New file.
45617         * modules/sys_types: New file.
45618         * doc/posix-headers/sys_types.texi: Mention the new module and the
45619         size_t problem on MSVC 9.
45621 2011-09-11  Bruno Haible  <bruno@clisp.org>
45623         Support for MSVC compiler: Avoid division by a literal 0.
45624         * lib/math.in.h (NAN): Define through a function call also on MSVC.
45625         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
45626         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
45627         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
45628         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
45629         * tests/infinity.h: New file.
45630         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
45631         on MSVC.
45632         * tests/test-ceilf1.c: Include infinity.h.
45633         (main): Use Infinityf.
45634         * tests/test-ceil1.c: Include infinity.h.
45635         (main): Use Infinityd.
45636         * tests/test-ceill.c: Include infinity.h.
45637         (main): Use Infinityl.
45638         * tests/test-dprintf-posix.c: Include infinity.h.
45639         (test_function): Use Infinityd.
45640         * tests/test-floorf1.c: Include infinity.h.
45641         (main): Use Infinityf.
45642         * tests/test-floor1.c: Include infinity.h.
45643         (main): Use Infinityd.
45644         * tests/test-floorl.c: Include infinity.h.
45645         (main): Use Infinityl.
45646         * tests/test-fprintf-posix.c: Include infinity.h.
45647         (test_function): Use Infinityd.
45648         * tests/test-frexp.c: Include infinity.h.
45649         (main): Use Infinityd.
45650         * tests/test-frexpl.c: Include infinity.h.
45651         (main): Use Infinityl.
45652         * tests/test-isfinite.c: Include infinity.h.
45653         (test_isfinitef): Use Infinityf.
45654         (test_isfinited): Use Infinityd.
45655         (test_isfinitel): Use Infinityl.
45656         * tests/test-isinf.c: Include infinity.h.
45657         (test_isinff): Use Infinityf.
45658         (test_isinfd): Use Infinityd.
45659         (test_isinfl): Use Infinityl.
45660         * tests/test-isnan.c: Include infinity.h.
45661         (test_float): Use Infinityf.
45662         (test_double): Use Infinityd.
45663         (test_long_double): Use Infinityl.
45664         * tests/test-isnanf.h: Include infinity.h.
45665         (main): Use Infinityf.
45666         * tests/test-isnand.h: Include infinity.h.
45667         (main): Use Infinityd.
45668         * tests/test-isnanl.h: Include infinity.h.
45669         (main): Use Infinityl.
45670         * tests/test-ldexpl.c: Include infinity.h.
45671         (main): Use Infinityl.
45672         * tests/test-printf-posix.h: Include infinity.h.
45673         (test_function): Use Infinityd.
45674         * tests/test-roundf1.c: Include infinity.h.
45675         (main): Use Infinityf.
45676         * tests/test-round1.c: Include infinity.h.
45677         (main): Use Infinityd.
45678         * tests/test-roundl.c: Include infinity.h.
45679         (main): Use Infinityl.
45680         * tests/test-signbit.c: Include infinity.h.
45681         (test_signbitf): Use Infinityf.
45682         (test_signbitd): Use Infinityd.
45683         (test_signbitl): Use Infinityl.
45684         * tests/test-snprintf-posix.h: Include infinity.h.
45685         (test_function): Use Infinityd, Infinityl.
45686         * tests/test-sprintf-posix.h: Include infinity.h.
45687         (test_function): Use Infinityd, Infinityl.
45688         * tests/test-truncf1.c: Include infinity.h.
45689         (main): Use Infinityf.
45690         * tests/test-trunc1.c: Include infinity.h.
45691         (main): Use Infinityd.
45692         * tests/test-truncl.c: Include infinity.h.
45693         (main): Use Infinityl.
45694         * tests/test-vasnprintf-posix.c: Include infinity.h.
45695         (test_function): Use Infinityd, Infinityl.
45696         * tests/test-vasprintf-posix.c: Include infinity.h.
45697         (test_function): Use Infinityd, Infinityl.
45698         * modules/ceilf-tests (Files): Add tests/infinity.h.
45699         * modules/ceil-tests (Files): Likewise.
45700         * modules/ceill-tests (Files): Likewise.
45701         * modules/dprintf-posix-tests (Files): Likewise.
45702         * modules/floorf-tests (Files): Likewise.
45703         * modules/floor-tests (Files): Likewise.
45704         * modules/floorl-tests (Files): Likewise.
45705         * modules/fprintf-posix-tests (Files): Likewise.
45706         * modules/frexp-tests (Files): Likewise.
45707         * modules/frexp-nolibm-tests (Files): Likewise.
45708         * modules/frexpl-tests (Files): Likewise.
45709         * modules/frexpl-nolibm-tests (Files): Likewise.
45710         * modules/isfinite-tests (Files): Likewise.
45711         * modules/isinf-tests (Files): Likewise.
45712         * modules/isnan-tests (Files): Likewise.
45713         * modules/isnanf-tests (Files): Likewise.
45714         * modules/isnanf-nolibm-tests (Files): Likewise.
45715         * modules/isnand-tests (Files): Likewise.
45716         * modules/isnand-nolibm-tests (Files): Likewise.
45717         * modules/isnanl-tests (Files): Likewise.
45718         * modules/isnanl-nolibm-tests (Files): Likewise.
45719         * modules/ldexpl-tests (Files): Likewise.
45720         * modules/printf-posix-tests (Files): Likewise.
45721         * modules/roundf-tests (Files): Likewise.
45722         * modules/round-tests (Files): Likewise.
45723         * modules/roundl-tests (Files): Likewise.
45724         * modules/signbit-tests (Files): Likewise.
45725         * modules/snprintf-posix-tests (Files): Likewise.
45726         * modules/sprintf-posix-tests (Files): Likewise.
45727         * modules/truncf-tests (Files): Likewise.
45728         * modules/trunc-tests (Files): Likewise.
45729         * modules/truncl-tests (Files): Likewise.
45730         * modules/vasnprintf-posix-tests (Files): Likewise.
45731         * modules/vasprintf-posix-tests (Files): Likewise.
45732         * modules/vdprintf-posix-tests (Files): Likewise.
45733         * modules/vfprintf-posix-tests (Files): Likewise.
45734         * modules/vprintf-posix-tests (Files): Likewise.
45735         * modules/vsnprintf-posix-tests (Files): Likewise.
45736         * modules/vsprintf-posix-tests (Files): Likewise.
45737         * modules/xprintf-posix-tests (Files): Likewise.
45739 2011-09-11  Bruno Haible  <bruno@clisp.org>
45741         Ensure pid_t gets defined.
45742         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
45743         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
45744         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
45745         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
45746         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
45747         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
45748         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
45749         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
45750         * tests/test-fcntl-h.c: Check that pid_t is defined.
45751         * tests/test-sched.c: Likewise.
45752         * tests/test-termios.c: Likewise.
45753         * tests/test-time.c: Likewise.
45754         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
45755         * doc/posix-headers/signal.texi: Likewise.
45756         * doc/posix-headers/sys_types.texi: Likewise.
45757         * doc/posix-headers/time.texi: Likewise.
45759 2011-09-11  Bruno Haible  <bruno@clisp.org>
45761         acl: Fix compilation on Solaris 10 (older version).
45762         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
45763         of ACE_EVERYONE.
45764         * lib/set-mode-acl.c (qset_acl): Likewise.
45765         Reported by Christian Jullien <eligis@orange.fr>.
45767 2011-09-10  Bruno Haible  <bruno@clisp.org>
45769         iconv, unsetenv: Add support for MSVC compiler.
45770         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
45771         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
45773 2011-09-10  Bruno Haible  <bruno@clisp.org>
45775         *printf: Add support for MSVC compiler.
45776         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
45777         handles the exception caused by the %n directive. When cross-compiling,
45778         guess no on native Windows.
45779         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
45780         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
45781         emulate it through vsnprintf.
45782         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
45783         * doc/posix-functions/dprintf.texi: Update documentation regarding
45784         MSVC 9.
45785         * doc/posix-functions/fprintf.texi: Likewise.
45786         * doc/posix-functions/printf.texi: Likewise.
45787         * doc/posix-functions/snprintf.texi: Likewise.
45788         * doc/posix-functions/sprintf.texi: Likewise.
45789         * doc/posix-functions/swprintf.texi: Likewise.
45790         * doc/posix-functions/vdprintf.texi: Likewise.
45791         * doc/posix-functions/vfprintf.texi: Likewise.
45792         * doc/posix-functions/vprintf.texi: Likewise.
45793         * doc/posix-functions/vsnprintf.texi: Likewise.
45794         * doc/posix-functions/vsprintf.texi: Likewise.
45795         * doc/glibc-functions/asprintf.texi: Likewise.
45796         * doc/glibc-functions/obstack_printf.texi: Likewise.
45797         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
45798         * doc/glibc-functions/vasprintf.texi: Likewise.
45800 2011-09-10  Bruno Haible  <bruno@clisp.org>
45802         nocrash: Add support for native Windows.
45803         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
45805 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
45806             Bruno Haible  <bruno@clisp.org>
45808         absolute-header, include-next: Add support for MSVC compiler.
45809         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
45810         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
45811         directory separator in #line directives.
45812         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
45813         recognize also backslash as directory separator in #line directives.
45815 2011-09-08  Jim Meyering  <meyering@redhat.com>
45817         maint.mk: mark the post-release commit log with "maint: " prefix
45818         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
45819         one-line commit-log summary.
45821 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
45822             Bruno Haible  <bruno@clisp.org>
45824         Doc about crypt functions.
45825         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
45826         systems.
45827         * doc/posix-functions/encrypt.texi: Likewise.
45828         * doc/posix-functions/setkey.texi: Likewise.
45830 2011-09-08  Simon Josefsson  <simon@josefsson.org>
45832         * lib/gc.h: Fix copyright header.
45834 2011-09-07  Bruno Haible  <bruno@clisp.org>
45836         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
45837         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
45838         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
45840 2011-09-07  Bruno Haible  <bruno@clisp.org>
45842         openat: Work around compilation error with OSF/1 5.1 DTK cc.
45843         * lib/fopen.c: Use different syntax for include of <stdio.h>.
45844         * lib/freopen.c: Likewise.
45845         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
45846         * lib/lstat.c: Likewise.
45847         * lib/stat.c: Likewise.
45848         * lib/open.c: Use different syntax for include of <fcntl.h>.
45849         * lib/openat.c: Include fcntl.h again, explicitly.
45851 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
45853         parse-datetime: document the newly accepted format
45854         * doc/parse-datetime.texi (Combined date and time of day items):
45855         New section.
45857 2011-09-06  Bruno Haible  <bruno@clisp.org>
45859         acl: Fix a test failure on newer Solaris 10 with ZFS.
45860         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
45861         ENOSYS as no ACL.
45862         Reported by Jim Meyering.
45864 2011-09-06  Bruno Haible  <bruno@clisp.org>
45866         acl: Update for AIX >= 5.3 with NFS.
45867         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
45868         ENOSYS as no ACL.
45870         acl: Fix a test failure on AIX >= 5.3 with NFS.
45871         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
45872         as no ACL.
45874 2011-09-06  Bruno Haible  <bruno@clisp.org>
45876         acl: Fix a test failure on IRIX 6.5 with NFS.
45877         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
45878         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
45879         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
45880         * lib/copy-acl.c (qcopy_acl): Likewise.
45882 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
45884         openat: port to AIX 7.1 with large files
45885         AIX 7.1 does a "#define openat open64at" if large files are in use,
45886         so we can't simply #undef openat.  Use the orig_openat trick (similar
45887         to orig_open in lib/open.c) to work around the problem.  Problem
45888         reported by Kevin Brott for GNU tar, in the thread containing
45889         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
45890         * lib/openat.c (__need_system_fcntl_h): Define first.
45891         Include <fcntl.h> and <sys/types.h> before undefining.
45892         (orig_openat) [HAVE_OPENAT]: New inline function.
45893         (openat) [HAVE_OPENAT]: Do not undef.
45894         (rpl_openat): Use orig_openat, not openat.
45896 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
45897             Bruno Haible  <bruno@clisp.org>
45899         acl: Avoid errors on NonStop Kernel.
45900         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
45901         ENOTSUP errors.
45903 2011-09-05  Bruno Haible  <bruno@clisp.org>
45905         acl: Clean up Solaris code.
45906         * lib/acl-internal.h: Remove no-op #if.
45907         * lib/file-has-acl.c: Likewise.
45908         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
45909         * lib/copy-acl.c (qcopy_acl): Likewise.
45911 2011-09-05  Bruno Haible  <bruno@clisp.org>
45913         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
45914         binaries built on the original Solaris 10.
45915         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
45916         trivial.
45918 2011-09-05  Bruno Haible  <bruno@clisp.org>
45920         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
45921         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
45922         10.
45923         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
45924         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
45925         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
45926         instead of acl_get, facl_get, acl_set, facl_set.
45928 2011-09-05  Bruno Haible  <bruno@clisp.org>
45930         copy-file: Try unit tests on more file systems.
45931         * tests/test-copy-file-1.sh: New file.
45932         * tests/test-copy-file-2.sh: New file.
45933         * modules/copy-file-tests (Files): Add them.
45934         (Makefile.am): Add them to TESTS.
45936         acl: Try unit tests on more file systems.
45937         * tests/test-file-has-acl-1.sh: New file.
45938         * tests/test-file-has-acl-2.sh: New file.
45939         * tests/test-set-mode-acl-1.sh: New file.
45940         * tests/test-set-mode-acl-2.sh: New file.
45941         * tests/test-copy-acl-1.sh: New file.
45942         * tests/test-copy-acl-2.sh: New file.
45943         * modules/acl-tests (Files): Add them.
45944         (Makefile.am): Add them to TESTS.
45946 2011-09-04  Bruno Haible  <bruno@clisp.org>
45948         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
45949         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
45950         10.
45951         (OLD_ALLOW, OLD_DENY): New macros.
45952         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
45953         ACE_ACCESS_ALLOWED_ACE_TYPE.
45954         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
45955         ACE_ACCESS_DENIED_ACE_TYPE.
45956         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
45957         (NEW_ACE_EXECUTE): Fix value.
45958         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
45959         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
45960         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
45961         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
45962         NEW_ACE_SYNCHRONIZE): New macros.
45963         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
45964         instead of acl_fromtext, acl_set, facl_set.
45965         Fixes a coreutils/tests/cp/perm failure.
45967 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
45969         openat: test for fstatat (..., 0) bug
45970         Further testing with tar suggests that fstatat (..., 0)
45971         does not work in general, on AIX 7.1; see
45972         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
45973         So, give up entirely on AIX 7.1's fstatat, and fall back on our
45974         replacement fstatat (which is what older AIX releases were using
45975         anyway).
45976         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
45977         use is now changed to orig_fstatat.  This was probably the right
45978         thing to do anyway.
45979         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
45980         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
45981         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
45982         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
45983         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
45984         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
45985         if the bug is found.
45987         openat: test for fstatat (AT_FDCWD, ..., 0) bug
45988         This tests for another fstatat bug on AIX 7.1:
45989         fstatat (AT_FDCWD, ..., 0) does not work.  See
45990         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
45991         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
45992         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
45993         (rpl_fstatat): Adjust so that it works around either (or both)
45994         bugs if present.
45995         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
45997 2011-09-03  Karl Berry  <karl@gnu.org>
45999         * doc/regex.texi (Character Class Operators): Avoid literal ":"
46000         in index entries.
46002 2011-09-02  Bruno Haible  <bruno@clisp.org>
46004         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
46005         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
46006         values of AR, ARFLAGS, RANLIB.
46007         Reported by John W. Eaton <jwe@gnu.org> for Octave.
46009 2011-09-02  Bruno Haible  <bruno@clisp.org>
46011         Find 'ar' program that fits with --host argument.
46012         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
46014 2011-09-02  Bruno Haible  <bruno@clisp.org>
46016         tests: init.sh: Support any non-GNU diff.
46017         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
46018         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
46019         Solaris 8.
46021 2011-09-02  Bruno Haible  <bruno@clisp.org>
46023         tests: init.sh: work also with any non-GNU diff that supports -u
46024         * tests/init.sh: Relax check for diff -u support.
46025         Rather than checking for GNU diff via --version, simply check
46026         for support for -u itself.  Useful at least on OpenBSD 4.9,
46027         AIX 7.1, IRIX 6.5, and Solaris 10.
46029 2011-09-01  Bruno Haible  <bruno@clisp.org>
46031         strtoimax, strtoumax: Document problem on HP-UX 11.
46032         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
46033         * doc/posix-functions/strtoumax.texi: Likewise.
46035 2011-09-01  Bruno Haible  <bruno@clisp.org>
46037         strtoumax: Avoid link error on OSF/1 with DTK cc.
46038         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
46039         defined as a function.
46040         * modules/strtoumax (Depends-on, configure.ac): Test only whether
46041         strtoumax is defined, not whether it is declared.
46043 2011-09-01  Bruno Haible  <bruno@clisp.org>
46045         strtoimax: Avoid link error on OSF/1 with DTK cc.
46046         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
46047         defined as a function.
46048         * modules/strtoimax (Depends-on, configure.ac): Test only whether
46049         strtoimax is defined, not whether it is declared.
46051 2011-09-01  Bruno Haible  <bruno@clisp.org>
46053         imaxdiv: Avoid link error on OSF/1 with DTK cc.
46054         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
46055         as a function.
46056         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
46057         whether it is declared.
46059 2011-09-01  Bruno Haible  <bruno@clisp.org>
46061         imaxabs: Avoid link error on OSF/1 with DTK cc.
46062         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
46063         as a function.
46064         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
46065         whether it is declared.
46067 2011-09-01  Bruno Haible  <bruno@clisp.org>
46069         Tests for module 'strtoumax'.
46070         * modules/strtoumax-tests: New file.
46071         * tests/test-strtoumax.c: New file.
46073         Tests for module 'strtoimax'.
46074         * modules/strtoimax-tests: New file.
46075         * tests/test-strtoimax.c: New file.
46077         Tests for module 'imaxdiv'.
46078         * modules/imaxdiv-tests: New file.
46079         * tests/test-imaxdiv.c: New file.
46081         Tests for module 'imaxabs'.
46082         * modules/imaxabs-tests: New file.
46083         * tests/test-imaxabs.c: New file.
46085 2011-09-01  Bruno Haible  <bruno@clisp.org>
46087         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
46088         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
46089         pthread_create.
46091 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
46093         openat: work around AIX 7.1 fstatat issue
46094         This should fix the problem that was not properly fixed
46095         in the previous change, dated 2011-08-30.
46096         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
46097         __need_system_stat_h defined.
46098         (orig_fstatat) [HAVE_FSTATAT]: New function.
46099         (rpl_fstatat): Go back to the old way of doing things,
46100         except call orig_fstatat instead of fstatat.
46101         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
46102         Remove unnecessary check whether fstatat fills in st_size etc.
46104 2011-09-01  Bruno Haible  <bruno@clisp.org>
46106         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
46107         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
46108         just include the system's header.
46110 2011-08-31  Jim Meyering  <meyering@redhat.com>
46112         tests: avoid spurious assertion failure in test-float.c on ppc64
46113         * tests/test-float.c (test_long_double): Comment out an assertion,
46114         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
46115         with gcc-4.4.4.
46117         maint: indent with spaces, not TABs
46118         I need to get in the habit of running gnulib's "make check".
46119         Both of these would have been caught.
46120         * m4/largefile.m4: Indent with spaces, not TABs.
46121         * lib/parse-datetime.y (iso_8601_time): Likewise.
46122         Spotted by Pádraig Brady.
46124         test-parse-datetime.c: accommodate a relatively strict gcc warning
46125         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
46126         to avoid a warning from gcc's -Werror=missing-declarations.
46127         Insert a few spaces-before-funcall-parenthesis.
46129 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
46131         parse-datetime: accept ISO 8601 date and time rep with "T" separator
46132         The parser now accepts ISO 8601 date-time strings with "T" as the
46133         separator.  It has long parsed dates like "2004-02-29 16:21:42"
46134         with a space between the date and time strings.  Now it also parses
46135         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
46136         variants like "2004-02-29T16:21:42.333-07:00"
46137         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
46138         of day representation using the 'T' separator character.
46139         * doc/parse-datetime.texi (General date syntax): replace use of
46140         deprecated --iso-8601 option with --rfc-3339 in example of date
46141         command output formats that can be parsed.
46142         * tests/test-parse-datetime.c (tm_diff): New function, taken from
46143         lib/parse-datetime.y.
46144         (gmt_offset): New function.
46145         (main): Add additional test cases to validate ISO8601 extended
46146         date and time of day parsing.
46148 2011-08-31  Bruno Haible  <bruno@clisp.org>
46150         freopen: Documentation.
46151         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
46152         name.
46153         Reported by Claudio Bley <claudio.bley@gmail.com>.
46155 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
46157         freopen: Don't crash if the filename argument is NULL.
46158         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
46159         NULL.
46161 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
46163         openat: work around AIX 7.1 fstatat bug
46164         Problem reported by Kevin Brott for GNU tar, in the thread containing
46165         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
46166         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
46167         FSTATAT_ST_SIZE_ETC_BROKEN.
46168         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
46169         rpl_fstatat.
46170         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
46171         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
46172         AC_CHECK_FUNCS_ONCE for fstatat.
46173         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
46174         fchmodat, mkdirat, openat and unlinkat.
46176 2011-08-30  Bruno Haible  <bruno@clisp.org>
46178         Avoid endless recursions if config.h includes some header files.
46179         * lib/fopen.c (__need_FILE): Define already before including config.h.
46180         * lib/freopen.c (__need_FILE): Likewise.
46181         * lib/open.c (__need_system_fcntl_h): Likewise.
46182         * lib/stat.c (__need_system_sys_stat_h): Likewise.
46183         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
46184         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
46186 2011-08-25  Karl Berry  <karl@gnu.org>
46188         * config/srclist.txt (ylwrap): new try.
46189         * build-aux/ylwrap: new file.
46191 2011-08-23  Bruno Haible  <bruno@clisp.org>
46193         tmpdir: Use a good default directory on native Windows.
46194         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
46195         (P_tmpdir): Default to _P_tmpdir on native Windows.
46196         (path_search): On native Windows, try the value returned by GetTempPath
46197         before trying P_tmpdir.
46198         * modules/tmpdir (Depends-on): Add pathmax.
46199         Suggested by John Darrington <john@darrington.wattle.id.au>.
46201 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
46203         doc: fix typo in README-release
46204         * top/README-release: Capitalize first word of a sentence.
46206 2011-08-19  Jim Meyering  <meyering@redhat.com>
46208         fts: do not exhaust memory when processing million-entry directories
46209         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
46210         directory would require about 256*N bytes of memory.  Thus, it was
46211         easy to construct a directory too large to be processed by any of
46212         those tools.  With this change, fts' maximum memory utilization is
46213         now limited to around 30MB.
46214         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
46215         (fts_read): When we've processed the final entry (i.e., when
46216         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
46217         using the parent entry to read any remaining entries.  Dispatch
46218         depending on what fts_build returns:
46219         - NULL+stop, aka failure: stop
46220         - NULL otherwise: move up in the dir hierarchy
46221         - non-NULL: handle this new entry
46222         (fts_build): Declare and use new local, continue_readdir.
46223         Prepare to be called from fts_read, when the entries
46224         from a partially-read directory have just been exhausted.
46225         In that case, we'll skip the opendir and instead use the parent's
46226         fts_dirp and derive dir_fd from that.
46227         Finally, in the readdir loop, if we read max_entries entries,
46228         exit the loop ensuring *not* to call closedir.  This is required
46229         so that fts_dirp can be reused on a subsequent call.
46230         Prompted by Ben England's report of memory exhaustion in find
46231         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
46233         maint: fts: move decl of `dp' down into while loop; split a long line
46234         * lib/fts.c (fts_build): No semantic change.
46236         fts: add/use new struct member, fts_dirp
46237         We are about to use this to manage any directory with
46238         too many entries to read all of them into memory at once.
46239         To do that, we'll need to save the DIR* pointer in each
46240         affected FTSENT struct.
46241         * lib/fts_.h: Include <dirent.h>.
46242         (struct FTSENT) [fts_dirp]: New member.
46243         * lib/fts.c (closedir_and_clear): Define.
46244         Use it in place of closedir so that we are sure to
46245         clear the new fts_dirp member when done with it.
46246         (fts_alloc): Initialize the new member.
46247         (fts_lfree): Free, if needed.
46249         maint: fts: give __opendir2 a new parameter and rename
46250         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
46251         than surreptitiously using sole caller's "dir_fd".
46252         (fts_opendir): Rename from __opendir2.
46254         maint: fts.c: remove __opendir2's now-unused parameter, oflag
46255         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
46257         maint: fts.c: correct off-by-one indentation
46258         * lib/fts.c (fts_build): Correct indentation, change style
46259         of a couple of block comments, and bracing style.
46261         maint: fts.c: move __opendir2 #define "up" out of function body
46262         * lib/fts.c (__opendir2): Move "up".  No semantic change.
46264         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
46265         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
46266         out for a long time and besides was useful only on BSD systems.
46268 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
46270         regex: port to Stratus OpenVOS
46271         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
46272         define to empty, rather than attempting nonportable optimizations.
46273         Problem reported by Paul Green in:
46274         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
46275         and fix suggested by Eric Blake in:
46276         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
46278 2011-08-17  Eric Blake  <eblake@redhat.com>
46280         getcwd: fix test failures on mingw
46281         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
46282         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
46283         test if long directory cannot be created, and allow mingw errno.
46285         getcwd-lgpl: fix m4 to match relaxed test for BSD
46286         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
46287         (gl_FUNC_GETCWD_SIGNATURE): New macro.
46288         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
46289         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
46290         signature problem.
46292         getcwd: fix compilation on mingw64
46293         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
46294         getcwd.
46295         Reported by Marc-André Lureau.
46297         pipe2: silence compiler warning
46298         * lib/pipe2.c (pipe2): Hide label if it is not used.
46300 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
46302         relocatable-prog: fix link error
46303         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
46304         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
46305         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
46306         into modules/relocatable-lib without noticing that
46307         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
46308         also needs to build relocatable.c.
46310 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
46312         getaddrinfo: fix sh typo in gai_strerrorA decl checking
46313         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
46314         shell code: it contained a 'break' that was not in a loop.
46315         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
46316         via a shell-language loop; this may have been true in old Autoconf
46317         versions, but it's not true in Autoconf 2.68.  I found this bug
46318         when testing coreutils git on Solaris 8, whose shell complains
46319         about the syntax error.
46321 2011-08-12  Simon Josefsson  <simon@josefsson.org>
46323         * lib/base64.c: Fix comment to reference RFC 4648.
46324         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
46325         <gvtulder@gmail.com>.
46327 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
46329         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
46331         po/Makefile.in.in: fix make -q problem
46332         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
46333         rule, since there's no file named 'check-macro-version' and its
46334         use as a file breaks make -q.
46335         (all): Don't depend on check-macro-version.
46336         (CHECK_MACRO_VERSION): New macro.
46337         (stamp-po): Use it.
46339         configmake: fix make -q problem
46340         * modules/configmake (configmake.h): Update configmake.h's time stamp
46341         even if the file does not change.  Otherwise, 'make -q' fails.
46342         Problem reported by Simon Josefsson in
46343         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
46345 2011-08-11  Jim Meyering  <meyering@redhat.com>
46347         git-version-gen: correct the advice in a comment
46348         * build-aux/git-version-gen: Correct comment.
46349         Don't recommend to list .tarball-version in .gitignore.
46351 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
46353         base64: fix off-by-one buffer size bug
46354         Problem and (trivial) fix reported by Gijs van Tulder in
46355         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
46356         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
46357         * tests/test-base64.c (main): Catch the bug.
46359 2011-08-10  Eric Blake  <eblake@redhat.com>
46361         closein: correct comments
46362         * lib/closein.c (close_stdin): Improve comments.
46364 2011-08-09  Bruno Haible  <bruno@clisp.org>
46366         More tests for 'fseeko'.
46367         * tests/test-fseeko3.c: New file, from Eric Blake.
46368         * tests/test-fseeko3.sh: New file.
46369         * modules/fseeko-tests (Files): Add them.
46370         (TESTS): Add test-fseeko3.sh.
46371         (check_PROGRAMS): Add test-fseeko3.
46373 2011-08-09  Eric Blake  <eblake@redhat.com>
46375         fseeko: remove unneeded hack
46376         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
46378         fseeko: fix bug on glibc
46379         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
46380         Reported by John W. Eaton.
46382 2011-08-08  Bruno Haible  <bruno@clisp.org>
46384         unictype/base: Fix interoperability with preinstalled libunistring.
46385         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
46386         Reported by Simon Josefsson.
46388 2011-08-08  Bruno Haible  <bruno@clisp.org>
46390         iswblank: Detect declaration correctly.
46391         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
46392         AC_CHECK_DECLS invocation.
46394 2011-08-08  Bruno Haible  <bruno@clisp.org>
46396         tcgetsid: Detect declaration correctly.
46397         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
46398         AC_CHECK_DECLS invocation.
46399         Reported by Simon Josefsson.
46401 2011-08-08  Eric Blake  <eblake@redhat.com>
46403         largefile: fix typo that regressed large file support
46404         * modules/largefile (configure.ac-early): Fix section name.
46406 2011-08-06  Karl Berry  <karl@gnu.org>
46408         * MODULES.html.sh (func_all_files): _Noreturn is no longer
46409         a separate module.
46411 2011-08-05  Simon Josefsson  <simon@josefsson.org>
46413         openat: Fix warnings and commens when building unlinkat.c on Hurd.
46414         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
46415         get prototype for free.
46417 2011-08-04  Bruno Haible  <bruno@clisp.org>
46419         Tests for module 'pathmax'.
46420         * modules/pathmax-tests: New file.
46421         * tests/test-pathmax.c: New file.
46423         canonicalize-lgpl: Support larger filenames on the Hurd.
46424         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
46425         Reported by Paul Eggert.
46427         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
46428         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
46429         * lib/chdir-long.h: Include pathmax.h.
46430         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
46431         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
46432         (PATH_MAX): Remove code that is done by pathmax.h.
46433         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
46434         * lib/tmpfile.c: Add a comment.
46435         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
46436         * modules/chdir-long (Depends-on): Add pathmax.
46437         * modules/getcwd (Depends-on): Add pathmax.
46438         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
46439         is not defined.
46440         * doc/posix-headers/limits.texi: Mention the pathmax module.
46441         * NEWS: Mention the change.
46443 2011-08-02  Bruno Haible  <bruno@clisp.org>
46445         pthread_sigmask: Actually use results of gl_THREADLIB.
46446         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
46447         gl_THREADLIB, not gl_[]THREADLIB.
46448         Reported by Eric Blake.
46450 2011-08-02  Jim Meyering  <meyering@redhat.com>
46452         maint.mk: relax the default _gl_TS_function_match regexp
46453         * top/maint.mk (_gl_TS_function_match): Don't require at least one
46454         space between function name and "(" in an "extern" declaration.
46455         That would fail to match a decl with no space there: extern void foo();
46457 2011-07-31  Iain Nicol  <iain@thenicols.net>
46459         git-version-gen: document that EXTRA_DIST must include .version
46460         * build-aux/git-version-gen: In the how-to-use comment, document
46461         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
46462         will fail when run from an unpacked distribution tarball.
46464 2011-08-01  Bruno Haible  <bruno@clisp.org>
46466         wctype-h: Fix last change.
46467         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
46468         REPLACE_TOWLOWER to 0.
46469         Reported by Sam Steingold <sds@gnu.org>.
46471 2011-07-31  Bruno Haible  <bruno@clisp.org>
46473         frexpl: Update autoconf test.
46474         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
46475         according to changes of 2011-06-20.
46477 2011-07-31  Bruno Haible  <bruno@clisp.org>
46479         sys_utsname: Add support for Minix.
46480         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
46481         <sys/utsname.h>.
46482         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
46483         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
46485 2011-07-31  Bruno Haible  <bruno@clisp.org>
46487         strings: Add support for Minix.
46488         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
46489         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
46490         * doc/posix-headers/strings.texi: Document the Minix problem.
46492 2011-07-31  Bruno Haible  <bruno@clisp.org>
46494         wctype-h: Add support for Minix.
46495         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
46496         REPLACE_TOWLOWER.
46497         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
46498         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
46499         REPLACE_ISWCNTRL.
46501 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
46503         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
46504         This is a performance improvement for 64-bit hosts: it causes the
46505         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
46507 2011-07-31  Bruno Haible  <bruno@clisp.org>
46509         stdioext: Add support for Minix.
46510         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
46511         * lib/fpurge.c (fpurge): Likewise.
46512         * lib/freadahead.c (freadahead): Likewise.
46513         * lib/freadable.c (freadable): Likewise.
46514         * lib/freading.c (freading): Likewise.
46515         * lib/freadptr.c (freadptr): Likewise.
46516         * lib/freadseek.c (freadptrinc): Likewise.
46517         * lib/fseeko.c (rpl_fseeko): Likewise.
46518         * lib/fseterr.c (fseterr): Likewise.
46519         * lib/fwritable.c (fwritable): Likewise.
46520         * lib/fwriting.c (fwriting): Likewise.
46521         * lib/fflush.c (clear_ungetc_buffer): Update comment.
46522         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
46524 2011-07-31  Bruno Haible  <bruno@clisp.org>
46526         errno: Port to Minix.
46527         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
46528         ECONNABORTED are defined.
46529         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
46530         GNULIB_defined_ECONNABORTED): New macros.
46531         * lib/strerror-override.h (strerror_override): Test also
46532         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
46533         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
46534         ECONNABORTED.
46535         * doc/posix-headers/errno.texi: Mention the Minix problem.
46537 2011-07-31  Bruno Haible  <bruno@clisp.org>
46539         Work around declaration collisions on Minix.
46540         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
46541         defined, set REPLACE_MBSINIT.
46542         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
46543         defined, set REPLACE_MBRTOWC.
46544         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
46545         set REPLACE_MBRLEN.
46546         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
46547         defined, set REPLACE_MBSRTOWCS.
46548         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
46549         defined, set REPLACE_WCRTOMB.
46550         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
46551         defined, set REPLACE_WCSRTOMBS.
46553 2011-07-31  Bruno Haible  <bruno@clisp.org>
46555         Add support for Minix with ACK compiler.
46556         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
46557         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
46558         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
46560 2011-07-31  Bruno Haible  <bruno@clisp.org>
46562         Documentation about Minix.
46563         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
46564         * doc/glibc-headers/*.texi: Likewise.
46565         * doc/posix-functions/*.texi: Likewise.
46566         * doc/glibc-functions/*.texi: Likewise.
46568 2011-07-31  Bruno Haible  <bruno@clisp.org>
46570         snippet/warn-on-use: Fix indentation.
46571         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
46573 2011-07-25  Jim Meyering  <meyering@redhat.com>
46575         tests: test-update-copyright.sh: remove unnecessary "rm" commands
46576         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
46577         commands.
46579 2011-07-27  Jim Meyering  <meyering@redhat.com>
46581         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
46582         * top/maint.mk (gl_extract_significant_defines_): Now that
46583         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
46584         gnulib/lib/signal.in.h, and now that we recommend to
46585         define-if-undefined those two symbols in application code,
46586         we must filter them out of the "significant" list.
46587         This avoids a "make syntax-check" failure in coreutils.
46589 2011-07-26  Eric Blake  <eblake@redhat.com>
46591         warnings: add comments about previous patch
46592         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
46593         * m4/include_next.m4: Likewise.
46594         * m4/warn-on-use.m4: Likewise.
46595         * m4/warnings.m4: Likewise, and simplify use.
46596         Suggested by Stefano Lattarini.
46598         include-next, warnings: support older autoconf
46599         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
46600         AS_VAR_PUSHDEF in a way that works with older autoconf.
46601         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
46602         Reported by Daniel P. Berrange.
46604 2011-07-25  Bruno Haible  <bruno@clisp.org>
46606         fseek, ftell: Fix doc.
46607         * doc/posix-functions/fseek.texi: Reword statement about
46608         AC_SYS_LARGEFILE.
46609         * doc/posix-functions/ftell.texi: Likewise.
46611 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
46612             Bruno Haible  <bruno@clisp.org>
46614         Add dependencies to the 'largefile' module.
46615         * modules/fopen (Depends-on): Add 'largefile'.
46616         * modules/freopen (Depends-on): Likewise.
46617         * modules/fseeko (Depends-on): Likewise.
46618         * modules/ftello (Depends-on): Likewise.
46619         * modules/glob (Depends-on): Likewise.
46620         * modules/lseek (Depends-on): Likewise.
46621         * modules/lstat (Depends-on): Likewise.
46622         * modules/mkostemp (Depends-on): Likewise.
46623         * modules/mkostemps (Depends-on): Likewise.
46624         * modules/mkstemp (Depends-on): Likewise.
46625         * modules/mkstemps (Depends-on): Likewise.
46626         * modules/open (Depends-on): Likewise.
46627         * modules/openat (Depends-on): Likewise.
46628         * modules/pread (Depends-on): Likewise.
46629         * modules/pwrite (Depends-on): Likewise.
46630         * modules/scandir (Depends-on): Likewise.
46631         * modules/stat (Depends-on): Likewise.
46632         * modules/tmpfile (Depends-on): Likewise.
46633         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
46634         since the containing module now depends on the largefile module.
46635         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
46636         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
46637         off_t is fixed by gnulib.
46638         * doc/posix-functions/freopen.texi: Likewise.
46639         * doc/posix-functions/fseeko.texi: Likewise.
46640         * doc/posix-functions/fstatat.texi: Likewise.
46641         * doc/posix-functions/ftello.texi: Likewise.
46642         * doc/posix-functions/glob.texi: Likewise.
46643         * doc/posix-functions/lseek.texi: Likewise.
46644         * doc/posix-functions/lstat.texi: Likewise.
46645         * doc/posix-functions/mkstemp.texi: Likewise.
46646         * doc/posix-functions/open.texi: Likewise.
46647         * doc/posix-functions/openat.texi: Likewise.
46648         * doc/posix-functions/pread.texi: Likewise.
46649         * doc/posix-functions/pwrite.texi: Likewise.
46650         * doc/posix-functions/scandir.texi: Likewise.
46651         * doc/posix-functions/stat.texi: Likewise.
46652         * doc/posix-functions/tmpfile.texi: Likewise.
46653         * doc/glibc-functions/mkostemp.texi: Likewise.
46654         * doc/glibc-functions/mkostemps.texi: Likewise.
46655         * doc/glibc-functions/mkstemps.texi: Likewise.
46657 2011-07-25  Bruno Haible  <bruno@clisp.org>
46659         fcntl: Move AC_LIBOBJ invocation to module description.
46660         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
46661         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
46663         fcntl: Remove call-in from fchdir.m4.
46664         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
46665         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
46667         dup3: Remove potential call-in from fchdir.m4.
46668         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
46669         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
46671         dup2: Move AC_LIBOBJ invocation to module description.
46672         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
46673         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
46674         Don't invoke AC_LIBOBJ.
46675         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
46677         dup2: Remove call-in from fchdir.m4.
46678         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
46679         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
46681         fclose: Move AC_LIBOBJ invocation to module description.
46682         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
46683         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
46684         to 1.
46685         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
46687         fclose: Remove call-in from close.m4.
46688         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
46689         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
46691         close: Move AC_LIBOBJ invocation to module description.
46692         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
46693         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
46694         1.
46695         * modules/close (configure.ac): Invoke AC_LIBOBJ.
46697         close: Remove call-in from fchdir.m4.
46698         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
46699         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
46701         open: Move AC_LIBOBJ invocation to module description.
46702         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
46703         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
46704         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
46706         open: Remove call-in from fchdir.m4.
46707         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
46708         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
46710         fchdir: Start to remove gl_REPLACE_* idiom.
46711         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
46712         (gl_FUNC_FCHDIR): Invoke it.
46714 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
46716         * lib/ftell.c (ftell): Comment out cast.
46718         close: use gl_REPLACE_FCLOSE only if defined
46719         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
46720         is defined.  The close module doesn't depend on the fclose module
46721         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
46722         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
46723         I reproduced the problem with "./gnulib-tool --test close sys_socket".
46725 2011-07-24  Jim Meyering  <meyering@redhat.com>
46727         test-select.h: avoid warning when using gcc's -Wmissing-declarations
46728         * tests/test-select.h (test_function): Declare as "static".
46730 2011-07-24  Bruno Haible  <bruno@clisp.org>
46732         doc: Mention the effects of AC_SYS_LARGEFILE.
46733         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
46734         on this function.
46735         * doc/posix-functions/aio_error.texi: Likewise.
46736         * doc/posix-functions/aio_fsync.texi: Likewise.
46737         * doc/posix-functions/aio_read.texi: Likewise.
46738         * doc/posix-functions/aio_return.texi: Likewise.
46739         * doc/posix-functions/aio_suspend.texi: Likewise.
46740         * doc/posix-functions/aio_write.texi: Likewise.
46741         * doc/posix-functions/fgetpos.texi: Likewise.
46742         * doc/posix-functions/fopen.texi: Likewise.
46743         * doc/posix-functions/freopen.texi: Likewise.
46744         * doc/posix-functions/fsetpos.texi: Likewise.
46745         * doc/posix-functions/fstatvfs.texi: Likewise.
46746         * doc/posix-functions/ftruncate.texi: Likewise.
46747         * doc/posix-functions/ftw.texi: Likewise.
46748         * doc/posix-functions/getrlimit.texi: Likewise.
46749         * doc/posix-functions/glob.texi: Likewise.
46750         * doc/posix-functions/lio_listio.texi: Likewise.
46751         * doc/posix-functions/lockf.texi: Likewise.
46752         * doc/posix-functions/mkstemp.texi: Likewise.
46753         * doc/posix-functions/mmap.texi: Likewise.
46754         * doc/posix-functions/nftw.texi: Likewise.
46755         * doc/posix-functions/openat.texi: Likewise.
46756         * doc/posix-functions/opendir.texi: Likewise.
46757         * doc/posix-functions/posix_fadvise.texi: Likewise.
46758         * doc/posix-functions/posix_fallocate.texi: Likewise.
46759         * doc/posix-functions/pread.texi: Likewise.
46760         * doc/posix-functions/pwrite.texi: Likewise.
46761         * doc/posix-functions/readdir.texi: Likewise.
46762         * doc/posix-functions/readdir_r.texi: Likewise.
46763         * doc/posix-functions/rewinddir.texi: Likewise.
46764         * doc/posix-functions/scandir.texi: Likewise.
46765         * doc/posix-functions/seekdir.texi: Likewise.
46766         * doc/posix-functions/setrlimit.texi: Likewise.
46767         * doc/posix-functions/statvfs.texi: Likewise.
46768         * doc/posix-functions/telldir.texi: Likewise.
46769         * doc/posix-functions/tmpfile.texi: Likewise.
46770         * doc/posix-functions/truncate.texi: Likewise.
46771         * doc/glibc-functions/fallocate.texi: Likewise.
46772         * doc/glibc-functions/fstatfs.texi: Likewise.
46773         * doc/glibc-functions/fts_children.texi: Likewise.
46774         * doc/glibc-functions/fts_read.texi: Likewise.
46775         * doc/glibc-functions/getdirentries.texi: Likewise.
46776         * doc/glibc-functions/mkostemp.texi: Likewise.
46777         * doc/glibc-functions/mkostemps.texi: Likewise.
46778         * doc/glibc-functions/mkstemps.texi: Likewise.
46779         * doc/glibc-functions/preadv.texi: Likewise.
46780         * doc/glibc-functions/pwritev.texi: Likewise.
46781         * doc/glibc-functions/sendfile.texi: Likewise.
46782         * doc/glibc-functions/statfs.texi: Likewise.
46784 2011-07-24  Bruno Haible  <bruno@clisp.org>
46786         doc: Fix typo.
46787         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
46789 2011-07-24  Bruno Haible  <bruno@clisp.org>
46791         doc: Mention fsusage.
46792         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
46794 2011-07-24  Bruno Haible  <bruno@clisp.org>
46796         doc: Mention new glibc headers and functions.
46797         * doc/glibc-headers/gshadow.texi: New file.
46798         * doc/glibc-functions/endsgent.texi: New file.
46799         * doc/glibc-functions/fgetsgent.texi: New file.
46800         * doc/glibc-functions/fgetsgent_r.texi: New file.
46801         * doc/glibc-functions/getsgent.texi: New file.
46802         * doc/glibc-functions/getsgent_r.texi: New file.
46803         * doc/glibc-functions/getsgnam.texi: New file.
46804         * doc/glibc-functions/getsgnam_r.texi: New file.
46805         * doc/glibc-functions/putsgent.texi: New file.
46806         * doc/glibc-functions/setsgent.texi: New file.
46807         * doc/glibc-functions/sgetsgent.texi: New file.
46808         * doc/glibc-functions/sgetsgent_r.texi: New file.
46809         * doc/glibc-functions/malloc_info.texi: New file.
46810         * doc/glibc-functions/preadv.texi: New file.
46811         * doc/glibc-functions/pwritev.texi: New file.
46812         * doc/glibc-functions/register_printf_modifier.texi: New file.
46813         * doc/glibc-functions/register_printf_specifier.texi: New file.
46814         * doc/glibc-functions/register_printf_type.texi: New file.
46815         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
46816         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
46817         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
46818         * doc/glibc-functions/pthread_getname_np.texi: New file.
46819         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
46820         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
46821         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
46822         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
46823         * doc/glibc-functions/pthread_setname_np.texi: New file.
46824         * doc/glibc-functions/pthread_sigqueue.texi: New file.
46825         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
46826         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
46827         * doc/glibc-functions/qsort_r.texi: New file.
46828         * doc/glibc-functions/quick_exit.texi: New file.
46829         * doc/glibc-functions/syncfs.texi: New file.
46830         * doc/gnulib.texi: Include them.
46831         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
46832         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
46833         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
46834         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
46835         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
46836         * doc/glibc-functions/execvpe.texi: Likewise.
46838 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
46840         ftell: don't include <unistd.h>
46841         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
46842         guaranteed to define off_t, and the ftell module depends on the
46843         stdio module.
46845         ftell: do not assume wraparound signed arithmetic
46846         * lib/ftell.c: Include <limits.h>.
46847         (ftell): Don't assume wraparound signed arithmetic.
46849 2011-07-24  Bruno Haible  <bruno@clisp.org>
46851         close: No longer depend on module 'fclose'.
46852         * modules/close (Depends-on): Remove fclose.
46853         * NEWS: Mention the change.
46854         Suggested by Sam Steingold <sds@gnu.org>.
46856 2011-07-24  Bruno Haible  <bruno@clisp.org>
46858         fsusage: Enable large volume support on AIX >= 5.2.
46859         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
46860         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
46861         instead of STAT_STATVFS.
46862         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
46864         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
46865         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
46866         f_blocks field only on MacOS X.
46868         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
46869         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
46870         * modules/fsusage (Depends-on): Add largefile.
46872 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
46874         * README: Modernize discussion of signed integers.
46875         Assuming overflow wraparound is no longer safe.
46876         Mention ones' complement and signed magnitude.
46878 2011-07-22  Bruno Haible  <bruno@clisp.org>
46880         select tests, pselect tests: Refactor.
46881         * tests/test-select.h: New file, extracted from tests/test-select.c.
46882         (select_fn): New type.
46883         (test, do_select, do_select_nowait, do_select_wait, test_tty,
46884         test_connect_first, test_accept_first, test_pair, test_socket_pair,
46885         test_pipe): Add my_select argument.
46886         (test_function): Renamed from main. Add my_select argument.
46887         * tests/test-select.c: Move most code to tests/test-select.h. Include
46888         test-select.h.
46889         * modules/select-tests (Files): Add tests/test-select.h.
46890         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
46891         (my_select, main): New functions.
46892         * modules/pselect-tests (Files): Add tests/test-select.h,
46893         tests/macros.h, tests/signature.h.
46894         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
46895         (configure.ac): Check for <sys/wait.h>.
46897 2011-07-22  Bruno Haible  <bruno@clisp.org>
46899         sys_select tests: Check the signature of FD_*.
46900         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
46901         signature tests from here...
46902         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
46903         here.
46904         * modules/sys_select-tests (Files): Add tests/signature.h.
46906 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
46908         largefile: new module, replacing large-inode
46909         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
46910         * MODULES.html.sh: Add largefile, remove large-inode.
46911         * modules/largefile, m4/largefile.m4: New files.
46912         * modules/large-inode, m4/large-inode.m4: Remove.
46914         fsusage: port to MacOS X 10.7 with 4 TiB file systems
46915         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
46916         implementations that use only 32 bits to count blocks.
46917         On typical hosts with 1024-byte blocks, this fails with file
46918         systems as small as 4 TiB.  Problem reported by Herb Wartens
46919         <http://debbugs.gnu.org/9140> and this should also fix a similar
46920         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
46922         large-inode: New module
46923         * MODULES.html.sh: Add it.
46924         * modules/large-inode, m4/large-inode.m4: New files.
46926         extensions: Enable extensions on MacOS X 10.5 and later.
46927         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
46929 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
46931         file-has-acl: use acl_extended_file_nofollow if available
46932         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
46933         (acl_extended_file): New macro.
46934         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
46935         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
46937 2011-07-21  Bruno Haible  <bruno@clisp.org>
46939         Declare system functions in a way that works with C++.
46940         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
46941         declare fdopendir as extern "C".
46942         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
46943         declare frexpl as extern "C".
46944         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
46945         declare gai_strerror as extern "C".
46946         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
46947         programs, declare gai_strerror as extern "C".
46948         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
46949         declare getlogin_r as extern "C".
46950         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
46951         as extern "C".
46952         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
46953         declare ldexpl as extern "C".
46954         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
46955         as extern "C".
46956         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
46957         program, declare getmntinfo as extern "C".
46958         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
46959         stpncpy as extern "C".
46960         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
46961         program, declare __xpg_strerror_r as extern "C".
46962         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
46963         strndup as extern "C".
46964         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
46965         declare memset and bzero as extern "C".
46966         Reported by Sam Steingold <sds@gnu.org>.
46968 2011-07-12  Jim Meyering  <meyering@redhat.com>
46970         maint.mk: prohibit inclusion of "verify.h" without use
46971         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
46973 2011-07-19  Pádraig Brady  <P@draigBrady.com>
46975         timer-time: A new module to check for timer_settime()
46976         * m4/timer_time.m4: Check for the posix function.
46977         * modules/timer-time: Add the new module.
46978         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
46979         Mention it.
46981 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
46982             Bruno Haible  <bruno@clisp.org>
46984         pthread_sigmask: assume POSIX threads if --avoid=threadlib
46985         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
46986         not defined, assume POSIX threads and look for pthread_sigmask in
46987         $LIBS, without changing $CPPFLAGS.
46989 2011-07-19  Bruno Haible  <bruno@clisp.org>
46991         strstr: Update cross-compilation guess.
46992         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
46993         CPUs, guess no, in view of glibc
46994         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
46995         Suggested by Eric Blake. Reported by Reuben Thomas.
46997 2011-07-19  Pádraig Brady  <P@draigBrady.com>
46999         getopt-gnu: suppress core dumps from detection code
47000         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
47001         to suppress core dumps that may well occur on glibc systems.
47002         * modules/getopt-gnu: Depend on nocrash.
47004 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
47006         pthread_sigmask: ensure usleep is declared
47007         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
47008         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
47010 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
47012         doc: Document NonStop portability issues.
47013         * doc/posix-functions/sigaction.texi (sigaction):
47014         * doc/posix-headers/signal.texi (signal.h):
47015         Document NonStop.  See Joachim Schmitz in
47016         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
47018 2011-07-15  Bruno Haible  <bruno@clisp.org>
47020         ffsl, ffsll: Avoid unportable behaviour.
47021         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
47023 2011-07-15  Bruno Haible  <bruno@clisp.org>
47025         ffs: More tests.
47026         * tests/test-ffs.c (NBITS): New macro.
47027         (main): Add more tests.
47028         * tests/test-ffsl.c (NBITS): New macro.
47029         (main): Add more tests.
47030         * tests/test-ffsll.c (NBITS): New macro.
47031         (main): Add more tests.
47033 2011-07-15  Eric Blake  <eblake@redhat.com>
47035         ffsl, ffsll: new modules
47036         * modules/ffsl: New file.
47037         * modules/ffsll: Likewise.
47038         * m4/ffsl.m4: Likewise.
47039         * m4/ffsll.m4: Likewise.
47040         * lib/ffsl.c: Likewise.
47041         * lib/ffsl.h: Likewise.
47042         * lib/ffsll.c: Likewise.
47043         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
47044         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
47045         * modules/string (Makefile.am): Substitute witnesses.
47046         * lib/strings.in.h (ffsl, ffsll): Declare.
47047         * modules/ffsl-tests: New test file.
47048         * modules/ffsll-tests: Likewise.
47049         * tests/test-ffsl.c: Likewise.
47050         * tests/test-ffsll.c: Likewise.
47051         * MODULES.html.sh (Integer arithmetic functions): Mention it.
47052         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
47053         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
47055         ffs: fix m4 prerequisite
47056         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
47058         ffs: avoid undefined behavior
47059         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
47060         * tests/test-ffs.c (naive, main): Avoid signed shifts.
47061         Reported by Bruno Haible.
47063 2011-07-12  Bruno Haible  <bruno@clisp.org>
47065         pthread_sigmask: Rely on module 'threadlib'.
47066         * modules/pthread_sigmask (Depends-on): Add threadlib.
47067         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
47068         is defined.
47070 2011-07-12  Bruno Haible  <bruno@clisp.org>
47072         regex: Depend on module 'strcase'.
47073         * modules/regex (Depends-on): Add strcase, for strcasecmp().
47075 2011-07-12  Jim Meyering  <meyering@redhat.com>
47077         warn-on-use: fix typo in file name
47078         * modules/snippet/warn-on-use (Files): Correct file name:
47079         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
47081 2011-07-12  Bruno Haible  <bruno@clisp.org>
47083         strings: Document module.
47084         * doc/posix-headers/strings.texi: Mention module 'strings'.
47086 2011-07-12  Bruno Haible  <bruno@clisp.org>
47088         Rename module '_Noreturn' to 'snippet/_Noreturn'.
47089         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
47090         (Files, Makefile.am): Update.
47091         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
47092         * modules/stdlib (Depends-on): Update.
47094 2011-07-12  Bruno Haible  <bruno@clisp.org>
47096         * NEWS: Mention the changes.
47098         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
47099         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
47100         (Files, Makefile.am): Update.
47101         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
47102         * modules/arpa_inet (Depends-on): Update.
47103         * modules/ctype (Depends-on): Update.
47104         * modules/dirent (Depends-on): Update.
47105         * modules/fcntl-h (Depends-on): Update.
47106         * modules/glob (Depends-on): Update.
47107         * modules/iconv-h (Depends-on): Update.
47108         * modules/inttypes-incomplete (Depends-on): Update.
47109         * modules/langinfo (Depends-on): Update.
47110         * modules/locale (Depends-on): Update.
47111         * modules/math (Depends-on): Update.
47112         * modules/netdb (Depends-on): Update.
47113         * modules/poll-h (Depends-on): Update.
47114         * modules/pty (Depends-on): Update.
47115         * modules/search (Depends-on): Update.
47116         * modules/signal (Depends-on): Update.
47117         * modules/spawn (Depends-on): Update.
47118         * modules/stdio (Depends-on): Update.
47119         * modules/stdlib (Depends-on): Update.
47120         * modules/string (Depends-on): Update.
47121         * modules/strings (Depends-on): Update.
47122         * modules/sys_file (Depends-on): Update.
47123         * modules/sys_ioctl (Depends-on): Update.
47124         * modules/sys_select (Depends-on): Update.
47125         * modules/sys_socket (Depends-on): Update.
47126         * modules/sys_stat (Depends-on): Update.
47127         * modules/sys_time (Depends-on): Update.
47128         * modules/sys_times (Depends-on): Update.
47129         * modules/sys_utsname (Depends-on): Update.
47130         * modules/sys_wait (Depends-on): Update.
47131         * modules/termios (Depends-on): Update.
47132         * modules/time (Depends-on): Update.
47133         * modules/unistd (Depends-on): Update.
47134         * modules/wchar (Depends-on): Update.
47135         * modules/wctype-h (Depends-on): Update.
47136         * MODULES.html.sh (Support for building libraries and executables):
47137         Update.
47139         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
47140         * modules/snippet/unused-parameter: Renamed from
47141         modules/unused-parameter.
47142         (Files, Makefile.am): Update.
47143         * build-aux/snippet/unused-parameter.h: Renamed from
47144         build-aux/unused-parameter.h.
47145         * modules/selinux-h (Depends-on): Update.
47146         * modules/unistr/base (Depends-on): Update.
47147         * MODULES.html.sh (Core language properties): Update.
47149         Rename module 'link-warning' to 'snippet/link-warning'.
47150         * modules/snippet/link-warning: Renamed from modules/link-warning.
47151         (Files, Makefile.am): Update.
47152         * build-aux/snippet/link-warning.h: Renamed from
47153         build-aux/link-warning.h.
47154         * MODULES.html.sh (Support for building libraries and executables):
47155         Update.
47157         Rename module 'c++defs' to 'snippet/c++defs'.
47158         * modules/snippet/c++defs: Renamed from modules/c++defs.
47159         (Files, Makefile.am): Update.
47160         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
47161         * modules/arpa_inet (Depends-on): Update.
47162         * modules/ctype (Depends-on): Update.
47163         * modules/dirent (Depends-on): Update.
47164         * modules/fcntl-h (Depends-on): Update.
47165         * modules/glob (Depends-on): Update.
47166         * modules/iconv-h (Depends-on): Update.
47167         * modules/langinfo (Depends-on): Update.
47168         * modules/locale (Depends-on): Update.
47169         * modules/math (Depends-on): Update.
47170         * modules/netdb (Depends-on): Update.
47171         * modules/poll-h (Depends-on): Update.
47172         * modules/pty (Depends-on): Update.
47173         * modules/search (Depends-on): Update.
47174         * modules/signal (Depends-on): Update.
47175         * modules/spawn (Depends-on): Update.
47176         * modules/stdio (Depends-on): Update.
47177         * modules/stdlib (Depends-on): Update.
47178         * modules/string (Depends-on): Update.
47179         * modules/strings (Depends-on): Update.
47180         * modules/sys_ioctl (Depends-on): Update.
47181         * modules/sys_select (Depends-on): Update.
47182         * modules/sys_socket (Depends-on): Update.
47183         * modules/sys_stat (Depends-on): Update.
47184         * modules/sys_time (Depends-on): Update.
47185         * modules/sys_wait (Depends-on): Update.
47186         * modules/termios (Depends-on): Update.
47187         * modules/time (Depends-on): Update.
47188         * modules/unistd (Depends-on): Update.
47189         * modules/wchar (Depends-on): Update.
47190         * modules/wctype-h (Depends-on): Update.
47192         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
47193         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
47194         (Files, Makefile.am): Update.
47195         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
47196         * modules/argv-iter (Depends-on): Update.
47197         * modules/arpa_inet (Depends-on): Update.
47198         * modules/dirent (Depends-on): Update.
47199         * modules/fcntl-h (Depends-on): Update.
47200         * modules/fnmatch (Depends-on): Update.
47201         * modules/getopt-posix (Depends-on): Update.
47202         * modules/glob (Depends-on): Update.
47203         * modules/iconv-h (Depends-on): Update.
47204         * modules/inttypes-incomplete (Depends-on): Update.
47205         * modules/locale (Depends-on): Update.
47206         * modules/math (Depends-on): Update.
47207         * modules/netdb (Depends-on): Update.
47208         * modules/search (Depends-on): Update.
47209         * modules/signal (Depends-on): Update.
47210         * modules/spawn (Depends-on): Update.
47211         * modules/stdio (Depends-on): Update.
47212         * modules/stdlib (Depends-on): Update.
47213         * modules/string (Depends-on): Update.
47214         * modules/strings (Depends-on): Update.
47215         * modules/sys_socket (Depends-on): Update.
47216         * modules/sys_stat (Depends-on): Update.
47217         * modules/sys_time (Depends-on): Update.
47218         * modules/sys_times (Depends-on): Update.
47219         * modules/sys_utsname (Depends-on): Update.
47220         * modules/time (Depends-on): Update.
47221         * modules/unistd (Depends-on): Update.
47222         * modules/wchar (Depends-on): Update.
47223         * MODULES.html.sh (Support for building libraries and executables):
47224         Update.
47226 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
47228         Improvements on _Noreturn and related modules.
47230         modules/_Exit-tests: test _Noreturn too
47231         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
47232         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
47233         (main): Use them.
47235         stdnoreturn, stdnoreturn-tests: remove modules
47236         They're not needed here and a bit premature for use elsewhere.  See
47237         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
47238         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
47239         * tests/test-stdnoreturn.c: Remove files.
47240         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
47241         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
47242         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
47243         and using noreturn.
47244         * modules/openat, modules/sigpipe-die, modules/xalloc:
47245         * modules/xmemdup0, modules/xstrtol:
47246         Remove dependency on stdnoreturn.
47248         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
47249         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
47250         Reparenthesize to avoid GCC warning.
47251         Support Microsoft's syntax.
47252         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
47254         _Noreturn-tests: remove module
47255         * modules/_Noreturn-tests: Remove.
47256         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
47257         * tests/test-_Noreturn.c: Remove.
47258         * tests/test-stdnoreturn.c: Merge from the old
47259         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
47261 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
47263         _Noreturn, stdnoreturn, and related modules.
47265         * top/maint.mk: Adjust to new noreturn support.
47266         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
47267         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
47269         xalloc: use stdnoreturn.h
47270         * lib/xalloc.h: Include <stdnoreturn.h>.
47271         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
47272         * modules/xalloc (Depends-on): Add stdnoreturn.
47274         xstrtol: use stdnoreturn.h
47275         * lib/xstrtol.h: Include <stdnoreturn.h>.
47276         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
47277         * modules/xstrtol (Depends-on): Add stdnoreturn.
47279         xmemdup0: use stdnoreturn.h
47280         * lib/xmemdup0.h: Include <stdnoreturn.h>.
47281         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
47282         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
47284         sigpipe-die: use stdnoreturn.h
47285         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
47286         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
47287         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
47289         openat: use stdnoreturn.h
47290         * lib/openat.h: Include <stdnoreturn.h>.
47291         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
47292         * modules/openat (Depends-on): Add stdnoreturn.
47294         * lib/openat-die.c (openat_save_fail): Modernize comment.
47296         * lib/xalloc-die.c (xalloc_die): Modernize comment.
47298         * lib/glthread/thread.h: Modernize comment.
47300         obstack: use _Noreturn
47301         * lib/obstack.c (__attribute__): Remove macro.
47302         (print_and_abort): Use _Noreturn.
47304         c-stack: use _Noreturn
47305         * lib/c-stack.c (die, overflow_handler, segv_handler):
47306         Use _Noreturn rather than __attribute__((noreturn)).
47308         argmatch-tests, exclude_tests: use _Noreturn
47309         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
47310         Remove.
47311         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
47313         stdlib: use _Noreturn
47314         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
47315         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
47316         * modules/stdlib (Depends-on): Add _Noreturn.
47317         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
47319         stdnoreturn-tests: new module
47320         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
47322         stdnoreturn: new module
47323         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
47324         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
47326         _Noreturn-tests: new module
47327         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
47329         _Noreturn: new module
47330         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
47331         New section, mentioning it.
47332         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
47334         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
47336 2011-07-11  Eric Blake  <eblake@redhat.com>
47338         ffs: new module
47339         * modules/ffs: New file.
47340         * m4/ffs.m4: Likewise.
47341         * lib/ffs.c: Likewise.
47342         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
47343         * modules/strings (Makefile.am): Substitute witness.
47344         (Depends-on): Add c++defs.
47345         * lib/strings.in.h (ffs): Declare.
47346         * modules/ffs-tests: New test file.
47347         * tests/test-ffs.c: Test new module.
47348         * MODULES.html.sh (Integer arithmetic functions): Mention it.
47349         * doc/posix-functions/ffs.texi (ffs): Likewise.
47351         regex: avoid compiler warning
47352         * lib/regex.c (includes): Include <strings.h>, for use of
47353         strcasecmp in regcomp.c.
47354         Reported by Joachim Schmitz.
47356 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
47358         stdint: respect system's intmax_t if INTMAX_MAX
47359         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
47360         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
47361         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
47362         long but int64_t is long long, and where we will clash with the
47363         system intmax_t if we override it.  See
47364         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
47365         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
47366         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
47367         similarly for UINTMAX_C.
47369 2011-07-08  Bruno Haible  <bruno@clisp.org>
47371         pthread_sigmask tests: Avoid a compiler warning.
47372         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
47373         non-zero.
47375         sigprocmask tests: A better way to avoid a compiler warning.
47376         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
47377         (main): Complain if system() returns non-zero.
47378         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
47380 2011-07-08  Bruno Haible  <bruno@clisp.org>
47382         pthread_sigmask: Work around IRIX bug.
47383         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
47384         bug.
47385         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
47386         there may be unblocked pending signals.
47387         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
47389 2011-07-08  Bruno Haible  <bruno@clisp.org>
47391         pthread_sigmask: Work around Cygwin bug.
47392         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
47393         bug.
47394         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
47395         the system's pthread_sigmask function.
47396         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
47398 2011-07-08  Bruno Haible  <bruno@clisp.org>
47400         pthread_sigmask: Work around bug in single-threaded implementation.
47401         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
47402         FreeBSD, HP-UX, Solaris bug.
47403         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
47404         * lib/pthread_sigmask.c: Include <stddef.h>.
47405         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
47406         the system's pthread_sigmask function.
47407         * modules/pthread_sigmask (configure.ac): Invoke
47408         gl_PREREQ_PTHREAD_SIGMASK.
47409         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
47410         HP-UX, Solaris.
47412 2011-07-08  Eric Blake  <eblake@redhat.com>
47414         test-sigprocmask: avoid compiler warning
47415         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
47416         * tests/test-sigprocmask.c (main): Use it to silence warning.
47417         Reported by Jim Meyering.
47419         test-snprintf: avoid compiler warning
47420         * tests/test-snprintf.c (main): Avoid shadowed declaration.
47421         * tests/test-vsnprintf.c (main): Likewise.
47422         Reported by Jim Meyering.
47424 2011-07-08  Bruno Haible  <bruno@clisp.org>
47426         Tests for module 'pthread_sigmask'.
47427         * modules/pthread_sigmask-tests: New file.
47428         * tests/test-pthread_sigmask1.c: New file, based on
47429         tests/test-sigprocmask.c.
47430         * tests/test-pthread_sigmask2.c: New file.
47432 2011-07-08  Jim Meyering  <meyering@redhat.com>
47434         test-getopt.h: avoid warning about an unused variable
47435         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
47437 2011-07-07  Jim Meyering  <meyering@redhat.com>
47439         maint: reduce list of files exempt from sc_prohibit_leading_TABs
47440         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
47441         now that it no longer contains leading TABs.
47442         Remove unused "url=FIXME" statement.
47444 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
47446         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
47447         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
47448         When gl_THREADLIB is not in use, assume that the POSIX sematics
47449         are desired.  This is better for Emacs, which uses POSIX semantics
47450         on GNUish and/or POSIXish platforms, and does not use threads at
47451         all otherwise.
47453         pthread_sigmask: fix typo when testing for libraries
47454         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
47455         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
47457 2011-07-08  Eric Blake  <eblake@redhat.com>
47459         fts: introduce FTS_NOATIME
47460         * lib/fts_.h (FTS_NOATIME): New bit flag.
47461         (FTS_OPTIONMASK): Adjust.
47462         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
47463         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
47465 2011-07-08  Bruno Haible  <bruno@clisp.org>
47467         Tests for module 'thread'.
47468         * modules/thread-tests: New file.
47469         * tests/test-thread_self.c: New file.
47470         * tests/test-thread_create.cc: New file.
47472 2011-07-08  Bruno Haible  <bruno@clisp.org>
47474         thread: Avoid gcc warnings when using gl_thread_self().
47475         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
47476         'void *'.
47477         (gl_thread_self_pointer): Update.
47479 2011-07-07  Bruno Haible  <bruno@clisp.org>
47481         signal-c++-tests: Check declaration of pthread_sigmask.
47482         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
47483         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
47484         $(LIB_PTHREAD_SIGMASK).
47486 2011-07-07  Bruno Haible  <bruno@clisp.org>
47488         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
47489         * lib/signal.in.h (pthread_sigmask): Override if
47490         REPLACE_PTHREAD_SIGMASK is 1.
47491         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
47492         REPLACE_PTHREAD_SIGMASK.
47493         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
47494         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
47495         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
47496         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
47497         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
47499 2011-07-07  Bruno Haible  <bruno@clisp.org>
47501         pthread_sigmask: Ensure declaration in <signal.h>.
47502         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
47503         include <pthread.h>.
47504         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
47505         problem.
47507 2011-07-07  Bruno Haible  <bruno@clisp.org>
47509         pthread_sigmask: Document the module.
47510         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
47512 2011-07-07  Bruno Haible  <bruno@clisp.org>
47514         pthread_sigmask: Follow gnulib conventions.
47515         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
47516         gl_PTHREAD_SIGMASK.
47517         * modules/pthread_sigmask (configure.ac): Update.
47519 2011-07-07  Bruno Haible  <bruno@clisp.org>
47521         pthread_sigmask: Make declaration C++ safe.
47522         * lib/signal.in.h: In two special conditions, just do an #include_next.
47523         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
47524         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
47525         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
47526         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
47527         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
47528         not REPLACE_PTHREAD_MASK.
47529         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
47530         not REPLACE_PTHREAD_MASK.
47531         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
47533 2011-07-07  Bruno Haible  <bruno@clisp.org>
47535         pthread_sigmask: Fix return value.
47536         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
47537         * lib/pthread_sigmask.c: New file.
47538         * modules/pthread_sigmask (Files): Add it.
47539         (configure.ac): Invoke AC_LIBOBJ.
47541 2011-07-07  Eric Blake  <eblake@redhat.com>
47543         getopt: more portable argv creation
47544         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
47545         const, use char arrays rather than strings.
47546         Suggested by Paul Eggert.
47548 2011-07-07  Bruno Haible  <bruno@clisp.org>
47550         Tests for module 'sigprocmask'.
47551         * modules/sigprocmask-tests: New file.
47552         * tests/test-sigprocmask.c: New file.
47554 2011-07-07  Bruno Haible  <bruno@clisp.org>
47556         float tests: Tweak.
47557         * tests/test-float.c (main): Tweak skip message.
47559 2011-07-07  Eric Blake  <eblake@redhat.com>
47561         getopt: avoid compiler warning during configure
47562         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
47563         assigning string literals to non-const pointer.
47565         getopt-gnu: avoid crash in glibc getopt
47566         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
47567         * tests/test-getopt.h (test_getopt): Enhance test.
47568         * tests/test-getopt_long.h (test_getopt_long): Likewise.
47569         * doc/posix-functions/getopt.texi (getopt): Document it.
47570         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
47571         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
47572         Likewise.
47574 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
47576         getopt: handle W; without long options in getopt [BZ #12922]
47577         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
47578         but no long options are defined, just return 'W'.
47580 2011-07-07  Bruno Haible  <bruno@clisp.org>
47582         Avoid literal tabs.
47583         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
47584         variable containing a tab instead of a literal tab.
47585         Reported by Jim Meyering.
47587 2011-07-07  Bruno Haible  <bruno@clisp.org>
47589         Comments.
47590         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
47592 2011-07-06  Bruno Haible  <bruno@clisp.org>
47594         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
47595         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
47596         <winsock2.h>.
47597         (rpl_fd_isset, FD_ISSET): New definitions, copied from
47598         lib/sys_socket.in.h.
47599         (close, gethostname): Hide declarations from <winsock2.h>.
47600         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
47601         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
47602         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
47603         (select): Don't override if gnulib's <sys/select.h> was already
47604         included.
47605         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
47606         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
47607         setsockopt, shutdown, select): Tweak indentation.
47609 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
47611         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
47612         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
47613         in an application that does not use the sys_select module.
47615 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
47617         poll: do not return 0 on timeout=-1
47618         * lib/poll.c: Loop with yield if no events occurred.
47620 2011-07-06  Eric Blake  <eblake@redhat.com>
47622         pthread_sigmask: always replace when not using pthread
47623         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
47624         replacement when using some threading other than pthread.  Fix
47625         logic bug.
47627 2011-07-06  Bruno Haible  <bruno@clisp.org>
47629         Comments.
47630         * m4/printf.m4: Update comments about mingw.
47632 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
47634         sys_select: define sigset_t more portably
47635         * lib/sys_select.in.h: Always include <sys/types.h>, since
47636         we now need sigset_t and mingw defines it there.
47637         Include <signal.h> before split inclusion guard, to avoid
47638         mishaps on Solaris, whose <signal.h> eventually includes us.
47639         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
47640         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
47641         which come from ...
47642         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
47643         gl_CHECK_TYPE_SIGSET_T.
47644         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
47645         does the real work.
47646         * modules/sys_select (Depends-on): Add 'signal'.
47648         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
47649         Suggested by Bruno Haible.
47651         pselect: Use pthread_sigmask, not sigprocmask.
47652         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
47653         multithreaded apps better than sigprocmask does.
47654         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
47655         sigprocmask directly.
47657 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
47659         * lib/pselect.c (pselect): Use plain name, without "rpl_".
47660         Don't #undef,  since we don't need any underlying pselect.
47661         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
47662         (Depends-on): Add select.
47663         (Link): Add $(LIBSOCKET).
47664         These changes suggested by Bruno Haible.
47666         pselect: document better
47667         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
47668         * doc/posix-functions/pselect.texi (pselect): Document new module.
47670         pthread_sigmask: new module
47671         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
47672         * doc/posix-functions/pthread_sigmask.texi: Document new module.
47673         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
47674         This is done only as a macro; I don't know how well that'll
47675         work for C++.  Move <sys/types.h> include before the include_next,
47676         to avoid mishap on Solaris.
47677         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
47678         * modules/signal (Makefile.am): Substitute the check's results.
47679         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
47681         test-pselect: new module
47682         * modules/pselect-tests, tests/test-pselect.c: New files.
47683         * tests/test-select.c, tests/test-sys_select-c++.cc:
47684         If TEST_PSELECT is defined, test pselect instead of testing select.
47686         * tests/test-sys_select.c (sigset_t): Test for it, too.
47687         Suggested by Bruno Haible.
47689 2011-07-05  Eric Blake  <eblake@redhat.com>
47691         snprintf: guarantee %1$d, for libintl
47692         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
47693         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
47694         * doc/posix-functions/snprintf.texi (snprintf): Update.
47695         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
47696         * tests/test-snprintf.c (main): Enhance test.
47697         * tests/test-vsnprintf.c (main): Likewise.
47699 2011-07-05  Jim Meyering  <meyering@redhat.com>
47701         maint: exempt stdio-read.c and stdio-write.c from the cppi check
47702         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
47703         per Bruno's request, to accommodate this idiom (no space after "#")
47704         even when the function is inside an #if block:
47705         char *
47706         gets (char *s)
47707         #undef gets
47708         {
47709           ...
47710         }
47712 2011-07-04  Jim Meyering  <meyering@redhat.com>
47714         maint: indent with spaces, not TABs, and add a rule to check this
47715         * tests/test-userspec.c: Indent with spaces, not TABs.
47716         * tests/test-argp.c: Likewise.
47717         * tests/test-c-stack2.sh: Likewise.
47718         * tests/test-parse-duration.sh: Likewise
47719         * m4/strtod.m4: Likewise.
47720         * m4/alloca.m4: Likewise.
47721         * m4/pselect.m4: Likewise.
47722         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
47724 2011-07-03  Jim Meyering  <meyering@redhat.com>
47726         maint.mk: correct omissions in prohibit_argmatch_without_use check
47727         This rule would mistakenly report that argmatch.h is included without
47728         use even when both the argmatch and invalid_arg macro were used.
47729         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
47730         of argmatch and invalid_arg.
47732 2011-07-03  Bruno Haible  <bruno@clisp.org>
47734         Comments about EINTR.
47735         * lib/safe-read.h: Explain the purpose of this module.
47736         * lib/safe-write.h: Likewise.
47737         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
47738         module.
47739         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
47740         module.
47741         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47743 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
47745         xnanosleep: Rewrite to use new dtotimespec module.
47746         It has the conversion code that used to be in xnanosleep.
47747         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
47748         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
47749         (TIME_T_MAX): Remove.
47750         (xnanosleep): Rewrite in terms of dtotimespec.
47751         * modules/xnanosleep (Depends-on): Add dtotimespec.
47752         Remove intprops, stdbool.
47754         timespec-add, timespec-sub: new modules
47755         * lib/timespec.h (timespec_add, timespec_sub): New decls.
47756         * lib/timespec-add.c, lib/timespec-sub.c:
47757         * modules/timespec-add, modules/timespec-sub: New files.
47759         dtotimespec: new module
47760         * lib/timespec.h (dtotimespec): New decl.
47761         * lib/dtotimespec.c, modules/dtotimespec: New files.
47763         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
47765         pselect: new module
47766         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
47767         (pselect): New decls.
47768         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
47769         since the standard pselect decl uses 'restrict'.
47770         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
47771         HAVE_PSELECT, REPLACE_PSELECT.
47772         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
47773         HAVE_PSELECT, REPLACE_PSELECT.
47774         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
47776         sys_select: don't depend on sys_socket
47777         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
47778         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
47779         This fix works on GNU and GNU-like platforms, but has not been tested
47780         on native Windows.
47781         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
47782         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
47783         gl_HEADER_SYS_SOCKET.
47784         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
47785         gl_PREREQ_SYS_H_WINSOCK2.
47787 2011-06-29  Eric Blake  <eblake@redhat.com>
47789         pipe2: fix C89 compile problem
47790         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
47791         Reported by Bruno Haible.
47793         pipe, pipe2: don't corrupt fd on error
47794         * lib/pipe.c (pipe): Leave fd unchanged on error.
47795         * lib/pipe2.c (pipe2): Likewise.
47796         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
47797         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
47799 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
47801         mmap-anon: do not use regular expressions inadvertently
47802         * m4/mmap-anon.m4: Remove trailing period from strings sought
47803         in the output.
47805 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
47807         nanosleep: fix integer overflow problem
47808         * lib/nanosleep.c (my_usleep): Don't assume signed integer
47809         arithmetic wraps around on overflow.
47811         nanosleep: simplify carrying
47812         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
47813         first call to the underyling nanosleep, not for the last one.
47814         This doesn't fix any bugs, but it simplifies the computation of
47815         the remaining delay.  Found while auditing integer overflow issues.
47817         dup2: remove test for existence of fcntl
47818         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
47819         "#if HAVE_FCNTL", in the configure-time test program.
47820         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
47821         and therefore speeds up "configure" a bit.  Found while
47822         adding the dup2 module to Emacs.
47824 2011-06-24  Eric Blake  <eblake@redhat.com>
47826         maint.mk: enhance useless header checks
47827         * top/maint.mk (_sc_header_without_use): Check both include
47828         styles.
47829         (sc_prohibit_assert_without_use)
47830         (sc_prohibit_close_stream_without_use)
47831         (sc_prohibit_getopt_without_use)
47832         (sc_prohibit_quotearg_without_use)
47833         (sc_prohibit_quote_without_use)
47834         (sc_prohibit_long_options_without_use)
47835         (sc_prohibit_inttostr_without_use)
47836         (sc_prohibit_ignore_value_without_use)
47837         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
47838         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
47839         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
47840         (sc_prohibit_hash_pjw_without_use)
47841         (sc_prohibit_safe_read_without_use)
47842         (sc_prohibit_argmatch_without_use)
47843         (sc_prohibit_canonicalize_without_use)
47844         (sc_prohibit_root_dev_ino_without_use)
47845         (sc_prohibit_openat_without_use)
47846         (sc_prohibit_c_ctype_without_use)
47847         (sc_prohibit_signal_without_use)
47848         (sc_prohibit_stdio--_without_use)
47849         (sc_prohibit_stdio-safer_without_use)
47850         (sc_prohibit_strings_without_use)
47851         (sc_prohibit_intprops_without_use)
47852         (sc_prohibit_stddef_without_use)
47853         (sc_prohibit_xfreopen_without_use): Update clients.
47855 2011-06-24  Jim Meyering  <meyering@redhat.com>
47857         syntax-check: keep one maint.mk rule in sync with its header
47858         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
47859         of the bug Eric has just fixed, with today's commit 25e4c2ec.
47860         I prefer to avoid temporary files here, so use <(...), but that
47861         is not supported by /bin/sh, so...
47862         (SHELL): Define to /bin/bash.
47864 2011-06-24  Eric Blake  <eblake@redhat.com>
47866         maint.mk: update sc_prohibit_intprops_without_use
47867         * top/maint.mk (_intprops_names): Match recent changes.
47869 2011-06-24  Bruno Haible  <bruno@clisp.org>
47871         strerror-override: No-op tweak.
47872         * lib/strerror-override.h (strerror_override): Reorder conditions,
47873         for consistency with lib/strerror-override.c.
47875 2011-06-23  Eric Blake  <eblake@redhat.com>
47877         maint.mk: test further PATH_MAX issues
47878         * top/maint.mk (sc_prohibit_path_max_array): Rename...
47879         (sc_prohibit_path_max_allocation): ...and also test alloca.
47880         Suggested by Jim Meyering.
47882 2011-06-22  Eric Blake  <eblake@redhat.com>
47884         maint.mk: add syntax-check to avoid char[PATH_MAX]
47885         * top/maint.mk (sc_prohibit_path_max_array): New rule.
47887         stat: be robust to PATH_MAX definition
47888         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
47889         * modules/stat (Depends-on): Add verify.
47891         link: work around IRIX bug
47892         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
47893         * lib/link.c (rpl_link): Work around it.
47894         * tests/test-link.h (test_link): Enhance test.
47895         * doc/posix-functions/link.texi (link): Document the bug.
47897         getopt: silence clang warning
47898         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
47899         dereference.
47900         Reported by Gustavo Martin Domato.
47902 2011-06-22  Jim Meyering  <meyering@redhat.com>
47904         bootstrap: do not insert a blank line into each .gitignore file
47905         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
47907 2011-06-21  Eric Blake  <eblake@redhat.com>
47909         perror: test for output mismatch
47910         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
47911         perror on IRIX.
47913         strerror_r: fix OpenBSD behavior on out-of-range
47914         * lib/strerror_r.c (strerror_r): Always use maximal string.
47915         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
47917         strerror_r: fix OpenBSD behavior on 0
47918         * lib/strerror-override.c (strerror_override): Also override 0
47919         when needed.
47920         * lib/strerror-override.h (strerror_override): Likewise.
47921         * lib/strerror.c (strerror): Simplify, now that 0 override is done
47922         earlier.
47923         * lib/strerror_r.c (strerror_r): Likewise.
47924         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
47925         behavior...
47926         (gl_FUNC_STRERROR_0): ...into new macro.
47927         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
47928         is overridden.
47929         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
47930         * modules/strerror-override (Files): Add strerror.m4.
47931         (configure.ac): Also provide override for 0 when needed.
47932         * doc/posix-functions/strerror.texi (strerror): Document this.
47933         * doc/posix-functions/perror.texi (perror): Likewise.
47935         perror: adjust array size
47936         * modules/perror (Depends-on): Add strerror-override.
47937         * lib/perror.c (perror): Use it to avoid magic number.
47939         strerror-override: reduce size
47940         * lib/strerror-override.c (strerror_override): Use fewer lines.
47942 2011-06-20  Bruno Haible  <bruno@clisp.org>
47944         pathmax: Ensure correct value for PATH_MAX on HP-UX.
47945         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
47947 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
47949         alloca: port to compilers that can optimize like GCC 4.6.0
47950         * lib/alloca.c (find_stack_direction): New signature, taken from
47951         Autoconf git.  This works with GCC 4.6.0.  This code should never
47952         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
47953         be used with other compilers that optimize as well as GCC 4.6.0 does.
47954         (alloca): Adjust to new signature.
47955         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
47956         New macro, which patches Autoconf in a similar way.
47958         c-stack: stop worrying about stack direction
47959         * lib/c-stack.c (find_stack_direction): Remove.
47960         (segv_handler): Don't worry about stack direction growth, as it's
47961         too much of a pain to configure this correctly, given how compilers
47962         are optimizing-away our stack-growth detection code.  Instead, assume
47963         that any access to just before or just after the stack is OK.
47964         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
47965         Don't require AC_FUNC_ALLOCA; no longer needed.
47967 2011-06-20  Eric Blake  <eblake@redhat.com>
47969         test-stat: don't allocate PATH_MAX bytes
47970         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
47971         PATH_MAX-sized buffer.
47972         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
47973         * modules/stat-tests (Depends-on): Likewise.
47974         * tests/test-fstatat.c (includes): Drop pathmax.h.
47975         * tests/test-stat.c (includes): Likewise.
47976         Reported by Bruno Haible.
47978 2011-06-20  Bruno Haible  <bruno@clisp.org>
47980         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
47981         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
47982         * lib/float.c: New file.
47983         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
47984         REPLACE_FLOAT_LDBL.
47985         * modules/float (Files): Add lib/float.c.
47986         (configure.ac): Invoke AC_LIBOBJ.
47987         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
47989 2011-06-20  Bruno Haible  <bruno@clisp.org>
47991         Tests for module 'float'.
47992         * modules/float-tests: New file.
47993         * tests/test-float.c: New file.
47995 2011-06-19  Bruno Haible  <bruno@clisp.org>
47997         isinf: Coding style.
47998         * lib/isinf.c: Use GNU coding style.
48000 2011-06-19  Bruno Haible  <bruno@clisp.org>
48002         linkat test: Avoid test failure on AIX 7.1.
48003         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
48004         * tests/test-link.h (test_link): Likewise.
48006 2011-06-19  Bruno Haible  <bruno@clisp.org>
48008         pread test: Avoid test failure on OpenBSD 4.9.
48009         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
48011 2011-06-19  Bruno Haible  <bruno@clisp.org>
48013         sprintf-posix: Fix test failure on AIX 7.1.
48014         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
48015         * doc/posix-functions/dprintf.texi: Mention limited precision problem
48016         on AIX.
48017         * doc/posix-functions/fprintf.texi: Likewise.
48018         * doc/posix-functions/printf.texi: Likewise.
48019         * doc/posix-functions/snprintf.texi: Likewise.
48020         * doc/posix-functions/sprintf.texi: Likewise.
48021         * doc/posix-functions/vdprintf.texi: Likewise.
48022         * doc/posix-functions/vfprintf.texi: Likewise.
48023         * doc/posix-functions/vprintf.texi: Likewise.
48024         * doc/posix-functions/vsnprintf.texi: Likewise.
48025         * doc/posix-functions/vsprintf.texi: Likewise.
48027 2011-06-19  Bruno Haible  <bruno@clisp.org>
48029         roundl-ieee: Fix test failure on AIX 7.1.
48030         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
48031         * doc/posix-functions/roundl.texi: Mention problem with negative
48032         arguments.
48034 2011-06-19  Bruno Haible  <bruno@clisp.org>
48036         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
48037         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
48038         * doc/posix-functions/round.texi: Mention problem with negative
48039         arguments.
48040         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
48042 2011-06-19  Bruno Haible  <bruno@clisp.org>
48044         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
48045         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
48046         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
48047         * doc/posix-functions/roundf.texi: Mention problem with negative
48048         arguments.
48049         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
48051 2011-06-19  Bruno Haible  <bruno@clisp.org>
48053         ceilf-ieee: Work around bug on MacOS X 10.5.
48054         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
48056         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
48057         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
48058         IEEE compliant, avoid compiler optimizations.
48059         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
48060         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
48061         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
48062         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
48063         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
48064         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
48065         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
48066         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
48067         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
48068         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
48070 2011-06-19  Bruno Haible  <bruno@clisp.org>
48072         ceilf-ieee: Work around bug on AIX 7.1.
48073         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
48074         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
48076 2011-06-19  Bruno Haible  <bruno@clisp.org>
48078         ceil-ieee: Work around bug on AIX 7.1.
48079         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
48080         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
48082 2011-06-18  Bruno Haible  <bruno@clisp.org>
48084         fsync test: Avoid test failure on MacOS X and AIX.
48085         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
48086         EINVAL.
48088 2011-06-18  Bruno Haible  <bruno@clisp.org>
48090         openat, fdopendir tests: Fix link errors.
48091         * modules/openat-tests (Depends-on): Add progname.
48092         * modules/fdopendir-tests (Depends-on): Likewise.
48093         * tests/test-fchownat.c: Include progname.h.
48094         (main): Call set_program_name.
48095         * tests/test-fstatat.c: Include progname.h.
48096         (main): Call set_program_name.
48097         * tests/test-mkdirat.c: Include progname.h.
48098         (main): Call set_program_name.
48099         * tests/test-openat.c: Include progname.h.
48100         (main): Call set_program_name.
48101         * tests/test-unlinkat.c: Include progname.h.
48102         (main): Call set_program_name.
48103         * tests/test-fdopendir.c: Include progname.h.
48104         (main): Call set_program_name.
48106 2011-06-18  Bruno Haible  <bruno@clisp.org>
48108         Doc update.
48109         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
48110         HP-UX.
48111         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
48113 2011-06-18  Bruno Haible  <bruno@clisp.org>
48115         getcwd tests: Avoid compilation error on HP-UX 11.31.
48116         * modules/getcwd-tests (Depends-on): Add pathmax.
48117         * tests/test-getcwd.c: Include pathmax.h.
48119 2011-06-18  Bruno Haible  <bruno@clisp.org>
48121         isfinite, isinf: Fix link error on AIX 6 and 7.
48122         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
48123         needed, also test the macro with a 'float' argument.
48124         * m4/isinf.m4 (gl_ISINF): Likewise.
48126 2011-06-18  Bruno Haible  <bruno@clisp.org>
48128         getloadavg: Don't clobber LIBS. Regression from previous commit.
48129         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
48130         AC_CHECK_LIB from here...
48131         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
48132         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
48133         gl_func_getloadavg_done.
48134         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48136 2011-06-18  Bruno Haible  <bruno@clisp.org>
48138         clean-temp: Improve documentation.
48139         * lib/clean-temp.h: Explain better how to use this module.
48140         Reported by John Darrington <john@darrington.wattle.id.au>.
48142 2011-06-17  Bruno Haible  <bruno@clisp.org>
48144         pread, pwrite: Avoid cc warning on AIX.
48145         * lib/unistd.in.h (pread): Undefine before defining as a macro.
48146         (pwrite): Likewise.
48148 2011-06-17  Bruno Haible  <bruno@clisp.org>
48150         spawn-pipe tests: Fix link error.
48151         * tests/test-spawn-pipe-child.c: Undefine fprintf.
48152         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48154 2011-06-17  Bruno Haible  <bruno@clisp.org>
48156         Tests: Remove unnecessary dependency.
48157         * modules/canonicalize-tests (Depends-on): Remove progname.
48158         * modules/chown-tests (Depends-on): Likewise.
48159         * modules/dirname-tests (Depends-on): Likewise.
48160         * modules/fdopendir-tests (Depends-on): Likewise.
48161         * modules/fdutimensat-tests (Depends-on): Likewise.
48162         * modules/hash-tests (Depends-on): Likewise.
48163         * modules/lchown-tests (Depends-on): Likewise.
48164         * modules/linkat-tests (Depends-on): Likewise.
48165         * modules/renameat-tests (Depends-on): Likewise.
48166         * modules/spawn-pipe-tests (Depends-on): Likewise.
48167         * modules/utimensat-tests (Depends-on): Likewise.
48169 2011-06-17  Bruno Haible  <bruno@clisp.org>
48171         spawn-pipe tests: Fix link error.
48172         * tests/test-spawn-pipe-child.c: Undefine fflush.
48174 2011-06-17  Bruno Haible  <bruno@clisp.org>
48176         Fix tests link errors.
48177         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
48178         * modules/chown-tests (Makefile.am): Don't link test-chown with
48179         LIBINTL.
48180         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
48181         LIBINTL.
48182         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
48183         LIBINTL.
48184         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
48185         LIBINTL.
48187 2011-06-16  Bruno Haible  <bruno@clisp.org>
48189         crypto/gc-sha1: Fix recent regression.
48190         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
48191         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
48193         crypto/gc-md5: Fix recent regression.
48194         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
48196         crypto/gc-md4: Fix recent regression.
48197         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
48198         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
48200         crypto/gc-arctwo: Fix recent regression.
48201         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
48202         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
48204         crypto/gc-rijndael: Fix recent regression.
48205         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
48206         (configure.ac): Invoke AC_LIBOBJ here.
48207         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
48208         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48210         crypto/gc-hmac-sha1: Fix recent regression.
48211         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
48212         (configure.ac): Invoke AC_LIBOBJ here.
48213         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
48214         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48216         crypto/gc-hmac-md5: Fix recent regression.
48217         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
48218         (configure.ac): Invoke AC_LIBOBJ here.
48219         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
48220         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48222         crypto/gc-des: Fix recent regression.
48223         * modules/crypto/gc-des (Files): Remove m4/des.m4.
48224         (configure.ac): Invoke AC_LIBOBJ here.
48225         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
48226         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48228         crypto/gc-arcfour: Fix recent regression.
48229         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
48230         (configure.ac): Invoke AC_LIBOBJ here.
48231         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
48232         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48234 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
48236         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
48237         After the 2011-05-21 change, this macro requires
48238         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
48239         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
48241 2011-06-16  Bruno Haible  <bruno@clisp.org>
48243         fprintftime: Move AC_LIBOBJ invocations to module description.
48244         * m4/fprintftime.m4: Remove file.
48245         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
48246         (configure.ac): Remove gl_FPRINTFTIME call.
48247         (Makefile.am): Augment lib_SOURCES.
48248         Reported by Jim Meyering.
48250 2011-06-16  Bruno Haible  <bruno@clisp.org>
48252         tmpfile-safer: Finish 2011-05-23 commit.
48253         * m4/stdio-safer.m4: Really remove file.
48254         Reported by Jim Meyering.
48256 2011-06-16  Bruno Haible  <bruno@clisp.org>
48258         syntax-check: Fix typo.
48259         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
48260         printf-posix.m4.
48261         Reported by Jim Meyering.
48263 2011-06-13  Jim Meyering  <meyering@redhat.com>
48265         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
48266         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
48268 2011-05-23  Bruno Haible  <bruno@clisp.org>
48270         yesno: Move AC_LIBOBJ invocations to module description.
48271         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
48272         * modules/yesno (Makefile.am): Augment lib_SOURCES.
48274 2011-05-23  Bruno Haible  <bruno@clisp.org>
48276         xstrtol: Move AC_LIBOBJ invocations to module description.
48277         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
48278         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
48280 2011-05-23  Bruno Haible  <bruno@clisp.org>
48282         xstrtold: Move AC_LIBOBJ invocations to module description.
48283         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
48284         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
48286 2011-05-23  Bruno Haible  <bruno@clisp.org>
48288         xstrtod: Move AC_LIBOBJ invocations to module description.
48289         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
48290         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
48292 2011-05-23  Bruno Haible  <bruno@clisp.org>
48294         xnanosleep: Move AC_LIBOBJ invocations to module description.
48295         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
48296         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
48298 2011-05-23  Bruno Haible  <bruno@clisp.org>
48300         xgetcwd: Move AC_LIBOBJ invocations to module description.
48301         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
48302         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
48304 2011-05-23  Bruno Haible  <bruno@clisp.org>
48306         xalloc: Move AC_LIBOBJ invocations to module description.
48307         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
48308         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
48310 2011-05-23  Bruno Haible  <bruno@clisp.org>
48312         write-any-file: Move AC_LIBOBJ invocations to module description.
48313         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
48314         invocation.
48315         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
48317 2011-05-23  Bruno Haible  <bruno@clisp.org>
48319         utimens: Move AC_LIBOBJ invocations to module description.
48320         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
48321         * modules/utimens (Makefile.am): Augment lib_SOURCES.
48323 2011-05-23  Bruno Haible  <bruno@clisp.org>
48325         utimecmp: Move AC_LIBOBJ invocations to module description.
48326         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
48327         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
48329 2011-05-23  Bruno Haible  <bruno@clisp.org>
48331         userspec: Move AC_LIBOBJ invocations to module description.
48332         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
48333         * modules/userspec (Makefile.am): Augment lib_SOURCES.
48335 2011-05-23  Bruno Haible  <bruno@clisp.org>
48337         unlinkdir: Move AC_LIBOBJ invocations to module description.
48338         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
48339         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
48341 2011-05-23  Bruno Haible  <bruno@clisp.org>
48343         unistd-safer: Move AC_LIBOBJ invocations to module description.
48344         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
48345         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
48347 2011-05-23  Bruno Haible  <bruno@clisp.org>
48349         tempname: Move AC_LIBOBJ invocations to module description.
48350         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
48351         * modules/tempname (Makefile.am): Augment lib_SOURCES.
48353 2011-05-23  Bruno Haible  <bruno@clisp.org>
48355         strftime: Move AC_LIBOBJ invocations to module description.
48356         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
48357         * modules/strftime (Makefile.am): Augment lib_SOURCES.
48359 2011-05-23  Bruno Haible  <bruno@clisp.org>
48361         stdlib-safer: Move AC_LIBOBJ invocations to module description.
48362         * m4/stdlib-safer.m4: Remove file.
48363         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
48364         (configure.ac): Remove gl_STDLIB_SAFER call.
48365         (Makefile.am): Augment lib_SOURCES.
48367 2011-05-23  Bruno Haible  <bruno@clisp.org>
48369         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
48370         * m4/stdio-safer.m4: Remove file.
48371         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
48372         (configure.ac): Remove gl_TMPFILE_SAFER call.
48373         (Makefile.am): Augment lib_SOURCES.
48375 2011-05-23  Bruno Haible  <bruno@clisp.org>
48377         popen-safer: Move AC_LIBOBJ invocations to module description.
48378         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
48379         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
48380         (configure.ac): Remove gl_POPEN_SAFER call.
48381         (Makefile.am): Augment lib_SOURCES.
48383 2011-05-23  Bruno Haible  <bruno@clisp.org>
48385         freopen-safer: Move AC_LIBOBJ invocations to module description.
48386         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
48387         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
48388         (configure.ac): Remove gl_FREOPEN_SAFER call.
48389         (Makefile.am): Augment lib_SOURCES.
48391 2011-05-23  Bruno Haible  <bruno@clisp.org>
48393         fopen-safer: Move AC_LIBOBJ invocations to module description.
48394         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
48395         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
48396         (configure.ac): Remove gl_FOPEN_SAFER call.
48397         (Makefile.am): Augment lib_SOURCES.
48399 2011-05-23  Bruno Haible  <bruno@clisp.org>
48401         crypto/sha512: Move AC_LIBOBJ invocations to module description.
48402         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
48403         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
48405 2011-05-23  Bruno Haible  <bruno@clisp.org>
48407         crypto/sha256: Move AC_LIBOBJ invocations to module description.
48408         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
48409         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
48411 2011-05-23  Bruno Haible  <bruno@clisp.org>
48413         crypto/sha1: Move AC_LIBOBJ invocations to module description.
48414         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
48415         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
48417 2011-05-23  Bruno Haible  <bruno@clisp.org>
48419         settime: Move AC_LIBOBJ invocations to module description.
48420         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
48421         * modules/settime (Makefile.am): Augment lib_SOURCES.
48423 2011-05-23  Bruno Haible  <bruno@clisp.org>
48425         savedir: Move AC_LIBOBJ invocations to module description.
48426         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
48427         * modules/savedir (Makefile.am): Augment lib_SOURCES.
48429 2011-05-23  Bruno Haible  <bruno@clisp.org>
48431         save-cwd: Move AC_LIBOBJ invocations to module description.
48432         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
48433         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
48435 2011-05-23  Bruno Haible  <bruno@clisp.org>
48437         same: Move AC_LIBOBJ invocations to module description.
48438         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
48439         * modules/same (Makefile.am): Augment lib_SOURCES.
48441 2011-05-23  Bruno Haible  <bruno@clisp.org>
48443         safe-write: Move AC_LIBOBJ invocations to module description.
48444         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
48445         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
48446         instead of gl_SAFE_WRITE.
48447         (Makefile.am): Augment lib_SOURCES.
48449 2011-05-23  Bruno Haible  <bruno@clisp.org>
48451         safe-read: Move AC_LIBOBJ invocations to module description.
48452         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
48453         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
48454         of gl_SAFE_READ.
48455         (Makefile.am): Augment lib_SOURCES.
48457 2011-05-23  Bruno Haible  <bruno@clisp.org>
48459         safe-alloc: Move AC_LIBOBJ invocations to module description.
48460         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
48461         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
48463 2011-05-23  Bruno Haible  <bruno@clisp.org>
48465         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
48466         * m4/rijndael.m4: Remove file.
48467         * modules/crypto/rijndael (Files): Remove it.
48468         (configure.ac): Remove gl_RIJNDAEL call.
48469         (Makefile.am): Augment lib_SOURCES.
48471 2011-05-23  Bruno Haible  <bruno@clisp.org>
48473         readtokens: Move AC_LIBOBJ invocations to module description.
48474         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
48475         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
48477 2011-05-23  Bruno Haible  <bruno@clisp.org>
48479         read-file: Move AC_LIBOBJ invocations to module description.
48480         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
48481         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
48482         of gl_FUNC_READ_FILE.
48483         (Makefile.am): Augment lib_SOURCES.
48485 2011-05-23  Bruno Haible  <bruno@clisp.org>
48487         quotearg: Move AC_LIBOBJ invocations to module description.
48488         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
48489         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
48491 2011-05-23  Bruno Haible  <bruno@clisp.org>
48493         quote: Move AC_LIBOBJ invocations to module description.
48494         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
48495         * modules/quote (Makefile.am): Augment lib_SOURCES.
48497 2011-05-23  Bruno Haible  <bruno@clisp.org>
48499         posixver: Move AC_LIBOBJ invocations to module description.
48500         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
48501         * modules/posixver (Makefile.am): Augment lib_SOURCES.
48503 2011-05-23  Bruno Haible  <bruno@clisp.org>
48505         posixtm: Move AC_LIBOBJ invocations to module description.
48506         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
48507         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
48509 2011-05-23  Bruno Haible  <bruno@clisp.org>
48511         physmem: Move AC_LIBOBJ invocations to module description.
48512         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
48513         * modules/physmem (Makefile.am): Augment lib_SOURCES.
48515 2011-05-23  Bruno Haible  <bruno@clisp.org>
48517         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
48518         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
48519         invocation.
48520         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
48522 2011-05-23  Bruno Haible  <bruno@clisp.org>
48524         mpsort: Move AC_LIBOBJ invocations to module description.
48525         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
48526         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
48528 2011-05-23  Bruno Haible  <bruno@clisp.org>
48530         modechange: Move AC_LIBOBJ invocations to module description.
48531         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
48532         * modules/modechange (Makefile.am): Augment lib_SOURCES.
48534 2011-05-23  Bruno Haible  <bruno@clisp.org>
48536         mkdir-p: Move AC_LIBOBJ invocations to module description.
48537         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
48538         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
48540 2011-05-23  Bruno Haible  <bruno@clisp.org>
48542         mkancesdirs: Move AC_LIBOBJ invocations to module description.
48543         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
48544         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
48546 2011-05-23  Bruno Haible  <bruno@clisp.org>
48548         mgetgroups: Move AC_LIBOBJ invocations to module description.
48549         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
48550         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
48552 2011-05-23  Bruno Haible  <bruno@clisp.org>
48554         memxor: Move AC_LIBOBJ invocations to module description.
48555         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
48556         * modules/memxor (Makefile.am): Augment lib_SOURCES.
48558 2011-05-23  Bruno Haible  <bruno@clisp.org>
48560         memcoll: Move AC_LIBOBJ invocations to module description.
48561         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
48562         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
48564 2011-05-23  Bruno Haible  <bruno@clisp.org>
48566         memcasecmp: Move AC_LIBOBJ invocations to module description.
48567         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
48568         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
48570 2011-05-23  Bruno Haible  <bruno@clisp.org>
48572         crypto/md5: Move AC_LIBOBJ invocations to module description.
48573         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
48574         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
48576 2011-05-23  Bruno Haible  <bruno@clisp.org>
48578         crypto/md4: Move AC_LIBOBJ invocations to module description.
48579         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
48580         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
48582 2011-05-23  Bruno Haible  <bruno@clisp.org>
48584         crypto/md2: Move AC_LIBOBJ invocations to module description.
48585         * m4/md2.m4: Remove file.
48586         * modules/crypto/md2 (Files): Remove it.
48587         (configure.ac): Remove gl_MD2 call.
48588         (Makefile.am): Augment lib_SOURCES.
48590 2011-05-23  Bruno Haible  <bruno@clisp.org>
48592         long-options: Move AC_LIBOBJ invocations to module description.
48593         * m4/long-options.m4: Remove file.
48594         * modules/long-options (Files): Remove it.
48595         (configure.ac): Remove gl_LONG_OPTIONS call.
48596         (Makefile.am): Augment lib_SOURCES.
48598 2011-05-23  Bruno Haible  <bruno@clisp.org>
48600         i-ring: Move AC_LIBOBJ invocations to module description.
48601         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
48602         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
48604 2011-05-23  Bruno Haible  <bruno@clisp.org>
48606         idcache: Move AC_LIBOBJ invocations to module description.
48607         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
48608         * modules/idcache (Makefile.am): Augment lib_SOURCES.
48610 2011-05-23  Bruno Haible  <bruno@clisp.org>
48612         human: Move AC_LIBOBJ invocations to module description.
48613         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
48614         * modules/human (Makefile.am): Augment lib_SOURCES.
48616 2011-05-23  Bruno Haible  <bruno@clisp.org>
48618         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
48619         * m4/hmac-sha1.m4: Remove file.
48620         * modules/crypto/hmac-sha1 (Files): Remove it.
48621         (configure.ac): Remove gl_HMAC_SHA1 call.
48622         (Makefile.am): Augment lib_SOURCES.
48624 2011-05-23  Bruno Haible  <bruno@clisp.org>
48626         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
48627         * m4/hmac-md5.m4: Remove file.
48628         * modules/crypto/hmac-md5 (Files): Remove it.
48629         (configure.ac): Remove gl_HMAC_MD5 call.
48630         (Makefile.am): Augment lib_SOURCES.
48632 2011-05-23  Bruno Haible  <bruno@clisp.org>
48634         hash: Move AC_LIBOBJ invocations to module description.
48635         * m4/hash.m4: Remove file.
48636         * modules/hash (Files): Remove it.
48637         (configure.ac): Remove gl_HASH call.
48638         (Makefile.am): Augment lib_SOURCES.
48640 2011-05-23  Bruno Haible  <bruno@clisp.org>
48642         hard-locale: Move AC_LIBOBJ invocations to module description.
48643         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
48644         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
48646 2011-05-23  Bruno Haible  <bruno@clisp.org>
48648         getugroups: Move AC_LIBOBJ invocations to module description.
48649         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
48650         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
48652 2011-05-23  Bruno Haible  <bruno@clisp.org>
48654         gettime: Move AC_LIBOBJ invocations to module description.
48655         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
48656         * modules/gettime (Makefile.am): Augment lib_SOURCES.
48658 2011-05-23  Bruno Haible  <bruno@clisp.org>
48660         getndelim2: Move AC_LIBOBJ invocations to module description.
48661         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
48662         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
48664 2011-05-23  Bruno Haible  <bruno@clisp.org>
48666         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
48667         * m4/gc-pbkdf2-sha1.m4: Remove file.
48668         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
48669         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
48670         (Makefile.am): Augment lib_SOURCES.
48672 2011-05-23  Bruno Haible  <bruno@clisp.org>
48674         fts: Move AC_LIBOBJ invocations to module description.
48675         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
48676         * modules/fts (configure.ac): ... to here.
48678 2011-05-23  Bruno Haible  <bruno@clisp.org>
48680         file-type: Move AC_LIBOBJ invocations to module description.
48681         * m4/file-type.m4: Remove file.
48682         * modules/file-type (Files): Remove it.
48683         (configure.ac): Remove gl_FILE_TYPE call.
48684         (Makefile.am): Augment lib_SOURCES.
48686 2011-05-23  Bruno Haible  <bruno@clisp.org>
48688         filenamecat*: Respect rules for use of AC_LIBOBJ.
48689         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
48690         Remove AC_LIBOBJ invocation.
48691         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
48692         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
48694 2011-05-23  Bruno Haible  <bruno@clisp.org>
48696         filemode: Move AC_LIBOBJ invocations to module description.
48697         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
48698         * modules/filemode (Makefile.am): Augment lib_SOURCES.
48700 2011-05-23  Bruno Haible  <bruno@clisp.org>
48702         openat-safer: Move AC_LIBOBJ invocations to module description.
48703         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
48704         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
48706 2011-05-23  Bruno Haible  <bruno@clisp.org>
48708         fcntl-safer: Move AC_LIBOBJ invocations to module description.
48709         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
48710         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
48712 2011-05-23  Bruno Haible  <bruno@clisp.org>
48714         exclude: Move AC_LIBOBJ invocations to module description.
48715         * m4/exclude.m4: Remove file.
48716         * modules/exclude (Files): Remove it.
48717         (configure.ac): Remove gl_EXCLUDE call.
48718         (Makefile.am): Augment lib_SOURCES.
48720 2011-05-23  Bruno Haible  <bruno@clisp.org>
48722         dirname*: Respect rules for use of AC_LIBOBJ.
48723         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
48724         invocations.
48725         * modules/dirname (Makefile.am): Augment lib_SOURCES.
48726         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
48728 2011-05-23  Bruno Haible  <bruno@clisp.org>
48730         dirent-safer: Move AC_LIBOBJ invocations to module description.
48731         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
48732         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
48734 2011-05-23  Bruno Haible  <bruno@clisp.org>
48736         crypto/des: Move AC_LIBOBJ invocations to module description.
48737         * m4/des.m4: Remove file.
48738         * modules/crypto/des (Files): Remove it.
48739         (configure.ac): Remove gl_DES call.
48740         (Makefile.am): Augment lib_SOURCES.
48742 2011-05-23  Bruno Haible  <bruno@clisp.org>
48744         cycle-check: Move AC_LIBOBJ invocations to module description.
48745         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
48746         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
48748 2011-05-23  Bruno Haible  <bruno@clisp.org>
48750         c-strtold: Move AC_LIBOBJ invocations to module description.
48751         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
48752         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
48754 2011-05-23  Bruno Haible  <bruno@clisp.org>
48756         c-strtod: Move AC_LIBOBJ invocations to module description.
48757         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
48758         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
48760 2011-05-23  Bruno Haible  <bruno@clisp.org>
48762         crc: Move AC_LIBOBJ invocations to module description.
48763         * m4/crc.m4: Remove file.
48764         * modules/crc (Files): Remove it.
48765         (configure.ac): Remove gl_CRC call.
48766         (Makefile.am): Augment lib_SOURCES.
48768 2011-05-23  Bruno Haible  <bruno@clisp.org>
48770         close-stream: Move AC_LIBOBJ invocations to module description.
48771         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
48772         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
48774 2011-05-23  Bruno Haible  <bruno@clisp.org>
48776         closeout: Move AC_LIBOBJ invocations to module description.
48777         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
48778         * modules/closeout (Makefile.am): Augment lib_SOURCES.
48780 2011-05-23  Bruno Haible  <bruno@clisp.org>
48782         closein: Move AC_LIBOBJ invocations to module description.
48783         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
48784         * modules/closein (Makefile.am): Augment lib_SOURCES.
48786 2011-05-23  Bruno Haible  <bruno@clisp.org>
48788         cloexec: Move AC_LIBOBJ invocations to module description.
48789         * m4/cloexec.m4: Remove file.
48790         * modules/cloexec (Files): Remove it.
48791         (configure.ac): Remove gl_CLOEXEC call.
48792         (Makefile.am): Augment lib_SOURCES.
48794 2011-05-23  Bruno Haible  <bruno@clisp.org>
48796         check-version: Move AC_LIBOBJ invocations to module description.
48797         * m4/check-version.m4: Remove file.
48798         * modules/check-version (Files): Remove it.
48799         (configure.ac): Remove gl_CHECK_VERSION call.
48800         (Makefile.am): Augment lib_SOURCES.
48802 2011-05-23  Bruno Haible  <bruno@clisp.org>
48804         chdir-safer: Move AC_LIBOBJ invocations to module description.
48805         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
48806         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
48808 2011-05-23  Bruno Haible  <bruno@clisp.org>
48810         canonicalize: Move AC_LIBOBJ invocations to module description.
48811         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
48812         AC_LIBOBJ invocation.
48813         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
48815 2011-05-23  Bruno Haible  <bruno@clisp.org>
48817         canon-host: Move AC_LIBOBJ invocations to module description.
48818         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
48819         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
48820         instead of gl_CANON_HOST.
48821         (Makefile.am): Augment lib_SOURCES.
48823 2011-05-23  Bruno Haible  <bruno@clisp.org>
48825         backupfile: Move AC_LIBOBJ invocations to module description.
48826         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
48827         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
48829 2011-05-23  Bruno Haible  <bruno@clisp.org>
48831         argmatch: Move AC_LIBOBJ invocations to module description.
48832         * m4/argmatch.m4: Remove file.
48833         * modules/argmatch (Files): Remove it.
48834         (configure.ac): Remove gl_ARGMATCH call.
48835         (Makefile.am): Augment lib_SOURCES.
48837 2011-05-23  Bruno Haible  <bruno@clisp.org>
48839         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
48840         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
48841         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
48843 2011-05-23  Bruno Haible  <bruno@clisp.org>
48845         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
48846         * m4/arcfour.m4: Remove file.
48847         * modules/crypto/arcfour (Files): Remove it.
48848         (configure.ac): Remove gl_ARCFOUR call.
48849         (Makefile.am): Augment lib_SOURCES.
48851 2011-05-22  Bruno Haible  <bruno@clisp.org>
48853         write: Move AC_LIBOBJ invocations to module description.
48854         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
48855         * modules/write (configure.ac): ... to here.
48857 2011-05-22  Bruno Haible  <bruno@clisp.org>
48859         wmemset: Move AC_LIBOBJ invocations to module description.
48860         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
48861         here...
48862         * modules/wmemset (configure.ac): ... to here.
48864 2011-05-22  Bruno Haible  <bruno@clisp.org>
48866         wmemmove: Move AC_LIBOBJ invocations to module description.
48867         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
48868         here...
48869         * modules/wmemmove (configure.ac): ... to here.
48871 2011-05-22  Bruno Haible  <bruno@clisp.org>
48873         wmemcpy: Move AC_LIBOBJ invocations to module description.
48874         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
48875         here...
48876         * modules/wmemcpy (configure.ac): ... to here.
48878 2011-05-22  Bruno Haible  <bruno@clisp.org>
48880         wmemcmp: Move AC_LIBOBJ invocations to module description.
48881         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
48882         here...
48883         * modules/wmemcmp (configure.ac): ... to here.
48885 2011-05-22  Bruno Haible  <bruno@clisp.org>
48887         wmemchr: Move AC_LIBOBJ invocations to module description.
48888         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
48889         here...
48890         * modules/wmemchr (configure.ac): ... to here.
48892 2011-05-22  Bruno Haible  <bruno@clisp.org>
48894         wcswidth: Move AC_LIBOBJ invocations to module description.
48895         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
48896         here...
48897         * modules/wcswidth (configure.ac): ... to here.
48899 2011-05-22  Bruno Haible  <bruno@clisp.org>
48901         wcwidth: Respect rules for use of AC_LIBOBJ.
48902         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
48903         invocation from here...
48904         * modules/wcwidth (configure.ac): ... to here.
48905         (Depends-on): Update conditions.
48907 2011-05-22  Bruno Haible  <bruno@clisp.org>
48909         wctype: Move AC_LIBOBJ invocations to module description.
48910         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
48911         invocation from here...
48912         * modules/wctype (configure.ac): ... to here.
48913         (Depends-on): Update conditions.
48915 2011-05-22  Bruno Haible  <bruno@clisp.org>
48917         wctrans: Move AC_LIBOBJ invocations to module description.
48918         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
48919         invocation from here...
48920         * modules/wctrans (configure.ac): ... to here.
48922 2011-05-22  Bruno Haible  <bruno@clisp.org>
48924         wctomb: Move AC_LIBOBJ invocations to module description.
48925         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
48926         invocations from here...
48927         * modules/wctomb (configure.ac): ... to here.
48929 2011-05-22  Bruno Haible  <bruno@clisp.org>
48931         wctob: Move AC_LIBOBJ invocations to module description.
48932         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
48933         gl_PREREQ_WCTOB invocations from here...
48934         * modules/wctob (configure.ac): ... to here.
48935         (Depends-on): Update conditions.
48937 2011-05-22  Bruno Haible  <bruno@clisp.org>
48939         wcsxfrm: Move AC_LIBOBJ invocations to module description.
48940         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
48941         here...
48942         * modules/wcsxfrm (configure.ac): ... to here.
48944 2011-05-22  Bruno Haible  <bruno@clisp.org>
48946         wcstok: Move AC_LIBOBJ invocations to module description.
48947         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
48948         * modules/wcstok (configure.ac): ... to here.
48950 2011-05-22  Bruno Haible  <bruno@clisp.org>
48952         wcsstr: Move AC_LIBOBJ invocations to module description.
48953         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
48954         * modules/wcsstr (configure.ac): ... to here.
48956 2011-05-22  Bruno Haible  <bruno@clisp.org>
48958         wcsspn: Move AC_LIBOBJ invocations to module description.
48959         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
48960         * modules/wcsspn (configure.ac): ... to here.
48962 2011-05-22  Bruno Haible  <bruno@clisp.org>
48964         wcsrtombs: Move AC_LIBOBJ invocations to module description.
48965         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
48966         gl_PREREQ_WCSRTOMBS invocations from here...
48967         * modules/wcsrtombs (configure.ac): ... to here.
48969 2011-05-22  Bruno Haible  <bruno@clisp.org>
48971         wcsrchr: Move AC_LIBOBJ invocations to module description.
48972         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
48973         here...
48974         * modules/wcsrchr (configure.ac): ... to here.
48976 2011-05-22  Bruno Haible  <bruno@clisp.org>
48978         wcspbrk: Move AC_LIBOBJ invocations to module description.
48979         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
48980         here...
48981         * modules/wcspbrk (configure.ac): ... to here.
48983 2011-05-22  Bruno Haible  <bruno@clisp.org>
48985         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
48986         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
48987         gl_PREREQ_WCSNRTOMBS invocations from here...
48988         * modules/wcsnrtombs (configure.ac): ... to here.
48990 2011-05-22  Bruno Haible  <bruno@clisp.org>
48992         wcsnlen: Move AC_LIBOBJ invocations to module description.
48993         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
48994         here...
48995         * modules/wcsnlen (configure.ac): ... to here.
48997 2011-05-22  Bruno Haible  <bruno@clisp.org>
48999         wcsncpy: Move AC_LIBOBJ invocations to module description.
49000         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
49001         here...
49002         * modules/wcsncpy (configure.ac): ... to here.
49004 2011-05-22  Bruno Haible  <bruno@clisp.org>
49006         wcsncmp: Move AC_LIBOBJ invocations to module description.
49007         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
49008         here...
49009         * modules/wcsncmp (configure.ac): ... to here.
49011 2011-05-22  Bruno Haible  <bruno@clisp.org>
49013         wcsncat: Move AC_LIBOBJ invocations to module description.
49014         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
49015         here...
49016         * modules/wcsncat (configure.ac): ... to here.
49018 2011-05-22  Bruno Haible  <bruno@clisp.org>
49020         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
49021         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
49022         from here...
49023         * modules/wcsncasecmp (configure.ac): ... to here.
49025 2011-05-22  Bruno Haible  <bruno@clisp.org>
49027         wcslen: Move AC_LIBOBJ invocations to module description.
49028         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
49029         * modules/wcslen (configure.ac): ... to here.
49031 2011-05-22  Bruno Haible  <bruno@clisp.org>
49033         wcsdup: Move AC_LIBOBJ invocations to module description.
49034         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
49035         * modules/wcsdup (configure.ac): ... to here.
49037 2011-05-22  Bruno Haible  <bruno@clisp.org>
49039         wcscspn: Move AC_LIBOBJ invocations to module description.
49040         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
49041         here...
49042         * modules/wcscspn (configure.ac): ... to here.
49044 2011-05-22  Bruno Haible  <bruno@clisp.org>
49046         wcscpy: Move AC_LIBOBJ invocations to module description.
49047         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
49048         * modules/wcscpy (configure.ac): ... to here.
49050 2011-05-22  Bruno Haible  <bruno@clisp.org>
49052         wcscoll: Move AC_LIBOBJ invocations to module description.
49053         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
49054         here...
49055         * modules/wcscoll (configure.ac): ... to here.
49057 2011-05-22  Bruno Haible  <bruno@clisp.org>
49059         wcscmp: Move AC_LIBOBJ invocations to module description.
49060         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
49061         * modules/wcscmp (configure.ac): ... to here.
49063 2011-05-22  Bruno Haible  <bruno@clisp.org>
49065         wcschr: Move AC_LIBOBJ invocations to module description.
49066         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
49067         * modules/wcschr (configure.ac): ... to here.
49069 2011-05-22  Bruno Haible  <bruno@clisp.org>
49071         wcscat: Move AC_LIBOBJ invocations to module description.
49072         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
49073         * modules/wcscat (configure.ac): ... to here.
49075 2011-05-22  Bruno Haible  <bruno@clisp.org>
49077         wcscasecmp: Move AC_LIBOBJ invocations to module description.
49078         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
49079         here...
49080         * modules/wcscasecmp (configure.ac): ... to here.
49082 2011-05-22  Bruno Haible  <bruno@clisp.org>
49084         wcrtomb: Move AC_LIBOBJ invocations to module description.
49085         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
49086         invocations from here...
49087         * modules/wcrtomb (configure.ac): ... to here.
49089 2011-05-22  Bruno Haible  <bruno@clisp.org>
49091         wcpncpy: Move AC_LIBOBJ invocations to module description.
49092         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
49093         here...
49094         * modules/wcpncpy (configure.ac): ... to here.
49096 2011-05-22  Bruno Haible  <bruno@clisp.org>
49098         wcpcpy: Move AC_LIBOBJ invocations to module description.
49099         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
49100         * modules/wcpcpy (configure.ac): ... to here.
49102 2011-05-22  Bruno Haible  <bruno@clisp.org>
49104         waitpid: Move AC_LIBOBJ invocations to module description.
49105         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
49106         invocation from here...
49107         * modules/waitpid (configure.ac): ... to here.
49109 2011-05-22  Bruno Haible  <bruno@clisp.org>
49111         utimensat: Move AC_LIBOBJ invocations to module description.
49112         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
49113         here...
49114         * modules/utimensat (configure.ac): ... to here.
49116 2011-05-22  Bruno Haible  <bruno@clisp.org>
49118         usleep: Move AC_LIBOBJ invocations to module description.
49119         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
49120         here...
49121         * modules/usleep (configure.ac): ... to here.
49123 2011-05-22  Bruno Haible  <bruno@clisp.org>
49125         unlockpt: Move AC_LIBOBJ invocations to module description.
49126         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
49127         gl_PREREQ_UNLOCKPT invocations from here...
49128         * modules/unlockpt (configure.ac): ... to here.
49130 2011-05-22  Bruno Haible  <bruno@clisp.org>
49132         unlink: Respect rules for use of AC_LIBOBJ.
49133         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
49134         * modules/unlink (configure.ac): ... to here.
49136 2011-05-22  Bruno Haible  <bruno@clisp.org>
49138         uname: Move AC_LIBOBJ invocations to module description.
49139         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
49140         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
49141         here...
49142         * modules/uname (configure.ac): ... to here.
49144 2011-05-22  Bruno Haible  <bruno@clisp.org>
49146         ttyname_r: Move AC_LIBOBJ invocations to module description.
49147         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
49148         gl_PREREQ_TTYNAME_R invocations from here...
49149         * modules/ttyname_r (configure.ac): ... to here.
49151 2011-05-22  Bruno Haible  <bruno@clisp.org>
49153         tsearch: Move AC_LIBOBJ invocations to module description.
49154         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
49155         invocations from here...
49156         * modules/tsearch (configure.ac): ... to here.
49158 2011-05-22  Bruno Haible  <bruno@clisp.org>
49160         towctrans: Move AC_LIBOBJ invocations to module description.
49161         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
49162         AC_LIBOBJ invocation from here...
49163         * modules/towctrans (configure.ac): ... to here.
49165 2011-05-22  Bruno Haible  <bruno@clisp.org>
49167         tmpfile: Move AC_LIBOBJ invocations to module description.
49168         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
49169         invocations from here...
49170         * modules/tmpfile (configure.ac): ... to here.
49172 2011-05-22  Bruno Haible  <bruno@clisp.org>
49174         times: Move AC_LIBOBJ invocations to module description.
49175         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
49176         * modules/times (configure.ac): ... to here.
49178 2011-05-22  Bruno Haible  <bruno@clisp.org>
49180         time_r: Move AC_LIBOBJ invocations to module description.
49181         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
49182         invocations from here...
49183         * modules/time_r (configure.ac): ... to here.
49185 2011-05-22  Bruno Haible  <bruno@clisp.org>
49187         timegm: Move AC_LIBOBJ invocations to module description.
49188         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
49189         invocations from here...
49190         * modules/timegm (configure.ac): ... to here.
49192 2011-05-22  Bruno Haible  <bruno@clisp.org>
49194         tcgetsid: Move AC_LIBOBJ invocations to module description.
49195         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
49196         and gl_PREREQ_TCGETSID invocations from here...
49197         * modules/tcgetsid (configure.ac): ... to here.
49198         (Depends-on): Update conditions.
49200 2011-05-22  Bruno Haible  <bruno@clisp.org>
49202         symlinkat: Move AC_LIBOBJ invocations to module description.
49203         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
49204         here...
49205         * modules/symlinkat (configure.ac): ... to here.
49207 2011-05-22  Bruno Haible  <bruno@clisp.org>
49209         symlink: Move AC_LIBOBJ invocations to module description.
49210         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
49211         here...
49212         * modules/symlink (configure.ac): ... to here.
49214 2011-05-22  Bruno Haible  <bruno@clisp.org>
49216         strverscmp: Move AC_LIBOBJ invocations to module description.
49217         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
49218         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
49219         from here...
49220         * modules/strverscmp (configure.ac): ... to here.
49222 2011-05-22  Bruno Haible  <bruno@clisp.org>
49224         strtok_r: Move AC_LIBOBJ invocations to module description.
49225         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
49226         and gl_PREREQ_STRTOK_R invocations from here...
49227         * modules/strtok_r (configure.ac): ... to here.
49228         (Depends-on): Update conditions.
49230 2011-05-22  Bruno Haible  <bruno@clisp.org>
49232         strtoumax: Move AC_LIBOBJ invocations to module description.
49233         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
49234         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
49235         from here...
49236         * modules/strtoumax (configure.ac): ... to here.
49238 2011-05-22  Bruno Haible  <bruno@clisp.org>
49240         strtoimax: Move AC_LIBOBJ invocations to module description.
49241         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
49242         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
49243         from here...
49244         * modules/strtoimax (configure.ac): ... to here.
49246 2011-05-22  Bruno Haible  <bruno@clisp.org>
49248         strtoull: Move AC_LIBOBJ invocations to module description.
49249         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
49250         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
49251         from here...
49252         * modules/strtoull (configure.ac): ... to here.
49254 2011-05-22  Bruno Haible  <bruno@clisp.org>
49256         strtoll: Move AC_LIBOBJ invocations to module description.
49257         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
49258         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
49259         here...
49260         * modules/strtoll (configure.ac): ... to here.
49262 2011-05-22  Bruno Haible  <bruno@clisp.org>
49264         strtoul: Move AC_LIBOBJ invocations to module description.
49265         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
49266         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
49267         * modules/strtoul (configure.ac): ... to here.
49269 2011-05-22  Bruno Haible  <bruno@clisp.org>
49271         strtol: Move AC_LIBOBJ invocations to module description.
49272         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
49273         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
49274         * modules/strtol (configure.ac): ... to here.
49276 2011-05-22  Bruno Haible  <bruno@clisp.org>
49278         strtod: Move AC_LIBOBJ invocations to module description.
49279         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
49280         invocations from here...
49281         * modules/strtod (configure.ac): ... to here.
49283 2011-05-22  Bruno Haible  <bruno@clisp.org>
49285         strstr*: Move AC_LIBOBJ invocations to module description.
49286         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
49287         invocations from here...
49288         * modules/strstr-simple (configure.ac): ... to here.
49289         * modules/strstr (configure.ac): ... and here.
49291 2011-05-22  Bruno Haible  <bruno@clisp.org>
49293         strsignal: Move AC_LIBOBJ invocations to module description.
49294         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
49295         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
49296         * modules/strsignal (configure.ac): ... to here.
49297         (Depends-on): Update conditions.
49299 2011-05-22  Bruno Haible  <bruno@clisp.org>
49301         strsep: Move AC_LIBOBJ invocations to module description.
49302         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
49303         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
49304         here...
49305         * modules/strsep (configure.ac): ... to here.
49307 2011-05-22  Bruno Haible  <bruno@clisp.org>
49309         strptime: Move AC_LIBOBJ invocations to module description.
49310         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
49311         gl_PREREQ_STRPTIME invocations from here...
49312         * modules/strptime (configure.ac): ... to here.
49314 2011-05-22  Bruno Haible  <bruno@clisp.org>
49316         strpbrk: Move AC_LIBOBJ invocations to module description.
49317         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
49318         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
49319         here...
49320         * modules/strpbrk (configure.ac): ... to here.
49322 2011-05-22  Bruno Haible  <bruno@clisp.org>
49324         strnlen: Move AC_LIBOBJ invocations to module description.
49325         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
49326         invocations from here...
49327         * modules/strnlen (configure.ac): ... to here.
49329 2011-05-22  Bruno Haible  <bruno@clisp.org>
49331         strndup: Move AC_LIBOBJ invocations to module description.
49332         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
49333         invocations from here...
49334         * modules/strndup (configure.ac): ... to here.
49335         (Depends-on): Update conditions.
49337 2011-05-22  Bruno Haible  <bruno@clisp.org>
49339         strncat: Move AC_LIBOBJ invocations to module description.
49340         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
49341         invocations from here...
49342         * modules/strncat (configure.ac): ... to here.
49344 2011-05-22  Bruno Haible  <bruno@clisp.org>
49346         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
49347         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
49348         invocations from here...
49349         * modules/strdup (configure.ac): ... to here.
49350         * modules/strdup-posix (configure.ac): ... and here.
49352 2011-05-22  Bruno Haible  <bruno@clisp.org>
49354         strcspn: Move AC_LIBOBJ invocations to module description.
49355         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
49356         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
49357         here...
49358         * modules/strcspn (configure.ac): ... to here.
49360 2011-05-22  Bruno Haible  <bruno@clisp.org>
49362         strchrnul: Move AC_LIBOBJ invocations to module description.
49363         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
49364         gl_PREREQ_STRCHRNUL invocations from here...
49365         * modules/strchrnul (configure.ac): ... to here.
49367 2011-05-22  Bruno Haible  <bruno@clisp.org>
49369         strcasestr*: Move AC_LIBOBJ invocations to module description.
49370         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
49371         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
49372         * modules/strcasestr-simple (configure.ac): ... to here.
49373         * modules/strcasestr (configure.ac): ... and here.
49375 2011-05-22  Bruno Haible  <bruno@clisp.org>
49377         strcase: Move AC_LIBOBJ invocations to module description.
49378         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
49379         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
49380         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
49381         gl_PREREQ_STRNCASECMP invocations from here...
49382         * modules/strcase (configure.ac): ... to here.
49384 2011-05-22  Bruno Haible  <bruno@clisp.org>
49386         stpncpy: Move AC_LIBOBJ invocations to module description.
49387         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
49388         here...
49389         * modules/stpncpy (configure.ac): ... to here.
49391 2011-05-22  Bruno Haible  <bruno@clisp.org>
49393         stpcpy: Move AC_LIBOBJ invocations to module description.
49394         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
49395         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
49396         here...
49397         * modules/stpcpy (configure.ac): ... to here.
49399 2011-05-21  Bruno Haible  <bruno@clisp.org>
49401         stat: Move AC_LIBOBJ invocations to module description.
49402         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
49403         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
49404         here...
49405         * modules/stat (configure.ac): ... to here.
49407 2011-05-21  Bruno Haible  <bruno@clisp.org>
49409         sleep: Move AC_LIBOBJ invocations to module description.
49410         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
49411         * modules/sleep (configure.ac): ... to here.
49413 2011-05-21  Bruno Haible  <bruno@clisp.org>
49415         signbit: Move AC_LIBOBJ invocations to module description.
49416         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
49417         * modules/signbit (configure.ac): ... to here.
49419 2011-05-21  Bruno Haible  <bruno@clisp.org>
49421         sigprocmask: Move AC_LIBOBJ invocations to module description.
49422         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
49423         gl_PREREQ_SIGPROMASK invocations from here...
49424         * modules/sigprocmask (configure.ac): ... to here.
49426 2011-05-21  Bruno Haible  <bruno@clisp.org>
49428         sigaction: Move AC_LIBOBJ invocations to module description.
49429         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
49430         gl_PREREQ_SIGACTION invocations from here...
49431         * modules/sigaction (configure.ac): ... to here.
49433 2011-05-21  Bruno Haible  <bruno@clisp.org>
49435         sig2str: Move AC_LIBOBJ invocations to module description.
49436         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
49437         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
49438         here...
49439         * modules/sig2str (configure.ac): ... to here.
49441 2011-05-21  Bruno Haible  <bruno@clisp.org>
49443         setlocale: Move AC_LIBOBJ invocations to module description.
49444         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
49445         gl_PREREQ_SETLOCALE invocations from here...
49446         * modules/setlocale (configure.ac): ... to here.
49448 2011-05-21  Bruno Haible  <bruno@clisp.org>
49450         unsetenv: Move AC_LIBOBJ invocations to module description.
49451         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
49452         and gl_PREREQ_UNSETENV invocations from here...
49453         * modules/unsetenv (configure.ac): ... to here.
49454         (Depends-on): Update.
49456 2011-05-21  Bruno Haible  <bruno@clisp.org>
49458         setenv: Move AC_LIBOBJ invocations to module description.
49459         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
49460         here...
49461         * modules/setenv (configure.ac): ... to here.
49463 2011-05-21  Bruno Haible  <bruno@clisp.org>
49465         selinux-h: Move AC_LIBOBJ invocations to module description.
49466         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
49467         AC_LIBOBJ invocation from here...
49468         * modules/selinux-h (configure.ac): ... to here.
49470 2011-05-21  Bruno Haible  <bruno@clisp.org>
49472         select: Respect rules for use of AC_LIBOBJ.
49473         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
49474         here...
49475         * modules/select (configure.ac): ... to here.
49477 2011-05-21  Bruno Haible  <bruno@clisp.org>
49479         scandir: Move AC_LIBOBJ invocations to module description.
49480         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
49481         invocations from here...
49482         * modules/scandir (configure.ac): ... to here.
49484 2011-05-21  Bruno Haible  <bruno@clisp.org>
49486         rpmatch: Move AC_LIBOBJ invocations to module description.
49487         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
49488         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
49489         here...
49490         * modules/rpmatch (configure.ac): ... to here.
49492 2011-05-21  Bruno Haible  <bruno@clisp.org>
49494         rmdir: Respect rules for use of AC_LIBOBJ.
49495         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
49496         * modules/rmdir (configure.ac): ... to here.
49498 2011-05-21  Bruno Haible  <bruno@clisp.org>
49500         renameat: Move AC_LIBOBJ invocations to module description.
49501         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
49502         here...
49503         * modules/renameat (configure.ac): ... to here.
49505 2011-05-21  Bruno Haible  <bruno@clisp.org>
49507         rename: Respect rules for use of AC_LIBOBJ.
49508         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
49509         here...
49510         * modules/rename (configure.ac): ... to here.
49512 2011-05-21  Bruno Haible  <bruno@clisp.org>
49514         remove: Move AC_LIBOBJ invocations to module description.
49515         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
49516         here...
49517         * modules/remove (configure.ac): ... to here.
49519 2011-05-21  Bruno Haible  <bruno@clisp.org>
49521         relocatable-lib: Move AC_LIBOBJ invocations to module description.
49522         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
49523         macro.
49524         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
49525         * modules/relocatable-lib (configure.ac): ... to here.
49526         * modules/relocatable-prog-wrapper (configure.ac): Invoke
49527         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
49529 2011-05-21  Bruno Haible  <bruno@clisp.org>
49531         relocatable-prog: Move AC_LIBOBJ invocations to module description.
49532         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
49533         here...
49534         * modules/relocatable-prog (configure.ac): ... to here.
49536 2011-05-21  Bruno Haible  <bruno@clisp.org>
49538         regex: Move AC_LIBOBJ invocations to module description.
49539         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
49540         invocations from here...
49541         * modules/regex (configure.ac): ... to here.
49543 2011-05-21  Bruno Haible  <bruno@clisp.org>
49545         realloc-*: Move AC_LIBOBJ invocations to module description.
49546         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
49547         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
49548         AC_LIBOBJ invocations from here...
49549         * modules/realloc-gnu (configure.ac): ... to here.
49550         * modules/realloc-posix (configure.ac): ... and here.
49552 2011-05-21  Bruno Haible  <bruno@clisp.org>
49554         readutmp: Move AC_LIBOBJ invocations to module description.
49555         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
49556         * modules/readutmp (configure.ac): ... to here.
49558 2011-05-21  Bruno Haible  <bruno@clisp.org>
49560         readlinkat: Move AC_LIBOBJ invocations to module description.
49561         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
49562         here...
49563         * modules/readlinkat (configure.ac): ... to here.
49565 2011-05-21  Bruno Haible  <bruno@clisp.org>
49567         readlink: Move AC_LIBOBJ invocations to module description.
49568         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
49569         gl_PREREQ_READLINK invocations from here...
49570         * modules/readlink (configure.ac): ... to here.
49572 2011-05-21  Bruno Haible  <bruno@clisp.org>
49574         readline: Move AC_LIBOBJ invocations to module description.
49575         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
49576         gl_PREREQ_READLINE invocations from here...
49577         * modules/readline (configure.ac): ... to here.
49579 2011-05-21  Bruno Haible  <bruno@clisp.org>
49581         read: Move AC_LIBOBJ invocations to module description.
49582         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
49583         * modules/read (configure.ac): ... to here.
49585 2011-05-21  Bruno Haible  <bruno@clisp.org>
49587         rawmemchr: Move AC_LIBOBJ invocations to module description.
49588         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
49589         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
49590         from here...
49591         * modules/rawmemchr (configure.ac): ... to here.
49593 2011-05-21  Bruno Haible  <bruno@clisp.org>
49595         random_r: Move AC_LIBOBJ invocations to module description.
49596         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
49597         gl_PREREQ_RANDOM_R invocations from here...
49598         * modules/random_r (configure.ac): ... to here.
49600 2011-05-21  Bruno Haible  <bruno@clisp.org>
49602         pwrite: Move AC_LIBOBJ invocations to module description.
49603         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
49604         * modules/pwrite (configure.ac): ... to here.
49606 2011-05-21  Bruno Haible  <bruno@clisp.org>
49608         putenv: Move AC_LIBOBJ invocations to module description.
49609         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
49610         * modules/putenv (configure.ac): ... to here.
49612 2011-05-21  Bruno Haible  <bruno@clisp.org>
49614         login_tty: Move AC_LIBOBJ invocations to module description.
49615         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
49616         * modules/login_tty (configure.ac): ... to here.
49618 2011-05-21  Bruno Haible  <bruno@clisp.org>
49620         openpty: Move AC_LIBOBJ invocations to module description.
49621         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
49622         * modules/openpty (configure.ac): ... to here.
49624 2011-05-21  Bruno Haible  <bruno@clisp.org>
49626         forkpty: Move AC_LIBOBJ invocations to module description.
49627         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
49628         * modules/forkpty (configure.ac): ... to here.
49630 2011-05-21  Bruno Haible  <bruno@clisp.org>
49632         ptsname: Move AC_LIBOBJ invocations to module description.
49633         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
49634         invocations from here...
49635         * modules/ptsname (configure.ac): ... to here.
49637 2011-05-21  Bruno Haible  <bruno@clisp.org>
49639         pread: Move AC_LIBOBJ invocations to module description.
49640         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
49641         * modules/pread (configure.ac): ... to here.
49643 2011-05-21  Bruno Haible  <bruno@clisp.org>
49645         posix_spawn*: Move AC_LIBOBJ invocations to module description.
49646         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
49647         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
49648         * modules/posix_spawn (configure.ac): ... to here.
49649         * modules/posix_spawnp (configure.ac): ... and here.
49651 2011-05-21  Bruno Haible  <bruno@clisp.org>
49653         popen: Move AC_LIBOBJ invocations to module description.
49654         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
49655         invocations from here...
49656         * modules/popen (configure.ac): ... to here.
49658 2011-05-21  Bruno Haible  <bruno@clisp.org>
49660         poll: Move AC_LIBOBJ invocations to module description.
49661         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
49662         invocations from here...
49663         * modules/poll (configure.ac): ... to here.
49665 2011-05-21  Bruno Haible  <bruno@clisp.org>
49667         pipe-posix: Move AC_LIBOBJ invocations to module description.
49668         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
49669         * modules/pipe-posix (configure.ac): ... to here.
49671 2011-05-21  Bruno Haible  <bruno@clisp.org>
49673         openat: Respect rules for use of AC_LIBOBJ.
49674         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
49675         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
49676         * modules/openat (configure.ac): ... to here.
49678 2011-05-21  Bruno Haible  <bruno@clisp.org>
49680         obstack-printf*: Move AC_LIBOBJ invocations to module description.
49681         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
49682         invocation from here...
49683         * modules/obstack-printf (configure.ac): ... to here.
49684         * modules/obstack-printf-posix (configure.ac): ... and here.
49686 2011-05-21  Bruno Haible  <bruno@clisp.org>
49688         nl_langinfo: Move AC_LIBOBJ invocations to module description.
49689         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
49690         from here...
49691         * modules/nl_langinfo (configure.ac): ... to here.
49693 2011-05-21  Bruno Haible  <bruno@clisp.org>
49695         nanosleep: Move AC_LIBOBJ invocations to module description.
49696         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
49697         gl_PREREQ_NANOSLEEP invocations from here...
49698         * modules/nanosleep (configure.ac): ... to here.
49700 2011-05-21  Bruno Haible  <bruno@clisp.org>
49702         mountlist: Move AC_LIBOBJ invocations to module description.
49703         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
49704         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
49705         * modules/mountlist (configure.ac): ... to here.
49707 2011-05-21  Bruno Haible  <bruno@clisp.org>
49709         mktime: Respect rules for use of AC_LIBOBJ.
49710         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
49711         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
49712         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
49713         (gl_FUNC_MKTIME_INTERNAL): ... and here...
49714         * modules/mktime (configure.ac): ... to here.
49715         * modules/mktime-internal (configure.ac): ... and here.
49716         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
49718 2011-05-21  Bruno Haible  <bruno@clisp.org>
49720         mkstemps: Move AC_LIBOBJ invocations to module description.
49721         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
49722         here...
49723         * modules/mkstemps (configure.ac): ... to here.
49725 2011-05-21  Bruno Haible  <bruno@clisp.org>
49727         mkstemp: Move AC_LIBOBJ invocations to module description.
49728         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
49729         gl_PREREQ_MKSTEMP invocations from here...
49730         * modules/mkstemp (configure.ac): ... to here.
49732 2011-05-21  Bruno Haible  <bruno@clisp.org>
49734         mkostemps: Move AC_LIBOBJ invocations to module description.
49735         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
49736         here...
49737         * modules/mkostemps (configure.ac): ... to here.
49739 2011-05-21  Bruno Haible  <bruno@clisp.org>
49741         mkostemp: Move AC_LIBOBJ invocations to module description.
49742         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
49743         gl_PREREQ_MKOSTEMP invocations from here...
49744         * modules/mkostemp (configure.ac): ... to here.
49746 2011-05-21  Bruno Haible  <bruno@clisp.org>
49748         mknod: Move AC_LIBOBJ invocations to module description.
49749         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
49750         * modules/mknod (configure.ac): ... to here.
49752 2011-05-21  Bruno Haible  <bruno@clisp.org>
49754         mkfifoat: Move AC_LIBOBJ invocations to module description.
49755         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
49756         here...
49757         * modules/mkfifoat (configure.ac): ... to here.
49759 2011-05-21  Bruno Haible  <bruno@clisp.org>
49761         mkfifo: Respect rules for use of AC_LIBOBJ.
49762         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
49763         here...
49764         * modules/mkfifo (configure.ac): ... to here.
49766 2011-05-21  Bruno Haible  <bruno@clisp.org>
49768         mkdtemp: Move AC_LIBOBJ invocations to module description.
49769         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
49770         invocations from here...
49771         * modules/mkdtemp (configure.ac): ... to here.
49773 2011-05-21  Bruno Haible  <bruno@clisp.org>
49775         mkdir: Move AC_LIBOBJ invocations to module description.
49776         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
49777         * modules/mkdir (configure.ac): ... to here.
49779 2011-05-21  Bruno Haible  <bruno@clisp.org>
49781         memset: Move AC_LIBOBJ invocations to module description.
49782         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
49783         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
49784         here...
49785         * modules/memset (configure.ac): ... to here.
49787 2011-05-21  Bruno Haible  <bruno@clisp.org>
49789         memrchr: Move AC_LIBOBJ invocations to module description.
49790         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
49791         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
49792         here...
49793         * modules/memrchr (configure.ac): ... to here.
49795 2011-05-21  Bruno Haible  <bruno@clisp.org>
49797         mempcpy: Move AC_LIBOBJ invocations to module description.
49798         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
49799         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
49800         here...
49801         * modules/mempcpy (configure.ac): ... to here.
49803 2011-05-21  Bruno Haible  <bruno@clisp.org>
49805         memmove: Move AC_LIBOBJ invocations to module description.
49806         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
49807         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
49808         here...
49809         * modules/memmove (configure.ac): ... to here.
49811 2011-05-21  Bruno Haible  <bruno@clisp.org>
49813         memmem*: Move AC_LIBOBJ invocations to module description.
49814         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
49815         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
49816         here...
49817         (gl_FUNC_MEMMEM): ... and here...
49818         * modules/memmem-simple (configure.ac): ... to here.
49819         * modules/memmem (configure.ac): ... and here.
49821 2011-05-21  Bruno Haible  <bruno@clisp.org>
49823         memcpy: Move AC_LIBOBJ invocations to module description.
49824         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
49825         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
49826         here...
49827         * modules/memcpy (configure.ac): ... to here.
49829 2011-05-21  Bruno Haible  <bruno@clisp.org>
49831         memcmp: Simplify autoconf macro.
49832         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
49833         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
49834         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
49836 2011-05-21  Bruno Haible  <bruno@clisp.org>
49838         memcmp: Move AC_LIBOBJ invocations to module description.
49839         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
49840         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
49841         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
49842         * modules/memcmp (configure.ac): ... to here.
49843         (Depends-on): Update conditions.
49845 2011-05-21  Bruno Haible  <bruno@clisp.org>
49847         memchr: Respect rules for use of AC_LIBOBJ.
49848         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
49849         invocations from here...
49850         * modules/memchr (configure.ac): ... to here.
49852 2011-05-21  Bruno Haible  <bruno@clisp.org>
49854         mbtowc: Move AC_LIBOBJ invocations to module description.
49855         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
49856         invocations from here...
49857         * modules/mbtowc (configure.ac): ... to here.
49859 2011-05-21  Bruno Haible  <bruno@clisp.org>
49861         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
49862         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
49863         gl_PREREQ_MBSRTOWCS invocations from here...
49864         * modules/mbsrtowcs (configure.ac): ... to here.
49866 2011-05-21  Bruno Haible  <bruno@clisp.org>
49868         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
49869         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
49870         gl_PREREQ_MBSNRTOWCS invocations from here...
49871         * modules/mbsnrtowcs (configure.ac): ... to here.
49873 2011-05-21  Bruno Haible  <bruno@clisp.org>
49875         mbsinit: Move AC_LIBOBJ invocations to module description.
49876         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
49877         invocations from here...
49878         * modules/mbsinit (configure.ac): ... to here.
49880 2011-05-21  Bruno Haible  <bruno@clisp.org>
49882         mbrlen: Move AC_LIBOBJ invocations to module description.
49883         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
49884         invocations from here...
49885         * modules/mbrlen (configure.ac): ... to here.
49887 2011-05-21  Bruno Haible  <bruno@clisp.org>
49889         mbrtowc: Respect rules for use of AC_LIBOBJ.
49890         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
49891         invocations from here...
49892         * modules/mbrtowc (configure.ac): ... to here.
49894 2011-05-21  Bruno Haible  <bruno@clisp.org>
49896         malloc-*: Move AC_LIBOBJ invocations to module description.
49897         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
49898         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
49899         AC_LIBOBJ invocations from here...
49900         * modules/malloc-gnu (configure.ac): ... to here.
49901         * modules/malloc-posix (configure.ac): ... and here.
49903 2011-05-21  Bruno Haible  <bruno@clisp.org>
49905         lstat, openat: Respect rules for use of AC_LIBOBJ.
49906         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
49907         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
49908         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
49909         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
49910         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
49911         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
49912         here.
49913         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
49915 2011-05-21  Bruno Haible  <bruno@clisp.org>
49917         lseek: Move AC_LIBOBJ invocations to module description.
49918         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
49919         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
49920         * modules/lseek (configure.ac): ... to here.
49922 2011-05-21  Bruno Haible  <bruno@clisp.org>
49924         linkat: Move AC_LIBOBJ invocations to module description.
49925         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
49926         here...
49927         * modules/linkat (configure.ac): ... to here.
49929 2011-05-21  Bruno Haible  <bruno@clisp.org>
49931         link: Respect rules for use of AC_LIBOBJ.
49932         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
49933         * modules/link (configure.ac): ... to here.
49935 2011-05-21  Bruno Haible  <bruno@clisp.org>
49937         lchown: Move AC_LIBOBJ invocations to module description.
49938         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
49939         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
49940         * modules/lchown (configure.ac): ... to here.
49942 2011-05-21  Bruno Haible  <bruno@clisp.org>
49944         iswctype: Move AC_LIBOBJ invocations to module description.
49945         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
49946         here...
49947         * modules/iswctype (configure.ac): ... to here.
49949 2011-05-21  Bruno Haible  <bruno@clisp.org>
49951         iswblank: Move AC_LIBOBJ invocations to module description.
49952         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
49953         here...
49954         * modules/iswblank (configure.ac): ... to here.
49956 2011-05-21  Bruno Haible  <bruno@clisp.org>
49958         atanl: Move AC_LIBOBJ invocations to module description.
49959         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
49960         * modules/atanl (configure.ac): ... to here.
49962 2011-05-21  Bruno Haible  <bruno@clisp.org>
49964         acosl: Move AC_LIBOBJ invocations to module description.
49965         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
49966         * modules/acosl (configure.ac): ... to here.
49968 2011-05-21  Bruno Haible  <bruno@clisp.org>
49970         asinl: Respect rules for use of AC_LIBOBJ.
49971         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
49972         * modules/asinl (configure.ac): ... to here.
49974 2011-05-21  Bruno Haible  <bruno@clisp.org>
49976         tanl: Move AC_LIBOBJ invocations to module description.
49977         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
49978         * modules/tanl (configure.ac): ... to here.
49980 2011-05-21  Bruno Haible  <bruno@clisp.org>
49982         cosl: Move AC_LIBOBJ invocations to module description.
49983         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
49984         * modules/cosl (configure.ac): ... to here.
49986 2011-05-21  Bruno Haible  <bruno@clisp.org>
49988         sinl: Move AC_LIBOBJ invocations to module description.
49989         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
49990         * modules/sinl (configure.ac): ... to here.
49992 2011-05-21  Bruno Haible  <bruno@clisp.org>
49994         logl: Move AC_LIBOBJ invocations to module description.
49995         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
49996         * modules/logl (configure.ac): ... to here.
49998 2011-05-21  Bruno Haible  <bruno@clisp.org>
50000         expl: Move AC_LIBOBJ invocations to module description.
50001         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
50002         * modules/expl (configure.ac): ... to here.
50004 2011-05-21  Bruno Haible  <bruno@clisp.org>
50006         roundl: Move AC_LIBOBJ invocations to module description.
50007         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
50008         * modules/roundl (configure.ac): ... to here.
50010 2011-05-21  Bruno Haible  <bruno@clisp.org>
50012         round: Move AC_LIBOBJ invocations to module description.
50013         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
50014         * modules/round (configure.ac): ... to here.
50016 2011-05-21  Bruno Haible  <bruno@clisp.org>
50018         roundf: Move AC_LIBOBJ invocations to module description.
50019         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
50020         * modules/roundf (configure.ac): ... to here.
50022 2011-05-21  Bruno Haible  <bruno@clisp.org>
50024         truncl: Move AC_LIBOBJ invocations to module description.
50025         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
50026         * modules/truncl (configure.ac): ... to here.
50028 2011-05-21  Bruno Haible  <bruno@clisp.org>
50030         trunc: Move AC_LIBOBJ invocations to module description.
50031         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
50032         * modules/trunc (configure.ac): ... to here.
50034 2011-05-21  Bruno Haible  <bruno@clisp.org>
50036         truncf: Move AC_LIBOBJ invocations to module description.
50037         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
50038         * modules/truncf (configure.ac): ... to here.
50040 2011-05-21  Bruno Haible  <bruno@clisp.org>
50042         ceill: Move AC_LIBOBJ invocations to module description.
50043         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
50044         * modules/ceill (configure.ac): ... to here.
50046 2011-05-21  Bruno Haible  <bruno@clisp.org>
50048         ceil: Move AC_LIBOBJ invocations to module description.
50049         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
50050         * modules/ceil (configure.ac): ... to here.
50052 2011-05-21  Bruno Haible  <bruno@clisp.org>
50054         ceilf: Move AC_LIBOBJ invocations to module description.
50055         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
50056         * modules/ceilf (configure.ac): ... to here.
50058 2011-05-21  Bruno Haible  <bruno@clisp.org>
50060         floorl: Respect rules for use of AC_LIBOBJ.
50061         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
50062         * modules/floorl (configure.ac): ... to here.
50064 2011-05-21  Bruno Haible  <bruno@clisp.org>
50066         floor: Respect rules for use of AC_LIBOBJ.
50067         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
50068         * modules/floor (configure.ac): ... to here.
50070 2011-05-21  Bruno Haible  <bruno@clisp.org>
50072         floorf: Move AC_LIBOBJ invocations to module description.
50073         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
50074         * modules/floorf (configure.ac): ... to here.
50076 2011-05-20  Bruno Haible  <bruno@clisp.org>
50078         sqrtl: Respect rules for use of AC_LIBOBJ.
50079         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
50080         * modules/sqrtl (configure.ac): ... to here.
50082 2011-05-20  Bruno Haible  <bruno@clisp.org>
50084         ldexpl: Respect rules for use of AC_LIBOBJ.
50085         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
50086         * modules/ldexpl (configure.ac): ... to here.
50088 2011-05-20  Bruno Haible  <bruno@clisp.org>
50090         frexpl*: Respect rules for use of AC_LIBOBJ.
50091         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
50092         invocation from here...
50093         * modules/frexpl (configure.ac): ... to here.
50094         * modules/frexpl-nolibm (configure.ac): ... and here.
50096 2011-05-20  Bruno Haible  <bruno@clisp.org>
50098         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
50099         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
50100         invocation from here...
50101         * modules/frexp (configure.ac): ... to here.
50102         * modules/frexp-nolibm (configure.ac): ... and here.
50104 2011-05-20  Bruno Haible  <bruno@clisp.org>
50106         isnan: Respect rules for use of AC_LIBOBJ.
50107         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
50108         invocations here.
50109         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
50110         REPLACE_ISNAN.
50111         * modules/isnand (configure.ac): Likewise.
50112         * modules/isnanl (configure.ac): Likewise.
50114 2011-05-20  Bruno Haible  <bruno@clisp.org>
50116         isnanl*: Respect rules for use of AC_LIBOBJ.
50117         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
50118         invocation from here...
50119         * modules/isnanl (configure.ac): ... to here.
50120         * modules/isnanl-nolibm (configure.ac): ... and here.
50122 2011-05-20  Bruno Haible  <bruno@clisp.org>
50124         isnand*: Move AC_LIBOBJ invocations to module description.
50125         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
50126         invocation from here...
50127         * modules/isnand (configure.ac): ... to here.
50128         * modules/isnand-nolibm (configure.ac): ... and here.
50130 2011-05-20  Bruno Haible  <bruno@clisp.org>
50132         isnanf*: Move AC_LIBOBJ invocations to module description.
50133         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
50134         invocation from here...
50135         * modules/isnanf (configure.ac): ... to here.
50136         * modules/isnanf-nolibm (configure.ac): ... and here.
50138 2011-05-20  Bruno Haible  <bruno@clisp.org>
50140         isnan*: Separate the AC_LIBOBJ invocations.
50141         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
50142         AC_LIBOBJ invocation.
50143         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
50144         here.
50145         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
50146         AC_LIBOBJ invocation.
50147         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
50148         here.
50149         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
50150         AC_LIBOBJ invocation.
50151         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
50152         here.
50153         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
50155 2011-05-08  Bruno Haible  <bruno@clisp.org>
50157         isinf: Move AC_LIBOBJ invocations to module description.
50158         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
50159         * modules/isinf (configure.ac): ... to here.
50161 2011-05-08  Bruno Haible  <bruno@clisp.org>
50163         isfinite: Move AC_LIBOBJ invocations to module description.
50164         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
50165         * modules/isfinite (configure.ac): ... to here.
50167 2011-05-08  Bruno Haible  <bruno@clisp.org>
50169         isblank: Move AC_LIBOBJ invocations to module description.
50170         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
50171         here...
50172         * modules/isblank (configure.ac): ... to here.
50174 2011-05-08  Bruno Haible  <bruno@clisp.org>
50176         isapipe: Move AC_LIBOBJ invocations to module description.
50177         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
50178         gl_PREREQ_ISAPIPE invocations from here...
50179         * modules/isapipe (configure.ac): ... to here.
50180         (Depends-on): Update condition.
50182 2011-05-08  Bruno Haible  <bruno@clisp.org>
50184         ioctl: Move AC_LIBOBJ invocations to module description.
50185         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
50186         invocations from here...
50187         * modules/ioctl (configure.ac): ... to here.
50188         (Depends-on): Update condition.
50190 2011-05-08  Bruno Haible  <bruno@clisp.org>
50192         imaxdiv: Move AC_LIBOBJ invocations to module description.
50193         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
50194         invocations from here...
50195         * modules/imaxdiv (configure.ac): ... to here.
50197 2011-05-08  Bruno Haible  <bruno@clisp.org>
50199         imaxabs: Move AC_LIBOBJ invocations to module description.
50200         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
50201         invocations from here...
50202         * modules/imaxabs (configure.ac): ... to here.
50204 2011-05-08  Bruno Haible  <bruno@clisp.org>
50206         getaddrinfo: Move AC_LIBOBJ invocations to module description.
50207         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
50208         AC_LIBOBJ invocations from here...
50209         * modules/getaddrinfo (configure.ac): ... to here.
50210         (Depends-on): Add conditions.
50212 2011-05-08  Bruno Haible  <bruno@clisp.org>
50214         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
50215         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
50216         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
50217         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
50218         (gl_PREREQ_INET_PTON): ... from here.
50219         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
50220         gl_PREREQ_INET_PTON here.
50221         (Depends-on): Update condition.
50223 2011-05-08  Bruno Haible  <bruno@clisp.org>
50225         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
50226         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
50227         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
50228         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
50229         (gl_PREREQ_INET_NTOP): ... from here.
50230         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
50231         gl_PREREQ_INET_NTOP here.
50232         (Depends-on): Update condition.
50234 2011-05-08  Bruno Haible  <bruno@clisp.org>
50236         iconv_open: Move AC_LIBOBJ invocations to module description.
50237         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
50238         AC_LIBOBJ invocations from here...
50239         * modules/iconv_open (configure.ac): ... to here.
50241 2011-05-08  Bruno Haible  <bruno@clisp.org>
50243         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
50244         If module 'iconv_open' is among the main modules and module
50245         'iconv_open-utf' is among the tests dependencies, then
50246         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
50247         return the special iconv_t values. Therefore iconv() and iconv_close()
50248         must support these special iconv_t values, already in lib, not only in
50249         tests.
50250         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
50251         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
50252         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
50253         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
50254         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
50255         (Depends-on): Add the dependencies of iconv_open-utf.
50256         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
50257         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
50258         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
50260 2011-05-08  Bruno Haible  <bruno@clisp.org>
50262         group-member: Move AC_LIBOBJ invocations to module description.
50263         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
50264         gl_PREREQ_GROUP_MEMBER invocations from here...
50265         * modules/group-member (configure.ac): ... to here.
50267 2011-05-08  Bruno Haible  <bruno@clisp.org>
50269         grantpt: Move AC_LIBOBJ invocations to module description.
50270         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
50271         invocations from here...
50272         * modules/grantpt (configure.ac): ... to here.
50274 2011-05-08  Bruno Haible  <bruno@clisp.org>
50276         glob: Move AC_LIBOBJ invocations to module description.
50277         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
50278         from here...
50279         * modules/glob (configure.ac): ... to here.
50281 2011-05-08  Bruno Haible  <bruno@clisp.org>
50283         getusershell: Move AC_LIBOBJ invocations to module description.
50284         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
50285         Move AC_LIBOBJ invocation from here...
50286         * modules/getusershell (configure.ac): ... to here.
50287         (Depends-on): Update condition.
50289 2011-05-08  Bruno Haible  <bruno@clisp.org>
50291         gettimeofday: Move AC_LIBOBJ invocations to module description.
50292         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
50293         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
50294         gl_PREREQ_GETTIMEOFDAY invocations from here...
50295         * modules/gettimeofday (configure.ac): ... to here.
50297 2011-05-08  Bruno Haible  <bruno@clisp.org>
50299         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
50300         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
50301         just gl_FUNC_TZSET.
50302         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
50303         (gl_FUNC_TZSET_CLOBBER): Remove actions.
50304         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
50305         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
50307 2011-05-08  Bruno Haible  <bruno@clisp.org>
50309         getsubopt: Move AC_LIBOBJ invocations to module description.
50310         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
50311         gl_PREREQ_GETSUBOPT invocations from here...
50312         * modules/getsubopt (configure.ac): ... to here.
50314 2011-05-08  Bruno Haible  <bruno@clisp.org>
50316         getpass-gnu: Move AC_LIBOBJ invocations to module description.
50317         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
50318         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
50319         * modules/getpass-gnu (configure.ac): ... to here.
50321 2011-05-08  Bruno Haible  <bruno@clisp.org>
50323         getpass: Move AC_LIBOBJ invocations to module description.
50324         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
50325         gl_PREREQ_GETPASS invocations from here...
50326         * modules/getpass (configure.ac): ... to here.
50328 2011-05-08  Bruno Haible  <bruno@clisp.org>
50330         getpagesize: Move AC_LIBOBJ invocations to module description.
50331         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
50332         from here...
50333         * modules/getpagesize (configure.ac): ... to here.
50335 2011-05-08  Bruno Haible  <bruno@clisp.org>
50337         getopt: Move AC_LIBOBJ invocations to module description.
50338         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
50339         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
50340         invocations from here...
50341         * modules/getopt-gnu (configure.ac): ... to here.
50342         * modules/getopt-posix (configure.ac): ... and here.
50343         (Depends-on): Update condition.
50345 2011-05-08  Bruno Haible  <bruno@clisp.org>
50347         getopt, argp: Respect rules for use of AC_LIBOBJ.
50348         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
50349         (gl_REPLACE_GETOPT_ALWAYS): New macro.
50350         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
50351         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
50353 2011-05-08  Bruno Haible  <bruno@clisp.org>
50355         getlogin_r: Move AC_LIBOBJ invocations to module description.
50356         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
50357         gl_PREREQ_GETLOGIN_R invocations from here...
50358         * modules/getlogin_r (configure.ac): ... to here.
50360 2011-05-08  Bruno Haible  <bruno@clisp.org>
50362         getlogin: Move AC_LIBOBJ invocations to module description.
50363         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
50364         here...
50365         * modules/getlogin (configure.ac): ... to here.
50367 2011-05-08  Bruno Haible  <bruno@clisp.org>
50369         getloadavg: Move AC_LIBOBJ invocations to module description.
50370         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
50371         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
50372         * modules/getloadavg (configure.ac): ... to here.
50374 2011-05-08  Bruno Haible  <bruno@clisp.org>
50376         gethrxtime: Move AC_LIBOBJ invocations to module description.
50377         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
50378         LIB_GETHRXTIME from here...
50379         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
50380         invocations from here...
50381         * modules/gethrxtime (configure.ac): ... to here.
50383 2011-05-08  Bruno Haible  <bruno@clisp.org>
50385         gethostname: Move AC_LIBOBJ invocations to module description.
50386         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
50387         gl_PREREQ_GETHOSTNAME invocations from here...
50388         * modules/gethostname (configure.ac): ... to here.
50390 2011-05-08  Bruno Haible  <bruno@clisp.org>
50392         getgroups: Move AC_LIBOBJ invocations to module description.
50393         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
50394         here...
50395         * modules/getgroups (configure.ac): ... to here.
50397 2011-05-08  Bruno Haible  <bruno@clisp.org>
50399         getdtablesize: Move AC_LIBOBJ invocations to module description.
50400         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
50401         invocation from here...
50402         * modules/getdtablesize (configure.ac): ... to here.
50404 2011-05-08  Bruno Haible  <bruno@clisp.org>
50406         getdomainname: Move AC_LIBOBJ invocations to module description.
50407         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
50408         gl_PREREQ_GETDOMAINNAME invocations from here...
50409         * modules/getdomainname (configure.ac): ... to here.
50411 2011-05-08  Bruno Haible  <bruno@clisp.org>
50413         getline: Move AC_LIBOBJ invocations to module description.
50414         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
50415         invocations from here...
50416         * modules/getline (configure.ac): ... to here.
50418 2011-05-08  Bruno Haible  <bruno@clisp.org>
50420         getline: Simplify.
50421         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
50422         It's already handled through the module dependency.
50424 2011-05-08  Bruno Haible  <bruno@clisp.org>
50426         getdelim: Move AC_LIBOBJ invocations to module description.
50427         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
50428         and gl_PREREQ_GETDELIM invocations from here...
50429         * modules/getdelim (configure.ac): ... to here.
50430         (Depends-on): Fix condition.
50432 2011-05-08  Bruno Haible  <bruno@clisp.org>
50434         getcwd: Move AC_LIBOBJ invocations to module description.
50435         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
50436         invocations from here...
50437         * modules/getcwd (configure.ac): ... to here.
50439 2011-05-08  Bruno Haible  <bruno@clisp.org>
50441         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
50442         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
50443         here...
50444         * modules/getcwd-lgpl (configure.ac): ... to here.
50446 2011-05-07  Bruno Haible  <bruno@clisp.org>
50448         crypto/gc: Move AC_LIBOBJ invocations to module description.
50449         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
50450         * modules/crypto/gc (configure.ac): ... to here.
50452 2011-05-07  Bruno Haible  <bruno@clisp.org>
50454         fwriting: Move AC_LIBOBJ invocations to module description.
50455         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
50456         here...
50457         * modules/fwriting (configure.ac): ... to here.
50459 2011-05-07  Bruno Haible  <bruno@clisp.org>
50461         fwritable: Move AC_LIBOBJ invocations to module description.
50462         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
50463         here...
50464         * modules/fwritable (configure.ac): ... to here.
50466 2011-05-07  Bruno Haible  <bruno@clisp.org>
50468         futimens: Move AC_LIBOBJ invocations to module description.
50469         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
50470         here...
50471         * modules/futimens (configure.ac): ... to here.
50473 2011-05-07  Bruno Haible  <bruno@clisp.org>
50475         ftruncate: Move AC_LIBOBJ invocations to module description.
50476         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
50477         gl_PREREQ_FTRUNCATE invocations from here...
50478         * modules/ftruncate (configure.ac): ... to here.
50480 2011-05-07  Bruno Haible  <bruno@clisp.org>
50482         fsync: Move AC_LIBOBJ invocations to module description.
50483         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
50484         invocations from here...
50485         * modules/fsync (configure.ac): ... to here.
50487 2011-05-07  Bruno Haible  <bruno@clisp.org>
50489         fsusage: Move AC_LIBOBJ invocations to module description.
50490         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
50491         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
50492         * modules/fsusage (configure.ac): ... to here.
50494 2011-05-07  Bruno Haible  <bruno@clisp.org>
50496         freopen: Move AC_LIBOBJ invocations to module description.
50497         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
50498         invocations from here...
50499         * modules/freopen (configure.ac): ... to here.
50501 2011-05-07  Bruno Haible  <bruno@clisp.org>
50503         free: Move AC_LIBOBJ invocations to module description.
50504         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
50505         invocations from here...
50506         * modules/free (configure.ac): ... to here.
50508 2011-05-07  Bruno Haible  <bruno@clisp.org>
50510         freadable: Move AC_LIBOBJ invocations to module description.
50511         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
50512         here...
50513         * modules/freadable (configure.ac): ... to here.
50515 2011-05-07  Bruno Haible  <bruno@clisp.org>
50517         fpurge: Move AC_LIBOBJ invocations to module description.
50518         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
50519         invocations from here...
50520         * modules/fpurge (configure.ac): ... to here.
50522 2011-05-07  Bruno Haible  <bruno@clisp.org>
50524         fpending: Move AC_LIBOBJ invocations to module description.
50525         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
50526         gl_FUNC_FPENDING.
50527         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
50528         invocations from here...
50529         * modules/fpending (configure.ac): ... to here.
50531 2011-05-07  Bruno Haible  <bruno@clisp.org>
50533         fopen: Move AC_LIBOBJ invocations to module description.
50534         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
50535         invocations from here...
50536         * modules/fopen (configure.ac): ... to here.
50538 2011-05-07  Bruno Haible  <bruno@clisp.org>
50540         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
50541         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
50542         gl_FUNC_FNMATCH_POSIX.
50543         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
50544         invocations from here...
50545         * modules/fnmatch (configure.ac): ... to here.
50546         * modules/fnmatch-gnu (configure.ac): ... and here.
50548 2011-05-07  Bruno Haible  <bruno@clisp.org>
50550         flock: Move AC_LIBOBJ invocations to module description.
50551         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
50552         invocations from here...
50553         * modules/flock (configure.ac): ... to here.
50555 2011-05-07  Bruno Haible  <bruno@clisp.org>
50557         fileblocks: Move AC_LIBOBJ invocations to module description.
50558         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
50559         gl_PREREQ_FILEBLOCKS invocations from here...
50560         * modules/fileblocks (configure.ac): ... to here.
50562 2011-05-06  Bruno Haible  <bruno@clisp.org>
50564         fflush: Move AC_LIBOBJ invocations to module description.
50565         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
50566         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
50567         invocations from here...
50568         * modules/fflush (configure.ac): ... to here.
50570 2011-05-06  Bruno Haible  <bruno@clisp.org>
50572         fdopendir: Move AC_LIBOBJ invocations to module description.
50573         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
50574         here...
50575         * modules/fdopendir (configure.ac): ... to here.
50576         (Depends-on): Improve conditions.
50578 2011-05-06  Bruno Haible  <bruno@clisp.org>
50580         _Exit: Move AC_LIBOBJ invocations to module description.
50581         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
50582         invocations from here...
50583         * modules/_Exit (configure.ac): ... to here.
50585 2011-05-21  Bruno Haible  <bruno@clisp.org>
50587         euidaccess: Respect rules for use of AC_LIBOBJ.
50588         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
50589         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
50590         from here...
50591         * modules/euidaccess (configure.ac): ... to here.
50593 2011-05-06  Bruno Haible  <bruno@clisp.org>
50595         error: Move AC_LIBOBJ invocations to module description.
50596         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
50597         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
50598         invocations from here...
50599         * modules/error (configure.ac): ... to here.
50601 2011-05-06  Bruno Haible  <bruno@clisp.org>
50603         duplocale: Move AC_LIBOBJ invocations to module description.
50604         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
50605         gl_PREREQ_DUPLOCALE invocations from here...
50606         * modules/duplocale (configure.ac): ... to here.
50608 2011-05-05  Bruno Haible  <bruno@clisp.org>
50610         dirfd: Move AC_LIBOBJ invocations to module description.
50611         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
50612         gl_FUNC_DIRFD.
50613         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
50614         here...
50615         * modules/dirfd (configure.ac): ... to here.
50616         (Depends-on): Fix condition.
50618 2011-05-05  Bruno Haible  <bruno@clisp.org>
50620         chown: Respect rules for use of AC_LIBOBJ.
50621         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
50622         * modules/chown (configure.ac): ... to here.
50624 2011-05-05  Bruno Haible  <bruno@clisp.org>
50626         chdir-long: Move AC_LIBOBJ invocations to module description.
50627         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
50628         gl_PREREQ_CHDIR_LONG invocations from here...
50629         * modules/chdir-long (configure.ac): ... to here.
50631 2011-05-05  Bruno Haible  <bruno@clisp.org>
50633         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
50634         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
50635         from here...
50636         * modules/canonicalize-lgpl (configure.ac): ... to here.
50638 2011-05-05  Bruno Haible  <bruno@clisp.org>
50640         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
50641         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
50642         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
50643         REPLACE_CALLOC.
50644         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
50645         * modules/calloc-gnu (configure.ac): Likewise.
50647 2011-05-05  Bruno Haible  <bruno@clisp.org>
50649         btowc: Move AC_LIBOBJ invocations to module description.
50650         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
50651         invocations from here...
50652         * modules/btowc (configure.ac): ... to here.
50654 2011-05-21  Bruno Haible  <bruno@clisp.org>
50656         atexit: Move AC_LIBOBJ invocations to module description.
50657         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
50658         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
50659         here...
50660         * modules/atexit (configure.ac): ... to here.
50662 2011-05-05  Bruno Haible  <bruno@clisp.org>
50664         atoll: Move AC_LIBOBJ invocations to module description.
50665         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
50666         invocations from here...
50667         * modules/atoll (configure.ac): ... to here.
50669 2011-05-05  Bruno Haible  <bruno@clisp.org>
50671         argz: Move AC_LIBOBJ invocations to module description.
50672         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
50673         * modules/argz (configure.ac): ... to here.
50675 2011-05-05  Bruno Haible  <bruno@clisp.org>
50677         alphasort: Move AC_LIBOBJ invocations to module description.
50678         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
50679         gl_PREREQ_ALPHASORT invocations from here...
50680         * modules/alphasort (configure.ac): ... to here.
50682 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
50684         verify: new macro verify_expr; verify_true deprecated
50685         * NEWS: Mention this.
50686         * doc/verify.texi (Compile-time Assertions): Document this.
50687         * lib/verify.h (verify_true): Deprecate.
50688         (verify_expr): New macro.
50689         * tests/test-verify.c (function): Test verify_expr.
50691 2011-06-14  Jim Meyering  <meyering@redhat.com>
50693         init.sh: give more portable redirection-related advice in a comment
50694         * tests/init.sh (stderr_fileno_): Update the advice in comments.
50695         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
50696         for lots of discussion.  Stefano Lattarini suggested the solution
50697         of putting "9>&2" after the command.  Reported by Bruno Haible.
50699 2011-06-13  Bruno Haible  <bruno@clisp.org>
50701         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
50702         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
50703         'none'.
50705 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
50707         ftoastr: use strtof only if HAVE_STRTOF
50708         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
50709         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
50710         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
50711         * modules/ftoastr (configure.ac): Check for strtof.
50713 2011-06-13  Bruno Haible  <bruno@clisp.org>
50715         gnulib-tool: Addendum to 2011-06-08 commit.
50716         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
50717         and --witness-c-macro have been given, augment AM_CPPFLAGS.
50719 2011-06-13  Bruno Haible  <bruno@clisp.org>
50721         fseeko: Provide a non-inline replacement of fseek().
50722         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
50723         * modules/fseeko (Depends-on): Add fseek.
50724         * modules/fseek (License): Change to LGPLv2+.
50726 2011-06-13  Bruno Haible  <bruno@clisp.org>
50728         ftello: Provide a non-inline replacement of ftell().
50729         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
50730         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
50731         not have ftello() (such as on mingw).
50732         * modules/ftello (Depends-on): Add ftell.
50733         * modules/ftell (License): Change to LGPLv2+.
50735 2011-05-07  Bruno Haible  <bruno@clisp.org>
50737         ftell: Move AC_LIBOBJ invocations to module description.
50738         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
50739         * modules/ftell (configure.ac): ... to here.
50741 2011-05-07  Bruno Haible  <bruno@clisp.org>
50743         ftello: Respect rules for use of AC_LIBOBJ.
50744         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
50745         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
50746         here...
50747         * modules/ftello (configure.ac): ... to here.
50749 2011-05-07  Bruno Haible  <bruno@clisp.org>
50751         fseeko: Simplify.
50752         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
50753         (gl_FUNC_FSEEKO): Inline it here.
50755 2011-05-07  Bruno Haible  <bruno@clisp.org>
50757         fseek: Move AC_LIBOBJ invocations to module description.
50758         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
50759         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
50760         * modules/fseek (configure.ac): ... to here.
50762 2011-05-07  Bruno Haible  <bruno@clisp.org>
50764         fseek: Respect rules for use of AC_LIBOBJ.
50765         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
50766         here...
50767         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
50769 2011-05-07  Bruno Haible  <bruno@clisp.org>
50771         fseeko: Respect rules for use of AC_LIBOBJ.
50772         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
50773         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
50774         here...
50775         * modules/fseeko (configure.ac): ... to here.
50777 2011-06-13  Bruno Haible  <bruno@clisp.org>
50779         gnulib-tool: Allow comments in the 'Depends-on' section.
50780         * doc/gnulib.texi (Module description): Mention comment syntax in the
50781         Depends-on section.
50782         * gnulib-tool (func_get_dependencies): Filter out comment lines.
50784 2011-06-13  Bruno Haible  <bruno@clisp.org>
50786         file-set.h: guard __attibute__ use, now that it's not always defined
50787         * lib/file-set.h (record_file): Use __attribute__ only with compiler
50788         versions that support it.  This fixes a coreutils build failure with
50789         the vendor cc on HP-UX 11.31.
50791 2011-06-12  Bruno Haible  <bruno@clisp.org>
50793         acl: Add support for HP-UX >= 11.11 JFS ACLs.
50794         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
50795         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
50796         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
50797         (acl, aclsort): New declarations.
50798         (aclv_nontrivial): New declaration.
50799         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
50800         (file_has_acl): Read also the second kind of HP-UX ACLs.
50801         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
50802         kind of HP-UX ACLs if the first kind fails.
50803         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
50804         second kind of HP-UX ACLs.
50805         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
50806         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
50807         agree.
50808         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
50809         hpuxjfs.
50810         Handle hpuxjfs.
50811         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
50812         hpuxjfs.
50813         Handle hpuxjfs.
50814         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
50815         (func_test_same_acls): Use both lsacl and getacl.
50816         Handle hpuxjfs.
50817         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
50818         (func_test_same_acls): Use both lsacl and getacl.
50819         Handle hpuxjfs.
50821 2011-06-12  Bruno Haible  <bruno@clisp.org>
50823         acl: Complete the 2010-08-10 fix.
50824         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
50825         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
50826         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
50827         explicitly.
50828         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
50829         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
50831 2011-06-12  Bruno Haible  <bruno@clisp.org>
50833         spawn-pipe tests: Comments.
50834         * tests/test-spawn-pipe-child.c (main): Update comment.
50835         Reported by James Youngman <jay@gnu.org>.
50837 2011-06-11  James Youngman  <jay@gnu.org>
50839         New module 'stat-size'.
50840         * modules/stat-size: New module.  Provides macros for accessing
50841         file size information in instances of struct stat.  Depends on the
50842         fileblocks module because it calls st_blocks.
50843         * lib/stat-size.h: New file, adapted from coreutils' system.h.
50844         * doc/gnulib.texi: Include stat-size.texi.
50845         * doc/stat-size.texi: Documentation for this module.
50846         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
50847         * m4/fileblocks.m4: Mention that stat-size depends on the call to
50848         AC_STRUCT_ST_BLOCKS.
50850 2011-06-09  Bruno Haible  <bruno@clisp.org>
50852         thread: Support pthreads-win32.
50853         * lib/glthread/thread.h (gl_thread_self): Define differently on
50854         pthreads-win32.
50855         (gl_null_thread): New declaration.
50856         (gl_thread_self_pointer): New macro.
50857         * lib/glthread/thread.c (gl_null_thread): New constant.
50858         * tests/test-lock.c: Use gl_thread_self_pointer instead of
50859         gl_thread_self.
50860         * tests/test-tls.c: Likewise.
50861         Suggested by Paul Eggert. Reported by Eric Blake.
50863 2011-06-09  Bruno Haible  <bruno@clisp.org>
50865         thread: Fix confusion between NULL and 0.
50866         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
50867         Reported by Paul Eggert.
50869 2011-06-09  Bruno Haible  <bruno@clisp.org>
50871         spawn-pipe tests: Avoid test failure on HP-UX 11.
50872         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
50873         is closed.
50875 2011-06-09  Bruno Haible  <bruno@clisp.org>
50877         acl tests: Fix compilation error on HP-UX 11.
50878         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
50880 2011-06-09  Bruno Haible  <bruno@clisp.org>
50882         rmdir: Avoid test failure on HP-UX 10.20.
50883         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
50884         EEXIST.
50886 2011-06-08  Eric Blake  <eblake@redhat.com>
50888         perror: fix test on mingw
50889         * modules/perror-tests (Depends-on): Add dup2.
50891         strerror_r-posix: fix on MacOS
50892         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
50893         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
50894         logic bug.
50895         * lib/strerror_r.c (strerror_r): Fix the bug.
50896         * lib/strerror.c (strerror): Likewise.
50897         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
50898         problem.
50899         * doc/posix-functions/strerror.texi (strerror): Likewise.
50900         * doc/posix-functions/perror.texi (perror): Likewise.
50901         * tests/test-strerror.c (main): Enhance test.
50902         * tests/test-strerror_r.c (main): Likewise.
50904 2011-06-08  Bruno Haible  <bruno@clisp.org>
50906         gnulib-tool: Better isolation between different gnulib-tool invocations.
50907         * gnulib-tool: New option --witness-c-macro.
50908         (witness_c_macro): New variable.
50909         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
50910         AM_CPPFLAGS define it as a C macro.
50911         (func_emit_tests_Makefile_am): Likewise.
50912         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
50913         read it from there.
50914         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
50915         m4_define, not AC_DEFUN.
50916         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
50917         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
50918         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
50919         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
50920         s|...|...|, to substitute the values of the GNULIB_* module indicator
50921         variables.
50922         * modules/dirent (Makefile.am): Likewise.
50923         * modules/fcntl-h (Makefile.am): Likewise.
50924         * modules/iconv-h (Makefile.am): Likewise.
50925         * modules/langinfo (Makefile.am): Likewise.
50926         * modules/locale (Makefile.am): Likewise.
50927         * modules/math (Makefile.am): Likewise.
50928         * modules/netdb (Makefile.am): Likewise.
50929         * modules/poll-h (Makefile.am): Likewise.
50930         * modules/pty (Makefile.am): Likewise.
50931         * modules/search (Makefile.am): Likewise.
50932         * modules/signal (Makefile.am): Likewise.
50933         * modules/spawn (Makefile.am): Likewise.
50934         * modules/stdio (Makefile.am): Likewise.
50935         * modules/stdlib (Makefile.am): Likewise.
50936         * modules/string (Makefile.am): Likewise.
50937         * modules/sys_ioctl (Makefile.am): Likewise.
50938         * modules/sys_select (Makefile.am): Likewise.
50939         * modules/sys_socket (Makefile.am): Likewise.
50940         * modules/sys_stat (Makefile.am): Likewise.
50941         * modules/sys_times (Makefile.am): Likewise.
50942         * modules/sys_utsname (Makefile.am): Likewise.
50943         * modules/sys_wait (Makefile.am): Likewise.
50944         * modules/termios (Makefile.am): Likewise.
50945         * modules/time (Makefile.am): Likewise.
50946         * modules/unistd (Makefile.am): Likewise.
50947         * modules/wchar (Makefile.am): Likewise.
50949 2011-06-08  Eric Blake  <eblake@redhat.com>
50951         strerror: simplify replacement
50952         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
50953         * modules/strerror (configure.ac): No prereqs needed here...
50954         * modules/strerror-override (configure.ac): ...but this needs it.
50955         (Files): Add file for needed prereq macro.
50957 2011-06-08  Bruno Haible  <bruno@clisp.org>
50959         strerror_r-posix: Tweaks.
50960         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
50961         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
50962         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
50963         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
50964         (gl_FUNC_STRERROR_R): ... to here.
50965         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
50967 2011-06-07  Eric Blake  <eblake@redhat.com>
50969         perror: document fixed bugs
50970         * doc/posix-functions/perror.texi (perror): Document recent
50971         patches.
50973 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
50975         stat-time: get_stat_birthtime failure is better-defined
50976         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
50977         return a timestamp whose tv_sec and tv_nsec values are both -1.
50978         Previously, the spec said only that the tv_nsec value was negative.
50979         This upward-compatible change simplifies GNU tar a bit.
50981 2011-06-07  Eric Blake  <eblake@redhat.com>
50983         strerror_r-posix: work around cygwin 1.7.9
50984         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
50985         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
50986         bug without replacing strerror_r.
50987         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
50988         strerror_r is buggy, but without requiring strerror_r compilation.
50989         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
50991         test-perror: relax test to ignore cygwin bug
50992         * tests/test-perror2.c (main): Relax test on requiring detection
50993         of stream errors, and use unbuffered stream.
50994         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
50995         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
50996         * doc/posix-functions/fputc.texi (fputc): Likewise.
50997         * doc/posix-functions/fputs.texi (fputs): Likewise.
50998         * doc/posix-functions/fputws.texi (fputws): Likewise.
50999         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
51000         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
51001         * doc/posix-functions/getopt.texi (getopt): Likewise.
51002         * doc/posix-functions/perror.texi (perror): Likewise.
51003         * doc/posix-functions/printf.texi (printf): Likewise.
51004         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
51005         * doc/posix-functions/psignal.texi (psignal): Likewise.
51006         * doc/posix-functions/putc.texi (putc): Likewise.
51007         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
51008         Likewise.
51009         * doc/posix-functions/putchar.texi (putchar): Likewise.
51010         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
51011         Likewise.
51012         * doc/posix-functions/puts.texi (puts): Likewise.
51013         * doc/posix-functions/putwc.texi (putwc): Likewise.
51014         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
51015         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
51016         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
51017         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
51018         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
51019         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
51020         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
51021         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
51023 2011-05-22  Bruno Haible  <bruno@clisp.org>
51025         strerror: Move AC_LIBOBJ invocations to module description.
51026         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
51027         gl_PREREQ_STRERROR invocations from here...
51028         * modules/strerror (configure.ac): ... to here.
51030 2011-05-21  Bruno Haible  <bruno@clisp.org>
51032         perror: Use common idiom.
51033         * modules/perror (configure.ac): Reorder statements.
51035 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
51037         tests: fix usage message in 'mktempd_'
51038         * tests/init.sh (mktempd_): In the usage message, use literal
51039         'mktempd_', not '$ME' (which is even undefined), as the name of
51040         the subroutine.
51042 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
51044         tests init: new function 'fatal_', for hard errors
51045         Before this patch, the only way offered by tests/init.sh to
51046         properly signal a hard error was the `framework_failure_'
51047         function.  But the error message issued by that function,
51048         as its name would suggest, refers to a set-up failure in the
51049         testsuite, while hard errors can obviously also be due to
51050         other reasons.  The best way to fix this inconsistency is to
51051         introduce a new function with a more general error message.
51052         * tests/init.sh (fatal_): New function.
51054 2011-06-06  Eric Blake  <eblake@redhat.com>
51056         canonicalize-lgpl: use common idiom
51057         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
51058         over newer POSIX -Rf.
51059         Reported by Bruno Haible.
51061         canonicalize-lgpl: work around AIX realpath bug
51062         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
51063         * doc/posix-functions/realpath.texi (realpath): Document it.
51064         Reported by Bruno Haible.
51066         strerror: work around FreeBSD bug
51067         * lib/strerror.c (strerror): Special case 0.
51068         Reported by Bruno Haible.
51070         strerror-override: avoid bloating errno module
51071         * modules/errno (Files, configure.ac): Move replacement strings...
51072         * modules/strerror-override: ...to new module.
51073         * modules/strerror (Depends-on): Add strerror-override.
51074         * modules/strerror_r-posix (Depends-on): Likewise.
51075         * MODULES.html.sh: Document new module.
51076         Reported by Bruno Haible.
51078 2011-06-06  Bruno Haible  <bruno@clisp.org>
51080         spawn-pipe tests: Rename program.
51081         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
51082         * tests/test-spawn-pipe-child.c: Update comment.
51083         * tests/test-spawn-pipe.sh: Update.
51084         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
51086         spawn-pipe tests: Link the child program only against libc.
51087         * tests/test-spawn-pipe-child.c: New file, extracted from
51088         tests/test-spawn-pipe.c.
51089         (main): Expect only one argument.
51090         (is_open): New function, copied from tests/test-pipe.c.
51091         * tests/test-spawn-pipe.c: Don't include <errno.h>.
51092         (child_main): Remove function.
51093         (test_pipe): Pass only one argument to the child program.
51094         (main): Remove child process code. Expect the child program's name as
51095         first argument.
51096         * tests/test-spawn-pipe.sh: Pass the child program's name as first
51097         argument.
51098         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
51099         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
51100         test-spawn-pipe-child against no libraries.
51102 2011-06-06  Bruno Haible  <bruno@clisp.org>
51104         careadlinkat: Avoid mismatch between ssize_t and int.
51105         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
51106         * lib/careadlinkat.c (careadlinkatcwd): Define always.
51108 2011-06-06  Jim Meyering  <meyering@redhat.com>
51110         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
51111         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
51112         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
51114 2011-06-05  Bruno Haible  <bruno@clisp.org>
51116         ansi-c++-opt: Interoperability with libtool.
51117         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
51118         set the variable to "no", not to ":".
51119         * NEWS: Mention the change.
51121 2011-06-05  Bruno Haible  <bruno@clisp.org>
51123         acl: Fix test failure on AIX 7.
51124         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
51125         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
51127 2011-06-05  Bruno Haible  <bruno@clisp.org>
51129         pipe-filter-ii: Fix test failure on AIX and IRIX.
51130         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
51131         with EAGAIN, retry with a smaller buffer size.
51133 2011-06-05  Bruno Haible  <bruno@clisp.org>
51135         localename: Fix link dependencies.
51136         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
51137         * modules/localename-tests (Makefile.am): Link test-localename with
51138         $(LIBTHREAD).
51140 2011-06-05  Bruno Haible  <bruno@clisp.org>
51142         error: Avoid gcc warning.
51143         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
51145 2011-06-05  Bruno Haible  <bruno@clisp.org>
51147         unsetenv: Avoid gcc warning.
51148         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
51150 2011-06-05  Bruno Haible  <bruno@clisp.org>
51152         setenv: Avoid gcc warning.
51153         * lib/setenv.c (setenv): Provide declaration if system lacks it.
51155 2011-06-05  Bruno Haible  <bruno@clisp.org>
51157         sys_select: Ensure memset is declared also on AIX 7.
51158         * lib/sys_select.in.h: Include <string.h> also on AIX.
51159         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
51160         self-contained also on AIX 7.1.
51162 2011-06-04  Jim Meyering  <meyering@redhat.com>
51164         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
51165         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
51166         function name, "error".
51167         (_gl_translatable_diag_func_re): New configurable variable.
51169 2011-06-04  Bruno Haible  <bruno@clisp.org>
51171         getopt: Avoid gcc warning.
51172         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
51174 2011-06-04  Bruno Haible  <bruno@clisp.org>
51176         strerror_r: Fix comments.
51177         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
51178         commit.
51180 2011-06-04  Bruno Haible  <bruno@clisp.org>
51182         perror: Fix compilation error.
51183         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
51184         Undefine fprintf, not sprintf.
51185         * modules/perror (Depends-on): Remove intprops, verify.
51187 2011-06-04  Bruno Haible  <bruno@clisp.org>
51189         setlocale: Enable replacement on Cygwin 1.5.
51190         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
51191         Cygwin 1.5.x.
51192         * doc/posix-functions/setlocale.texi: Mention that the problem with the
51193         LC_CTYPE category also exists on Cygwin 1.5.x.
51195 2011-06-04  Bruno Haible  <bruno@clisp.org>
51197         strerror-override: Don't disable symbol renamings.
51198         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
51199         * lib/strerror-override.c: Include config.h.
51200         (strerror_override): Don't undefine.
51202 2011-06-03  Bruno Haible  <bruno@clisp.org>
51204         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
51205         * lib/localename.h: Update copyright header.
51206         * lib/localename.c: Likewise.
51207         * lib/relocatable.h: Likewise.
51208         * lib/relocatable.c: Likewise.
51210 2011-06-02  Bruno Haible  <bruno@clisp.org>
51212         doc: Fix a module name.
51213         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
51215 2011-06-02  Bruno Haible  <bruno@clisp.org>
51217         pipe2: Remove dependency on 'nonblocking' module.
51218         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
51219         O_NONBLOCK is defined by gnulib.
51220         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
51221         is zero.
51222         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
51223         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
51224         defined by gnulib.
51225         (get_nonblocking_flag): New function.
51226         (main): Test O_NONBLOCK flag only if it is nonzero.
51227         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
51229 2011-06-03  Jim Meyering  <meyering@redhat.com>
51231         maint: three new prohibit-header-without-use rules
51232         Prohibit use of cloexec.h, posixver.h, same.h without use.
51233         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
51234         (sc_prohibit_posixver_without_use): Likewise.
51235         (sc_prohibit_same_without_use): Likewise.
51237 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51239         allocator: 'die' routine is now given requested size
51240         * lib/allocator.h (struct allocator.die): New size arg.
51241         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
51242         If the actual problem is an ssize_t limitation, not a size_t or
51243         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
51245 2011-06-01  Eric Blake  <eblake@redhat.com>
51247         strerror: drop strerror_r dependency
51248         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
51249         * lib/strerror-override.c (strerror_override): ...to new file.
51250         * lib/strerror-override.h: Add prototype.
51251         * lib/strerror-impl.h: Delete.
51252         * lib/strerror.c (strerror): New implementation.
51253         * modules/errno (Files): Add new files.
51254         (configure.ac): Compile new file as appropriate.
51255         * modules/strerror (Files): Drop unused file.
51256         (Depends-on): Drop strerror_r-posix.
51257         * MODULES.html.sh: Document strerror_r-posix.
51258         Requested by Sam Steingold.
51260         perror: call strerror_r directly
51261         * modules/perror (Files): Drop strerror-impl.h.
51262         * lib/perror.c (perror): Use our own stack buffer, rather than
51263         calling a wrapper that uses static storage.
51264         * doc/posix-functions/perror.texi (perror): Document a limitation
51265         of our replacement.
51267         strerror_r: fix includes for FreeBSD
51268         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
51269         since we use abort on some platforms.
51270         Reported by Matthias Bolte.
51272 2011-05-31  Bruno Haible  <bruno@clisp.org>
51274         Fix link errors in tests: openat-die uses gettext-h.
51275         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
51276         against $(LIBINTL).
51277         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
51278         against $(LIBINTL).
51279         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
51280         $(LIBINTL).
51281         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
51282         against $(LIBINTL).
51283         * modules/linkat-tests (Makefile.am): Link test-linkat against
51284         $(LIBINTL).
51285         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
51286         $(LIBINTL).
51287         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
51288         against $(LIBINTL).
51289         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
51290         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
51291         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
51292         $(LIBINTL).
51293         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
51294         $(LIBINTL).
51295         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
51296         $(LIBINTL).
51297         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51299 2011-05-31  Bruno Haible  <bruno@clisp.org>
51301         Fix link errors in tests: wait-process uses gettext-h.
51302         * modules/nonblocking-pipe-tests (Makefile.am): Set
51303         test_nonblocking_pipe_main_LDADD.
51304         * modules/nonblocking-socket-tests (Makefile.am): Link
51305         test-nonblocking-socket-main against $(LIBINTL).
51306         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51308 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
51310         assert-h: work around 'verify' incompatibility
51311         * lib/verify.h: Use @...@ directives, not ifdef.
51312         * modules/assert-h (assert.h): Implement the directives.
51313         (assert.h): Substitute the symbol-prefix more consistently.
51315 2011-05-29  Jim Meyering  <meyering@redhat.com>
51317         trim: remove three superfluous assignments
51318         * lib/trim.c (trim2): Remove three superfluous assignments
51319         and correct brace positioning.
51321 2011-05-29  Bruno Haible  <bruno@clisp.org>
51323         wctype-h: Avoid namespace pollution on Solaris 2.6.
51324         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
51325         identifiers.
51326         * doc/posix-headers/wctype.texi: Mention the problem.
51327         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51329 2011-05-28  Jim Meyering  <meyering@redhat.com>
51331         parse-datetime.y: accommodate -Wstrict-overflow
51332         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
51333         placate -Wstrict-overflow.
51335         trim: avoid a warning from -O2 -Wstrict-overflow
51336         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
51338 2011-05-29  Bruno Haible  <bruno@clisp.org>
51340         gnulib-tool: Fix bug in yesterday's commit.
51341         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
51342         twice.
51344 2011-05-29  Bruno Haible  <bruno@clisp.org>
51346         Allow multiple gnulib generated include files to be combined.
51347         * gnulib-tool (func_compute_include_guard_prefix): New function.
51348         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
51349         ${gl_include_guard_prefix} references.
51350         (func_import, func_create_testdir): Invoke
51351         func_compute_include_guard_prefix.
51352         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
51353         * lib/ctype.in.h: Likewise.
51354         * lib/dirent.in.h: Likewise.
51355         * lib/errno.in.h: Likewise.
51356         * lib/fcntl.in.h: Likewise.
51357         * lib/float.in.h: Likewise.
51358         * lib/getopt.in.h: Likewise.
51359         * lib/iconv.in.h: Likewise.
51360         * lib/langinfo.in.h: Likewise.
51361         * lib/locale.in.h: Likewise.
51362         * lib/math.in.h: Likewise.
51363         * lib/netdb.in.h: Likewise.
51364         * lib/netinet_in.in.h: Likewise.
51365         * lib/poll.in.h: Likewise.
51366         * lib/pthread.in.h: Likewise.
51367         * lib/pty.in.h: Likewise.
51368         * lib/sched.in.h: Likewise.
51369         * lib/se-selinux.in.h: Likewise.
51370         * lib/search.in.h: Likewise.
51371         * lib/signal.in.h: Likewise.
51372         * lib/spawn.in.h: Likewise.
51373         * lib/stdarg.in.h: Likewise.
51374         * lib/stddef.in.h: Likewise.
51375         * lib/stdint.in.h: Likewise.
51376         * lib/stdio.in.h: Likewise.
51377         * lib/stdlib.in.h: Likewise.
51378         * lib/string.in.h: Likewise.
51379         * lib/strings.in.h: Likewise.
51380         * lib/sys_file.in.h: Likewise.
51381         * lib/sys_ioctl.in.h: Likewise.
51382         * lib/sys_select.in.h: Likewise.
51383         * lib/sys_socket.in.h: Likewise.
51384         * lib/sys_stat.in.h: Likewise.
51385         * lib/sys_time.in.h: Likewise.
51386         * lib/sys_times.in.h: Likewise.
51387         * lib/sys_uio.in.h: Likewise.
51388         * lib/sys_utsname.in.h: Likewise.
51389         * lib/sys_wait.in.h: Likewise.
51390         * lib/sysexits.in.h: Likewise.
51391         * lib/termios.in.h: Likewise.
51392         * lib/time.in.h: Likewise.
51393         * lib/unistd.in.h: Likewise.
51394         * lib/wchar.in.h: Likewise.
51395         * lib/wctype.in.h: Likewise.
51396         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
51397         * modules/ctype (Makefile.am): Likewise.
51398         * modules/dirent (Makefile.am): Likewise.
51399         * modules/errno (Makefile.am): Likewise.
51400         * modules/fcntl-h (Makefile.am): Likewise.
51401         * modules/float (Makefile.am): Likewise.
51402         * modules/getopt-posix (Makefile.am): Likewise.
51403         * modules/iconv-h (Makefile.am): Likewise.
51404         * modules/langinfo (Makefile.am): Likewise.
51405         * modules/locale (Makefile.am): Likewise.
51406         * modules/math (Makefile.am): Likewise.
51407         * modules/netdb (Makefile.am): Likewise.
51408         * modules/netinet_in (Makefile.am): Likewise.
51409         * modules/poll-h (Makefile.am): Likewise.
51410         * modules/pthread (Makefile.am): Likewise.
51411         * modules/pty (Makefile.am): Likewise.
51412         * modules/sched (Makefile.am): Likewise.
51413         * modules/search (Makefile.am): Likewise.
51414         * modules/selinux-h (Makefile.am): Likewise.
51415         * modules/signal (Makefile.am): Likewise.
51416         * modules/spawn (Makefile.am): Likewise.
51417         * modules/stdarg (Makefile.am): Likewise.
51418         * modules/stddef (Makefile.am): Likewise.
51419         * modules/stdint (Makefile.am): Likewise.
51420         * modules/stdio (Makefile.am): Likewise.
51421         * modules/stdlib (Makefile.am): Likewise.
51422         * modules/string (Makefile.am): Likewise.
51423         * modules/strings (Makefile.am): Likewise.
51424         * modules/sys_file (Makefile.am): Likewise.
51425         * modules/sys_ioctl (Makefile.am): Likewise.
51426         * modules/sys_select (Makefile.am): Likewise.
51427         * modules/sys_socket (Makefile.am): Likewise.
51428         * modules/sys_stat (Makefile.am): Likewise.
51429         * modules/sys_time (Makefile.am): Likewise.
51430         * modules/sys_times (Makefile.am): Likewise.
51431         * modules/sys_uio (Makefile.am): Likewise.
51432         * modules/sys_utsname (Makefile.am): Likewise.
51433         * modules/sys_wait (Makefile.am): Likewise.
51434         * modules/sysexits (Makefile.am): Likewise.
51435         * modules/termios (Makefile.am): Likewise.
51436         * modules/time (Makefile.am): Likewise.
51437         * modules/unistd (Makefile.am): Likewise.
51438         * modules/wchar (Makefile.am): Likewise.
51439         * modules/wctype-h (Makefile.am): Likewise.
51440         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
51442 2011-05-29  Bruno Haible  <bruno@clisp.org>
51444         assert-h: Allow multiple gnulib generated replacements to coexist.
51445         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
51447 2011-05-29  Bruno Haible  <bruno@clisp.org>
51449         argp: Allow coexistence with strerror_r-posix module.
51450         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
51451         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
51452         by gnulib's <string.h> replacement), assume it has the POSIX signature,
51453         not the glibc signature.
51455 2011-05-28  Bruno Haible  <bruno@clisp.org>
51457         gnulib-tool: Alternative structure of testdirs, similar to --import.
51458         * gnulib-tool: New option --single-configure.
51459         (func_usage): Document it.
51460         (single_configure): New variable.
51461         (func_modules_transitive_closure_separately,
51462         func_modules_transitive_closure_separately,
51463         func_determine_use_libtests, func_modules_add_dummy_separately,
51464         func_modules_to_filelist_separately): New functions, extracted from
51465         func_import.
51466         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
51467         (func_import): Use the new functions.
51468         (func_create_testdir): Set final_modules. Handle $single_configure =
51469         true case.
51471 2011-05-28  Bruno Haible  <bruno@clisp.org>
51473         getloadavg: Remove an unreliable safety check.
51474         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
51475         getloadavg.c is in place.
51476         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
51477         Reported by Sam Steingold <sds@gnu.org>.
51479 2011-05-28  Bruno Haible  <bruno@clisp.org>
51481         doc: Cleanup yet another file produced by texinfo.tex.
51482         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
51484 2011-05-28  Bruno Haible  <bruno@clisp.org>
51486         Finish the conditional dependencies mechanism.
51487         * gnulib-tool: New option --no-conditional-dependencies.
51488         (func_usage): Document it. Don't mark --conditional-dependencies as
51489         experimental.
51490         (cond_dependencies): The possible values can now be true, false, empty.
51491         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
51492         (func_import): Store setting in gnulib-cache.m4 and read it from there.
51493         * doc/gnulib-tool.texi (Conditional dependencies): New section.
51495 2011-05-28  Bruno Haible  <bruno@clisp.org>
51497         doc: Use a recent texinfo.tex.
51498         * doc/Makefile (tex_opts): New variable.
51499         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
51501 2011-05-28  Jim Meyering  <meyering@redhat.com>
51503         intprops.h: adjust comment to match code change
51504         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
51505         only once, it *may* have side effects.  Also fix an unrelated typo.
51506         (_GL_INT_SIGNED): Likewise.
51508 2011-05-26  Simon Josefsson  <simon@josefsson.org>
51510         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
51512 2011-05-26  Bruno Haible  <bruno@clisp.org>
51514         mbsrchr: Avoid collision with system function on Interix.
51515         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
51516         Reported by Markus Duft <mduft@gentoo.org>.
51518 2011-05-15  James Youngman  <jay@gnu.org>
51520         getopt: for ambiguous options, enumerate the possibilities.
51521         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
51522         the ambiguous options when an ambiguous prefix is given. This was
51523         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
51524         glibc change was
51525         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
51527 2011-05-25  Eric Blake  <eblake@redhat.com>
51529         getcwd: work around mingw bug
51530         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
51531         * doc/posix-functions/getcwd.texi (getcwd): Document it.
51532         Reported by Matthias Bolte.
51534 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
51536         test-intprops: disable -Wtype-limits diagnostics
51537         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
51538         diagnostics.  Otherwise, the integer overflow macros generate many
51539         diagnostics.  Reported by Jim Meyering in
51540         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
51542         intprops: shorten, to pacify gcc -Woverlength-strings
51543         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
51544         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
51545         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
51546         likely to run afoul of C compiler limits for string constant lengths.
51547         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
51549 2011-05-24  Eric Blake  <eblake@redhat.com>
51551         docs: document recently fixed glibc printf bug
51552         * doc/posix-functions/fprintf.texi (fprintf): Document it.
51553         * doc/posix-functions/printf.texi (printf): Likewise.
51554         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
51555         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
51557         closein-tests: convert to init.sh
51558         * modules/closein-tests (Files): Add init.sh
51559         * tests/test-closein.sh Use it.
51561         yesno-tests: convert to init.sh
51562         * modules/yesno-tests (Files): Add init.sh.
51563         * tests/test-yesno.sh: Use it.
51565         atexit-tests: ensure reliable exit status
51566         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
51567         Reported by Bruno Haible.
51569 2011-05-24  Bruno Haible  <bruno@clisp.org>
51571         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
51572         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
51573         gl_PREREQ_STRERROR_R invocations from here...
51574         * modules/strerror_r-posix (configure.ac): ... to here.
51576 2011-05-24  Eric Blake  <eblake@redhat.com>
51578         strerror_r: fix missing header
51579         * lib/strerror_r.c: Avoid compiler warning about snprintf.
51581         strerror_r: fix AIX test failures
51582         * lib/strerror_r.c (strerror_r): Convert silent truncation to
51583         ERANGE failure.
51585         strerror_r: fix Solaris test failures
51586         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
51587         failures.
51588         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
51590         strerror_r: enforce POSIX recommendations
51591         * lib/strerror_r.c (safe_copy): New helper method.
51592         (strerror_r): Guarantee a non-empty string.
51593         * tests/test-strerror_r.c (main): Enhance tests to incorporate
51594         recent POSIX rulings and to match our strerror guarantees.
51595         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
51597 2011-05-24  Jim Meyering  <meyering@redhat.com>
51599         test-perror2.c: avoid warning about unused variable
51600         * tests/test-perror2.c (main): Remove declaration of unused "fp".
51602 2011-05-24  Eric Blake  <eblake@redhat.com>
51604         perror: avoid spurious test failure on HP-UX
51605         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
51607         tests: fix logic bug in init.sh
51608         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
51609         shell.
51611 2011-05-24  Jim Meyering  <meyering@redhat.com>
51613         utimensat: do not reference an out-of-scope buffer
51614         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
51615         declared in an inner scope, yet "times" would be dereferenced outside
51616         the scope in which "ts" was valid.
51617         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
51618         of ts[2] "out/up", so that the use of aliased "times" (via
51619         "times = ts;") does not end up referencing an out-of-scope "ts"
51621         opendir-safer.c: don't clobber errno; don't close negative FD
51622         * lib/opendir-safer.c (opendir_safer):
51623         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
51624         file descriptor, and more importantly, don't clobber the
51625         offending errno value with EINVAL.  Before, upon failure
51626         of dup_safer, we would pass the negative file descriptor to
51627         fdopendir, which would clobber errno.
51629 2011-05-23  Bruno Haible  <bruno@clisp.org>
51631         idcache: Fix module description.
51632         * modules/idcache (Include): Set to "idcache.h".
51634 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
51636         gnulib-tool: fix portability problem with MacOS sed
51637         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
51638         before the "}".  Problem reported by Leo in
51639         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
51640         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
51641         sed_extract_condition1, sed_extract_condition2.
51643 2011-05-23  Bruno Haible  <bruno@clisp.org>
51645         hash: Simplify autoconf macro.
51646         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
51648 2011-05-23  Bruno Haible  <bruno@clisp.org>
51650         getugroups: Fix module description.
51651         * modules/getugroups (Include): Set to "getugroups.h".
51653 2011-05-23  Bruno Haible  <bruno@clisp.org>
51655         linkat: Simplify autoconf macro.
51656         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
51658 2011-05-23  Bruno Haible  <bruno@clisp.org>
51659             Eric Blake  <eblake@redhat.com>
51661         linkat, renameat: Update dependencies.
51662         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
51663         * modules/linkat (Depends-on): Likewise. Remove also readlink,
51664         symlinkat.
51666 2011-05-23  Jim Meyering  <meyering@redhat.com>
51668         maint.mk: more tight_scope improvements
51669         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
51670         (_gl_TS_headers): Define only in if-0'd block.
51671         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
51672         sometimes we must *not* use it.  Adjust uses accordingly.
51673         (sc_tight_scope): Use much simpler grep-based test to determine
51674         whether we skip this rule.
51676         maint.mk: generalize/improve the tight-scope rule
51677         * top/maint.mk: Emit a warning when the test is skipped.
51678         (_gl_TS_dir): Add $(srcdir)/ prefix.
51679         (_gl_TS_function_match): Simplify, rather than trying
51680         to enumerate common types.  Otherwise, it would fail to match an
51681         "extern unsigned char const *" declaration in idutils.
51682         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
51683         a way to support use of that type of macro.
51684         (_gl_TS_var_match): Simplify regexp.
51685         (_gl_TS_obj_files): New configurable variable.
51686         (_gl_TS_headers): Likewise.
51688 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
51690         verify: fix bug when gnulib <assert.h> is also included
51691         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
51692         is defined, not if _GL_STATIC_ASSERT_H is not defined.
51693         Perhaps there's a better way, but this fixes the immediate problem.
51694         Problem reported by Bruno Haible in
51695         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
51697 2011-05-22  Bruno Haible  <bruno@clisp.org>
51699         xgetcwd: Simplify autoconf macro.
51700         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
51702 2011-05-22  Bruno Haible  <bruno@clisp.org>
51704         New module 'mktime-internal'.
51705         * modules/mktime-internal: New file.
51706         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
51707         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
51708         mktime_internal as a C macro if libc has __mktime_internal.
51709         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
51710         conditions.
51711         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
51713 2011-05-22  Bruno Haible  <bruno@clisp.org>
51715         timegm: Correct mktime replacement statements.
51716         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
51717         defining mktime as a C macro. This completes a 2009-07-28 commit.
51719 2011-05-22  Bruno Haible  <bruno@clisp.org>
51721         timegm: Simplify autoconf macro.
51722         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
51724 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
51726         clock-time: change to LGPLv2+.
51727         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
51728         BSD-like but we have no mark for that; this is good enough for now.
51730 2011-05-21  Bruno Haible  <bruno@clisp.org>
51732         strerror_r: Fix comments.
51733         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
51735 2011-05-21  Bruno Haible  <bruno@clisp.org>
51737         relocatable-prog-wrapper: Fix possible link error.
51738         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
51739         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
51740         (gl_FUNC_SETENV): ... to here.
51741         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
51742         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
51744 2011-05-21  Bruno Haible  <bruno@clisp.org>
51746         relocatable-prog-wrapper: Assume strerror() exists.
51747         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
51748         m4/strerror.m4.
51749         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
51750         * lib/relocwrapper.c: Remove mention of strerror module.
51751         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
51752         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
51753         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
51754         C macro.
51756 2011-05-21  Bruno Haible  <bruno@clisp.org>
51758         select: Simplify replacement idiom.
51759         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
51760         Win32 platforms.
51761         * lib/sys_select.in.h (select): Simplify accordingly.
51762         * modules/select (Depends-on): Likewise.
51764 2011-05-21  Bruno Haible  <bruno@clisp.org>
51766         mkdir-p: Simplify autoconf macro.
51767         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
51768         gl_FUNC_LCHOWN.
51770 2011-05-21  Eric Blake  <eblake@redhat.com>
51772         strerror_r: avoid clobbering strerror on cygwin
51773         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
51774         fall back instead to sys_errlist.
51775         * modules/strerror (configure.ac): Add witness.
51776         * tests/test-strerror_r.c (main): Enhance test.
51777         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
51778         * tests/test-perror2.c (main): Free memory before exit.
51780 2011-05-21  Bruno Haible  <bruno@clisp.org>
51782         mkdtemp: Use gnulib naming conventions.
51783         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
51784         * modules/mkdtemp (configure.ac): Update.
51786 2011-05-20  Eric Blake  <eblake@redhat.com>
51788         strerror_r: avoid corrupting errno on Solaris
51789         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
51790         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
51792         strerror_r: avoid compiler warning
51793         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
51795         strerror_r: simplify AIX code
51796         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
51798         test-perror: avoid spurious failure on FreeBSD
51799         * modules/perror-tests (Depends-on): Add strerror, now that
51800         strerror_r no longer pulls it in.
51802 2011-05-20  Bruno Haible  <bruno@clisp.org>
51804         strerror_r-posix: Remove unused dependencies.
51805         * modules/strerror_r-posix (Depends-on): Remove strerror.
51806         Reported by Eric Blake.
51808 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51810         intprops: remove assumption about A|B representation
51811         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
51812         is a valid integer if both A and B are.  Although this is true for
51813         all known practical hosts, the C standard doesn't guarantee it,
51814         and the code need not assume it.  Also, this change may work around
51815         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
51816         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
51818 2011-05-20  Eric Blake  <eblake@redhat.com>
51820         perror: work around FreeBSD bug
51821         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
51822         is broken.  Move AC_LIBOBJ...
51823         * modules/perror (configure.ac): Here.
51824         * doc/posix-functions/perror.texi (perror): Document this.
51825         * tests/test-perror2.c (main): Enhance test.
51827         test-perror: check for strerror interactions
51828         * tests/macros.h (STREQ): Add macro.
51829         * modules/perror-tests (Files): Add second test.
51830         * tests/test-perror2.c (main): New file.
51831         * doc/posix-functions/perror.texi (perror): Document glibc bug.
51833         test-perror: rewrite to use init script
51834         * modules/perror-tests (Files): Add init.sh.
51835         * tests/test-perror.sh: Use temporary directory.
51837 2011-05-20  Jim Meyering  <meyering@redhat.com>
51839         maint: replace misused "a" with "an"
51840         * doc/intprops.texi: "a integer"
51841         * doc/regex.texi: "a explanation"
51842         * lib/alignof.h: "a object"
51843         * lib/argmatch.h: "a explanation"
51844         * lib/argp-help.c: "a option" and "a OPTION_DOC"
51845         * lib/stdint.in.h: "a integer"
51846         * lib/userspec.c: "a owner"
51847         * doc/gnulib.texi: Fix "a idea", and reword.
51849 2011-05-19  Jim Meyering  <meyering@redhat.com>
51851         maint: correct misuse of "a" and "an"
51852         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
51853         * lib/argp-help.c: "an docum...": s/an/a/
51854         * lib/argp-parse.c: "An vector": s/An/A/
51855         * lib/execute.c: "an native": s/an/a/
51856         * lib/spawn-pipe.c: Likewise.
51857         * lib/gc.h: "an Gc_rc": s/an/a/
51858         * lib/unigbrk.in.h: "an grapheme": s/an/a/
51859         * lib/fts.c: "an stat.st_dev": s/an/a/
51861 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51863         intprops-tests: work around HP-UX 11.23 cc bug with constants
51864         * tests/test-intprops.c (VERIFY): New macro.
51865         (main): Use it, instead of verify, to work around the compiler bug; see
51866         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
51868         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
51869         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
51870         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
51871         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
51872         (_GL_REMAINDER_OVERFLOW): Use it.
51874         intprops-tests: revert unsigned part of previous change
51875         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
51876         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
51877         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
51878         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
51880 2011-05-19  Bruno Haible  <bruno@clisp.org>
51882         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
51883         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
51884         strerror_r() returned without filling the buffer.
51885         Reported by Eric Blake.
51887 2011-05-19  Eric Blake  <eblake@redhat.com>
51889         strerror_r: guarantee unchanged errno
51890         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
51891         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
51892         failure.
51893         * tests/test-strerror_r.c (main): Enhance test.
51895 2011-05-19  Bruno Haible  <bruno@clisp.org>
51897         strerror_r: Reorder #if blocks.
51898         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
51899         for consistency with the previous commit.
51901 2011-05-19  Bruno Haible  <bruno@clisp.org>
51903         perror: Avoid clobbering the strerror buffer when possible.
51904         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
51905         * lib/strerror.c: Include it.
51906         * modules/strerror (Files): Add lib/strerror-impl.h.
51907         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
51908         (my_strerror): New function, defined through lib/strerror-impl.h.
51909         (perror): Use it instead of strerror.
51910         * modules/perror (Files): Add lib/strerror-impl.h.
51911         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
51913 2011-05-19  Eric Blake  <eblake@redhat.com>
51915         strerror_r: fix on newer cygwin
51916         * lib/strerror_r.c (strerror_r): Cygwin now has
51917         __xpg_strerror_r, use it.
51919 2011-05-19  Bruno Haible  <bruno@clisp.org>
51921         strerror_r: Avoid clobbering the strerror buffer when possible.
51922         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
51923         (sys_nerr, sys_errlist): New declarations.
51924         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
51925         HP-UX, native Win32, IRIX, and 32-bit Solaris.
51926         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
51928 2011-05-19  Bruno Haible  <bruno@clisp.org>
51930         strerror_r: Fix test failure on mingw.
51931         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
51932         EXTEND_STRERROR_R.
51933         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
51934         macros from errno.in.h instead.
51936 2011-05-19  Eric Blake  <eblake@redhat.com>
51938         strerror: relax test for Solaris
51939         * tests/test-strerror.c (main): Permit Solaris behavior.
51940         * tests/test-strerror_r.c (main): Likewise.
51942         strerror: enforce POSIX ruling on strerror(0)
51943         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
51944         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
51945         * lib/strerror_r.c (rpl_strerror_r): Work around it.
51946         * doc/posix-functions/strerror.texi (strerror): Document it.
51947         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
51948         * tests/test-strerror.c (main): Strengthen test.
51949         * tests/test-strerror_r.c (main): Likewise.
51951 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51953         intprop-tests: port to older and more-pedantic compilers
51954         * modules/intprops-tests (Files): Add tests/macros.h.
51955         * tests/test-intprops.c: Include macros.h.
51956         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
51957         it's no longer documented to expand to an integer constant expression.
51958         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
51959         argument is floating point, as it's no longer documented to expand
51960         to an integer constant expression in that case.
51961         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
51962         compiler bugs reported by Bruno Haible.  See
51963         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
51964         (U0, U1): New constants, to work around the same bugs.  Also,
51965         in tests, use e.g., "(unsigned int) 39" rather than "39u".
51967         intprops: work around C compiler bugs
51968         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
51969         bug in Sun C 5.11 2010/08/13 and other compilers; see
51970         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
51972         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
51973         * doc/intprops.texi (Integer Type Determination): Fix
51974         documentation for TYPE_IS_INTEGER: it returns an constant
51975         expression, not an integer constant expression.  Fix doc for
51976         TYPE_SIGNED: it returns an integer constant expression only if its
51977         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
51978         hardly worth documented that way....)
51980 2011-05-18  Bruno Haible  <bruno@clisp.org>
51982         strerror_r: Avoid clobbering the strerror buffer when possible.
51983         * lib/strerror_r.c (strerror_r): Merge the three implementations.
51984         Handle gnulib defined errno values here. When strerror() returns NULL
51985         or an empty string, return EINVAL.
51986         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
51987         gnulib defined errno values here.
51988         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
51990 2011-05-18  Eric Blake  <eblake@redhat.com>
51992         fnmatch: avoid compiler warning
51993         * lib/fnmatch_loop.c (FCT): Use correct type.
51994         Reported by Matthias Bolte.
51996 2011-05-13  Jim Meyering  <meyering@redhat.com>
51998         maint.mk: three new prohibit_<HDR>_without_use rules
51999         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
52000         (sc_prohibit_stdio-safer_without_use): Likewise.
52001         (sc_prohibit_xfreopen_without_use): Likewise.
52003 2011-05-17  Jim Meyering  <meyering@redhat.com>
52005         announce-gen: fail if the NEWS delta is empty
52006         If there's nothing noteworthy in NEWS, then either you forgot
52007         or you shouldn't be releasing.
52008         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
52010 2011-05-17  Pádraig Brady  <P@draigBrady.com>
52012         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
52013         reserved symbols starting with double underscore from the check.
52015 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
52017         intprops: add doc
52018         * doc/intprops.texi: New file, documenting intprops.
52019         * doc/gnulib.texi (Particular Modules): Include it.
52021         verify: add doc to gnulib manual and fix example
52022         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
52023         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
52024         (Compile-time Assertions): Fix example so it can't overflow.
52026 2011-05-17  Jim Meyering  <meyering@redhat.com>
52028         warnings.m4: don't usurp save_CPPFLAGS variable name
52029         * m4/warnings.m4: Prefix local temporary variable name with gl_.
52031         doc: fix typo
52032         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
52034 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
52035             Bruno Haible  <bruno@clisp.org>
52037         doc: Tweak recent change.
52038         * README (Portability guidelines): Tweak new text.
52039         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
52040         Interix 6.1.
52042 2011-05-16  Eric Blake  <eblake@redhat.com>
52044         inttypes: avoid autoconf warning
52045         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
52046         * m4/stdint.m4 (gl_STDINT_H): Likewise.
52048 2011-05-16  Sam Steingold  <sds@gnu.org>
52049         and Eric Blake  <eblake@redhat.com>
52051         vc-list-files: accept multiple directory operands
52052         * build-aux/vc-list-files: Iterate over all remaining operands.
52054 2011-05-16  Bruno Haible  <bruno@clisp.org>
52056         Fix confusion regarding deprecated modules.
52057         * modules/calloc (Status, Notice): Mark module as deprecated, not
52058         obsolete.
52059         * modules/fnmatch-posix (Status, Notice): Likewise.
52060         * modules/getdate (Status, Notice): Likewise.
52061         * modules/getopt (Status, Notice): Likewise.
52062         * modules/malloc (Status, Notice): Likewise.
52063         * modules/pipe (Status, Notice): Likewise.
52064         * modules/realloc (Status, Notice): Likewise.
52065         * modules/rename-dest-slash (Status, Notice): Likewise.
52066         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
52067         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
52068         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
52069         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
52070         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
52072 2011-05-16  Bruno Haible  <bruno@clisp.org>
52074         doc: List the target platforms.
52075         * doc/gnulib-intro.texi (Target Platforms): New section.
52076         * doc/gnulib.texi (Introduction): Update menu.
52077         * README (Portability guidelines): Refer to the new section. Update
52078         statement about oldest supported environment. Remove rationale why
52079         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
52080         unportable C89 function.
52081         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
52082         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
52084 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
52086         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
52088 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52090         intprops-tests: new module
52091         * modules/intprops-tests, tests/test-intprops.c: New files.
52093         intprops: add safe, portable integer overflow checking
52094         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
52095         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
52096         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
52097         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
52098         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
52099         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
52100         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
52101         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
52102         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
52103         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
52104         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
52106 2011-05-12  James Youngman  <jay@gnu.org>
52108         Add a test for glibc's Bugzilla bug #12378.
52109         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
52110         doesn't allow the literal matching of a lone "[" (which is
52111         required by POSIX).
52112         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
52114 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
52116         Sync glibc change fixing Bugzilla bug #12378.
52117         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
52118         beginning and fall back to matching as normal character if the
52119         string ends before the matching ']' is found.  This is what POSIX
52120         requires.
52122 2011-05-13  Eric Blake  <eblake@redhat.com>
52124         getcwd-lgpl: relax test for FreeBSD
52125         * doc/posix-functions/getcwd.texi (getcwd): Document portability
52126         issue.
52127         * tests/test-getcwd-lgpl.c (main): Relax test.
52128         Reported by Matthias Bolte.
52130 2011-05-11  Eric Blake  <eblake@redhat.com>
52132         test-fflush: silence compiler warning
52133         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
52135 2011-05-11  Bruno Haible  <bruno@clisp.org>
52137         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
52138         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
52139         * modules/canonicalize (Depends-on): Add 'nocrash'.
52140         * modules/canonicalize-lgpl (Depends-on): Likewise.
52141         * doc/posix-functions/realpath.texi: Update platforms list.
52142         Reported by Ryan Schmidt <ryandesign@macports.org>.
52144 2011-05-11  Bruno Haible  <bruno@clisp.org>
52146         group-member: Declare function in <unistd.h>.
52147         * lib/unistd.in.h (group_member): New declaration.
52148         * lib/group-member.h: Remove file.
52149         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
52150         * tests/test-unistd-c++.cc: Check signature of group_member.
52151         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
52152         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
52153         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
52154         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
52155         HAVE_GROUP_MEMBER.
52156         * modules/group-member (Files): Remove lib/group-member.h.
52157         (Depends-on): Add unistd. Specify conditions.
52158         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52159         (Include): Change to <unistd.h>.
52160         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
52161         HAVE_GROUP_MEMBER.
52162         * NEWS: Mention the change.
52163         * lib/euidaccess.c: Don't include group-member.h.
52165 2011-05-11  Bruno Haible  <bruno@clisp.org>
52167         group-member: Document module.
52168         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
52169         module.
52171 2011-05-11  Bruno Haible  <bruno@clisp.org>
52173         fclose: Fix mistake earlier today.
52174         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
52176 2011-05-11  Eric Blake  <eblake@redhat.com>
52178         fclose: preserve fflush errors
52179         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
52180         Reported by Jim Meyering.
52182         bootstrap: support a prereq of 'rpcgen -' on RHEL5
52183         * build-aux/bootstrap (check_versions): When no specific version
52184         is required, merely check that the app produces an exit status
52185         that indicates its existence.
52187         maint.mk: drop redundant check
52188         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
52189         the same but better.
52191 2011-05-11  Bruno Haible  <bruno@clisp.org>
52193         fclose: Fix possible link error.
52194         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
52195         unregister_shadow_fd. Improve comments.
52196         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
52197         Eric Blake.
52199 2011-05-11  Jim Meyering  <meyering@redhat.com>
52201         maint.mk: improve "can not" detection and generalize rule name
52202         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
52203         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
52204         Use the same technique as in sc_prohibit_doubled_word, so that
52205         we recognize "can not" also when the words are separated by a newline.
52206         Suggested by Eric Blake.
52207         (perl_filename_lineno_text_): Define.  Factored out of...
52208         (prohibit_doubled_word_): ...here.  Use the new definition.
52209         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
52210         (prohibit_undesirable_word_seq_RE_): New overridable variable.
52211         (ignore_undesirable_word_sequence_RE_): New overridable variable.
52213 2011-05-10  Eric Blake  <eblake@redhat.com>
52215         fclose: avoid double close race when possible
52216         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
52217         all but WINDOWS_SOCKETS.
52219 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
52221         openat: correct new comment
52222         * lib/openat-proc.c (openat_proc_name): Correct the comment.
52224 2011-05-10  Jim Meyering  <meyering@redhat.com>
52226         openat: add comments
52227         * lib/openat-proc.c (openat_proc_name): Add comments,
52228         mostly from Eric Blake.
52230 2011-05-09  Eric Blake  <eblake@redhat.com>
52232         openat: reduce syscalls in first probe of /proc
52233         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
52234         be a directory.  Simplify the probe for .. bugs.
52235         * modules/openat (Depends-on): Drop same-inode.
52236         Reported by Bastien ROUCARIES.
52238 2011-05-09  Jim Meyering  <meyering@redhat.com>
52240         maint.mk: change semantics/name of tight_scope variables
52241         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
52242         Rename variables to align with semantics that make them more useful.
52244         maint.mk: tweak new rule's name not to impinge
52245         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
52246         (sc_tight_scope): Use new rule name rather than $@-0.
52248         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
52249         * top/maint.mk (sc_tight_scope): New rule.
52250         (sc_tight_scope-0): New rule, ifdef'd out.
52251         (_gl_TS_dir): Default.
52252         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
52253         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
52255 2011-05-09  Simon Josefsson  <simon@josefsson.org>
52257         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
52258         Haible <bruno@clisp.org>.
52260 2011-05-08  Bruno Haible  <bruno@clisp.org>
52262         Comments.
52263         * m4/isnanf.m4: Add comment.
52264         * m4/isnanl.m4: Likewise.
52266 2011-05-08  Bruno Haible  <bruno@clisp.org>
52268         glob: Remove obsolete macro.
52269         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
52271 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
52273         intprops: Sun C 5.11 supports __typeof__
52274         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
52275         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
52276         which is new.
52277         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
52279         intprops: switch to usual gnulib indenting and naming
52280         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
52281         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
52283         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
52285 2011-05-08  Jim Meyering  <meyering@redhat.com>
52287         maint.mk: suppress "Entering/Leaving directory" diag in announcement
52288         * top/maint.mk (release-prep): Use make's --no-print-directory
52289         option when generating the announcement.  This eliminates the
52290         pesky "make[2]: Entering/Leaving directory" diagnostics in the
52291         generated announcement template.
52293 2011-05-08  Bruno Haible  <bruno@clisp.org>
52295         tzset: Fix gettimeofday wrapper on Solaris 2.6.
52296         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
52297         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
52299 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
52301         ignore-value, verify: Omit include files from lib_SOURCES.
52302         * modules/ignore-value, modules/verify (Makefile.am):
52303         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
52304         that leads Automake to duplicate use of am__objects_... variables
52305         in Makefile.in.  See
52306         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
52308 2011-05-07  Bruno Haible  <bruno@clisp.org>
52310         fclose: Simplify autoconf macro.
52311         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
52312         defined.
52314 2011-05-07  Bruno Haible  <bruno@clisp.org>
52316         canonicalize-lgpl: Fix autoconf macro ordering bug.
52317         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
52318         gl_STDLIB_H_DEFAULTS.
52320 2011-05-06  Eric Blake  <eblake@redhat.com>
52322         maintainer-makefile: make sc_po_check easier to tune
52323         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
52324         to probe for strings, such as an alternate location for gnulib.
52326         fclose: guarantee behavior on seekable stdin
52327         * modules/fclose (Depends-on): Add fflush.
52328         * doc/posix-functions/fclose.texi (fclose): Document this.
52329         * tests/test-fclose.c (main): Make test for this unconditional.
52331 2011-05-06  Bruno Haible  <bruno@clisp.org>
52333         fflush, fpurge: Relicense under LGPLv2+.
52334         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
52335         * modules/fpurge (License): Likewise.
52336         With permission from Eric Blake and Jim Meyering.
52337         Suggested by Eric Blake.
52339 2011-05-06  Karl Berry  <karl@gnu.org>
52341         * MODULES.html.sh (func_all_modules): remove exit.
52343 2011-05-06  Jim Meyering  <meyering@redhat.com>
52345         maint.mk: use info-gnu@ as the default only for a stable release
52346         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
52347         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
52348         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
52349         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
52351 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
52353         assert-h: new module, which supports C1X-style static_assert
52354         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
52355         * lib/verify.h: Revamp so that this can be copied into assert.h,
52356         while retaining the ability to use it standalone as before.
52357         Rename private identifiers so as not to encroach on the
52358         standard C namespace, since this is now used by assert.h.
52359         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
52360         the old verify_true.
52361         (_GL_VERIFY_TRUE): New macro, with much of the contents of
52362         the old verify_true.  Use _GL_VERIFY_TYPE.
52363         (_GL_VERIFY): New macro, with much of the contents of the old verify.
52364         (static_assert): New macro, if _GL_STATIC_ASSERT_H
52365         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
52366         defined when this file is copied into the replacement assert.h.
52367         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
52368         and _Static_assert is not built in.
52369         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
52370         defined, and use the new macros mentioned above.
52371         * doc/posix-headers/assert.texi: Document this.
52373 2011-05-05  Bruno Haible  <bruno@clisp.org>
52375         fclose, fflush: Respect rules for use of AC_LIBOBJ.
52376         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
52377         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
52378         gl_REPLACE_FCLOSE here.
52379         * modules/fflush (Depends-on): Remove fclose.
52380         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
52381         combination with module 'fclose'.
52383 2011-05-05  Bruno Haible  <bruno@clisp.org>
52385         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
52386         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
52387         gl_FUNC_FFLUSH.
52388         (gl_FUNC_FFLUSH): Use it.
52389         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
52390         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
52391         gl_REPLACE_FSEEKO here.
52393 2011-05-05  Bruno Haible  <bruno@clisp.org>
52395         tzset: Relicense under LGPL.
52396         * modules/tzset (License): Change to LGPL.
52397         No agreement needed; it's a no-op.
52399         strtoimax, strtoumax: Relicense under LGPL.
52400         * modules/strtoimax (License): Change to LGPL.
52401         * modules/strtoumax (License): Likewise.
52402         With permission from Jim Meyering, Paul Eggert:
52403         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
52404         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
52406         getgroups: Relicense under LGPL.
52407         * modules/getgroups (License): Change to LGPL.
52408         With permission from Jim Meyering, Paul Eggert, Eric Blake:
52409         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
52410         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
52411         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
52413         nanosleep: Relicense under LGPL.
52414         * modules/nanosleep (License): Change to LGPL.
52415         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
52416         Haible:
52417         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
52418         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
52419         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
52420         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
52422         futimens: Relicense under LGPL.
52423         * modules/futimens (License): Change to LGPL.
52424         With permission from Eric Blake:
52425         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
52427         fflush: Relicense under LGPL.
52428         * modules/fflush (License): Change to LGPL.
52429         With permission from Eric Blake, Bruno Haible, Jim Meyering:
52430         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
52431         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
52432         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
52434         tmpfile: Relicense under LGPL.
52435         * modules/tmpfile (License): Change to LGPL.
52436         With permission from Ben Pfaff:
52437         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
52439         isfinite: Relicense under LGPL.
52440         * modules/isfinite (License): Change to LGPL.
52441         With permission from Ben Pfaff, Bruno Haible:
52442         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
52443         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
52445         acosl..tanl: Relicense under LGPL.
52446         * modules/acosl (License): Change to LGPL.
52447         * modules/asinl (License): Likewise.
52448         * modules/atanl (License): Likewise.
52449         * modules/cosl (License): Likewise.
52450         * modules/expl (License): Likewise.
52451         * modules/logl (License): Likewise.
52452         * modules/sinl (License): Likewise.
52453         * modules/sqrtl (License): Likewise.
52454         * modules/tanl (License): Likewise.
52455         Source code originally from glibc and Paolo Bonzini. Agreements:
52456         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
52457         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
52459 2011-05-05  Bruno Haible  <bruno@clisp.org>
52461         signal: Define sighandler_t.
52462         * lib/signal.in.h (sighandler_t): New type.
52463         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
52464         whether sighandler_t is defined.
52465         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
52466         * modules/signal (Depends-on): Add extensions.
52467         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
52468         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
52469         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
52471 2011-05-05  Eric Blake  <eblake@redhat.com>
52473         maint: remove useless REPLACE_*_H macros
52474         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
52475         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
52476         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
52477         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
52478         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
52479         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
52480         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
52481         * m4/btowc.m4: Update callers.
52482         * m4/dirfd.m4: Likewise.
52483         * m4/duplocale.m4: Likewise.
52484         * m4/fchdir.m4: Likewise.
52485         * m4/fdopendir.m4: Likewise.
52486         * m4/inet_ntop.m4: Likewise.
52487         * m4/inet_pton.m4: Likewise.
52488         * m4/ioctl.m4: Likewise.
52489         * m4/mbrlen.m4: Likewise.
52490         * m4/mbrtowc.m4: Likewise.
52491         * m4/mbsinit.m4: Likewise.
52492         * m4/mbsnrtowcs.m4: Likewise.
52493         * m4/mbsrtowcs.m4: Likewise.
52494         * m4/poll.m4: Likewise.
52495         * m4/setlocale.m4: Likewise.
52496         * m4/wcrtomb.m4: Likewise.
52497         * m4/wcsnrtombs.m4: Likewise.
52498         * m4/wcsrtombs.m4: Likewise.
52499         * m4/wctob.m4: Likewise.
52500         * m4/wcwidth.m4: Likewise.
52501         * modules/posix_spawn: Likewise.
52502         * modules/posix_spawn_file_actions_addclose: Likewise.
52503         * modules/posix_spawn_file_actions_adddup2: Likewise.
52504         * modules/posix_spawn_file_actions_addopen: Likewise.
52505         * modules/posix_spawn_file_actions_destroy: Likewise.
52506         * modules/posix_spawn_file_actions_init: Likewise.
52507         * modules/posix_spawnattr_destroy: Likewise.
52508         * modules/posix_spawnattr_getflags: Likewise.
52509         * modules/posix_spawnattr_getpgroup: Likewise.
52510         * modules/posix_spawnattr_getschedparam: Likewise.
52511         * modules/posix_spawnattr_getschedpolicy: Likewise.
52512         * modules/posix_spawnattr_getsigdefault: Likewise.
52513         * modules/posix_spawnattr_getsigmask: Likewise.
52514         * modules/posix_spawnattr_init: Likewise.
52515         * modules/posix_spawnattr_setflags: Likewise.
52516         * modules/posix_spawnattr_setpgroup: Likewise.
52517         * modules/posix_spawnattr_setschedparam: Likewise.
52518         * modules/posix_spawnattr_setschedpolicy: Likewise.
52519         * modules/posix_spawnattr_setsigdefault: Likewise.
52520         * modules/posix_spawnattr_setsigmask: Likewise.
52521         * modules/posix_spawnp: Likewise.
52523 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
52525         Add option to do-release-commit-and-tag to specify branch.
52526         * build-aux/do-release-commit-and-tag: Add --branch.
52528 2011-05-03  Bruno Haible  <bruno@clisp.org>
52530         Avoid unnecessary compilation units, through conditional dependencies.
52531         * modules/accept (Depends-on): Add conditions to the dependencies.
52532         * modules/acosl (Depends-on): Likewise.
52533         * modules/argz (Depends-on): Likewise.
52534         * modules/asinl (Depends-on): Likewise.
52535         * modules/atanl (Depends-on): Likewise.
52536         * modules/atoll (Depends-on): Likewise.
52537         * modules/bind (Depends-on): Likewise.
52538         * modules/btowc (Depends-on): Likewise.
52539         * modules/canonicalize-lgpl (Depends-on): Likewise.
52540         * modules/ceil (Depends-on): Likewise.
52541         * modules/ceilf (Depends-on): Likewise.
52542         * modules/ceill (Depends-on): Likewise.
52543         * modules/chdir-long (Depends-on): Likewise.
52544         * modules/chown (Depends-on): Likewise.
52545         * modules/close (Depends-on): Likewise.
52546         * modules/connect (Depends-on): Likewise.
52547         * modules/cosl (Depends-on): Likewise.
52548         * modules/dirfd (Depends-on): Likewise.
52549         * modules/dprintf (Depends-on): Likewise.
52550         * modules/dprintf-posix (Depends-on): Likewise.
52551         * modules/error (Depends-on): Likewise.
52552         * modules/euidaccess (Depends-on): Likewise.
52553         * modules/expl (Depends-on): Likewise.
52554         * modules/faccessat (Depends-on): Likewise.
52555         * modules/fchdir (Depends-on): Likewise.
52556         * modules/fclose (Depends-on): Likewise.
52557         * modules/fcntl (Depends-on): Likewise.
52558         * modules/fdopendir (Depends-on): Likewise.
52559         * modules/fflush (Depends-on): Likewise.
52560         * modules/floor (Depends-on): Likewise.
52561         * modules/floorf (Depends-on): Likewise.
52562         * modules/floorl (Depends-on): Likewise.
52563         * modules/fnmatch (Depends-on): Likewise.
52564         * modules/fopen (Depends-on): Likewise.
52565         * modules/fprintf-posix (Depends-on): Likewise.
52566         * modules/frexp (Depends-on): Likewise.
52567         * modules/frexp-nolibm (Depends-on): Likewise.
52568         * modules/frexpl (Depends-on): Likewise.
52569         * modules/frexpl-nolibm (Depends-on): Likewise.
52570         * modules/fseek (Depends-on): Likewise.
52571         * modules/fsusage (Depends-on): Likewise.
52572         * modules/ftell (Depends-on): Likewise.
52573         * modules/ftello (Depends-on): Likewise.
52574         * modules/futimens (Depends-on): Likewise.
52575         * modules/getcwd (Depends-on): Likewise.
52576         * modules/getcwd-lgpl (Depends-on): Likewise.
52577         * modules/getdelim (Depends-on): Likewise.
52578         * modules/getdomainname (Depends-on): Likewise.
52579         * modules/getgroups (Depends-on): Likewise.
52580         * modules/gethostname (Depends-on): Likewise.
52581         * modules/getline (Depends-on): Likewise.
52582         * modules/getlogin_r (Depends-on): Likewise.
52583         * modules/getopt-posix (Depends-on): Likewise.
52584         * modules/getpeername (Depends-on): Likewise.
52585         * modules/getsockname (Depends-on): Likewise.
52586         * modules/getsockopt (Depends-on): Likewise.
52587         * modules/getsubopt (Depends-on): Likewise.
52588         * modules/getusershell (Depends-on): Likewise.
52589         * modules/glob (Depends-on): Likewise.
52590         * modules/grantpt (Depends-on): Likewise.
52591         * modules/iconv_open (Depends-on): Likewise.
52592         * modules/iconv_open-utf (Depends-on): Likewise.
52593         * modules/inet_ntop (Depends-on): Likewise.
52594         * modules/inet_pton (Depends-on): Likewise.
52595         * modules/ioctl (Depends-on): Likewise.
52596         * modules/isapipe (Depends-on): Likewise.
52597         * modules/isfinite (Depends-on): Likewise.
52598         * modules/isinf (Depends-on): Likewise.
52599         * modules/lchown (Depends-on): Likewise.
52600         * modules/ldexpl (Depends-on): Likewise.
52601         * modules/link (Depends-on): Likewise.
52602         * modules/linkat (Depends-on): Likewise.
52603         * modules/listen (Depends-on): Likewise.
52604         * modules/logl (Depends-on): Likewise.
52605         * modules/lstat (Depends-on): Likewise.
52606         * modules/mbrlen (Depends-on): Likewise.
52607         * modules/mbrtowc (Depends-on): Likewise.
52608         * modules/mbsinit (Depends-on): Likewise.
52609         * modules/mbsnrtowcs (Depends-on): Likewise.
52610         * modules/mbsrtowcs (Depends-on): Likewise.
52611         * modules/mbtowc (Depends-on): Likewise.
52612         * modules/memcmp (Depends-on): Likewise.
52613         * modules/mkdir (Depends-on): Likewise.
52614         * modules/mkdtemp (Depends-on): Likewise.
52615         * modules/mkfifo (Depends-on): Likewise.
52616         * modules/mkfifoat (Depends-on): Likewise.
52617         * modules/mknod (Depends-on): Likewise.
52618         * modules/mkostemp (Depends-on): Likewise.
52619         * modules/mkostemps (Depends-on): Likewise.
52620         * modules/mkstemp (Depends-on): Likewise.
52621         * modules/mkstemps (Depends-on): Likewise.
52622         * modules/mktime (Depends-on): Likewise.
52623         * modules/nanosleep (Depends-on): Likewise.
52624         * modules/open (Depends-on): Likewise.
52625         * modules/openat (Depends-on): Likewise.
52626         * modules/perror (Depends-on): Likewise.
52627         * modules/poll (Depends-on): Likewise.
52628         * modules/popen (Depends-on): Likewise.
52629         * modules/posix_spawn (Depends-on): Likewise.
52630         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
52631         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
52632         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
52633         * modules/posix_spawnp (Depends-on): Likewise.
52634         * modules/pread (Depends-on): Likewise.
52635         * modules/printf-posix (Depends-on): Likewise.
52636         * modules/ptsname (Depends-on): Likewise.
52637         * modules/putenv (Depends-on): Likewise.
52638         * modules/pwrite (Depends-on): Likewise.
52639         * modules/readline (Depends-on): Likewise.
52640         * modules/readlink (Depends-on): Likewise.
52641         * modules/readlinkat (Depends-on): Likewise.
52642         * modules/recv (Depends-on): Likewise.
52643         * modules/recvfrom (Depends-on): Likewise.
52644         * modules/regex (Depends-on): Likewise.
52645         * modules/remove (Depends-on): Likewise.
52646         * modules/rename (Depends-on): Likewise.
52647         * modules/renameat (Depends-on): Likewise.
52648         * modules/rmdir (Depends-on): Likewise.
52649         * modules/round (Depends-on): Likewise.
52650         * modules/roundf (Depends-on): Likewise.
52651         * modules/roundl (Depends-on): Likewise.
52652         * modules/rpmatch (Depends-on): Likewise.
52653         * modules/select (Depends-on): Likewise.
52654         * modules/send (Depends-on): Likewise.
52655         * modules/sendto (Depends-on): Likewise.
52656         * modules/setenv (Depends-on): Likewise.
52657         * modules/setlocale (Depends-on): Likewise.
52658         * modules/setsockopt (Depends-on): Likewise.
52659         * modules/shutdown (Depends-on): Likewise.
52660         * modules/sigaction (Depends-on): Likewise.
52661         * modules/signbit (Depends-on): Likewise.
52662         * modules/sigprocmask (Depends-on): Likewise.
52663         * modules/sinl (Depends-on): Likewise.
52664         * modules/sleep (Depends-on): Likewise.
52665         * modules/snprintf (Depends-on): Likewise.
52666         * modules/snprintf-posix (Depends-on): Likewise.
52667         * modules/socket (Depends-on): Likewise.
52668         * modules/sprintf-posix (Depends-on): Likewise.
52669         * modules/sqrtl (Depends-on): Likewise.
52670         * modules/stat (Depends-on): Likewise.
52671         * modules/strchrnul (Depends-on): Likewise.
52672         * modules/strdup-posix (Depends-on): Likewise.
52673         * modules/strerror (Depends-on): Likewise.
52674         * modules/strerror_r-posix (Depends-on): Likewise.
52675         * modules/strndup (Depends-on): Likewise.
52676         * modules/strnlen (Depends-on): Likewise.
52677         * modules/strptime (Depends-on): Likewise.
52678         * modules/strsep (Depends-on): Likewise.
52679         * modules/strsignal (Depends-on): Likewise.
52680         * modules/strstr-simple (Depends-on): Likewise.
52681         * modules/strtod (Depends-on): Likewise.
52682         * modules/strtoimax (Depends-on): Likewise.
52683         * modules/strtok_r (Depends-on): Likewise.
52684         * modules/strtoumax (Depends-on): Likewise.
52685         * modules/symlink (Depends-on): Likewise.
52686         * modules/symlinkat (Depends-on): Likewise.
52687         * modules/tanl (Depends-on): Likewise.
52688         * modules/tcgetsid (Depends-on): Likewise.
52689         * modules/tmpfile (Depends-on): Likewise.
52690         * modules/trunc (Depends-on): Likewise.
52691         * modules/truncf (Depends-on): Likewise.
52692         * modules/truncl (Depends-on): Likewise.
52693         * modules/uname (Depends-on): Likewise.
52694         * modules/unlink (Depends-on): Likewise.
52695         * modules/unlockpt (Depends-on): Likewise.
52696         * modules/unsetenv (Depends-on): Likewise.
52697         * modules/usleep (Depends-on): Likewise.
52698         * modules/utimensat (Depends-on): Likewise.
52699         * modules/vasprintf (Depends-on): Likewise.
52700         * modules/vdprintf (Depends-on): Likewise.
52701         * modules/vdprintf-posix (Depends-on): Likewise.
52702         * modules/vfprintf-posix (Depends-on): Likewise.
52703         * modules/vprintf-posix (Depends-on): Likewise.
52704         * modules/vsnprintf (Depends-on): Likewise.
52705         * modules/vsnprintf-posix (Depends-on): Likewise.
52706         * modules/vsprintf-posix (Depends-on): Likewise.
52707         * modules/wcrtomb (Depends-on): Likewise.
52708         * modules/wcscasecmp (Depends-on): Likewise.
52709         * modules/wcscspn (Depends-on): Likewise.
52710         * modules/wcsdup (Depends-on): Likewise.
52711         * modules/wcsncasecmp (Depends-on): Likewise.
52712         * modules/wcsnrtombs (Depends-on): Likewise.
52713         * modules/wcspbrk (Depends-on): Likewise.
52714         * modules/wcsrtombs (Depends-on): Likewise.
52715         * modules/wcsspn (Depends-on): Likewise.
52716         * modules/wcsstr (Depends-on): Likewise.
52717         * modules/wcstok (Depends-on): Likewise.
52718         * modules/wcswidth (Depends-on): Likewise.
52719         * modules/wctob (Depends-on): Likewise.
52720         * modules/wctomb (Depends-on): Likewise.
52721         * modules/wctype (Depends-on): Likewise.
52722         * modules/wcwidth (Depends-on): Likewise.
52723         * modules/write (Depends-on): Likewise.
52725 2011-05-03  Bruno Haible  <bruno@clisp.org>
52727         Support for conditional dependencies.
52728         * doc/gnulib.texi (Module description): Document the syntax of
52729         conditional dependencies.
52730         * gnulib-tool: New option --conditional-dependencies.
52731         (func_usage): Document it.
52732         (cond_dependencies): New variable.
52733         (func_get_automake_snippet_conditional,
52734         func_get_automake_snippet_unconditional): New functions, extracted from
52735         func_get_automake_snippet.
52736         (func_get_automake_snippet): Use them.
52737         (sed_first_32_chars): New variable.
52738         (func_module_shellfunc_name): New function.
52739         (func_module_shellvar_name): New function.
52740         (func_module_conditional_name): New function.
52741         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
52742         func_cond_module_condition): New functions.
52743         (func_modules_transitive_closure): Add support for conditional
52744         dependencies.
52745         (func_emit_lib_Makefile_am): For a conditional module, enclose the
52746         conditional automake snippet in an automake conditional.
52747         (func_emit_autoconf_snippets): Emit shell functions that contain the
52748         code for conditional modules.
52749         (func_import, func_create_testdir): Update specification.
52751 2011-05-03  Eric Blake  <eblake@redhat.com>
52753         test-getaddrinfo: report error information
52754         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
52756 2011-05-03  Jim Meyering  <meyering@redhat.com>
52758         bootstrap: avoid build failure when $GZIP is set
52759         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
52760         program name.  If defined at all, it is supposed to list gzip options.
52761         Reported by Alan Curry in http://debbugs.gnu.org/8609
52763 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
52765         readme-release: new module with release instructions
52766         * modules/readme-release: New module.
52767         * top/README-release: New file, from coreutils, grep, diffutils.
52768         * MODULES.html.sh (Support for maintaining and releasing): Add it.
52770 2011-05-02  Eric Blake  <eblake@redhat.com>
52772         fflush: also replace fclose when fixing fflush
52773         * modules/fflush (Depends-on): Add fclose.
52774         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
52775         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
52776         memstreams with no backing fd.
52777         * doc/posix-functions/fclose.texi (fclose): Document the use of
52778         fflush module to fix the bug.
52779         * tests/test-fclose.c (main): Relax test when fclose is used in
52780         isolation.
52782         fclose: add some tests
52783         * modules/fclose-tests: New test module.
52784         * tests/test-fclose.c: New file.
52785         * doc/posix-functions/fclose.texi (fclose): Document the bug.
52787         fclose: reduced dependencies
52788         * modules/fclose (Depends-on): Switch from fflush/fseeko to
52789         simpler lseek.
52790         * lib/fclose.c (rpl_fclose): Likewise.
52791         Reported by Simon Josefsson.
52793         exit: drop remaining clients
52794         * modules/argmatch (Depends-on): Replace exit with stdlib.
52795         * modules/copy-file (Depends-on): Likewise.
52796         * modules/execute (Depends-on): Likewise.
52797         * modules/exitfail (Depends-on): Likewise.
52798         * modules/obstack (Depends-on): Likewise.
52799         * modules/pagealign_alloc (Depends-on): Likewise.
52800         * modules/pipe-filter-gi (Depends-on): Likewise.
52801         * modules/pipe-filter-ii (Depends-on): Likewise.
52802         * modules/savewd (Depends-on): Likewise.
52803         * modules/spawn-pipe (Depends-on): Likewise.
52804         * modules/wait-process (Depends-on): Likewise.
52805         * modules/xsetenv (Depends-on): Likewise.
52806         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
52807         * modules/git-merge-changelog (Depends-on): Likewise.
52808         * modules/long-options (Depends-on): Likewise.
52809         * modules/pt_chown (Depends-on): Likewise.
52810         * modules/sysexits (Depends-on): Likewise.
52812         freading: relax license from LGPLv3+ to LGPLv2+
52813         * modules/freading (License): Relax LGPL version.
52815 2011-05-02  Bruno Haible  <bruno@clisp.org>
52817         fchdir: Remove unused dependencies.
52818         * modules/fchdir (Depends-on): Remove include_next.
52820 2011-05-02  Bruno Haible  <bruno@clisp.org>
52822         gnulib-tool: Refactor.
52823         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
52824         from func_emit_autoconf_snippets.
52825         (func_emit_autoconf_snippets): Use it.
52827 2011-05-02  Simon Josefsson  <simon@josefsson.org>
52829         * NEWS: Document removal of 'exit'.
52830         * modules/exit: Remove file.
52832 2011-05-01  Bruno Haible  <bruno@clisp.org>
52834         Update DEPENDENCIES.
52835         * DEPENDENCIES (gettext): Recommend the newest release.
52836         Reported by Simon Josefsson.
52838 2011-05-01  Bruno Haible  <bruno@clisp.org>
52840         gnulib-tool: Reduce code duplication.
52841         * gnulib-tool (func_emit_autoconf_snippets): New function.
52842         (func_import, func_create_testdir): Use it.
52844 2011-04-30  Eric Blake  <eblake@redhat.com>
52846         fclose: don't fail on non-seekable input stream
52847         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
52848         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
52849         since fflush is allowed to fail in that case.
52851 2011-04-30  Bruno Haible  <bruno@clisp.org>
52853         dup3: cleanup
52854         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
52856 2011-04-30  Bruno Haible  <bruno@clisp.org>
52858         netdb: Make it work in C++ mode.
52859         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
52860         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
52861         module.
52862         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
52863         gl_MODULE_INDICATOR_FOR_TESTS.
52864         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
52865         * modules/netdb-c++-tests: New file.
52866         * tests/test-netdb-c++.cc: New file.
52868 2011-04-30  Bruno Haible  <bruno@clisp.org>
52870         New modules 'vfscanf', 'vscanf'.
52871         * modules/vfscanf: New file.
52872         * modules/vscanf: New file.
52873         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
52874         here.
52875         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
52876         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
52878 2011-04-30  Bruno Haible  <bruno@clisp.org>
52880         passfd: Add comments.
52881         * lib/passfd.c: Add comments about platforms.
52883 2011-04-30  Bruno Haible  <bruno@clisp.org>
52885         sys_uio: Make <sys/uio.h> self-contained.
52886         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
52887         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
52889 2011-04-30  Bruno Haible  <bruno@clisp.org>
52891         sys_socket: Ensure 'struct iovec' definition.
52892         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
52893         <sys/socket.h>.
52894         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
52896 2011-04-30  Bruno Haible  <bruno@clisp.org>
52898         sys_uio: Protect definition of 'struct iovec'.
52899         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
52900         it as a C struct.
52902 2011-04-30  Bruno Haible  <bruno@clisp.org>
52904         manywarnings: fix indentation
52905         * m4/manywarnings.m4: Indent by 2 spaces consistently.
52907 2011-04-30  Pádraig Brady  <P@draigBrady.com>
52909         manywarnings: add -Wno-missing-field-initializers if needed.
52910         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
52911         option if it's needed to allow initialization with { 0, }
52913 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
52915         announce-gen: cosmetic improvement
52916         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
52918 2011-04-29  Jim Meyering  <meyering@redhat.com>
52920         vc-list-files: indent with spaces, not TABs
52921         * build-aux/vc-list-files: Convert leading TABs to spaces,
52922         to match the style of most other files in gnulib.
52924         announce-gen: indent with spaces, not TABs
52925         * build-aux/announce-gen: Convert all TABs to spaces, to match
52926         the style of most other files in gnulib.
52928 2011-04-29  Eric Blake  <eblake@redhat.com>
52930         quotearg: avoid uninitialized variable use
52931         * lib/quotearg.c (quoting_options_from_style): Initialize
52932         remaining fields, and ensure that custom styles are only used via
52933         quoting_options rather than quoting_style.
52935 2011-04-29  Jim Meyering  <meyering@redhat.com>
52937         maint.mk: remove unused VC-tag variable
52938         * top/maint.mk (VC-tag): Remove unused variable.
52940 2011-04-29  Bruno Haible  <bruno@clisp.org>
52942         netdb: fix gai_strerror replacements
52943         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
52944         * modules/netdb: Substitute it.
52946 2011-04-29  Jim Meyering  <meyering@redhat.com>
52948         test-getcwd.c: avoid new set-but-not-used warning
52949         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
52950         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
52951         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
52952         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
52954         test-hash.c: avoid a new shadowing warning
52955         * tests/test-hash.c (main): Don't shadow "dup".
52957 2011-04-28  Eric Blake  <eblake@redhat.com>
52959         getaddrinfo: fix gai_strerror signature
52960         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
52961         and work around mingw with UNICODE defined.
52962         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
52963         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
52964         * modules/netdb (Makefile.am): Substitute it.
52965         * lib/netdb.in.h (gai_strerror): Declare replacement.
52966         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
52967         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
52968         the fix.
52970         getsockopt: avoid compiler warning
52971         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
52972         Reported by Matthias Bolte.
52974         tests: drop unused link dependency
52975         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
52976         * modules/dirent-safer-tests (Makefile.am): Likewise.
52977         * modules/fdopendir-tests (Makefile.am): Likewise.
52978         * modules/mkfifoat-tests (Makefile.am): Likewise.
52979         * modules/openat-safer-tests (Makefile.am): Likewise.
52980         * modules/openat-tests (Makefile.am): Likewise.
52981         * modules/readlinkat-tests (Makefile.am): Likewise.
52982         * modules/symlinkat-tests (Makefile.am): Likewise.
52983         * modules/linkat-tests (Makefile.am): Likewise.
52984         (Depends-on): Switch to filenamecat-lgpl.
52985         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
52986         LIBINTL.
52987         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
52988         * tests/test-linkat.c (main): Don't require xalloc.
52990         hash, mgetgroups: drop xalloc dependency
52991         * lib/hash.c (includes): Adjust includes.
52992         * lib/mgetgroups.c (includes): Likewise.
52993         (xgetgroups): Move...
52994         * lib/xgetgroups.c: ...to new file.
52995         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
52996         * modules/xgetgroups: New file, split from...
52997         * modules/mgetgroups: ...here.
52998         (Depends-on): Add xalloc-oversized.
52999         * modules/hash (Depends-on): Likewise.
53000         * modules/hash-tests (Depends-on): Drop xalloc.
53001         (test_hash_LDADD): Drop unused library.
53002         * tests/test-hash.c (main): Break xalloc dependency.
53003         (includes): Drop unused include.
53005         xalloc-oversized: new module
53006         * modules/xalloc-oversized: New module.
53007         * modules/xalloc (Depends-on): Add it.
53008         * lib/xalloc.h (xalloc_oversized): Move...
53009         * lib/xalloc-oversized.h: ...into new file.
53011         utimecmp: drop dependency on xmalloc
53012         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
53013         due to memory pressure.
53014         * modules/utimecmp (Depends-on): Drop xalloc.
53016 2011-04-27  Eric Blake  <eblake@redhat.com>
53018         getcwd: fix mingw bugs
53019         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
53020         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
53021         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
53023 2011-04-27  Bruno Haible  <bruno@clisp.org>
53025         mkstemps: Ensure declaration on MacOS X 10.5.
53026         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
53027         * doc/glibc-functions/mkstemps.texi: Document header file problem on
53028         MacOS X.
53030 2011-04-27  Bruno Haible  <bruno@clisp.org>
53032         mkstemp: More documentation.
53033         * doc/posix-functions/mkstemp.texi: Document header file problem on
53034         MacOS X.
53036 2011-04-27  Bruno Haible  <bruno@clisp.org>
53038         mkstemp: Tweak configure message when cross-compiling.
53039         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
53040         result as a guess.
53042 2011-04-27  Bruno Haible  <bruno@clisp.org>
53044         clean-temp: Clarify what it does.
53045         * lib/clean-temp.h: Add more comments.
53046         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
53047         module.
53048         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
53049         * doc/glibc-functions/mkstemps.texi: Likewise.
53050         * doc/glibc-functions/mkostemps.texi: Likewise.
53052 2011-04-27  Eric Blake  <eblake@redhat.com>
53054         fchdir: avoid extra chdir and fix test
53055         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
53056         getcwd-lgpl.
53057         * lib/fchdir.c (get_name): Any absolute name will do; it does not
53058         have to be canonical.
53059         (canonicalize_file_name): Drop unused macro.
53060         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
53062         filenamecat-lgpl: fix licence
53063         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
53064         when it was first created.
53066         linkat, renameat: add missing dependency
53067         * modules/linkat (Depends-on): Require getcwd-lgpl.
53068         * modules/renameat (Depends-on): Likewise.
53070         tests: reduce dependencies
53071         * tests/test-linkat.c (main): Use lighter-weight getcwd.
53072         * tests/test-renameat.c (main): Likewise.
53073         * modules/linkat-tests (Depends-on): Relax dependency.
53074         * modules/renameat-tests (Depends-on): Likewise.
53075         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
53076         dependency explicit.
53078         save-cwd: reduce default dependency
53079         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
53080         * lib/save-cwd.c: Update comments.
53081         * NEWS: Document the semantic change.
53083         getcwd: enhance tests
53084         * tests/test-getcwd-lgpl.c: New file, taken from...
53085         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
53086         repeat long path stress tests from m4 probe.
53087         * modules/getcwd-lgpl-tests: New module.
53088         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
53089         * m4/getcwd-abort-bug.m4: Update comment.
53090         * m4/getcwd-path-max.m4: Likewise.
53092         getcwd-lgpl: new module
53093         * modules/getcwd-lgpl: New module.
53094         * lib/getcwd-lgpl.c: New file.
53095         * doc/posix-functions/getcwd.texi (getcwd): Document it.
53096         * MODULES.html.sh (lacking POSIX:2008): Likewise.
53097         * modules/getcwd (configure.ac): Set C witness.
53098         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
53100         getcwd: tweak comments
53101         * m4/getcwd-abort-bug.m4: Fix comments.
53102         * m4/getcwd-path-max.m4: Likewise.
53103         * m4/getcwd.m4: Likewise.
53105 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
53106         and Eric Blake  <eblake@redhat.com>
53108         mkstemp: replace if system version uses wrong permissions
53109         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
53110         read/write mode bits set in file created by mkstemp.
53111         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
53113 2011-04-27  Eric Blake  <eblake@redhat.com>
53115         passfd: avoid compiler warning
53116         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
53117         Reported by Laine Stump.
53119 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
53121         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
53122         required by the NetBSD (and perhaps other 4.4BSD derived) join.
53124 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
53125         and Eric Blake  <eblake@redhat.com>
53127         mkstemp: mention clean-temp module
53128         * lib/mkstemp.c: Add comment.
53129         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
53131 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
53133         inttypes: also provide default values for 32-bit tests
53134         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
53135         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
53137 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
53139         strtoumax: remove dependency on strtoimax
53140         This is like the strtoull change of yesterday.
53141         * modules/strtoumax (Files): Add lib/strtoimax.c.
53142         (Depends-on): Remove strtoimax and add verify.
53144         inttypes-incomplete: new module
53145         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
53146         all but the PRI* and SCN* parts of gl_INTTYPES_H.
53147         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
53148         of gl_INTTYPES_H.
53149         (gl_INTTYPES_H): Rewrite in terms of these new macros.
53150         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
53151         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
53152         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
53153         * modules/strtoumax, modules/xstrtol (Depends-on):
53154         Depend on inttypes-incomplete, not inttypes.
53155         * modules/inttypes-incomplete: New module, containing the contents
53156         of the old modules/inttypes module, except that the Files: section
53157         omits m4/inttypes-pri.m4, and the configure.ac section invokes
53158         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
53159         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
53160         (Depends-on): Depend only on inttypes-incomplete.
53161         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
53163         inttypes: omit now-redundant strtoimax and strtoumax work
53164         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
53165         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
53167         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
53168         This supports apps that need pointers to strtoimax and strtoumax,
53169         and ports to HP-UX 11.00 64.bit, which has macros that expand to
53170         nonexistent functions.  See
53171         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
53172         et seq.
53173         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
53174         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
53175         a macro.
53176         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
53178 2011-04-25  Simon Josefsson  <simon@josefsson.org>
53180         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
53182 2011-04-25  Bruno Haible  <bruno@clisp.org>
53184         strtol, strtoul: Mark modules as obsolete.
53185         * modules/strtol (Status, Notice): New sections.
53186         * modules/strtoul (Status, Notice): New sections.
53188 2011-04-25  Bruno Haible  <bruno@clisp.org>
53190         strtod: Remove check for strtod, unless supporting old platforms.
53191         * modules/strtod-obsolete: New file.
53192         * m4/strtod-obsolete.m4: New file.
53193         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
53194         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
53195         * modules/strtod (Depends-on): Add strtod-obsolete.
53196         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
53198 2011-04-25  Bruno Haible  <bruno@clisp.org>
53200         strcase: Make module obsolete.
53201         * modules/strcase (Status, Notice): New sections.
53203 2011-04-25  Bruno Haible  <bruno@clisp.org>
53205         dup2: Remove check for dup2, unless supporting old obsolete platforms.
53206         * modules/dup2-obsolete: New file.
53207         * m4/dup2-obsolete.m4: New file.
53208         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
53209         gl_FUNC_DUP2_OBSOLETE is not also defined.
53210         * modules/dup2 (Depends-on): Add dup2-obsolete.
53211         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
53213 2011-04-25  Bruno Haible  <bruno@clisp.org>
53215         strnlen: Avoid memchr related link error on old obsolete platforms.
53216         * modules/memchr-obsolete: New file.
53217         * m4/memchr-obsolete.m4: New file.
53218         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
53219         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
53220         * modules/memchr (Depends-on): Add memchr-obsolete.
53221         * modules/strnlen (Depends-on): Likewise.
53222         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
53224 2011-04-25  Jim Meyering  <meyering@redhat.com>
53226         maint.mk: makefile_at_at_check extend and clean up
53227         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
53228         in addition to */Makefile.am.
53229         Exempt legitimate uses of @VAR@ notation, e.g.,
53230         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
53231         Remove obsolete coreutils-specific comment.
53232         Prompted by discussion here:
53233         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
53235 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
53237         strtoul: remove dependency on strtol
53238         This is so that 'configure' need not check for strtol merely because
53239         the application needs strtoul.
53240         * modules/strtoul (Files): Add lib/strtol.c.
53241         (Depends-on): Remove strtol.
53243         strtoull: remove dependency on strtoul
53244         This is like the strtoll change.
53245         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
53246         (Depends-on): Remove strtoul.
53248         strtoll: remove dependency on strtol
53249         This is so that 'configure' need not check for strtol merely because
53250         the application needs strtoll.
53251         * modules/strtoll (Files): Add lib/strtol.c.
53252         (Depends-on): Remove strtol.
53254 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
53256         inttypes: Move some configure check to module 'imaxdiv'.
53257         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
53258         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
53259         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
53261 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
53263         inttypes: Move some configure check to module 'imaxabs'.
53264         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
53265         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
53266         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
53268 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
53270         inttypes: Remove configure tests that are not needed since 2009-12-31.
53271         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
53272         gl_cv_header_working_inttypes_h.
53274 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
53276         * modules/strnlen (Depends-on): Remove memchr.
53277         The strnlen implementation doesn't need the memchr module's fixes; see
53278         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
53280         strtol: remove dependency on wchar
53281         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
53282         * modules/strtol (Depends-on): Remove wchar.
53284 2011-04-21  Eric Blake  <eblake@redhat.com>
53286         passfd: fix test regression on Linux
53287         * modules/passfd-tests (configure.ac): Correct socketpair check.
53289         passfd: speed up configure and drop unused code
53290         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
53291         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
53292         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
53293         Instead of probing at configure for unix_scm_rights_bsd44_way,
53294         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
53295         check to a struct member probe.
53296         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
53297         (sendfd, recvfd): Update preprocessor checks.
53298         * modules/passfd (Files): Reflect rename, and drop unused file.
53299         (Depends-on): Drop unused dependency.
53301         passfd: allow compilation on mingw
53302         * modules/sys_socket (Depends-on): Add sys_uio.
53303         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
53304         iovec and a minimal struct msghdr.
53305         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
53306         * tests/test-sys_socket.c (main): Enhance test.
53307         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
53308         guaranteed to provide what we need.
53309         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
53310         * modules/passfd-tests (Depends-on): Add sys_wait.
53311         * tests/test-passfd.c (main): Skip test on mingw, for now.
53312         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
53313         partial 'struct msghdr' implementation.
53315         sys_uio: new module
53316         * modules/sys_uio: New module.
53317         * modules/sys_uio-tests: Likewise.
53318         * lib/sys_uio.in.h: New file.
53319         * m4/sys_uio_h.m4: Likewise.
53320         * tests/test-sys_uio.c: Likewise.
53321         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
53322         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
53324 2011-04-20  Jim Meyering  <meyering@redhat.com>
53326         useless-if-before-free: avoid false-positive
53327         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
53328         disjunct so that it too requires a terminating ";".  Without that,
53329         this script would identify as useless one statement from gcc that
53330         was not:
53331           if (aligned_ptr)
53332             free (((void **) aligned_ptr) [-1]);
53334 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
53336         doc: update users.txt.
53337         * users.txt: Add barcode.
53339 2011-04-19  Bruno Haible  <bruno@clisp.org>
53341         ioctl: Remove link dependency on native Windows.
53342         * lib/fd-hook.h: Renamed from lib/close-hook.h.
53343         (gl_close_fn, gl_ioctl_fn): New types.
53344         (struct fd_hook): Renamed from struct close_hook. Change type of
53345         private_close_fn field. Add private_ioctl_fn field.
53346         (close_hook_fn): Add parameter for primary close method.
53347         (execute_close_hooks, execute_all_close_hooks): Likewise.
53348         (ioctl_hook_fn): New type.
53349         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
53350         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
53351         argument.
53352         (unregister_fd_hook): Renamed from unregister_close_hook.
53353         * lib/fd-hook.c: Renamed from lib/close-hook.c.
53354         Don't include <unistd.h>.
53355         (close): Remove undef.
53356         (anchor): Update.
53357         (execute_close_hooks): Add argument for primary close method.
53358         (execute_all_close_hooks): Likewise.
53359         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
53360         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
53361         argument. Allow each argument to be NULL.
53362         (unregister_fd_hook): Renamed from unregister_close_hook.
53363         * lib/close.c (rpl_close): Pass 'close' function pointer to
53364         execute_all_close_hooks.
53365         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
53366         (primary_ioctl): New function.
53367         (ioctl): Don't call ioctlsocket here. Instead, call
53368         execute_all_ioctl_hooks.
53369         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
53370         close method.
53371         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
53372         (fd_sockets_hook): Renamed from close_sockets_hook.
53373         (gl_sockets_startup, gl_sockets_cleanup): Update.
53374         * modules/fd-hook: Renamed from modules/close-hook. Update.
53375         * modules/close (Depends-on): Add fd-hook, remove close-hook.
53376         * modules/sockets (Depends-on): Likewise.
53377         * modules/ioctl (Depends-on): Add fd-hook.
53378         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
53379         GNULIB_SOCKET.
53381 2011-04-19  Bruno Haible  <bruno@clisp.org>
53383         Move the support of O_NONBLOCK in open() to the 'open' module.
53384         * modules/nonblocking (Depends-on): Remove 'open'.
53385         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
53386         gl_cv_have_open_O_NONBLOCK.
53387         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
53388         O_NONBLOCK support.
53389         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
53391 2011-04-17  Bruno Haible  <bruno@clisp.org>
53393         pipe2: Simplify code.
53394         * lib/pipe2.c (pipe2): Reduce code duplication.
53396 2011-04-17  Bruno Haible  <bruno@clisp.org>
53398         nonblocking: Add comment.
53399         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
53401 2011-04-17  Bruno Haible  <bruno@clisp.org>
53403         nonblocking: Add tests for sockets.
53404         * tests/test-nonblocking-socket.sh: New file.
53405         * tests/test-nonblocking-socket-main.c: New file.
53406         * tests/test-nonblocking-socket-child.c: New file.
53407         * tests/test-nonblocking-socket.h: New file.
53408         * tests/socket-server.h: New file.
53409         * tests/socket-client.h: New file.
53410         * modules/nonblocking-socket-tests: New file.
53411         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
53413 2011-04-17  Bruno Haible  <bruno@clisp.org>
53415         nonblocking: Add tests for pipes.
53416         * tests/test-nonblocking-pipe.sh: New file.
53417         * tests/test-nonblocking-pipe-main.c: New file.
53418         * tests/test-nonblocking-pipe-child.c: New file.
53419         * tests/test-nonblocking-pipe.h: New file.
53420         * tests/test-nonblocking-writer.h: New file.
53421         * tests/test-nonblocking-reader.h: New file.
53422         * tests/test-nonblocking-misc.h: New file.
53423         * modules/nonblocking-pipe-tests: New file.
53424         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
53426 2011-04-16  Bruno Haible  <bruno@clisp.org>
53428         gettext: Clarify the needed programmer actions.
53429         * modules/gettext (Notice): New field.
53430         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
53432 2011-04-16  Bruno Haible  <bruno@clisp.org>
53434         strchrnul: Tweak last commit.
53435         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
53436         bug.
53437         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
53438         as in _GL_FUNCDECL_SYS.
53439         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
53440         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
53442 2011-04-15  Eric Blake  <eblake@redhat.com>
53444         strchrnul: work around cygwin bug
53445         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
53446         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
53447         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
53448         * modules/string (Makefile.am): Substitute it.
53449         * lib/string.in.h (strchrnul): Use it.
53451 2011-04-15  Bruno Haible  <bruno@clisp.org>
53453         Don't require lib/stdio-write.c when only module 'stdio' is used.
53454         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
53455         invocation.
53456         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
53458 2011-04-14  Bruno Haible  <bruno@clisp.org>
53460         Support non-blocking pipe I/O in read() on native Windows.
53461         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
53462         (read): New declaration.
53463         * lib/read.c: New file.
53464         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
53465         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
53466         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
53467         vscanf): New declarations.
53468         * lib/stdio-read.c: New file.
53469         * m4/read.m4: New file.
53470         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
53471         REPLACE_READ.
53472         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
53473         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
53474         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
53475         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
53476         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
53477         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
53478         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
53479         * modules/read: New file.
53480         * modules/nonblocking (Files): Add lib/stdio-read.c.
53481         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
53482         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
53483         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
53484         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
53485         * modules/pread (Depends-on): Add read.
53486         * modules/safe-read (Depends-on): Likewise.
53487         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
53488         gets, scanf, vfscanf, vscanf): Verify signatures.
53489         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
53490         problem with non-blocking pipes.
53491         * doc/posix-functions/fgetc.texi: Likewise.
53492         * doc/posix-functions/fgets.texi: Likewise.
53493         * doc/posix-functions/fread.texi: Likewise.
53494         * doc/posix-functions/fscanf.texi: Likewise.
53495         * doc/posix-functions/getc.texi: Likewise.
53496         * doc/posix-functions/getchar.texi: Likewise.
53497         * doc/posix-functions/gets.texi: Likewise.
53498         * doc/posix-functions/scanf.texi: Likewise.
53499         * doc/posix-functions/vfscanf.texi: Likewise.
53500         * doc/posix-functions/vscanf.texi: Likewise.
53502 2011-04-14  Bruno Haible  <bruno@clisp.org>
53504         Support non-blocking pipe I/O in write() on native Windows.
53505         * lib/write.c (rpl_write): Split a write request that failed merely
53506         because the byte count was larger than the pipe buffer's size.
53507         * doc/posix-functions/write.texi: Mention the problem with large byte
53508         counts.
53510 2011-04-14  Bruno Haible  <bruno@clisp.org>
53512         wchar: Ensure that wchar_t gets defined on uClibc.
53513         * lib/wchar.in.h: On uClibc, include <stddef.h>.
53514         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
53516 2011-04-13  Bruno Haible  <bruno@clisp.org>
53518         safe-write, full-read: Avoid unnecessary compilation units.
53519         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
53520         (Depends-on): Remove safe-read. Add ssize_t.
53521         * modules/full-read (Files): Add lib/full-write.c.
53522         (Depends-on): Add full-write.
53524 2011-04-13  Bruno Haible  <bruno@clisp.org>
53526         Support non-blocking pipe I/O and SIGPIPE in pwrite().
53527         * modules/pwrite (Depends-on): Add 'write'.
53529 2011-04-13  Bruno Haible  <bruno@clisp.org>
53531         Support non-blocking pipe I/O in write() on native Windows.
53532         * lib/unistd.in.h (write): Enable replacement also if
53533         GNULIB_UNISTD_H_NONBLOCKING is 1.
53534         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
53535         (rpl_write): When failing to write on a non-blocking pipe, change
53536         errno from ENOSPC to EAGAIN.
53537         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
53538         putchar, puts, vfprintf, vprintf): Enable replacement also if
53539         GNULIB_STDIO_H_NONBLOCKING is 1.
53540         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
53541         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
53542         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
53543         CALL_WITH_SIGPIPE_EMULATION.
53544         (CALL_WITH_SIGPIPE_EMULATION): Use them.
53545         * m4/nonblocking.m4: New file.
53546         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
53547         for non-blocking I/O support.
53548         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53549         GNULIB_UNISTD_H_NONBLOCKING.
53550         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
53551         required for non-blocking I/O support.
53552         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
53553         * modules/nonblocking (Files): Add m4/nonblocking.m4,
53554         lib/stdio-write.c, m4/asm-underscore.m4.
53555         (Depends-on): Add stdio, unistd.
53556         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
53557         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
53558         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
53559         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
53560         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
53561         problem with non-blocking pipes.
53562         * doc/posix-functions/fputc.texi: Likewise.
53563         * doc/posix-functions/fputs.texi: Likewise.
53564         * doc/posix-functions/fwrite.texi: Likewise.
53565         * doc/posix-functions/printf.texi: Likewise.
53566         * doc/posix-functions/putc.texi: Likewise.
53567         * doc/posix-functions/putchar.texi: Likewise.
53568         * doc/posix-functions/puts.texi: Likewise.
53569         * doc/posix-functions/vfprintf.texi: Likewise.
53570         * doc/posix-functions/vprintf.texi: Likewise.
53571         * doc/posix-functions/write.texi: Likewise.
53573 2011-04-10  Jim Meyering  <meyering@redhat.com>
53575         maint.mk: prohibit doubled words
53576         Detect them also when they're separated by a newline.
53577         There are 3 ways to customize it:
53578           - disable the test on a per file basis, as usual with rules using
53579             $(VC_LIST_EXCEPT)
53580           - replace the default doubled-word-selecting regexp (affects all files)
53581           - ignore a particular file-vs-doubled-word match
53582         I nearly used that last one to ignore the "is is" match in
53583         coreutils' NEWS file, since the text was "ls -is is ..."
53584         To do that, I would have added this line to cfg.mk:
53585           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
53586         but it would have ignored any "is is" match in NEWS.
53587         Low probability, but still...
53588         Instead, I changed the text, slightly:
53589           -  ls -is is now consistent with ls -lis in ignoring values returned
53590           +  "ls -is" is now consistent with ls -lis in ignoring values returned
53591         * top/maint.mk (prohibit_double_word_RE_): Provide default.
53592         (prohibit_doubled_word_): Define.
53593         (sc_prohibit_doubled_word): New rule.
53594         (sc_prohibit_the_the): Remove.  Subsumed by the above.
53596 2011-04-10  Jim Meyering  <meyering@redhat.com>
53598         maint: fix doubled-word typo in comment
53599         * m4/gethostname.m4: s/is is/it is/
53600         * m4/getdomainname.m4: Likewise.
53602 2011-04-10  Jim Meyering  <meyering@redhat.com>
53604         maint: remove doubled word: s/it it/it/
53605         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
53607 2011-04-10  Jim Meyering  <meyering@redhat.com>
53609         maint.mk: remove useless semicolon and backslash
53610         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
53611         semicolon and backslash.
53613 2011-04-10  Bruno Haible  <bruno@clisp.org>
53615         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
53616         * modules/stdint-tests (Depends-on): Add wchar.
53618 2011-04-10  Jim Meyering  <meyering@redhat.com>
53620         maint: remove doubled words in comments, e.g., s/a a/a/
53621         * lib/strptime.c (day_of_the_week): s/the the/the/
53622         * tests/test-chown.h (test_chown): s/a a/a/
53624         test-chown.h: correct a cast
53625         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
53626         when the destination is a stat.st_gid.
53628 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
53630         getaddrinfo: Fix test for sa_len member.
53631         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
53632         include <sys/types.h> before <sys/socket.h>.
53634 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53636         maint: change "can not" to "cannot"
53637         * doc/posix-functions/iconv.texi (iconv): This one crossed line
53638         boundaries.
53640 2011-04-09  Jim Meyering  <meyering@redhat.com>
53642         maint: change "a a" to "a"
53643         * tests/test-lchown.h (test_lchown): s/a a/a/
53645         maint.mk: prohibit \<the the\>
53646         * top/maint.mk (sc_prohibit_the_the): New rule.
53648         maint: fix "the the" in comment
53649         * lib/count-one-bits.h: s/the the/the/
53651         maint: change "can not" to "cannot"
53652         But do not change the occurrences in maintain.texi or in
53653         build-aux/po/Makefile.in.in, which I presume comes from gettext.
53654         * doc/gnulib-tool.texi: s/can not/cannot/
53655         * doc/posix-functions/accept.texi (accept): Likewise.
53656         * doc/posix-functions/socket.texi (socket): Likewise.
53657         * lib/mbrtowc.c: Likewise.
53659         maint.mk: prohibit use of "can not"
53660         * top/maint.mk (sc_prohibit_can_not): New rule.
53661         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
53663 2011-04-09  Bruno Haible  <bruno@clisp.org>
53665         careadlinkat: Guard against misuse of careadlinkatcwd.
53666         * lib/careadlinkat.c: Include <stdlib.h>.
53667         (careadlinkatcwd): Check that the fd argument is as expected.
53669 2011-04-09  Bruno Haible  <bruno@clisp.org>
53671         careadlinkat: Use common coding style.
53672         * lib/careadlinkat.c: Move gnulib includes after system includes.
53674 2011-04-09  Bruno Haible  <bruno@clisp.org>
53676         careadlinkat: Clarify specification.
53677         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
53678         (careadlinkatcwd): Add comment.
53679         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
53681 2011-04-09  Bruno Haible  <bruno@clisp.org>
53683         areadlinkat: Avoid link error on many platforms.
53684         * modules/areadlinkat (Depends-on): Add areadlink.
53686 2011-04-09  Bruno Haible  <bruno@clisp.org>
53688         allocator, careadlinkat: Fix double-inclusion guard.
53689         * lib/allocator.h: Fix double-inclusion guard.
53690         * lib/careadlinkat.h: Likewise.
53692 2011-04-09  Bruno Haible  <bruno@clisp.org>
53694         relocatable-prog-wrapper: Update after module 'areadlink' changed.
53695         * lib/relocwrapper.c: Update dependencies hierarchy.
53696         * build-aux/install-reloc: Update list of files to be compiled.
53697         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
53698         lib/allocator.[hc].
53700 2011-04-08  Eric Blake  <eblake@redhat.com>
53702         strftime: silence gnulib-tool warning
53703         * modules/strftime-tests (Depends-on): Drop automatic dependency.
53705 2011-04-08  Bruno Haible  <bruno@clisp.org>
53707         verify: Fix syntax error with GCC 4.6 in C++ mode.
53708         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
53709         (HAVE_STATIC_ASSERT): New macro.
53710         (verify_true, verify): Use 'static_assert' if it is supported and
53711         '_Static_assert' is not supported.
53713 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
53715         allocator: New module.
53716         * modules/allocator, lib/allocator.c: New files.
53717         * lib/allocator.h (stdlib_allocator): New decl.
53718         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
53719         Remove.  Do not include <stdlib.h>.
53720         (careadlinkat): Use stdlib_allocator instead of rolling our own.
53721         * modules/careadlinkat (Files): Remove lib/allocator.h.
53722         (Depends-on): Add allocator.
53724         stdlib: let modules use system malloc, realloc
53725         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
53726         if !_GL_USE_STDLIB_ALLOC.
53727         (malloc, realloc): Limit this change to a smaller scope.
53729         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
53730         (malloc, realloc): Don't #undef; no longer needed.
53731         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53732         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53733         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
53734         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53735         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53736         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53737         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53738         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
53740         careadlinkat: rename members to avoid problem
53741         * lib/allocator.h (struct allocator): Rename members from
53742         malloc/realloc to allocate/reallocate, to avoid problems if malloc
53743         and realloc are #define'd.  Reported by Eric Blake in
53744         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
53745         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
53747 2011-04-08  Eric Blake  <eblake@redhat.com>
53749         nonblocking: reduce dependency
53750         * tests/test-nonblocking.c: Only test sockets when in use.
53751         * modules/nonblocking-tests (Depends-on): Drop socket.
53752         (Makefile.am): Link even if sockets are not present.
53753         * modules/pipe2-tests (Makefile.am): Likewise.
53754         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
53756         pipe2: fix O_NONBLOCK support on mingw
53757         * modules/pipe2 (Depends-on): Add nonblocking.
53758         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
53759         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
53760         * tests/test-nonblocking.c (main): Likewise.
53761         * modules/pipe2-tests (Makefile.am): Avoid link failure.
53763         fcntl-h: fix O_ACCMODE on cygwin
53764         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
53765         * lib/fcntl.in.h (O_ACCMODE): Fix it.
53767         pipe-filter: drop O_NONBLOCK workarounds
53768         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
53769         * modules/pipe-filter-ii (Depends-on): Likewise.
53770         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
53772         nonblocking: provide O_NONBLOCK for mingw
53773         * modules/nonblocking (Depends-on): Add open.
53774         (configure.ac): Set new witness macro.
53775         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
53776         * modules/fcntl-h (Makefile.am): Substitute it.
53777         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
53778         nonblocking module is in use.
53779         * lib/nonblocking.c: Adjust portability test.
53780         * lib/open.c (open): Don't let native open see gnulib flag.
53781         * tests/test-fcntl-h.c (main): Enhance test.
53782         * tests/test-open.h (test_open): Likewise.
53783         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
53785         careadlinkat: fix compilation error on mingw
53786         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
53787         within struct allocator.
53789 2011-04-06  Eric Blake  <eblake@redhat.com>
53791         binary-io: relicense under LGPLv2+
53792         * modules/binary-io (License): Relax to LGPLv2+.
53793         Requested for libvirt, and required by pipe2.
53795 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
53797         verify: use _Static_assert if available
53798         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
53799         (verify_true, verify): Use it if available.  This generates better
53800         diagnostics with GCC 4.6.0 and later.
53802 2011-04-05  Bruno Haible  <bruno@clisp.org>
53804         Remove leftover generated .h files after config.status changed.
53806         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
53807         GL_GENERATE_ALLOCA_H.
53808         * modules/alloca-opt (Makefile.am): Remove alloca.h if
53809         GL_GENERATE_ALLOCA_H evaluates to false.
53811         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
53812         GL_GENERATE_ARGZ_H.
53813         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
53814         evaluates to false.
53816         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
53817         GL_GENERATE_BYTESWAP_H.
53818         * modules/byteswap (Makefile.am): Remove byteswap.h if
53819         GL_GENERATE_BYTESWAP_H evaluates to false.
53821         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
53822         GL_GENERATE_ERRNO_H.
53823         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
53824         evaluates to false.
53826         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
53827         GL_GENERATE_FLOAT_H.
53828         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
53829         evaluates to false.
53831         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
53832         GL_GENERATE_FNMATCH_H.
53833         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
53834         GL_GENERATE_FNMATCH_H evaluates to false.
53836         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
53837         GL_GENERATE_GLOB_H.
53838         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
53839         evaluates to false.
53841         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
53842         automake conditional GL_GENERATE_ICONV_H.
53843         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
53844         evaluates to false.
53846         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
53847         GL_GENERATE_NETINET_IN_H.
53848         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
53849         GL_GENERATE_NETINET_IN_H evaluates to false.
53851         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
53852         conditional GL_GENERATE_PTHREAD_H.
53853         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
53854         * modules/pthread (Makefile.am): Remove pthread.h if
53855         GL_GENERATE_PTHREAD_H evaluates to false.
53857         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
53858         GL_GENERATE_SCHED_H.
53859         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
53860         evaluates to false.
53862         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
53863         conditional GL_GENERATE_SELINUX_CONTEXT_H.
53864         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
53865         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
53867         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
53868         GL_GENERATE_STDARG_H.
53869         * modules/stdarg (Makefile.am): Remove stdarg.h if
53870         GL_GENERATE_STDARG_H evaluates to false.
53872         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
53873         GL_GENERATE_STDBOOL_H.
53874         * modules/stdbool (Makefile.am): Remove stdbool.h if
53875         GL_GENERATE_STDBOOL_H evaluates to false.
53877         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
53878         conditional GL_GENERATE_STDDEF_H.
53879         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
53880         * modules/stddef (Makefile.am): Remove stddef.h if
53881         GL_GENERATE_STDDEF_H evaluates to false.
53883         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
53884         GL_GENERATE_STDINT_H.
53885         * modules/stdint (Makefile.am): Remove stdint.h if
53886         GL_GENERATE_STDINT_H evaluates to false.
53888         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
53889         GL_GENERATE_SYSEXITS_H.
53890         * modules/sysexits (Makefile.am): Remove sysexits.h if
53891         GL_GENERATE_SYSEXITS_H evaluates to false.
53893         Reported by Karl Berry and Ralf Wildenhues.
53895 2011-04-05  Bruno Haible  <bruno@clisp.org>
53897         Ensure to rebuild generated .h files when config.status has changed.
53898         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
53899         config.status.
53900         * modules/ctype (Makefile.am): Likewise.
53901         * modules/dirent (Makefile.am): Likewise.
53902         * modules/errno (Makefile.am): Likewise.
53903         * modules/fcntl-h (Makefile.am): Likewise.
53904         * modules/float (Makefile.am): Likewise.
53905         * modules/getopt-posix (Makefile.am): Likewise.
53906         * modules/glob (Makefile.am): Likewise.
53907         * modules/iconv-h (Makefile.am): Likewise.
53908         * modules/inttypes (Makefile.am): Likewise.
53909         * modules/langinfo (Makefile.am): Likewise.
53910         * modules/locale (Makefile.am): Likewise.
53911         * modules/math (Makefile.am): Likewise.
53912         * modules/netdb (Makefile.am): Likewise.
53913         * modules/netinet_in (Makefile.am): Likewise.
53914         * modules/poll-h (Makefile.am): Likewise.
53915         * modules/pthread (Makefile.am): Likewise.
53916         * modules/pty (Makefile.am): Likewise.
53917         * modules/sched (Makefile.am): Likewise.
53918         * modules/search (Makefile.am): Likewise.
53919         * modules/selinux-h (Makefile.am): Likewise.
53920         * modules/signal (Makefile.am): Likewise.
53921         * modules/spawn (Makefile.am): Likewise.
53922         * modules/stdarg (Makefile.am): Likewise.
53923         * modules/stdbool (Makefile.am): Likewise.
53924         * modules/stddef (Makefile.am): Likewise.
53925         * modules/stdint (Makefile.am): Likewise.
53926         * modules/stdio (Makefile.am): Likewise.
53927         * modules/stdlib (Makefile.am): Likewise.
53928         * modules/string (Makefile.am): Likewise.
53929         * modules/strings (Makefile.am): Likewise.
53930         * modules/sys_file (Makefile.am): Likewise.
53931         * modules/sys_ioctl (Makefile.am): Likewise.
53932         * modules/sys_select (Makefile.am): Likewise.
53933         * modules/sys_socket (Makefile.am): Likewise.
53934         * modules/sys_stat (Makefile.am): Likewise.
53935         * modules/sys_time (Makefile.am): Likewise.
53936         * modules/sys_times (Makefile.am): Likewise.
53937         * modules/sys_utsname (Makefile.am): Likewise.
53938         * modules/sys_wait (Makefile.am): Likewise.
53939         * modules/sysexits (Makefile.am): Likewise.
53940         * modules/termios (Makefile.am): Likewise.
53941         * modules/time (Makefile.am): Likewise.
53942         * modules/unistd (Makefile.am): Likewise.
53943         * modules/wchar (Makefile.am): Likewise.
53944         * modules/wctype-h (Makefile.am): Likewise.
53945         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
53947 2011-04-05  Bruno Haible  <bruno@clisp.org>
53949         pipe2: Relicense under LGPLv2+.
53950         * modules/pipe2 (License): Change to LGPLv2+.
53951         Requested by Eric Blake, for libvirt.
53953 2011-04-05  Bruce Korb  <bkorb@gnu.org>
53955         bootstrap: compute gnulib_extra_files after updating build_aux
53956         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
53957         change build_aux or also supply gnulib_extra_files.  Handle correctly.
53959 2011-04-05  Eric Blake  <eblake@redhat.com>
53961         bootstrap: preserve git whitelist item sorting
53962         * build-aux/bootstrap (sort_patterns): New function.
53963         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
53965 2011-04-05  Simon Josefsson  <simon@josefsson.org>
53967         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
53968         sc_space_tab check.
53970 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
53972         areadlink, areadlinkat: rewrite in terms of careadlinkat
53973         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
53974         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
53975         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
53976         (malloc, realloc): Remove #undefs.
53977         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
53978         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
53979         readlink, ssize_t, stdint, unistd.
53980         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
53981         areadlink, stdint.
53983         careadlinkat: new module
53984         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
53985         * modules/careadlinkat: New files, written by me with
53986         a review and feedback from Ben Pfaff in
53987         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
53989 2011-04-01  Bruno Haible  <bruno@clisp.org>
53991         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
53992         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
53993         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
53994         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
53995         Reported by Bruce Korb <bruce.korb@gmail.com>.
53997 2011-04-01  Bruno Haible  <bruno@clisp.org>
53999         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
54000         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
54001         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
54002         * modules/wcpcpy (Depends-on): Add extensions.
54003         * modules/wcpncpy (Depends-on): Likewise.
54004         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
54005         systems.
54006         * doc/posix-functions/wcpncpy.texi: Likewise.
54007         * doc/posix-functions/wcwidth.texi: Likewise.
54009 2011-03-31  Eric Blake  <eblake@redhat.com>
54011         nonblocking: fix mingw test failures
54012         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
54013         non-blocking flag on regular file.
54014         (get_nonblocking_flag): Set errno on invalid fd.
54015         * tests/test-nonblocking.c (main): Avoid test failure on
54016         directories if fchdir is not active.
54017         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
54019 2011-03-31  Bruno Haible  <bruno@clisp.org>
54021         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
54022         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
54023         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
54024         Reported by Simon Josefsson <simon@josefsson.org>.
54026 2011-03-31  Bruno Haible  <bruno@clisp.org>
54027         and Eric Blake  <eblake@redhat.com>
54029         nonblocking: new module
54030         * modules/nonblocking: New module.
54031         * modules/nonblocking-tests: Likewise.
54032         * lib/nonblocking.h: New file.
54033         * lib/nonblocking.c: Likewise.
54034         * tests/test-nonblocking.c: New test.
54035         * lib/ioctl.c (ioctl) [mingw]: Update comment.
54037 2011-03-30  Bruno Haible  <bruno@clisp.org>
54039         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
54040         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
54041         instead of 'printf' format for GCC >= 4.4.
54042         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
54043         (fprintf, printf, vfprintf, vprintf): Declare with
54044         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
54045         the system's vfprintf() function.
54046         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
54048 2011-03-30  Eric Blake  <eblake@redhat.com>
54050         passfd: fix scoping bug
54051         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
54052         before sendmsg/recvmsg.
54054         passfd: standardize coding conventions
54055         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
54056         can be learned at compile time.
54057         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
54058         ifdefs.
54059         (sendfd, recvfd): Follow gnulib code conventions.
54061         passfd: fix incorrect sendmsg arguments
54062         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
54063         incorrect msg_controllen value.
54064         * modules/passfd-tests (Depends-on): Check for alarm.
54065         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
54066         Reported by Bastien ROUCARIES.
54068 2011-03-30  Bruno Haible  <bruno@clisp.org>
54070         c-strcasestr: Relicense under LGPLv2+.
54071         * modules/c-strcasestr (License): Change to LGPLv2+.
54072         Requested by Eric Blake, for libvirt.
54074 2011-03-30  Simon Josefsson  <simon@josefsson.org>
54076         * users.txt: Add libidn2.  Fix libtasn1 link.
54078 2011-03-30  Jim Meyering  <meyering@redhat.com>
54080         tests: readlink* ("",... fails with EINVAL on newer kernels
54081         readlink and readlinkat have typically failed with ENOENT for
54082         the invalid, empty file name,  "".  However, with the advent
54083         of linux-2.6.39, they fail with EINVAL.
54084         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
54085         when operating on the empty file name.
54086         * tests/test-readlink.h (test_readlink): Likewise.
54088 2011-03-29  Bruno Haible  <bruno@clisp.org>
54090         Relicense some modules under LGPLv2+, for libidn2.
54091         * modules/array-mergesort (License): Change to LGPLv2+.
54092         * modules/c-strcaseeq (License): Likewise.
54093         * modules/striconveh (License): Likewise.
54094         * modules/striconveha (License): Likewise.
54095         * modules/uniconv/base (License): Likewise.
54096         * modules/uniconv/u8-conv-from-enc (License): Likewise.
54097         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
54098         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
54099         * modules/unictype/base (License): Likewise.
54100         * modules/unictype/bidiclass-of (License): Likewise.
54101         * modules/unictype/category-M (License): Likewise.
54102         * modules/unictype/category-none (License): Likewise.
54103         * modules/unictype/category-of (License): Likewise.
54104         * modules/unictype/category-test (License): Likewise.
54105         * modules/unictype/category-test-withtable (License): Likewise.
54106         * modules/unictype/combining-class (License): Likewise.
54107         * modules/unictype/joiningtype-of (License): Likewise.
54108         * modules/unictype/scripts (License): Likewise.
54109         * modules/uninorm/base (License): Likewise.
54110         * modules/uninorm/canonical-decomposition (License): Likewise.
54111         * modules/uninorm/composition (License): Likewise.
54112         * modules/uninorm/decompose-internal (License): Likewise.
54113         * modules/uninorm/decomposition-table (License): Likewise.
54114         * modules/uninorm/nfc (License): Likewise.
54115         * modules/uninorm/nfd (License): Likewise.
54116         * modules/uninorm/u32-normalize (License): Likewise.
54117         * modules/unistr/base (License): Likewise.
54118         * modules/unistr/u32-cpy (License): Likewise.
54119         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
54120         * modules/unistr/u32-to-u8 (License): Likewise.
54121         * modules/unistr/u32-uctomb (License): Likewise.
54122         * modules/unistr/u8-check (License): Likewise.
54123         * modules/unistr/u8-mblen (License): Likewise.
54124         * modules/unistr/u8-mbtouc (License): Likewise.
54125         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
54126         * modules/unistr/u8-mbtoucr (License): Likewise.
54127         * modules/unistr/u8-prev (License): Likewise.
54128         * modules/unistr/u8-strlen (License): Likewise.
54129         * modules/unistr/u8-to-u32 (License): Likewise.
54130         * modules/unistr/u8-uctomb (License): Likewise.
54131         * modules/unitypes (License): Likewise.
54132         Requested by Simon Josefsson.
54134 2011-03-29  Simon Josefsson  <simon@josefsson.org>
54136         lib-symbol-visibility: Add a notice.
54137         * modules/lib-symbol-visibility (Notice): New field.
54139 2011-03-29  Bruno Haible  <bruno@clisp.org>
54141         getaddrinfo: Doc fix.
54142         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
54143         section "fixed in Gnulib".
54145 2011-03-28  Simon Josefsson  <simon@josefsson.org>
54147         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
54148         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
54150 2011-03-26  Bruno Haible  <bruno@clisp.org>
54152         unictype/property-byname: Reduce the number of load-time relocations.
54153         * lib/unictype/pr_byname.c: Include <stdlib.h>.
54154         (UC_PROPERTY_INDEX_*): New enumeration values.
54155         (uc_property_byname): Convert an index from the lookup table to an
54156         uc_property_t.
54157         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
54158         values.
54160 2011-03-26  Bruno Haible  <bruno@clisp.org>
54162         unictype/property-byname: Allow omitted word separators and aliases.
54163         * lib/unictype/pr_byname.gperf: Add property names without word
54164         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
54165         for 'space'.
54167 2011-03-26  Bruno Haible  <bruno@clisp.org>
54169         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
54170         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
54171         also hyphens to space.
54172         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
54173         without spaces.
54174         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
54176 2011-03-26  Bruno Haible  <bruno@clisp.org>
54178         unictype/joiningtype-byname: Recognize long names as well.
54179         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
54180         a long name.
54181         * lib/unictype/joiningtype_byname.c: Include <string.h>,
54182         unictype/joiningtype_byname.h.
54183         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
54184         * lib/unictype/joiningtype_byname.gperf: New file.
54185         * modules/unictype/joiningtype-byname (Files): Add
54186         lib/unictype/joiningtype_byname.gperf.
54187         (Depends-on): Add gperf.
54188         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
54189         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
54190         long names.
54192         Tests for module 'unictype/joiningtype-longname'.
54193         * modules/unictype/joiningtype-longname-tests: New file.
54194         * tests/unictype/test-joiningtype_longname.c: New file.
54196         New module 'unictype/joiningtype-longname'.
54197         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
54198         * lib/unictype/joiningtype_longname.c: New file.
54199         * modules/unictype/joiningtype-longname: New file.
54200         * modules/unictype/joiningtype-all (Depends-on): Add
54201         unictype/joiningtype-longname.
54203 2011-03-26  Bruno Haible  <bruno@clisp.org>
54205         unictype/bidiclass-byname: Recognize long names as well.
54206         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
54207         name.
54208         * lib/unictype/bidi_byname.c: Include <string.h>,
54209         unictype/bidi_byname.h.
54210         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
54211         * lib/unictype/bidi_byname.gperf: New file.
54212         * modules/unictype/bidiclass-byname (Files): Add
54213         lib/unictype/bidi_byname.gperf.
54214         (Depends-on): Add gperf.
54215         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
54216         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
54217         long names.
54219         Tests for module 'unictype/bidiclass-longname'.
54220         * modules/unictype/bidiclass-longname-tests: New file.
54221         * tests/unictype/test-bidi_longname.c: New file.
54223         New module 'unictype/bidiclass-longname'.
54224         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
54225         * lib/unictype/bidi_longname.c: New file.
54226         * modules/unictype/bidiclass-longname: New file.
54227         * modules/unictype/bidiclass-all (Depends-on): Add
54228         unictype/bidiclass-longname.
54230 2011-03-26  Bruno Haible  <bruno@clisp.org>
54232         unictype/bidi*: Rename modules.
54233         * modules/unictype/bidiclass-all: Renamed from
54234         modules/unictype/bidicategory-all.
54235         * modules/unictype/bidiclass-name: Renamed from
54236         modules/unictype/bidiclass-name.
54237         (Description): Update.
54238         * modules/unictype/bidiclass-name-tests: Renamed from
54239         modules/unictype/bidicategory-name-tests.
54240         * modules/unictype/bidiclass-byname: Renamed from
54241         modules/unictype/bidicategory-byname.
54242         (Description): Update.
54243         * modules/unictype/bidiclass-byname-tests: Renamed from
54244         modules/unictype/bidicategory-byname-tests.
54245         * modules/unictype/bidiclass-of: Renamed from
54246         modules/unictype/bidicategory-of.
54247         (Description): Update.
54248         * modules/unictype/bidiclass-of-tests: Renamed from
54249         modules/unictype/bidicategory-of-tests.
54250         * modules/unictype/bidiclass-test: Renamed from
54251         modules/unictype/bidicategory-test.
54252         (Description): Update.
54253         * modules/unictype/bidiclass-test-tests: Renamed from
54254         modules/unictype/bidicategory-test-tests.
54255         * modules/unictype/bidicategory-all: New file, a simple redirection.
54256         * modules/unictype/bidicategory-name: Likewise.
54257         * modules/unictype/bidicategory-byname: Likewise.
54258         * modules/unictype/bidicategory-of: Likewise.
54259         * modules/unictype/bidicategory-test: Likewise.
54260         * modules/unictype/property-bidi-* (Dependencies): Update.
54261         * lib/unictype/bidi_*.c: Update comment.
54263 2011-03-26  Bruno Haible  <bruno@clisp.org>
54265         unictype/bidi*: Rename functions, part 2.
54266         * modules/unictype/bidicategory-name (configure.ac): Update required
54267         libunistring version.
54268         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
54270 2011-03-25  Bruno Haible  <bruno@clisp.org>
54272         New module 'unictype/combining-class-all'.
54273         * modules/unictype/combining-class-all: New file.
54275         Tests for module 'unictype/combining-class-byname'.
54276         * modules/unictype/combining-class-byname-tests: New file.
54277         * tests/unictype/test-combiningclass_byname.c: New file.
54279         New module 'unictype/combining-class-byname'.
54280         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
54281         * lib/unictype/combiningclass_byname.c: New file.
54282         * lib/unictype/combiningclass_byname.gperf: New file.
54283         * modules/unictype/combining-class-byname: New file.
54285         Tests for module 'unictype/combining-class-longname'.
54286         * modules/unictype/combining-class-longname-tests: New file.
54287         * tests/unictype/test-combiningclass_longname.c: New file.
54289         New module 'unictype/combining-class-longname'.
54290         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
54291         * lib/unictype/combiningclass_longname.c: New file.
54292         * modules/unictype/combining-class-longname: New file.
54294         Tests for module 'unictype/combining-class-name'.
54295         * modules/unictype/combining-class-name-tests: New file.
54296         * tests/unictype/test-combiningclass_name.c: New file.
54298         New module 'unictype/combining-class-name'.
54299         * lib/unictype.in.h (uc_combining_class_name): New declaration.
54300         * lib/unictype/combiningclass_name.c: New file.
54301         * modules/unictype/combining-class-name: New file.
54303 2011-03-25  Bruno Haible  <bruno@clisp.org>
54305         unictype/combining-class: Rename source files.
54306         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
54307         of unictype/combining.h.
54308         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
54309         Update.
54310         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
54311         * modules/unictype/combining-class (Description): Fix.
54312         (Files, Makefile.am): Update.
54313         * tests/unictype/test-combiningclass.c: Renamed from
54314         tests/unictype/test-combining.c.
54315         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
54317 2011-03-25  Bruno Haible  <bruno@clisp.org>
54319         unictype: Update list of canonical combining classes.
54320         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
54322 2011-03-25  Bruno Haible  <bruno@clisp.org>
54324         unictype/category-byname: Recognize long names as well.
54325         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
54326         a long name.
54327         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
54328         unictype/categ_byname.h.
54329         (UC_CATEGORY_INDEX_*): New enumeration values.
54330         (uc_general_category_byname): Use uc_general_category_lookup and
54331         convert from index to value.
54332         * lib/unictype/categ_byname.gperf: New file.
54333         * modules/unictype/category-byname (Files): Add
54334         lib/unictype/categ_byname.gperf.
54335         (Depends-on): Add gperf.
54336         (Makefile.am): Add rule for generating unictype/categ_byname.h.
54337         * tests/unictype/test-categ_byname.c (main): Test the recognition of
54338         long names.
54340         Tests for module 'unictype/category-longname'.
54341         * modules/unictype/category-longname-tests: New file.
54342         * tests/unictype/test-categ_longname.c: New file.
54344         New module 'unictype/category-longname'.
54345         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
54346         * lib/unictype/categ_longname.c: New file.
54347         * modules/unictype/category-longname: New file.
54348         * modules/unictype/category-all (Depends-on): Add it.
54350 2011-03-25  Bruno Haible  <bruno@clisp.org>
54352         Tests for module 'unictype/category-LC'.
54353         * modules/unictype/category-LC-tests: New file.
54354         * tests/unictype/test-categ_LC.c: New file, automatically generated.
54356         New module 'unictype/category-LC'.
54357         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
54358         (UC_CATEGORY_LC): New declaration.
54359         (UC_CASED_LETTER): New macro.
54360         * lib/gen-uni-tables.c (is_category_LC): New function.
54361         (output_categories): Also handle category LC.
54362         (UC_CATEGORY_MASK_LC): New enumeration value.
54363         (general_category_byname): Also handle category LC.
54364         * lib/unictype/categ_LC.c: New file.
54365         * lib/unictype/categ_LC.h: New file, automatically generated.
54366         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
54367         category LC.
54368         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
54369         * modules/unictype/category-LC: New file.
54370         * modules/unictype/category-byname (Depends-on): Add
54371         unictype/category-LC.
54372         * modules/unictype/category-all (Depends-on): Likewise.
54374 2011-03-25  Eric Blake  <eblake@redhat.com>
54376         xmalloc: revert yesterday's regression
54377         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
54378         realloc's underlying behavior (allowing allocation of zero-size
54379         objects, especially if malloc-gnu is also in use).
54381 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
54383         maint.mk: add missing version to VC-tag
54384         * top/maint.mk: git tag was missing actual tag name; add it.
54386         valgrind: do leak checking, and exit with code 1 on error (not 0)
54387         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
54388         to VALGRIND.
54390 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
54392         posix-modules: say what it does.
54393         * posix-modules: Add a line to the --help output saying what it does.
54395 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
54397         xmalloc: Do not leak if underlying realloc is C99 compatible.
54398         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
54399         This avoids a leak on C99-based systems.  See
54400         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
54402 2011-03-24  Eric Blake  <eblake@redhat.com>
54404         realloc: document portability problem
54405         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
54406         passing 0 size to realloc.
54408 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
54410         doc: update users.txt
54411         * users.txt: Add cvsps, tmpwatch
54413 2011-03-23  Matt Rice  <ratmice@gmail.com>
54415         doc: update users.txt
54416         * users.txt: Add gdb.
54418 2011-03-23  Jim Meyering  <meyering@redhat.com>
54420         doc: update users.txt
54421         Looking through matches up to the following URL (there are still
54422         several more pages), I found several projects that use gnulib:
54423         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
54424         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
54425         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
54427 2011-03-22  Bruno Haible  <bruno@clisp.org>
54429         unictype/bidi*: Rename functions.
54430         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
54431         uc_bidi_class, uc_is_bidi_class): New declarations.
54432         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
54433         uc_bidi_category_byname.
54434         (uc_bidi_category_byname): New function.
54435         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
54436         u_bidi_category_name.
54437         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
54438         (uc_bidi_category_name): New function.
54439         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
54440         uc_bidi_category.
54441         (uc_bidi_category): New function.
54442         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
54443         uc_is_bidi_category. Invoke uc_bidi_class.
54444         (uc_is_bidi_category): New function.
54445         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
54446         instead of uc_bidi_category_byname.
54447         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
54448         instead of uc_bidi_category_name.
54449         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
54450         uc_bidi_category.
54451         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
54452         instead of uc_is_bidi_category.
54454 2011-03-21  Bruno Haible  <bruno@clisp.org>
54456         New module 'unictype/joininggroup-all'.
54457         * modules/unictype/joininggroup-all: New file.
54459         Tests for module 'unictype/joininggroup-of'.
54460         * modules/unictype/joininggroup-of-tests: New file.
54461         * tests/unictype/test-joininggroup_of.c: New file.
54462         * tests/unictype/test-joininggroup_of.h: New file, automatically
54463         generated by gen-uni-tables.
54465         New module 'unictype/joininggroup-of'.
54466         * modules/unictype/joininggroup-of: New file.
54467         * lib/unictype/joininggroup_of.c: New file.
54468         * lib/unictype/joininggroup_of.h: New file, automatically generated by
54469         gen-uni-tables.
54471         Tests for module 'unictype/joininggroup-byname'.
54472         * modules/unictype/joininggroup-byname-tests: New file.
54473         * tests/unictype/test-joininggroup_byname.c: New file.
54475         New module 'unictype/joininggroup-byname'.
54476         * modules/unictype/joininggroup-byname: New file.
54477         * lib/unictype/joininggroup_byname.c: New file.
54478         * lib/unictype/joininggroup_byname.gperf: New file.
54480         Tests for module 'unictype/joininggroup-name'.
54481         * modules/unictype/joininggroup-name-tests: New file.
54482         * tests/unictype/test-joininggroup_name.c: New file.
54484         New module 'unictype/joininggroup-name'.
54485         * modules/unictype/joininggroup-name: New file.
54486         * lib/unictype/joininggroup_name.c: New file.
54487         * lib/unictype/joininggroup_name.h: New file.
54489         New module 'unictype/joiningtype-all'.
54490         * modules/unictype/joiningtype-all: New file.
54492         Tests for module 'unictype/joiningtype-of'.
54493         * modules/unictype/joiningtype-of-tests: New file.
54494         * tests/unictype/test-joiningtype_of.c: New file.
54495         * tests/unictype/test-joiningtype_of.h: New file, automatically
54496         generated by gen-uni-tables.
54498         New module 'unictype/joiningtype-of'.
54499         * modules/unictype/joiningtype-of: New file.
54500         * lib/unictype/joiningtype_of.c: New file.
54501         * lib/unictype/joiningtype_of.h: New file, automatically generated by
54502         gen-uni-tables.
54504         Tests for module 'unictype/joiningtype-byname'.
54505         * modules/unictype/joiningtype-byname-tests: New file.
54506         * tests/unictype/test-joiningtype_byname.c: New file.
54508         New module 'unictype/joiningtype-byname'.
54509         * modules/unictype/joiningtype-byname: New file.
54510         * lib/unictype/joiningtype_byname.c: New file.
54512         Tests for module 'unictype/joiningtype-name'.
54513         * modules/unictype/joiningtype-name-tests: New file.
54514         * tests/unictype/test-joiningtype_name.c: New file.
54516         New module 'unictype/joiningtype-name'.
54517         * modules/unictype/joiningtype-name: New file.
54518         * lib/unictype/joiningtype_name.c: New file.
54520         unictype: Add support for Arabic shaping properties.
54521         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
54522         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
54523         declarations.
54524         (UC_JOINING_GROUP_*): New enumeration values.
54525         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
54526         declarations.
54527         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
54528         (unicode_joining_type): New variable.
54529         (UC_JOINING_GROUP_*): New enumeration values.
54530         (unicode_joining_group): New variable.
54531         (fill_arabicshaping, joining_type_as_c_identifier,
54532         output_joining_type_test, output_joining_type,
54533         joining_group_as_c_identifier, output_joining_group_test,
54534         output_joining_group): New functions.
54535         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
54536         fill_arabicshaping and output_joining_type_test, output_joining_type,
54537         output_joining_group_test, output_joining_group.
54538         Reported by Simon Josefsson.
54540 2011-03-21  Jim Meyering  <meyering@redhat.com>
54542         strftime: fix a bug in yesterday's change
54543         * lib/strftime.c (add): Accommodate width's initial value of -1.
54544         Otherwise, nstrftime would copy uninitialized data into
54545         the result buffer.
54547 2011-03-21  Jim Meyering  <meyering@redhat.com>
54549         tests: add strftime-tests module
54550         * tests/test-strftime.c: New file.
54551         * modules/strftime-tests: New module.
54553 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
54555         strftime: don't assume a byte count fits in 'int'
54556         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
54557         found this problem by static analysis, using gcc -Wstrict-overflow
54558         (GCC 4.5.2, x86-64).  This reported an optimization that depended
54559         on an integer overflow having undefined behavior, but it turns out
54560         that the argument is a size, which might not fit in 'int' anyway,
54562 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
54564         stdio: don't require ignore_value around fwrite
54566         This patch works around libc bug 11959
54567         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
54568         Without this patch, applications must often write
54569         ignore_value (fwrite (...)) even though the ignore_value is
54570         not helpful here.  It's common to write many objects, using
54571         fwrite/printf/etc., and then use ferror to detect output error.
54573         I considered making this patch optional, but decided against it,
54574         because libc is obviously being inconsistent here: there is no
54575         reason libc should insist that user code must inspect fwrite
54576         return's value without also insisting that it inspect printf's,
54577         putchar's, etc.  If user code wants to have a strict style where
54578         all these functions' values are checked (so that ferror need not
54579         be checked), we could add support for that style in a new gnulib
54580         module, but in the meantime it's better to be consistent and to
54581         support common usage.
54583         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
54584         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
54585         that we are compiling in checking mode, and if not C++, and
54586         if not already wrapping fwrite for some other reason.
54587         (fwrite): #define to rpl_fwrite if the latter is defined.
54589 2011-03-20  Bruno Haible  <bruno@clisp.org>
54591         verror: Fix compilation error introduced on 2011-02-13.
54592         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
54593         instead of __attribute__.
54594         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54596 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
54597             Bruno Haible  <bruno@clisp.org>
54599         socklen: do not depend on sys_socket
54600         While trying to modify Emacs to use gnulib's socklen module,
54601         I discovered a circular dependency: socklen depends on sys_socket
54602         and vice versa.  Emacs can use socklen, but it does not need
54603         sys_socket because it has its own substitute for sys/socket.h.
54604         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
54605         gl_TYPE_SOCKLEN_T.
54606         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
54607         gl_PREREQ_SYS_H_SOCKET.
54608         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
54609         gl_PREREQ_SYS_H_SOCKET.
54610         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
54611         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
54612         * modules/socklen (Depends-on): Do not depend on sys_socket.
54613         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
54615 2011-03-20  Jim Meyering  <meyering@redhat.com>
54617         maint.mk: sort file names *after* new transformation
54618         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
54619         prefix would have led to an unwarranted failure in GNU parted.
54620         Sort after that transformation.
54622 2011-03-19  Jim Meyering  <meyering@redhat.com>
54624         maint.mk: fix po-file syntax-check rule
54625         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
54626         Patch by Bruno Haible.
54628 2011-03-19  Bruno Haible  <bruno@clisp.org>
54630         socklen: Update comment.
54631         * m4/socklen.m4: Update comment about platforms.
54633 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54634             Bruno Haible  <bruno@clisp.org>
54636         inet_ntop, inet_pton: Simplify.
54637         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
54638         documented to provide socklen_t and we already depend on sys_socket.
54639         * modules/inet_pton (Depends-on): Likewise.
54640         * lib/arpa_inet.in.h: Adjust comment.
54642 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54643             Bruno Haible  <bruno@clisp.org>
54645         netdb: Simplify.
54646         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
54647         documented to provide socklen_t and we already depend on sys_socket.
54648         * lib/netdb.in.h: Adjust comment.
54650 2011-03-19  Bruno Haible  <bruno@clisp.org>
54652         sys_socket, netdb: Document problem with socklen_t.
54653         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
54654         platforms.
54655         * doc/posix-headers/netdb.texi: Likewise.
54657 2011-03-18  Eric Blake  <eblake@redhat.com>
54659         maint.mk: let po check work in VPATH build
54660         * top/maint.mk (po_file): Allow cfg.mk override.
54661         (sc_po_check): Allow VPATH use.
54662         Reported by Jiri Denemark.
54664 2011-03-16  Jim Meyering  <meyering@redhat.com>
54666         maint.mk: allow fine-grained syntax-check exclusion via Make variables
54667         Before, you would have had to create one .x-sc_ file per rule in order
54668         to exempt offending files.  Now, you may instead use a Make variable --
54669         usually defined in cfg.mk -- whose name identifies the affected rule.
54670         * top/maint.mk (_sc_excl): Define.
54671         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
54672         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
54674 2011-03-13  Bruno Haible  <bruno@clisp.org>
54676         ignore-value tests: Avoid warnings.
54677         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
54678         empty for gcc < 3.4.
54680 2011-03-13  Bruno Haible  <bruno@clisp.org>
54682         passfd: Fix link error on Solaris.
54683         * modules/passfd (Description): Correct.
54684         (Depends-on): Add socketlib.
54685         (Link): New section.
54686         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
54688 2011-03-13  Bruno Haible  <bruno@clisp.org>
54690         passfd: Fix link error on AIX 5.2.
54691         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
54693 2011-03-13  Bruno Haible  <bruno@clisp.org>
54695         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
54696         * lib/sys_socket.in.h: Include <stddef.h>.
54697         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
54698         CMSG_FIRSTHDR. Remove unused variable.
54700 2011-03-13  Bruno Haible  <bruno@clisp.org>
54702         passfd: Fix compilation error on OpenBSD.
54703         * lib/passfd.c: Include <sys/uio.h>.
54705 2011-03-13  Bruno Haible  <bruno@clisp.org>
54707         passfd test: Fix warnings.
54708         * tests/test-passfd.c: Include <sys/wait.h>.
54709         (main): Fix typo.
54711 2011-03-13  Bruno Haible  <bruno@clisp.org>
54713         passfd module, part 4, tweaks.
54714         * tests/test-passfd.c: Reorder includes.
54715         (main): Fix perror and printf calls.
54717 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
54719         passfd module, part 4.
54720         * modules/passfd-tests: New file.
54721         * tests/test-passfd.c: New file.
54723 2011-03-13  Jim Meyering  <meyering@redhat.com>
54725         Makefile: rely on GNU make; derive syntax-check rule names
54726         Rather than requiring that each sc_ rule be listed as a dependent
54727         of "check", use features of GNU make to derive the list.
54728         * Makefile (syntax-check-rules): Define.
54729         (check): Depend on the new variable, not the hard-coded list.
54731 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
54732             Bruno Haible  <bruno@clisp.org>
54734         passfd module, part 3.
54735         * lib/passfd.h (recvfd): Add a flags argument.
54736         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
54737         (recvfd): Add a flags argument.
54738         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
54739         exists.
54740         * modules/passfd (Depends-on): Add cloexec.
54741         Suggested by Eric Blake.
54743 2011-03-13  Bruno Haible  <bruno@clisp.org>
54745         passfd module, part 2, tweaks.
54746         * modules/passfd (Files): Reorder.
54747         (Depends-on): Remove errno.
54748         (Include): Remove <sys/socket.h>, <sys/un.h>.
54749         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
54750         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
54751         specification header. Include <sys/socket.h> always. Don't include
54752         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
54753         (sendfd): Clarify that it sets errno when it fails.
54754         (recvfd): Fix specification.
54756 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
54758         passfd module, part 2.
54759         * modules/passfd: New file.
54760         * lib/passfd.h: New file.
54761         * lib/passfd.c: New file.
54763 2011-03-12  Bruno Haible  <bruno@clisp.org>
54765         wcswidth, mbswidth: Avoid integer overflow.
54766         * lib/wcswidth.c: Include <limits.h>.
54767         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
54768         * lib/mbswidth.c: Include <limits.h>.
54769         (mbsnwidth): Avoid 'int' overflow.
54770         Reported by Jim Meyering.
54772 2011-03-12  Bruno Haible  <bruno@clisp.org>
54774         futimens, utimensat: Avoid endless recursion on Solaris 10.
54775         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
54776         Solaris.
54777         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
54778         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
54780 2011-03-11  Jim Meyering  <meyering@redhat.com>
54782         maint.mk: relax a regexp to accommodate other formatting styles
54783         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
54784         between "ngettext" and the following "(".
54786 2011-03-11  Pádraig Brady  <P@draigBrady.com>
54788         maint.mk: suppress a false positive warning
54789         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
54790         diagnostics are marked with ngettext.
54792 2011-03-10  Eric Blake  <eblake@redhat.com>
54794         wchar: add explicit dependencies, for Tru64
54795         * modules/mbmemcasecoll (Depends-on): Add wchar.
54796         * modules/mbtowc (Depends-on): Likewise.
54797         * modules/vasnprintf (Depends-on): Likewise.
54798         * modules/unistdio/u-printf-args (Depends-on): Likewise.
54799         * modules/wctomb (Depends-on): Likewise.
54800         Reported by Peter O'Gorman.
54802 2011-03-08  Bruno Haible  <bruno@clisp.org>
54804         passfd module, part 1, tweaks.
54805         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
54806         Improve indentation. Improve AC_MSG_CHECKING messages.
54807         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
54808         gl_SOCKET_FAMILIES.
54810 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
54812         passfd module, part 1.
54813         * m4/afunix.m4: New file.
54814         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
54815         sockets.
54817 2011-03-08  Bruno Haible  <bruno@clisp.org>
54819         regex-quote: New API.
54820         * lib/regex-quote.h: Include <stdbool.h>.
54821         (struct regex_quote_spec): New type.
54822         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
54823         New declarations.
54824         (regex_quote_length, regex_quote_copy, regex_quote): Take a
54825         'const struct regex_quote_spec *' argument.
54826         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
54827         (pcre_special): New constant.
54828         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
54829         New functions.
54830         (regex_quote_length, regex_quote_copy, regex_quote): Take a
54831         'const struct regex_quote_spec *' argument.
54832         * modules/regex-quote (Depends-on): Add stdbool.
54833         * tests/test-regex-quote.c (check): Update for new API. Add test for
54834         anchored results.
54835         * NEWS: Mention the API change.
54836         Reported by Reuben Thomas and Eric Blake.
54838 2011-03-06  Bruno Haible  <bruno@clisp.org>
54840         regex-quote: Fix creation of POSIX extended regular expressions.
54841         * lib/regex-quote.c (ere_special): Add grouping and alternation
54842         operators.
54844 2011-03-05  Bruno Haible  <bruno@clisp.org>
54846         doc: Improve doc regarding autopoint vs. gnulib.
54847         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
54848         disable autopoint while running autoreconf.
54849         Suggested by Ralf Wildenhues.
54851 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54853         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
54854         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
54856 2011-03-03  Bruce Korb  <bkorb@gnu.org>
54858         parse-duration: remove xalloc.h dependency
54859         * lib/parse-duration.c (parse_period): handle NULL return from
54860         strdup instead of calling xstrdup().
54861         * modules/parse-duration: remove "xalloc" dependency
54863 2011-03-03  Matthew Booth  <mbooth@redhat.com>
54865         bootstrap: honor m4_base when running aclocal
54866         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
54868 2011-03-02  Jim Meyering  <meyering@redhat.com>
54870         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
54871         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
54872         on request from Matt Booth.
54874 2011-03-01  Eric Blake  <eblake@redhat.com>
54876         test-link: work on Hurd
54877         * tests/test-link.h (test_link): Hurd rejects linking directories
54878         with EISDIR instead of the POSIX-mandated EPERM.
54880 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
54882         stdio: simplify by moving files to printf-posix, sigpipe
54883         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
54884         since this symbol is needed only if printf is replaced.
54885         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
54886         Require gl_ASM_SYMBOL_PREFIX.
54887         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
54888         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
54889         (Depends-on): Add 'raise'.
54890         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
54891         * modules/stdio (Files): Remove lib/stdio-write.c,
54892         m4/asm-underscore.m4.
54893         (Depends-on): Remove 'raise'.
54895         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
54896         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
54897         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
54898         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
54900 2011-02-28  Bruno Haible  <bruno@clisp.org>
54902         localcharset: Assume ANSI C behaviour of free().
54903         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
54904         calling free().
54905         Suggested by Simon Josefsson <simon@josefsson.org>.
54907 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
54908             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
54909             Bruno Haible  <bruno@clisp.org>  (tiny change)
54911         On Cygwin, use /proc file system instead of win32 API.
54912         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
54913         Win32 file names.
54914         (DllMain): Simplify by removing Cygwin specific code.
54915         (find_shared_library_fullname): Use Linux specific implementation also
54916         for Cygwin.
54917         (get_shared_library_fullname): Update accordingly.
54918         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
54919         Win32 file names.
54920         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
54921         Cygwin specific code.
54923 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
54924             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
54926         Fix OpenMP flag detection for various Fortran compilers.
54927         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
54928         OpenMP-conditional compilation construct, to force compile
54929         failure with missing OpenMP flag.
54930         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
54932 2011-02-25  Eric Blake  <eblake@redhat.com>
54934         strstr: expand test coverage
54935         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
54936         compilation.
54937         * tests/test-memmem.c (main): Duplicate tests.
54938         * tests/test-strcasestr.c (main): Likewise.
54939         * tests/test-c-strcasestr.c (main): Likewise.
54941 2011-02-25  Jim Meyering  <meyering@redhat.com>
54943         maint.mk: detect missing-NL-at-EOF, too
54944         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
54945         it also detects when a file lacks a newline at EOF.
54946         (require_exactly_one_NL_at_EOF_): Renamed from
54947         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
54948         since people may well have .x-sc_... file names tied to the
54949         existing name.  Suggested by Eric Blake.
54951 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
54953         dirname: move m4/dos.m4 functionality into lib/dosname.h
54955         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
54956         extracts symbols from it, puts them into config.h; but it's much
54957         easier to use the symbols directly.  filename.h already does this,
54958         but it disagrees with dos.m4 in some respects.  This patch
54959         introduces a different include file dosname.h that packages up
54960         dos.m4, and then later we can work on merging filename.h and
54961         dosname.h.  Applications that need only the easy-to-configure
54962         symbols should consider including dosname.h rather than dirname.h.
54963         * NEWS: Mention incompatible changes.
54964         * m4/dos.m4: Remove.
54965         * lib/dosname.h, modules/dosname: New files.
54966         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
54967         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
54968         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
54969         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
54970         Include dosname.h, not dirname.h.
54971         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
54972         Include dosname.h, for definitions of symbols like ISSLASH
54973         that used to be in config.h.
54974         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
54975         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
54976         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
54977         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
54978         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
54979         * modules/rmdir (Files): Likewise.
54980         * modules/stat (Files): Likewise.
54981         * modules/unlink (Files): Likewise.
54982         * modules/dirname-lgpl (Depends-on): Add dosname.
54983         * modules/lstat (Depends-on): Likewise.
54984         * modules/openat (Depends-on): Likewise.
54985         * modules/rmdir (Depends-on): Likewise.
54986         * modules/savewd (Depends-on): Likewise.
54987         * modules/stat (Depends-on): Likewise.
54988         * modules/unlink (Depends-on): Likewise.
54989         * modules/openat (Depends-on): Remove dirname-lgpl.
54990         * modules/savewd (Depends-on): Likewise.
54991         * tests/test-dirname.c: Do not use removed symbols like
54992         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
54993         the remaining symbols, e.g., ISSLASH ('\\').
54995 2011-02-25  Eric Blake  <eblake@redhat.com>
54997         strstr: revert patches that introduced bug and pessimization
54998         * lib/str-two-way.h: Add another reference.
54999         (two_way_short_needle, two_way_long_needle): Revert changes from
55000         2011-02-24; they pessimize search speed.
55001         (critical_factorization): Partially revert changes from
55002         2010-06-22; they violate the requirement that the left half of the
55003         needle be smaller than the period of the needle.
55005 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
55007         filenamecat: remove unnecessary dependency on dirname-lgpl
55008         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
55009         is no direct dependency, just an indirect one via filenamecat-lgpl.
55011         remove: remove unnecessary use of m4/dos.m4
55012         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
55013         * modules/remove (FILES): Remove m4/dos.m4.
55015         * lib/openat-proc.c: Don't include dirname.h; not needed.
55017         backupfile: remove unnecessary use of m4/dos.m4
55018         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
55019         of its symbols are used by the backupfile code.  backupfile.c does
55020         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
55021         for the rare case of programs that want all their backup file
55022         names to live within 8+3 limits, and dos.m4 doesn't address that.
55023         * modules/backupfile (Files): Remove m4/dos.m4.
55025 2011-02-24  Jim Meyering  <meyering@redhat.com>
55027         strstr: fix a bug whereby strstr would mistakenly return NULL
55028         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
55029         in period calculation.
55030         (two_way_long_needle): Likewise.
55031         The original problem was reported by Mike Stump in
55032         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
55033         Ralf Wildenhues provided the short needle and haystack.
55034         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
55035         Add a more involved test to trigger the bug in two_way_long_needle.
55037 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
55039         gnulib-tool: remove use of bold display in help screen
55040         * gnulib-tool (func_usage): Do not use bold display anymore in the
55041         help screen.  That was just meant to be a temporary emphasis for a
55042         backward-incompatible change.
55044 2011-02-23  Bruno Haible  <bruno@clisp.org>
55046         Fix misindentation of preprocessor directives.
55047         * lib/argp-namefrob.h: Reindent preprocessor directives.
55048         * lib/getopt_int.h (struct _getopt_data): Likewise.
55049         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
55050         * lib/vasnprintf.c (decode_long_double): Likewise.
55051         * tests/test-argmatch.c: Insert blank lines, for clarity.
55052         * tests/test-exclude.c: Likewise.
55054 2011-02-22  Bruno Haible  <bruno@clisp.org>
55056         ioctl: Fix for MacOS X in 64-bit mode.
55057         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
55058         value.
55059         Suggested by Eric Blake.
55060         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
55062 2011-02-22  Jim Meyering  <meyering@redhat.com>
55064         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
55065         * Makefile (sc_cpp_indent_check): Don't limit the check to files
55066         in lib/.
55068 2011-02-22  Eric Blake  <eblake@redhat.com>
55070         maint: avoid any CDPATH issue
55071         * Makefile (sc_cpp_indent_check): Anchor cd argument.
55073         maint: adjust cpp indentation for my modules, as well
55074         * Makefile (sc_cpp_indent_check): Add my name.
55075         * lib/fbufmode.c: Filter through cppi.
55076         * lib/fpurge.c: Likewise.
55077         * lib/freadable.c: Likewise.
55078         * lib/freading.c: Likewise.
55079         * lib/fwritable.c: Likewise.
55080         * lib/fwriting.c: Likewise.
55081         * lib/sigaction.c: Likewise.
55083 2011-02-22  Jim Meyering  <meyering@redhat.com>
55085         maint: adjust cpp indentation to reflect nesting depth
55086         I.e., in a block of code that begins with an unnested "#if",
55087         put one space between the "#" in column 1 and following token.
55088         For example,
55089         -#include <sys/vfs.h>
55090         +# include <sys/vfs.h>
55091         Do this only in .c files that are part of a module I maintain.
55092         * lib/linkat.c: Filter through cppi.
55093         * lib/nanosleep.c: Likewise.
55094         * lib/openat.c: Likewise.
55095         * lib/openat-die.c: Likewise.
55096         * lib/dup3.c: Likewise.
55097         * lib/fchownat.c: Likewise.
55098         * lib/flock.c: Likewise.
55099         * lib/fsync.c: Likewise.
55100         * lib/fts.c: Likewise.
55101         * lib/getpass.c: Likewise.
55102         * lib/gettimeofday.c: Likewise.
55103         * lib/userspec.c: Likewise.
55104         * Makefile (sc_cpp_indent_check): New rule, to check this.
55106 2011-02-22  Bruno Haible  <bruno@clisp.org>
55108         New module 'wctomb'.
55109         * lib/stdlib.in.h (wctomb): New declaration.
55110         * lib/wctomb.c: New file.
55111         * lib/wctomb-impl.h: New file.
55112         * m4/wctomb.m4: New file.
55113         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
55114         REPLACE_WCTOMB.
55115         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
55116         REPLACE_WCTOMB.
55117         * modules/wctomb: New file.
55118         * tests/test-stdlib-c++.cc: Test signature of wctomb.
55119         * doc/posix-functions/wctomb.texi: Mention the new module.
55120         * modules/wctob (Depends-on): Add wctomb.
55122 2011-02-22  Bruno Haible  <bruno@clisp.org>
55124         New module 'mbtowc'.
55125         * lib/stdlib.in.h (mbtowc): New declaration.
55126         * lib/mbtowc.c: New file.
55127         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
55128         * m4/mbtowc.m4: New file.
55129         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
55130         REPLACE_MBTOWC.
55131         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
55132         REPLACE_MBTOWC.
55133         * modules/mbtowc: New file.
55134         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
55135         * doc/posix-functions/mbtowc.texi: Mention the new module.
55136         * modules/btowc (Depends-on): Add mbtowc.
55138 2011-02-22  Bruno Haible  <bruno@clisp.org>
55140         wcrtomb: Add more tests for native Windows platforms.
55141         * tests/test-wcrtomb-w32-1.sh: New file.
55142         * tests/test-wcrtomb-w32-2.sh: New file.
55143         * tests/test-wcrtomb-w32-3.sh: New file.
55144         * tests/test-wcrtomb-w32-4.sh: New file.
55145         * tests/test-wcrtomb-w32-5.sh: New file.
55146         * tests/test-wcrtomb-w32.c: New file.
55147         * modules/wcrtomb-tests (Files): Add them.
55148         (Makefile.am): Arrange to run these tests.
55149         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
55150         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
55152 2011-02-20  Bruno Haible  <bruno@clisp.org>
55154         wcrtomb: Enhance test.
55155         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
55157 2011-02-20  Bruno Haible  <bruno@clisp.org>
55159         mbrtowc: Tiny optimization.
55160         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
55162 2011-02-20  Jim Meyering  <meyering@redhat.com>
55164         test-exclude.c: remove unmatched #endif
55165         * tests/test-exclude.c: Remove stray #endif, left over from
55166         the change of a week ago.
55168 2011-02-19  Jim Meyering  <meyering@redhat.com>
55170         git-version-gen: skip "-dirty" check when appropriate
55171         * build-aux/git-version-gen: Don't run any git commands when the
55172         version string comes from .tarball-version.  Prior to this, we
55173         would run git update-index --refresh even from a just-unpacked
55174         tarball directory, and that could affect a .git/ directory in a
55175         parent of the build directory.  Reported by Mike Frysinger.
55177 2011-02-19  Bruno Haible  <bruno@clisp.org>
55179         unictype/property-byname: Reduce the size of the 'data' segment.
55180         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
55182 2011-02-19  Bruno Haible  <bruno@clisp.org>
55184         unictype/scripts: Reduce the size of the 'data' segment.
55185         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
55186         '%pic'.
55187         * lib/unictype/scripts_byname.gperf: Regenerated.
55189 2011-02-19  Bruno Haible  <bruno@clisp.org>
55191         stdint: Update documentation.
55192         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
55194 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
55196         stdint: omit redundant check for wchar.h
55197         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
55198         always tests whether wchar.h exists, so remove the now-redundant test.
55200 2011-02-18  Bruno Haible  <bruno@clisp.org>
55202         stdint: Cut dependency to module 'wchar'.
55203         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
55204         include the necessary prerequisites.
55205         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
55206         * modules/stdint (Depends-on): Remove wchar.
55207         (Makefile.am): Substitute HAVE_WCHAR_H.
55208         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
55210 2011-02-18  Eric Blake  <eblake@redhat.com>
55212         longlong: skip, rather than fail, on cross-compilation
55213         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
55214         when cross-compiling; regression from 2011-02-16.
55216 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
55218         * NEWS: Mention 2011-02-08 change to stdlib.
55220 2011-02-17  Bruno Haible  <bruno@clisp.org>
55222         getloadavg: Add comments about platforms.
55223         * m4/getloadavg.m4: Add comment.
55224         * lib/getloadavg.c: Likewise.
55226 2011-02-17  Bruno Haible  <bruno@clisp.org>
55228         getloadavg: Fix link error on Solaris 2.6.
55229         * modules/getloadavg (Link): New section.
55230         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
55231         linking test-getloadavg.
55232         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
55233         getloadavg.
55235 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
55237         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
55238         It was 'int', but this doesn't match the IRIX 6.5 manual.
55239         Suggested by Bruno Haible in
55240         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
55242 2011-02-17  Bruno Haible  <bruno@clisp.org>
55244         havelib: Fix comments.
55245         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
55246         change.
55248 2011-02-17  Bruno Haible  <bruno@clisp.org>
55250         havelib: Update config.rpath.
55251         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
55253 2011-02-17  Bruno Haible  <bruno@clisp.org>
55255         getloadavg test: Add some plausibility checks.
55256         * tests/test-getloadavg.c (check_avg): Print a warning when the value
55257         is improbable.
55259 2011-02-16  Eric Blake  <eblake@redhat.com>
55261         maintainer-makefile: make syntax-check a no-op from tarballs
55262         * top/maint.mk (no-vc-detected): New rule.
55263         (local-checks-available): Use it to avoid hanging if someone tries
55264         'make syntax-check' from a tarball.  Also append to any non-syntax
55265         checks already defined in cfg.mk.
55267 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
55269         longlong: tune, particularly for common case of c99
55271         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
55272         or running anything if c99, or if unsigned long long int does not
55273         work.  In either case, we know the answer without further tests.
55274         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
55275         it at most once, and use its results for both long long int and
55276         unsigned long long int.  This is more likely to be efficient in
55277         the common case where the program wants to check for both long
55278         long int and unsigned long long int.
55279         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
55280         since the answer is already known.
55282 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
55284         getloadavg: set errno
55285         * lib/getloadavg.c: Set errno when returning -1.  If no other
55286         error number looks appropriate, set it to ENOSYS if the getloadavg
55287         looks like it can't possibly ever work, ENOTSUP otherwise.
55288         Suggested by Bruno Haible in
55289         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
55291         getloadavg: trim unused parts and speed up 'configure'
55292         * NEWS: Document this.
55293         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
55294         always compiled if getloadavg is absent.
55295         Move test code to ...
55296         * tests/test-getloadavg.c: New file, containing previous
55297         contents of test from lib/getloadavg.c.  It also contains
55298         suggestions by Bruno Haible in
55299         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
55300         * modules/getloadavg-tests: New file.
55301         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
55302         Do tests in the same order as they're needed for getloadavg.c.
55303         Omit setgid-related tests that generate symbols KMEM_GROUP,
55304         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
55305         Do only the tests that are needed to see whether the system has
55306         getloadavg, moving the other tests into ...
55307         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
55308         NLIST_NAME_UNION; nobody should be using it.  Do not define
55309         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
55310         relevant, as the user of this module shouldn't care how getloadavg
55311         is implemented.
55313         getloadavg: omit unused var
55314         * lib/getloadavg.c (getloadavg): Omit unused local variable.
55316 2011-02-15  Jim Meyering  <meyering@redhat.com>
55318         doc: update users.txt
55319         * users.txt: Update iwhd's URL.
55321 2011-02-13  Bruno Haible  <bruno@clisp.org>
55323         Consistent macro naming for macros that use GCC __attribute__.
55324         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
55325         _ATTRIBUTE_NONNULL_.
55326         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
55327         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
55328         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
55329         ATTRIBUTE_DEPRECATED.
55330         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
55331         ATTRIBUTE_NORETURN.
55332         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
55333         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
55334         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
55335         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
55336         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
55337         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
55338         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
55339         ATTRIBUTE_SENTINEL.
55340         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
55341         ATTRIBUTE_RETURN_CHECK.
55342         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
55343         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
55344         ATTRIBUTE_NORETURN.
55345         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
55346         Reported by Paul Eggert.
55348 2011-02-13  Bruno Haible  <bruno@clisp.org>
55350         Don't interfere with a program's definition of __attribute__.
55351         * lib/argp.h (__attribute__): Remove definition.
55352         (_GL_ATTRIBUTE_FORMAT): New macro.
55353         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
55354         * lib/argp-fmtstream.h (__attribute__): Remove definition.
55355         (_GL_ATTRIBUTE_FORMAT): New macro.
55356         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
55357         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
55358         GCC 3 or newer.
55359         * lib/error.h (__attribute__): Remove definition.
55360         (_GL_ATTRIBUTE_FORMAT): New macro.
55361         (error, error_at_line): Use it.
55362         * lib/hash.h (__attribute__): Remove definition.
55363         (ATTRIBUTE_WUR): Update definition. Define always.
55364         * lib/openat.h (__attribute__): Remove definition.
55365         (ATTRIBUTE_NORETURN): Update definition. Define always.
55366         * lib/sigpipe-die.h (__attribute__): Remove definition.
55367         (ATTRIBUTE_NORETURN): Update definition. Define always.
55368         * lib/vasnprintf.h (__attribute__): Remove definition.
55369         (_GL_ATTRIBUTE_FORMAT): New macro.
55370         (asnprintf, vasnprintf): Use it.
55371         * lib/xalloc.h (__attribute__): Remove definition.
55372         (ATTRIBUTE_NORETURN): Update definition. Define always.
55373         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
55374         * lib/xmemdup0.h (__attribute__): Remove definition.
55375         (ATTRIBUTE_NORETURN): Update definition. Define always.
55376         * lib/xprintf.h (__attribute__): Remove definition.
55377         (_GL_ATTRIBUTE_FORMAT): New macro.
55378         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
55379         * lib/xstrtol.h (__attribute__): Remove definition.
55380         (ATTRIBUTE_NORETURN): Update definition. Define always.
55381         * lib/xvasprintf.h (__attribute__): Remove definition.
55382         (_GL_ATTRIBUTE_FORMAT): New macro.
55383         (xasprintf, xvasprintf): Use it.
55384         * tests/test-argmatch.c (__attribute__): Remove definition.
55385         (ATTRIBUTE_NORETURN): Update definition. Define always.
55386         * tests/test-exclude.c (__attribute__): Remove definition.
55387         (ATTRIBUTE_NORETURN): Update definition. Define always.
55388         Reported by Paul Eggert.
55390 2011-02-13  Bruno Haible  <bruno@clisp.org>
55392         mbrtowc: Add more tests for native Windows platforms.
55393         * tests/test-mbrtowc-w32-1.sh: New file.
55394         * tests/test-mbrtowc-w32-2.sh: New file.
55395         * tests/test-mbrtowc-w32-3.sh: New file.
55396         * tests/test-mbrtowc-w32-4.sh: New file.
55397         * tests/test-mbrtowc-w32-5.sh: New file.
55398         * tests/test-mbrtowc-w32.c: New file.
55399         * modules/mbrtowc-tests (Files): Add them.
55400         (Makefile.am): Arrange to run these tests.
55401         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
55402         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
55404 2011-02-13  Bruno Haible  <bruno@clisp.org>
55406         mbrtowc: Work around native Windows bug.
55407         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
55408         guess when no suitable locale for testing was found.
55409         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
55411 2011-02-13  Bruno Haible  <bruno@clisp.org>
55413         mbsinit: Work around mingw bug.
55414         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
55415         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
55416         Windows.
55417         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
55419 2011-02-13  Bruno Haible  <bruno@clisp.org>
55421         mbsinit: Don't crash for a NULL argument.
55422         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
55423         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
55425 2011-02-13  Bruno Haible  <bruno@clisp.org>
55427         Don't interfere with a program's definition of __attribute__.
55428         * lib/stdio.in.h (__attribute__): Remove definition.
55429         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
55430         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
55431         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
55432         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
55433         * lib/string.in.h (__attribute__): Remove definition.
55434         Reported by Paul Eggert.
55436 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
55438         stdlib: don't get in the way of non-GCC __attribute__
55439         See thread starting at
55440         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
55441         Revert previous stdlib change, installing the following instead:
55442         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
55443         to get in the way of a non-GCC compiler that supports __attribute__.
55444         (_GL_ATTRIBUTE_RETURN): New macro.
55445         (_Exit): Use it instead of __attribute__.
55447 2011-02-12  Bruno Haible  <bruno@clisp.org>
55449         quotearg test: Avoid test failure on mingw.
55450         * tests/test-quotearg.sh: Convert the locale identifier from native
55451         Windows syntax to Unix syntax.
55453 2011-02-12  Bruno Haible  <bruno@clisp.org>
55455         setlocale: Prefer gnulib's override over libintl's override.
55456         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
55457         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
55458         GNULIB_defined_setlocale is set.
55460 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
55462         stdlib: support non-GCC __attribute__
55464         Fix a serious and tricky problem encountered when attempting to
55465         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
55466         5.5, but it crashed due to memory corruption on Solaris 10 with
55467         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
55468         bits that are otherwise zero.  This tagging is optional inside
55469         Emacs but is preferred and is used when __attribute__ ((__aligned
55470         (8))) works, as it does with both recent-enough GCC and with Sun C
55471         5.11.  However, Sun C 5.11 is not GCC and does not #define
55472         __GNUC__ and __GNUC_MINOR__.
55474         When I added the getloadavg module to Emacs, it brought in
55475         stdlib.in.h, which contained this fragment:
55477            #ifndef __attribute__
55478            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
55479            #  define __attribute__(Spec)   /* empty */
55480            # endif
55481            #endif
55483         When files that include <stdlib.h> were compiled with Sun C 5.11,
55484         the above code disabled __attribute__ ((__aligned (8))), which
55485         caused variables to not be properly aligned, which eventually led
55486         to the pointer corruption mentioned above.  (This was a bit hard
55487         to diagnose, unfortunately.)
55489         Several "#define __attribute__(X) /* empty */" code snippets need
55490         to be eradicated from Gnulib to work with non-GCC compilers that
55491         support __attribute__.  The Autoconf way to do this is to test for
55492         each kind of attribute that we want support for, and selectively
55493         enable that in source code.
55495         Fix this problem just for stdlib.h, by adding a test for the
55496         __noreturn__ attribute, and change stdlib.in.h to use that test
55497         when needed.  This technique can be easily generalized to the
55498         other *.in.h files and attributes, and a similar technique can be
55499         used for *.h and *.c files.  This patch is enough to solve the
55500         problem for Emacs + getloadavg, and I thought I'd publish it for
55501         feedback before undertaking further, similar fixes in other
55502         modules.
55504         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
55505         because it's not needed for stdlib.h.  It merely substitutes the
55506         value directly into stdlib.h.  We may well need to #define it, or
55507         similar symbols, for other modules, but it's nice to also have an
55508         option to not #define it for applications like Emacs that do not
55509         need it.
55511         * lib/stdlib.in.h (__attribute__): Do not #define.
55512         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
55513         be defined only if the _Exit module is also used.
55514         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
55515         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
55516         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
55517         platforms.
55518         * modules/_Exit (Files): Add m4/attribute.m4.
55519         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
55520         * m4/attribute.m4: New file.
55522 2011-02-12  Bruno Haible  <bruno@clisp.org>
55524         wcsrtombs: Work around bug on native Windows.
55525         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
55526         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
55527         instead of len.
55528         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
55530 2011-02-12  Bruno Haible  <bruno@clisp.org>
55532         mbsrtowcs: Work around bug on native Windows.
55533         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
55534         against mingw bug.
55535         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
55537 2011-02-12  Bruno Haible  <bruno@clisp.org>
55539         Avoid setlocale bugs in tests.
55540         * modules/btowc (Dependencies): Add setlocale.
55541         * modules/c-strcase (Dependencies): Likewise.
55542         * modules/mbmemcasecmp (Dependencies): Likewise.
55543         * modules/mbmemcasecoll (Dependencies): Likewise.
55544         * modules/mbrtowc (Dependencies): Likewise.
55545         * modules/mbscasecmp (Dependencies): Likewise.
55546         * modules/mbscasestr (Dependencies): Likewise.
55547         * modules/mbschr (Dependencies): Likewise.
55548         * modules/mbscspn (Dependencies): Likewise.
55549         * modules/mbsinit (Dependencies): Likewise.
55550         * modules/mbsncasecmp (Dependencies): Likewise.
55551         * modules/mbsnrtowcs (Dependencies): Likewise.
55552         * modules/mbspbrk (Dependencies): Likewise.
55553         * modules/mbspcasecmp (Dependencies): Likewise.
55554         * modules/mbsrchr (Dependencies): Likewise.
55555         * modules/mbsrtowcs (Dependencies): Likewise.
55556         * modules/mbsspn (Dependencies): Likewise.
55557         * modules/mbsstr (Dependencies): Likewise.
55558         * modules/nl_langinfo (Dependencies): Likewise.
55559         * modules/quotearg (Dependencies): Likewise.
55560         * modules/unicase/locale-language (Dependencies): Likewise.
55561         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
55562         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
55563         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
55564         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
55565         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
55566         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
55567         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
55568         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
55569         * modules/vasnprintf-posix (Dependencies): Likewise.
55570         * modules/wcrtomb (Dependencies): Likewise.
55571         * modules/wcsnrtombs (Dependencies): Likewise.
55572         * modules/wcsrtombs (Dependencies): Likewise.
55574 2011-02-12  Bruno Haible  <bruno@clisp.org>
55576         setlocale: Workaround native Windows bug.
55577         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
55578         succeeds but sets LC_CTYPE to "C", report a failure.
55579         * tests/test-setlocale2.sh: New file.
55580         * tests/test-setlocale2.c: New file.
55581         * modules/setlocale-tests (Files): Add the new files.
55582         (Makefile.am): Enable test-setlocale2.sh test.
55583         * doc/posix-functions/setlocale.texi: Mention workaround.
55585 2011-02-11  Bruno Haible  <bruno@clisp.org>
55587         Tests for module 'setlocale'.
55588         * modules/setlocale-tests: New file.
55589         * tests/test-setlocale1.sh: New file.
55590         * tests/test-setlocale1.c: New file.
55592         New module 'setlocale'.
55593         * lib/locale.in.h (setlocale): New declaration.
55594         * lib/setlocale.c: New file, based on
55595         gettext/gettext-runtime/intl/setlocale.c.
55596         * m4/setlocale.m4: New file.
55597         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
55598         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
55599         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
55600         REPLACE_SETLOCALE.
55601         * modules/setlocale: New file.
55602         * tests/test-locale-c++.cc: Test the declaration of setlocale.
55603         * doc/posix-functions/setlocale.texi: Mention the new module.
55605 2011-02-11  Bruno Haible  <bruno@clisp.org>
55607         Prepare for locale dependent tests on mingw.
55608         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
55609         because it has the wrong locale encoding.
55610         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
55611         French_France.1252 instead of "fr".
55612         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
55613         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
55614         because it has the wrong locale encoding.
55615         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
55616         native Windows, try Turkish_Turkey.65001.
55617         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
55618         Chinese_China.54936.
55620         Prepare for locale dependent tests on mingw.
55621         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
55622         differently.
55623         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
55624         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
55625         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
55626         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55628 2011-02-11  Eric Blake  <eblake@redhat.com>
55630         strptime: avoid compiler warnings
55631         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
55632         compiler warnings about dead code.
55633         Reported by Daniel P. Berrange.
55635 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
55637         doc: update users.txt
55638         * users.txt: Add rcs.
55640 2011-02-10  John W. Eaton  <jwe@gnu.org>
55642         doc: update users.txt
55643         * users.txt: Add octave.
55645 2011-02-10  Jim Meyering  <meyering@redhat.com>
55647         doc: update users.txt
55648         * users.txt: Add iwhd.
55650 2011-02-09  Bruno Haible  <bruno@clisp.org>
55652         gnulib-tool: Make copyright notice adjustment more robust.
55653         * gnulib-tool (func_import): In sed_transform_main_lib_file,
55654         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
55655         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
55656         License".
55657         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
55659 2011-02-06  Bruno Haible  <bruno@clisp.org>
55661         New module 'towctrans'.
55662         * modules/towctrans: New file.
55663         * lib/wctype.in.h (towctrans): New declaration.
55664         * lib/towctrans.c: New file.
55665         * lib/towctrans-impl.h: New file.
55666         * m4/towctrans.m4: New file.
55667         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
55668         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
55669         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
55670         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
55671         * doc/posix-functions/towctrans.texi: Mention the new module.
55673 2011-02-06  Bruno Haible  <bruno@clisp.org>
55675         New module 'wctrans'.
55676         * modules/wctrans: New file.
55677         * lib/wctype.in.h (wctrans): New declaration.
55678         * lib/wctrans.c: New file.
55679         * lib/wctrans-impl.h: New file.
55680         * m4/wctrans.m4: New file.
55681         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
55682         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
55683         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
55684         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
55685         * doc/posix-functions/wctrans.texi: Mention the new module.
55687 2011-02-06  Bruno Haible  <bruno@clisp.org>
55689         New module 'iswctype'.
55690         * modules/iswctype: New file.
55691         * lib/wctype.in.h (iswctype): New declaration.
55692         * lib/iswctype.c: New file.
55693         * lib/iswctype-impl.h: New file.
55694         * m4/iswctype.m4: New file.
55695         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
55696         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
55697         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
55698         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
55699         * doc/posix-functions/iswctype.texi: Mention the new module and the
55700         HP-UX 11.00 problem.
55702 2011-02-06  Bruno Haible  <bruno@clisp.org>
55704         New module 'wctype'.
55705         * modules/wctype: Change to represent the wctype() substitute.
55706         * lib/wctype.in.h (wctype): New declaration.
55707         * lib/wctype.c: New file.
55708         * lib/wctype-impl.h: New file.
55709         * m4/wctype.m4: New file.
55710         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
55711         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
55712         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
55713         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
55714         * doc/posix-functions/wctype.texi: Mention the new module and the
55715         HP-UX 11.00 problem.
55717 2011-02-06  Bruno Haible  <bruno@clisp.org>
55719         wctype-h: Ensure wctype_t and wctrans_t are defined.
55720         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
55721         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
55722         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
55723         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
55724         HAVE_WCTRANS_T.
55725         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
55727 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
55729         flock: fix license typo
55731         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
55732         omitted.
55734 2011-02-08  Bruno Haible  <bruno@clisp.org>
55736         Split large sed scripts, for HP-UX sed.
55737         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
55738         to avoid HP-UX limit of 99 commands, in the near future.
55739         * modules/stdlib (Makefile.am): Likewise.
55740         * modules/unistd (Makefile.am): Likewise.
55741         * modules/wchar (Makefile.am): Likewise.
55742         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55743         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
55744         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
55746 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
55747             Bruno Haible  <bruno@clisp.org>
55749         stdlib: improve random_r modularization
55750         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
55751         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
55752         you also need the random_r module to get this material right.
55753         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
55754         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
55755         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
55757 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
55759         stdlib: don't depend on stdint
55760         * lib/stdlib.in.h: Don't include <stdint.h> merely because
55761         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
55762         be independent of whether stdint.h is needed.
55763         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
55764         here, instead of ...
55765         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
55766         struct random_data should be using the random_r module, not just
55767         the stdlib module (which wouldn't make sense: what package needs
55768         just struct random_data without also needing random_r?).
55769         * modules/stdlib (Depends-on): Remove stdint.
55771         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
55772         See the thread rooted at
55773         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
55774         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
55775         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
55776         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
55777         __VMS)); previously it was always included (via fcntl--.h).
55778         (getloadavg): Do not use c_strtod.  Instead, approximate it by
55779         hand; this is good enough for load averages.  Also, do not use
55780         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
55781         flags directly if available and don't bother otherwise.  (Packages
55782         that need the extra reliability should use the modules that define
55783         these flags on older platforms that lack them.)
55784         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
55785         fcntl-safer.
55787 2011-02-08  Jim Meyering  <meyering@redhat.com>
55789         di-set.h, ino-map.h: add multiple-inclusion guard
55790         Technically, the guard is required only for ino-map.h, due to its
55791         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
55792         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
55793         * lib/ino-map.h: Likewise.
55795 2011-02-06  Bruno Haible  <bruno@clisp.org>
55797         iswblank: Ensure declaration on glibc systems.
55798         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
55799         * modules/iswblank (Dependencies): Add 'extensions'.
55800         * doc/posix-functions/iswblank.texi: Document the glibc problem.
55802 2011-02-06  Bruno Haible  <bruno@clisp.org>
55804         New module 'iswblank'.
55805         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
55806         * modules/iswblank: New file.
55807         * modules/wctype-h (Files): Remove lib/iswblank.c.
55808         (Makefile.am): Substitute GNULIB_ISWBLANK.
55809         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
55810         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
55811         (gl_WCTYPE_H_DEFAULTS): New macro.
55812         (gl_WCTYPE_H): Require it. Remove iswblank related code.
55813         * modules/iswblank-tests: New file.
55814         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
55815         * tests/test-wctype-h.c (main): Remove iswblank tests.
55816         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
55817         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
55818         of 'wctype-h'.
55819         * NEWS: Mention the change.
55820         * modules/mbchar (Depends-on): Add iswblank.
55822 2011-02-08  Bruno Haible  <bruno@clisp.org>
55824         di-set tests: Refactor.
55825         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
55826         unnecessary includes.
55827         (ASSERT): Remove macro.
55828         (main): Make C90 compliant by avoiding variable declaration after
55829         statement.
55830         * modules/di-set-tests (Files): Add tests/macros.h.
55832 2011-02-08  Bruno Haible  <bruno@clisp.org>
55834         ino-map tests: Refactor.
55835         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
55836         unnecessary includes.
55837         (ASSERT): Remove macro.
55838         (main): Make C90 compliant by avoiding variable declaration after
55839         statement.
55840         * modules/ino-map-tests (Files): Add tests/macros.h.
55842 2011-02-08  Jim Meyering  <meyering@redhat.com>
55844         di-set: add "const" to a cast
55845         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
55846         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
55848 2011-02-06  Bruno Haible  <bruno@clisp.org>
55850         Rename module 'wctype' to 'wctype-h'.
55851         * modules/wctype-h: Renamed from modules/wctype.
55852         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
55853         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
55854         (Files, Depends-on, Makefile.am): Update.
55855         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
55856         (Files, Makefile.am): Update.
55857         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
55858         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
55859         * doc/posix-headers/wctype.texi: Update.
55860         * doc/posix-functions/iswalnum.texi: Update.
55861         * doc/posix-functions/iswalpha.texi: Update.
55862         * doc/posix-functions/iswblank.texi: Update.
55863         * doc/posix-functions/iswcntrl.texi: Update.
55864         * doc/posix-functions/iswdigit.texi: Update.
55865         * doc/posix-functions/iswgraph.texi: Update.
55866         * doc/posix-functions/iswlower.texi: Update.
55867         * doc/posix-functions/iswprint.texi: Update.
55868         * doc/posix-functions/iswpunct.texi: Update.
55869         * doc/posix-functions/iswspace.texi: Update.
55870         * doc/posix-functions/iswupper.texi: Update.
55871         * doc/posix-functions/iswxdigit.texi: Update.
55872         * doc/posix-functions/towlower.texi: Update.
55873         * doc/posix-functions/towupper.texi: Update.
55874         * NEWS: Mention the change.
55875         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
55876         * modules/mbchar (Dependencies): Likewise.
55877         * modules/mbswidth (Dependencies): Likewise.
55878         * modules/quotearg (Dependencies): Likewise.
55879         * modules/regex (Dependencies): Likewise.
55880         * modules/wcscasecmp (Dependencies): Likewise.
55881         * modules/wcsncasecmp (Dependencies): Likewise.
55882         * modules/wcwidth (Dependencies): Likewise.
55884 2011-02-06  Bruno Haible  <bruno@clisp.org>
55886         New module 'wcswidth'.
55887         * modules/wcswidth: New file.
55888         * lib/wchar.in.h (wcswidth): New declaration.
55889         * lib/wcswidth.c: New file.
55890         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
55891         * m4/wcswidth.m4: New file.
55892         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
55893         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
55894         REPLACE_WCSWIDTH.
55895         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
55896         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
55897         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
55898         * doc/posix-functions/wcswidth.texi: Mention the new module.
55900 2011-02-06  Bruno Haible  <bruno@clisp.org>
55902         New module 'wcstok'.
55903         * modules/wcstok: New file.
55904         * lib/wchar.in.h (wcstok): New declaration.
55905         * lib/wcstok.c: New file.
55906         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
55907         * m4/wcstok.m4: New file.
55908         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
55909         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
55910         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
55911         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
55912         * doc/posix-functions/wcstok.texi: Mention the new module.
55914 2011-02-06  Bruno Haible  <bruno@clisp.org>
55916         New module 'wcsstr'.
55917         * modules/wcsstr: New file.
55918         * lib/wchar.in.h (wcsstr): New declaration.
55919         * lib/wcsstr.c: New file.
55920         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
55921         * m4/wcsstr.m4: New file.
55922         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
55923         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
55924         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
55925         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
55926         * doc/posix-functions/wcsstr.texi: Mention the new module.
55928 2011-02-06  Bruno Haible  <bruno@clisp.org>
55930         New module 'wcspbrk'.
55931         * modules/wcspbrk: New file.
55932         * lib/wchar.in.h (wcspbrk): New declaration.
55933         * lib/wcspbrk.c: New file.
55934         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
55935         * m4/wcspbrk.m4: New file.
55936         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
55937         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
55938         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
55939         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
55940         * doc/posix-functions/wcspbrk.texi: Mention the new module.
55942 2011-02-06  Bruno Haible  <bruno@clisp.org>
55944         New module 'wcsspn'.
55945         * modules/wcsspn: New file.
55946         * lib/wchar.in.h (wcsspn): New declaration.
55947         * lib/wcsspn.c: New file.
55948         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
55949         * m4/wcsspn.m4: New file.
55950         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
55951         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
55952         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
55953         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
55954         * doc/posix-functions/wcsspn.texi: Mention the new module.
55956 2011-02-06  Bruno Haible  <bruno@clisp.org>
55958         New module 'wcscspn'.
55959         * modules/wcscspn: New file.
55960         * lib/wchar.in.h (wcscspn): New declaration.
55961         * lib/wcscspn.c: New file.
55962         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
55963         * m4/wcscspn.m4: New file.
55964         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
55965         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
55966         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
55967         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
55968         * doc/posix-functions/wcscspn.texi: Mention the new module.
55970 2011-02-06  Bruno Haible  <bruno@clisp.org>
55972         New module 'wcsrchr'.
55973         * modules/wcsrchr: New file.
55974         * lib/wchar.in.h (wcsrchr): New declaration.
55975         * lib/wcsrchr.c: New file.
55976         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
55977         * m4/wcsrchr.m4: New file.
55978         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
55979         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
55980         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
55981         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
55982         * doc/posix-functions/wcsrchr.texi: Mention the new module.
55984 2011-02-06  Bruno Haible  <bruno@clisp.org>
55986         New module 'wcschr'.
55987         * modules/wcschr: New file.
55988         * lib/wchar.in.h (wcschr): New declaration.
55989         * lib/wcschr.c: New file.
55990         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
55991         * m4/wcschr.m4: New file.
55992         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
55993         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
55994         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
55995         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
55996         * doc/posix-functions/wcschr.texi: Mention the new module.
55998 2011-02-06  Bruno Haible  <bruno@clisp.org>
56000         New module 'wcsdup'.
56001         * modules/wcsdup: New file.
56002         * lib/wchar.in.h (wcsdup): New declaration.
56003         * lib/wcsdup.c: New file.
56004         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
56005         * m4/wcsdup.m4: New file.
56006         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
56007         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
56008         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
56009         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
56010         * doc/posix-functions/wcsdup.texi: Mention the new module.
56012 2011-02-06  Bruno Haible  <bruno@clisp.org>
56014         New module 'wcsxfrm'.
56015         * modules/wcsxfrm: New file.
56016         * lib/wchar.in.h (wcsxfrm): New declaration.
56017         * lib/wcsxfrm.c: New file.
56018         * lib/wcsxfrm-impl.h: New file.
56019         * m4/wcsxfrm.m4: New file.
56020         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
56021         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
56022         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
56023         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
56024         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
56026 2011-02-06  Bruno Haible  <bruno@clisp.org>
56028         New module 'wcscoll'.
56029         * modules/wcscoll: New file.
56030         * lib/wchar.in.h (wcscoll): New declaration.
56031         * lib/wcscoll.c: New file.
56032         * lib/wcscoll-impl.h: New file.
56033         * m4/wcscoll.m4: New file.
56034         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
56035         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
56036         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
56037         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
56038         * doc/posix-functions/wcscoll.texi: Mention the new module.
56040 2011-02-06  Bruno Haible  <bruno@clisp.org>
56042         New module 'wcsncasecmp'.
56043         * modules/wcsncasecmp: New file.
56044         * lib/wchar.in.h (wcsncasecmp): New declaration.
56045         * lib/wcsncasecmp.c: New file.
56046         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
56047         * m4/wcsncasecmp.m4: New file.
56048         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
56049         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
56050         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
56051         HAVE_WCSNCASECMP.
56052         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
56053         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
56055 2011-02-06  Bruno Haible  <bruno@clisp.org>
56057         New module 'wcscasecmp'.
56058         * modules/wcscasecmp: New file.
56059         * lib/wchar.in.h (wcscasecmp): New declaration.
56060         * lib/wcscasecmp.c: New file.
56061         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
56062         * m4/wcscasecmp.m4: New file.
56063         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
56064         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
56065         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
56066         HAVE_WCSCASECMP.
56067         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
56068         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
56070 2011-02-05  Bruno Haible  <bruno@clisp.org>
56072         New module 'wcsncmp'.
56073         * modules/wcsncmp: New file.
56074         * lib/wchar.in.h (wcsncmp): New declaration.
56075         * lib/wcsncmp.c: New file.
56076         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
56077         * m4/wcsncmp.m4: New file.
56078         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
56079         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
56080         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
56081         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
56082         * doc/posix-functions/wcsncmp.texi: Mention the new module.
56084 2011-02-05  Bruno Haible  <bruno@clisp.org>
56086         New module 'wcscmp'.
56087         * modules/wcscmp: New file.
56088         * lib/wchar.in.h (wcscmp): New declaration.
56089         * lib/wcscmp.c: New file.
56090         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
56091         * m4/wcscmp.m4: New file.
56092         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
56093         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
56094         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
56095         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
56096         * doc/posix-functions/wcscmp.texi: Mention the new module.
56098 2011-02-05  Bruno Haible  <bruno@clisp.org>
56100         New module 'wcsncat'.
56101         * modules/wcsncat: New file.
56102         * lib/wchar.in.h (wcsncat): New declaration.
56103         * lib/wcsncat.c: New file.
56104         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
56105         * m4/wcsncat.m4: New file.
56106         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
56107         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
56108         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
56109         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
56110         * doc/posix-functions/wcsncat.texi: Mention the new module.
56112 2011-02-05  Bruno Haible  <bruno@clisp.org>
56114         New module 'wcscat'.
56115         * modules/wcscat: New file.
56116         * lib/wchar.in.h (wcscat): New declaration.
56117         * lib/wcscat.c: New file.
56118         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
56119         * m4/wcscat.m4: New file.
56120         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
56121         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
56122         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
56123         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
56124         * doc/posix-functions/wcscat.texi: Mention the new module.
56126 2011-02-05  Bruno Haible  <bruno@clisp.org>
56128         New module 'wcpncpy'.
56129         * modules/wcpncpy: New file.
56130         * lib/wchar.in.h (wcpncpy): New declaration.
56131         * lib/wcpncpy.c: New file.
56132         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
56133         * m4/wcpncpy.m4: New file.
56134         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
56135         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
56136         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
56137         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
56138         * doc/posix-functions/wcpncpy.texi: Mention the new module.
56140 2011-02-05  Bruno Haible  <bruno@clisp.org>
56142         New module 'wcsncpy'.
56143         * modules/wcsncpy: New file.
56144         * lib/wchar.in.h (wcsncpy): New declaration.
56145         * lib/wcsncpy.c: New file.
56146         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
56147         * m4/wcsncpy.m4: New file.
56148         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
56149         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
56150         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
56151         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
56152         * doc/posix-functions/wcsncpy.texi: Mention the new module.
56154 2011-02-05  Bruno Haible  <bruno@clisp.org>
56156         New module 'wcpcpy'.
56157         * modules/wcpcpy: New file.
56158         * lib/wchar.in.h (wcpcpy): New declaration.
56159         * lib/wcpcpy.c: New file.
56160         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
56161         * m4/wcpcpy.m4: New file.
56162         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
56163         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
56164         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
56165         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
56166         * doc/posix-functions/wcpcpy.texi: Mention the new module.
56168 2011-02-05  Bruno Haible  <bruno@clisp.org>
56170         New module 'wcscpy'.
56171         * modules/wcscpy: New file.
56172         * lib/wchar.in.h (wcscpy): New declaration.
56173         * lib/wcscpy.c: New file.
56174         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
56175         * m4/wcscpy.m4: New file.
56176         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
56177         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
56178         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
56179         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
56180         * doc/posix-functions/wcscpy.texi: Mention the new module.
56182 2011-02-05  Bruno Haible  <bruno@clisp.org>
56184         New module 'wcsnlen'.
56185         * modules/wcsnlen: New file.
56186         * lib/wchar.in.h (wcsnlen): New declaration.
56187         * lib/wcsnlen.c: New file.
56188         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
56189         * m4/wcsnlen.m4: New file.
56190         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
56191         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
56192         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
56193         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
56194         * doc/posix-functions/wcsnlen.texi: Mention the new module.
56196 2011-02-05  Bruno Haible  <bruno@clisp.org>
56198         New module 'wcslen'.
56199         * modules/wcslen: New file.
56200         * lib/wchar.in.h (wcslen): New declaration.
56201         * lib/wcslen.c: New file.
56202         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
56203         * m4/wcslen.m4: New file.
56204         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
56205         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
56206         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
56207         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
56208         * doc/posix-functions/wcslen.texi: Mention the new module.
56210 2011-02-05  Bruno Haible  <bruno@clisp.org>
56212         New module 'wmemset'.
56213         * modules/wmemset: New file.
56214         * lib/wchar.in.h (wmemset): New declaration.
56215         * lib/wmemset.c: New file.
56216         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
56217         * m4/wmemset.m4: New file.
56218         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
56219         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
56220         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
56221         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
56222         * doc/posix-functions/wmemset.texi: Mention the new module.
56224 2011-02-05  Bruno Haible  <bruno@clisp.org>
56226         New module 'wmemmove'.
56227         * modules/wmemmove: New file.
56228         * lib/wchar.in.h (wmemmove): New declaration.
56229         * lib/wmemmove.c: New file.
56230         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
56231         * m4/wmemmove.m4: New file.
56232         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
56233         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
56234         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
56235         HAVE_WMEMMOVE.
56236         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
56237         * doc/posix-functions/wmemmove.texi: Mention the new module.
56239 2011-02-05  Bruno Haible  <bruno@clisp.org>
56241         New module 'wmemcpy'.
56242         * modules/wmemcpy: New file.
56243         * lib/wchar.in.h (wmemcpy): New declaration.
56244         * lib/wmemcpy.c: New file.
56245         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
56246         * m4/wmemcpy.m4: New file.
56247         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
56248         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
56249         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
56250         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
56251         * doc/posix-functions/wmemcpy.texi: Mention the new module.
56253 2011-02-05  Bruno Haible  <bruno@clisp.org>
56255         New module 'wmemcmp'.
56256         * modules/wmemcmp: New file.
56257         * lib/wchar.in.h (wmemcmp): New declaration.
56258         * lib/wmemcmp.c: New file.
56259         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
56260         * m4/wmemcmp.m4: New file.
56261         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
56262         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
56263         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
56264         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
56265         * doc/posix-functions/wmemcmp.texi: Mention the new module.
56267 2011-02-07  Jim Meyering  <meyering@redhat.com>
56269         di-set, ino-map: new modules, from coreutils
56270         * lib/di-set.c: New file.
56271         * lib/di-set.h: Likewise.
56272         * lib/ino-map.c: Likewise.
56273         * lib/ino-map.h: Likewise.
56274         * modules/di-set: Likewise.
56275         * modules/di-set-tests: Likewise.
56276         * modules/ino-map: Likewise.
56277         * modules/ino-map-tests: Likewise.
56278         * tests/test-di-set.c: Likewise.
56279         * tests/test-ino-map.c: Likewise.
56281 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
56283         getloadavg: merge minor changes from Emacs
56285         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
56286         (getloadavg): Use memset, not bzero.
56288         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
56289         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
56290         clash (bug#86).
56292 2010-11-14  Bruno Haible  <bruno@clisp.org>
56294         Allow multiple gnulib generated replacements to coexist.
56295         * lib/getopt.in.h (struct option): Avoid identical redefinition.
56296         * lib/inttypes.in.h (imaxdiv_t): Likewise.
56297         * lib/langinfo.in.h (nl_item): Likewise.
56298         * lib/math.in.h (_NaN, NAN): Likewise.
56299         * lib/netdb.in.h (struct addrinfo): Likewise.
56300         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
56301         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
56302         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
56303         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
56304         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
56305         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
56306         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
56307         pthread_mutexattr_init, pthread_mutexattr_settype,
56308         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
56309         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
56310         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
56311         pthread_spin_trylock, pthread_spin_unlock): Likewise.
56312         * lib/sched.in.h (struct sched_param): Likewise.
56313         * lib/se-selinux.in.h (security_class_t, security_context_t,
56314         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
56315         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
56316         lsetfilecon, fsetfilecon, security_check_context,
56317         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
56318         Likewise.
56319         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
56320         Likewise.
56321         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
56322         _gl_function_taking_int_returning_void_t, union sigval,
56323         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
56324         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
56325         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
56326         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
56327         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
56328         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
56329         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
56330         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
56331         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
56332         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
56333         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
56334         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
56335         socklen_t, rpl_fd_isset): Likewise.
56336         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
56337         * lib/sys_time.in.h (struct timeval): Likewise.
56338         * lib/sys_times.in.h (struct tms): Likewise.
56339         * lib/sys_utsname.in.h (struct utsname):
56340         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
56341         * lib/unistd.in.h (getpagesize): Likewise.
56342         * lib/wchar.in.h (mbstate_t): Likewise.
56343         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
56344         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
56345         towlower, towupper): Likewise.
56346         Reported by Sam Steingold <sds@gnu.org>.
56348 2011-02-05  Eric Blake  <eblake@redhat.com>
56350         unsetenv: work around Haiku issues
56351         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
56352         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
56354 2010-12-30  Bruce Korb  <bkorb@gnu.org>
56356         libposix: avoid calling error() within libposix
56357         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
56358         is defined.
56360 2011-02-05  Eric Blake  <eblake@redhat.com>
56362         strerror_r-posix: port to cygwin
56363         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
56364         implementation.
56365         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
56366         * tests/test-strerror_r.c (main): Fix test.
56367         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
56368         issue.
56370 2011-02-05  Bruno Haible  <bruno@clisp.org>
56372         New module 'wmemchr'.
56373         * modules/wmemchr: New file.
56374         * lib/wchar.in.h (wmemchr): New declaration.
56375         * lib/wmemchr.c: New file.
56376         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
56377         * m4/wmemchr.m4: New file.
56378         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
56379         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
56380         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
56381         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
56382         * doc/posix-functions/wmemchr.texi: Mention the new module.
56384 2011-02-04  Eric Blake  <eblake@redhat.com>
56386         fdopendir: detect FreeBSD bug
56387         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
56388         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
56390 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
56392         stdbool: do not define HAVE_STDBOOL_H
56393         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
56394         AC_HEADER_STDBOOL.  All uses changed.  Do not define
56395         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
56396         imported from the latest Autoconf git.  It was motivated by Emacs,
56397         which uses gnulib but does not need HAVE_STDBOOL_H.
56399 2011-02-04  Bruno Haible  <bruno@clisp.org>
56401         wcsnrtombs: Prepare for new module wwcsnrtombs.
56402         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
56403         * lib/wcsnrtombs.c: Include it.
56404         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
56406         wcsrtombs: Prepare for new module wwcsrtombs.
56407         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
56408         * lib/wcsrtombs.c: Include it.
56409         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
56411         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
56412         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
56413         * lib/mbsnrtowcs.c: Include it.
56414         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
56416         mbsrtowcs: Prepare for new module mbsrtowwcs.
56417         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
56418         * lib/mbsrtowcs.c: Include it.
56419         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
56421 2011-02-04  Bruno Haible  <bruno@clisp.org>
56423         vasnprintf: Reduce use of malloc for small format strings.
56424         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
56425         (arguments): Add room for the first 7 arguments.
56426         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
56427         (char_directives, u8_directives, u16_directives, u32_directives): Add
56428         room for the first 7 directives.
56429         * lib/printf-parse.c: Include <string.h>.
56430         (PRINTF_PARSE): Change memory handling code so that it uses the first
56431         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
56432         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
56433         Reported by Pádraig Brady <P@draigbrady.com>.
56435 2011-01-31  Eric Blake  <eblake@redhat.com>
56437         dup2: work around Haiku bug
56438         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
56439         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
56440         * doc/posix-functions/dup2.texi (dup2): Document the bug.
56441         * tests/test-dup2.c (main): Enhance test.
56443 2011-01-31  Simon Josefsson  <simon@josefsson.org>
56445         doc: off_t is not available in eglibc 2.11.2 stdio.h.
56446         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
56447         declared by eglibc 2.11.2.
56448         * lib/stdio.in.h: Likewise.
56450 2011-01-31  Eric Blake  <eblake@redhat.com>
56452         ignore-value: add missing test dependency
56453         * tests/test-ignore-value.c: Revert previous change; stdio.h
56454         provides off_t.
56455         * modules/ignore-value-tests (Depends-on): Add missing dependency.
56457 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
56459         mktime: clarify long_int width checking
56460         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
56461         the top level, to make it clearer that the assumption about
56462         long_int width is being checked.  See
56463         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
56465 2011-01-30  Simon Josefsson  <simon@josefsson.org>
56467         ignore-value: Fix self-test.
56468         * tests/test-ignore-value.c: Include sys/types.h for off_t.
56470 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
56472         TYPE_MAXIMUM: avoid theoretically undefined behavior
56473         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
56474         negative number, which the C Standard says has undefined behavior.
56475         In practice this is not a problem, but might as well do it by the book.
56476         Reported by Rich Felker and Eric Blake; see
56477         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
56478         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
56479         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
56480         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
56481         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
56482         * m4/stdint.m4 (gl_STDINT_H): Likewise.
56483         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
56485         mktime: #undef mktime before #defining it
56486         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
56488         mktime: systematically normalize tm_isdst comparisons
56489         * lib/mktime.c (isdst_differ): New function.
56490         (__mktime_internal): Use it systematically for all isdst comparisons.
56491         This completes the fix for libc BZ #6723, and removes the need for
56492         normalizing tm_isdst.  See
56493         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
56494         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
56496         mktime: fix some integer overflow issues and sidestep the rest
56498         This was prompted by a bug report by Benjamin Lindner for MinGW
56499         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
56500         His bug is due to signed integer overflow (0 - INT_MIN), and I
56501         I scanned through mktime.c looking for other integer overflow
56502         problems, fixing all the bugs I found.
56504         Although the C Standard says the resulting code is still not safe
56505         in the presence of integer overflow, in practice it should be good
56506         enough for all real-world two's-complement implementations, except
56507         for debugging environments that deliberately trap on integer
56508         overflow (e.g., gcc -ftrapv).
56510         * lib/mktime.c (WRAPV): New macro.
56511         (SHR): Also check that long_int and time_t shift right in the
56512         usual way, before using the fast-but-unportable method.
56513         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
56514         used.  The code already assumed two's complement, so there's
56515         no need to test for alternatives.  All uses removed.
56516         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
56517         the C standard.  Problem reported by Rich Felker in
56518         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
56519         (twos_complement_arithmetic): Also check long_int and time_t.
56520         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
56521         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
56522         (__mktime_internal): Avoid integer overflow with unary subtraction
56523         in two instances where -1 - X is an adequate replacement for -X,
56524         since the calculations are approximate.
56526 2011-01-29  Eric Blake  <eblake@redhat.com>
56528         mktime: avoid infinite loop
56529         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
56530         type; behavior is still undefined but portable to all known targets.
56531         Reported by Rich Felker.
56533 2011-01-29  Simon Josefsson  <simon@josefsson.org>
56535         rename, unlink, same-inode: Relicense.
56536         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
56537         * modules/unlink (License): Likewise.
56538         * modules/same-inode (License): Likewise.
56540 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56542         mktime: avoid problems on NetBSD 5 / i386
56543         * lib/mktime.c (long_int): New type.  This works around a problem
56544         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
56545         but time_t is 64 bits, and where I expect the existing code is
56546         wrong in some cases.
56547         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
56548         (ydhms_diff): Bring back the compile-time check for wide-enough
56549         year and yday.
56551         mktime: fix misspelling in comment
56552         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
56553         This merges all recent glibc changes of importance.
56555 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56557         move-if-change: cope with concurrent mv of identical file.
56558         * build-aux/move-if-change (CMPPROG): Accept environment
56559         variable as an override for `cmp'.
56560         (usage): Document CMPPROG.
56561         Adjust comparison to drop stdout.  Cope with failure of mv if
56562         the target file exists and is identical to the source, for
56563         parallel builds.
56564         Report from H.J. Lu against binutils in PR binutils/12283.
56566 2011-01-28  Bruce Korb  <bkorb@gnu.org>
56568         * users.txt: Mention sharutils.
56570 2011-01-28  Simon Josefsson  <simon@josefsson.org>
56572         * users.txt: Mention OATH Toolkit.
56574 2011-01-27  Bruno Haible  <bruno@clisp.org>
56576         Prepare for supporting FreeBSD 10.
56577         * build-aux/config.libpath: Remove handling of freebsd1*.
56579 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
56581         Prepare for supporting FreeBSD 10.
56582         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
56583         match FreeBSD 10.0.
56585 2011-01-27  Bruno Haible  <bruno@clisp.org>
56587         vma-iter, get-rusage-as: Add OpenBSD support.
56588         * modules/vma-iter (configure.ac): Test for mquery.
56589         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
56590         * lib/vma-iter.c: Include <sys/mman.h>.
56591         (vma_iterate): Add an implementation based on mquery().
56592         * lib/resource-ext.h (get_rusage_as): Update comments.
56593         * lib/get-rusage-as.c: Likewise.
56594         * lib/get-rusage-data.c: Likewise.
56596 2011-01-26  Karl Berry  <karl@gnu.org>
56598         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
56599         variables to make it easier to override the makeinfo program used.
56601 2011-01-26  Eric Blake  <eblake@redhat.com>
56603         fcntl: work around Haiku F_DUPFD bugs
56604         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
56605         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
56606         cloexec bit on duplication.
56607         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
56609 2011-01-26  Bruno Haible  <bruno@clisp.org>
56611         Enable memory leak tests on AIX.
56612         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
56613         * tests/test-fprintf-posix3.c (main): Likewise.
56615 2011-01-26  Bruno Haible  <bruno@clisp.org>
56617         Tests for module 'get-rusage-data'.
56618         * modules/get-rusage-data-tests: New file.
56619         * tests/test-get-rusage-data.c: New file.
56621         New module 'get-rusage-data'.
56622         * lib/resource-ext.h (get_rusage_data): New declaration.
56623         * lib/get-rusage-data.c: New file.
56624         * modules/get-rusage-data: New file.
56626 2011-01-25  Bruno Haible  <bruno@clisp.org>
56628         get-rusage-as: Allow for easier testing.
56629         * lib/resource-ext.h (get_rusage_as): Add comment.
56630         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
56631         (main): New function for interactive testing.
56633 2011-01-25  Bruno Haible  <bruno@clisp.org>
56635         vma-iter: Treat Haiku like BeOS.
56636         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
56637         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
56639 2011-01-25  Eric Blake  <eblake@redhat.com>
56641         c-stack: fix regression on cygwin when libsigsegv is present
56642         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
56644 2011-01-24  Bruno Haible  <bruno@clisp.org>
56646         vma-iter: Avoid empty intervals.
56647         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
56648         on an empty interval.
56650 2011-01-24  Jim Meyering  <meyering@redhat.com>
56652         u64: remove unnecessary #include
56653         * lib/u64.h: Don't include <stddef.h>.  It was not used.
56655 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56657         Allow the user to avoid the HAVE_RAW_DECL_* macros.
56658         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
56660 2011-01-23  Bruno Haible  <bruno@clisp.org>
56662         New module 'vma-iter'.
56663         * lib/vma-iter.h: New file.
56664         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
56665         * modules/vma-iter: New file.
56666         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
56667         for get_rusage_as_via_iterator.
56668         (vma_iterate_callback): New function.
56669         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
56670         * modules/get-rusage-as (Depends-on): Add vma-iter.
56672 2011-01-23  Bruno Haible  <bruno@clisp.org>
56674         uninorm: Tweak includes.
56675         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
56676         Reported by Jim Meyering.
56678 2011-01-23  Bruno Haible  <bruno@clisp.org>
56680         get-rusage-as: Improve on NetBSD.
56681         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
56682         /proc, like on FreeBSD.
56684 2011-01-23  Jim Meyering  <meyering@redhat.com>
56686         xreadlink.h: remove unnecessary #include
56687         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
56689         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
56690         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
56692 2011-01-23  Bruno Haible  <bruno@clisp.org>
56694         get-rusage-as: Fix bug.
56695         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
56696         original limit when aborting the first loop.
56698 2011-01-23  Bruno Haible  <bruno@clisp.org>
56700         wctype: Ensure valid C syntax.
56701         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
56702         unconditionally, instead of gl_NEXT_HEADERS conditionally.
56704 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
56706         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
56707         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
56708         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
56709         as they are needed only for configure's test case.
56710         This removes two unnecessary symbols from config.h.
56712         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
56713         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
56714         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
56715         AC_CHECK_HEADERS_ONCE on a header that we also invoke
56716         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
56717         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
56718         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
56719         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
56720         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
56721         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
56722         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
56723         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56724         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
56725         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
56726         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
56727         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
56728         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
56729         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
56731 2011-01-21  Eric Blake  <eblake@redhat.com>
56733         maintainer-makefile: work with older git for submodule check
56734         * top/maint.mk (public-submodule-commit): Rewrite to avoid
56735         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
56736         Reported by Matthias Bolte.
56738         bootstrap: minor portability fixes
56739         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
56740         (usage): Omit leading capital and trailing . on help phrases, per
56741         GNU Coding Standards.
56742         (check_versions, top level): Prefix messages with script name.
56744 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
56746         bootstrap: support --no-git option
56747         * build-aux/bootstrap: Add --no-git option, to be used when
56748         --gnulib-srcdir points to the exact desired checkout.
56750 2011-01-21  Eric Blake  <eblake@redhat.com>
56752         strerror_r-posix: work with glibc 2.13
56753         * lib/strerror_r.c (strerror_r): Fix return type.
56755 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56756             Bruno Haible  <bruno@clisp.org>
56758         uN_strstr: New unit tests.
56759         * modules/unistr/u8-strstr-tests: New file.
56760         * modules/unistr/u16-strstr-tests: New file.
56761         * modules/unistr/u32-strstr-tests: New file.
56762         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
56763         * tests/unistr/test-u8-strstr.c: New file.
56764         * tests/unistr/test-u16-strstr.c: New file.
56765         * tests/unistr/test-u32-strstr.c: New file.
56767 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56768             Bruno Haible  <bruno@clisp.org>
56770         Make uN_strstr functions O(n) worst-case.
56771         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
56772         16-bit and 32-bit unit cases, use the unibyte algorithm from
56773         lib/mbsstr.c.
56774         * lib/unistr/u8-strstr.c: Include <string.h>.
56775         (UNIT_IS_UINT8_T): New macro.
56776         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
56777         (U_STRLEN, U_STRNLEN): New macros.
56778         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
56779         (U_STRLEN, U_STRNLEN): New macros.
56780         * modules/unistr/u8-strstr (Depends-on): Add strstr.
56781         (configure.ac): Update required libunistring version.
56782         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
56783         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
56784         malloca.
56785         (configure.ac): Update required libunistring version.
56786         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
56787         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
56788         malloca.
56789         (configure.ac): Update required libunistring version.
56791 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56792             Bruno Haible  <bruno@clisp.org>
56794         Prepare for faster uN_strstr functions.
56795         * lib/str-kmp.h: Support definable UNITs.
56796         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
56797         needle_len argument.
56798         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
56799         * lib/mbscasestr.c (mbscasestr): Likewise.
56801 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56803         malloca-tests: make faster by unsetting MALLOC_PERTURB_
56804         * tests/test-malloca.c (main): Unset the environment variable
56805         to greatly speed up the test.
56806         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
56807         * modules/malloca-tests: Depend on unsetenv.
56809 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56811         ignore-value: remove stdint dependency
56812         * lib/ignore-value.h: Remove <stdint.h>
56813         * modules/ignore-value: Remove stdint dependency.
56815 2011-01-21  Jim Meyering  <meyering@redhat.com>
56817         maint.mk: adjust variable name to be consistent with other gl_ vars
56818         * top/maint.mk (gl_public_submodule_commit): Rename the variable
56819         to be lower case.
56821 2011-01-20  Jim Meyering  <meyering@redhat.com>
56823         maint.mk: make "check" depend on public-submodule-commit by default
56824         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
56826 2011-01-20  Bruno Haible  <bruno@clisp.org>
56828         mbfile, mbiter: Complete change from 2008-12-21.
56829         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
56830         * m4/mbiter.m4 (gl_MBITER): Likewise.
56832 2011-01-20  Jim Meyering  <meyering@redhat.com>
56834         init.sh: insert space between each function name and "()"
56835         * tests/init.sh: Make it a little easier to see that a function's
56836         name is "warn_", and not "warn" when looking at the first part of
56837         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
56839 2011-01-20  Jim Meyering  <meyering@redhat.com>
56841         mountlist: clean up code formatting
56842         * lib/mountlist.c (read_file_system_list): Split a long line,
56843         correct bracing style, use NULL in place of "(struct statfs *)0",
56844         don't parenthesize return value, add spaces around "=" and after
56845         ";-in-for-stmt".
56847 2011-01-14  Markus Duft  <mduft@gentoo.org>
56849         mountlist: add support for Interix
56850         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
56851         Apply statvfs to all entries of /dev/fs.
56852         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
56853         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
56855 2011-01-20  Jim Meyering  <meyering@redhat.com>
56857         maint.mk: improve the public-submodule-commit rule
56858         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
56859         to suppress printing of its commands... unless V=1.
56860         Add git submodule's --quiet option to suppress printing of e.g.,
56861         "Entering gnulib" output.
56862         "cd" into $(srcdir) before running git submodule.
56864 2011-01-20  Bruno Haible  <bruno@clisp.org>
56866         include_next: Fix bug introduced on 2011-01-18.
56867         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
56868         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
56869         ac_cv_header_... variable if the second argument is not 'check'.
56870         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
56871         gl_NEXT_HEADERS_INTERNAL.
56873 2011-01-20  Bruno Haible  <bruno@clisp.org>
56875         Allow the user to avoid the GNULIB_TEST_* macros.
56876         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
56877         Suggested by Paul Eggert.
56879 2011-01-14  Jim Meyering  <meyering@redhat.com>
56881         bootstrap: avoid failure when there is no .gitmodules file
56882         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
56883         has been assigned to, even when its value is the empty string.
56884         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
56885         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
56886         Reported by John W. Eaton <jwe@gnu.org>.
56888 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
56890         assume <ctype.h>, ..., <time.h> exist
56891         For years gnulib has been assuming the existence of the headers
56892         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
56893         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
56894         them, since they don't appear to be needed.
56895         * README (Portability guidelines): Document this.
56896         * lib/flock.c: Assume <fcntl.h> exists.
56897         * lib/regex_internal.h: Assume <locale.h> exists.
56898         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
56899         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
56900         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
56901         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
56902         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
56903         * m4/regex.m4 (gl_REGEX): Likewise.
56904         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
56905         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
56906         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
56907         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
56908         * tests/test-argp.c: Likewise.
56909         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
56911         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
56912         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
56913         AA_APPLE_UNIVERSAL_BUILD.  See
56914         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
56915         * NEWS: Document this.
56917 2011-01-19  Eric Blake  <eblake@redhat.com>
56919         c-stack: assume stack overflow if SA_SIGINFO unsupported
56920         * lib/c-stack.c (SIGACTION_WORKS): Rename...
56921         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
56922         sigaction will work.
56923         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
56924         behavior match Linux.
56925         * tests/test-c-stack.c (main): Prefer NULL for pointers.
56927         stdbool-tests: accommodate Haiku
56928         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
56930         binary-io: fix O_TEXT on Haiku
56931         * modules/binary-io (Depends-on): Add fcntl-h.
56932         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
56933         than blindly undefining O_TEXT.
56934         Reported by Scott McCreary.
56936 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
56938         include_next: do not check for standard headers like stddef.h
56940         I found this problem when modifying Emacs to use gnulib.
56941         I noticed that it added HAVE_STDDEF_H to config.h, even though
56942         gnulib always assumes <stddef.h> exists as per README and this
56943         symbol is unnecessary.
56944         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
56945         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
56946         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
56947         faster for headers like stddef.h that are known to exist.
56948         (gl_CHECK_NEXT_HEADERS): Use it.
56949         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
56950         rather than gl_CHECK_NEXT_HEADERS.
56951         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
56952         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
56954 2011-01-18  Eric Blake  <eblake@redhat.com>
56956         ansi-c++-opt: skip C++ dependency style if C++ is unused
56957         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
56958         tests when we know C++ compilation is not desired.
56959         Reported by Scott McCreary.
56961 2011-01-18  Bruno Haible  <bruno@clisp.org>
56963         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
56964         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
56965         (main): Perform test also when getrlimit and setrlimit don't exist or
56966         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
56967         limiting the address space size using setrlimit, compare the address
56968         space size before and after the test.
56969         * tests/test-dprintf-posix2.c: Likewise.
56970         * tests/test-fprintf-posix3.sh: Update skip messages.
56971         * tests/test-dprintf-posix2.sh: Likewise.
56972         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
56973         * modules/dprintf-posix-tests (Depends-on): Likewise.
56974         Reported by Bruce Korb <bkorb@gnu.org> and
56975         Gary V. Vaughan <gary@gnu.org>.
56977 2011-01-18  Bruno Haible  <bruno@clisp.org>
56979         get-rusage-as: Improvement for Cygwin.
56980         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
56981         areas that are merely reserved.
56983 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
56985         strftime: remove dependencies on multibyte modules
56987         strftime depended on mbrlen, mbsinit, and wchar, but these modules
56988         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
56989         only if __osf__ is defined, and I suspect OSF doesn't need these
56990         other modules.  If my guess is wrong, we'll need to come up with a
56991         variant of strftime that doesn't need the multibyte modules.
56993         I discovered this problem when attempting modify Emacs to use the
56994         strftime module.  With the previous gnulib, this caused Emacs to
56995         need 31 new files, ranging from lib/config.charset to
56996         m4/wint_t.m4.  This was overkill and I expect would be offputting
56997         to the Emacs maintainers.  After this change, only 6 new files are
56998         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
56999         stdbool.m4, and tm_gmtoff.m4.
57001         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
57002         Suggested by Bruno Haible in
57003         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
57004         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
57005         and do not check for wchar.h.
57006         * modules/strftime (Files): Remove m4/mbstate_t.m4.
57007         (Depends-on): Remove mbrlen, mbsinit, wchar.
57009 2011-01-18  Bruno Haible  <bruno@clisp.org>
57011         Tests for module 'get-rusage-as'.
57012         * modules/get-rusage-as-tests: New file.
57013         * tests/test-get-rusage-as.c: New file.
57015         New module 'get-rusage-as'.
57016         * modules/get-rusage-as: New file.
57017         * lib/resource-ext.h: New file.
57018         * lib/get-rusage-as.c: New file.
57020 2011-01-17  Eric Blake  <eblake@redhat.com>
57022         sigaction: relax license from LGPLv3+ to LGPLv2+
57023         * modules/sigaction (License): Relax to LGPLv2+.
57025 2011-01-14  Bruno Haible  <bruno@clisp.org>
57027         filemode: Make function declarations usable in C++ mode.
57028         * lib/filemode.h: Enclose function declarations in extern "C" block.
57029         Reported by John W. Eaton <jwe@gnu.org>.
57031 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
57033         save-cwd: no longer include "xgetcwd.h"
57034         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
57035         This avoids a compilation failure in projects that use save-cwd
57036         without also using the xgetcwd module.
57038 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
57040         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
57041         This is so that a program like Emacs, which needs only dtoastr,
57042         does not have to bother with distributing and compiling ftoastr
57043         and ldtoastr.
57044         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
57045         * modules/dtoastr, modules/ldtoastr: New files.
57046         * modules/ftoastr: Now works just for 'float'.
57047         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
57048         (Makefile.am): Remove ftoastr.h (not needed and no effect),
57049         dtoastr.c, ldtoastr.c.
57051 2011-01-11  Jim Meyering  <meyering@redhat.com>
57053         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
57054         There is no need to work around the lack of the fchdir function,
57055         since gnulib can now provide a replacement when required.
57056         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
57057         * modules/save-cwd (Depends-on): Add fchdir.
57059 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
57061         openat, save-cwd: avoid xmalloc
57063         This removes a direct (but undocumented) dependency of openat on
57064         xalloc, along with an indirect dependency via save-cwd.  It also
57065         removes a dependency of save-cwd on xgetcwd, and thereby
57066         indirectly on xalloc.  This change causes the openat substitute
57067         to fall back on save_cwd when memory is tight, and for save_cwd to
57068         fail instead of dying when memory is tight, but that's good enough.
57069         Problem and initial idea for fix reported by Bastien Roucaries in
57070         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
57072         * lib/openat-proc.c: Include stdlib.h (for malloc), not
57073         xalloc.h (for xmalloc).
57074         (openat_proc_name): Use malloc, not xmalloc.
57075         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
57076         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
57078         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
57079         This avoids heap allocation for file names whose lengths are in
57080         the range 512..1023, with the upper bound increasing to at most
57081         4031 depending on the platform's PATH_MAX.  (We do not want
57082         pathmax.h here as it might supply a non-constant PATH_MAX.)
57083         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
57084         Perhaps they should be moved to malloca.h?
57085         (OPENAT_BUFFER_SIZE): Use them.
57087 2011-01-10  Bruno Haible  <bruno@clisp.org>
57089         doc: Update users.txt.
57090         * users.txt: Add recutils.
57092 2011-01-09  Karl Berry  <karl@gnu.org>
57094         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
57096         * doc/configmake.texi: New file.
57097         * doc/gnulib.texi: Include it.
57098         * modules/configmake: Move documentation from here.
57100 2011-01-09  Bruno Haible  <bruno@clisp.org>
57102         Update to Unicode 6.0.0.
57103         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
57104         (get_lbp): Update for Unicode 6.0.0.
57105         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
57106         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
57107         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
57108         U+11001, U+11038..U+11046. Remove U+06DE.
57109         (uc_width): Fix bounds of planes.
57110         * tests/uniwidth/test-uc_width2.sh: Same updates as in
57111         lib/uniwidth/width.c.
57112         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
57113         trailing whitespace removed.
57114         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
57115         without comments, but with the original copyright notice.
57116         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
57117         * lib/unicase/ignorable.h: Likewise.
57118         * lib/unicase/tocasefold.h: Likewise.
57119         * lib/unicase/tolower.h: Likewise.
57120         * lib/unicase/totitle.h: Likewise.
57121         * lib/unicase/toupper.h: Likewise.
57122         * lib/unictype/bidi_of.h: Likewise.
57123         * lib/unictype/blocks.h: Likewise.
57124         * lib/unictype/categ_C.h: Likewise.
57125         * lib/unictype/categ_Cn.h: Likewise.
57126         * lib/unictype/categ_L.h: Likewise.
57127         * lib/unictype/categ_Ll.h: Likewise.
57128         * lib/unictype/categ_Lm.h: Likewise.
57129         * lib/unictype/categ_Lo.h: Likewise.
57130         * lib/unictype/categ_Lu.h: Likewise.
57131         * lib/unictype/categ_M.h: Likewise.
57132         * lib/unictype/categ_Mc.h: Likewise.
57133         * lib/unictype/categ_Me.h: Likewise.
57134         * lib/unictype/categ_Mn.h: Likewise.
57135         * lib/unictype/categ_N.h: Likewise.
57136         * lib/unictype/categ_Nd.h: Likewise.
57137         * lib/unictype/categ_No.h: Likewise.
57138         * lib/unictype/categ_P.h: Likewise.
57139         * lib/unictype/categ_Po.h: Likewise.
57140         * lib/unictype/categ_S.h: Likewise.
57141         * lib/unictype/categ_Sc.h: Likewise.
57142         * lib/unictype/categ_Sk.h: Likewise.
57143         * lib/unictype/categ_Sm.h: Likewise.
57144         * lib/unictype/categ_So.h: Likewise.
57145         * lib/unictype/categ_of.h: Likewise.
57146         * lib/unictype/combining.h: Likewise.
57147         * lib/unictype/ctype_alnum.h: Likewise.
57148         * lib/unictype/ctype_alpha.h: Likewise.
57149         * lib/unictype/ctype_graph.h: Likewise.
57150         * lib/unictype/ctype_lower.h: Likewise.
57151         * lib/unictype/ctype_print.h: Likewise.
57152         * lib/unictype/ctype_punct.h: Likewise.
57153         * lib/unictype/ctype_upper.h: Likewise.
57154         * lib/unictype/decdigit.h: Likewise.
57155         * lib/unictype/digit.h: Likewise.
57156         * lib/unictype/numeric.h: Likewise.
57157         * lib/unictype/pr_alphabetic.h: Likewise.
57158         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
57159         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
57160         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
57161         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
57162         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
57163         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
57164         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
57165         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
57166         * lib/unictype/pr_case_ignorable.h: Likewise.
57167         * lib/unictype/pr_cased.h: Likewise.
57168         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
57169         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
57170         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
57171         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
57172         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
57173         * lib/unictype/pr_combining.h: Likewise.
57174         * lib/unictype/pr_composite.h: Likewise.
57175         * lib/unictype/pr_currency_symbol.h: Likewise.
57176         * lib/unictype/pr_decimal_digit.h: Likewise.
57177         * lib/unictype/pr_deprecated.h: Likewise.
57178         * lib/unictype/pr_format_control.h: Likewise.
57179         * lib/unictype/pr_grapheme_base.h: Likewise.
57180         * lib/unictype/pr_grapheme_extend.h: Likewise.
57181         * lib/unictype/pr_grapheme_link.h: Likewise.
57182         * lib/unictype/pr_id_continue.h: Likewise.
57183         * lib/unictype/pr_id_start.h: Likewise.
57184         * lib/unictype/pr_ideographic.h: Likewise.
57185         * lib/unictype/pr_lowercase.h: Likewise.
57186         * lib/unictype/pr_math.h: Likewise.
57187         * lib/unictype/pr_numeric.h: Likewise.
57188         * lib/unictype/pr_other_alphabetic.h: Likewise.
57189         * lib/unictype/pr_other_id_continue.h: Likewise.
57190         * lib/unictype/pr_other_math.h: Likewise.
57191         * lib/unictype/pr_punctuation.h: Likewise.
57192         * lib/unictype/pr_sentence_terminal.h: Likewise.
57193         * lib/unictype/pr_terminal_punctuation.h: Likewise.
57194         * lib/unictype/pr_unassigned_code_value.h: Likewise.
57195         * lib/unictype/pr_unified_ideograph.h: Likewise.
57196         * lib/unictype/pr_uppercase.h: Likewise.
57197         * lib/unictype/pr_xid_continue.h: Likewise.
57198         * lib/unictype/pr_xid_start.h: Likewise.
57199         * lib/unictype/scripts.h: Likewise.
57200         * lib/unictype/scripts_byname.gperf: Likewise.
57201         * lib/unictype/sy_java_ident.h: Likewise.
57202         * lib/unigbrk/gbrkprop.h: Likewise.
57203         * lib/unilbrk/lbrkprop1.h: Likewise.
57204         * lib/unilbrk/lbrkprop2.h: Likewise.
57205         * lib/uninorm/decomposition-table2.h: Likewise.
57206         * lib/uniwbrk/wbrkprop.h: Likewise.
57207         * tests/unicase/test-cased.c: Likewise.
57208         * tests/unicase/test-ignorable.c: Likewise.
57209         * tests/unicase/test-uc_tolower.c: Likewise.
57210         * tests/unicase/test-uc_totitle.c: Likewise.
57211         * tests/unicase/test-uc_toupper.c: Likewise.
57212         * tests/unictype/test-categ_C.c: Likewise.
57213         * tests/unictype/test-categ_Cn.c: Likewise.
57214         * tests/unictype/test-categ_L.c: Likewise.
57215         * tests/unictype/test-categ_Ll.c: Likewise.
57216         * tests/unictype/test-categ_Lm.c: Likewise.
57217         * tests/unictype/test-categ_Lo.c: Likewise.
57218         * tests/unictype/test-categ_Lu.c: Likewise.
57219         * tests/unictype/test-categ_M.c: Likewise.
57220         * tests/unictype/test-categ_Mc.c: Likewise.
57221         * tests/unictype/test-categ_Me.c: Likewise.
57222         * tests/unictype/test-categ_Mn.c: Likewise.
57223         * tests/unictype/test-categ_N.c: Likewise.
57224         * tests/unictype/test-categ_Nd.c: Likewise.
57225         * tests/unictype/test-categ_No.c: Likewise.
57226         * tests/unictype/test-categ_P.c: Likewise.
57227         * tests/unictype/test-categ_Po.c: Likewise.
57228         * tests/unictype/test-categ_S.c: Likewise.
57229         * tests/unictype/test-categ_Sc.c: Likewise.
57230         * tests/unictype/test-categ_Sk.c: Likewise.
57231         * tests/unictype/test-categ_Sm.c: Likewise.
57232         * tests/unictype/test-categ_So.c: Likewise.
57233         * tests/unictype/test-ctype_alnum.c: Likewise.
57234         * tests/unictype/test-ctype_alpha.c: Likewise.
57235         * tests/unictype/test-ctype_graph.c: Likewise.
57236         * tests/unictype/test-ctype_lower.c: Likewise.
57237         * tests/unictype/test-ctype_print.c: Likewise.
57238         * tests/unictype/test-ctype_punct.c: Likewise.
57239         * tests/unictype/test-ctype_upper.c: Likewise.
57240         * tests/unictype/test-decdigit.h: Likewise.
57241         * tests/unictype/test-digit.h: Likewise.
57242         * tests/unictype/test-numeric.h: Likewise.
57243         * tests/unictype/test-pr_alphabetic.c: Likewise.
57244         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
57245         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
57246         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
57247         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
57248         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
57249         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
57250         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
57251         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
57252         * tests/unictype/test-pr_case_ignorable.c: Likewise.
57253         * tests/unictype/test-pr_cased.c: Likewise.
57254         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
57255         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
57256         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
57257         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
57258         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
57259         * tests/unictype/test-pr_combining.c: Likewise.
57260         * tests/unictype/test-pr_composite.c: Likewise.
57261         * tests/unictype/test-pr_currency_symbol.c: Likewise.
57262         * tests/unictype/test-pr_decimal_digit.c: Likewise.
57263         * tests/unictype/test-pr_deprecated.c: Likewise.
57264         * tests/unictype/test-pr_format_control.c: Likewise.
57265         * tests/unictype/test-pr_grapheme_base.c: Likewise.
57266         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
57267         * tests/unictype/test-pr_grapheme_link.c: Likewise.
57268         * tests/unictype/test-pr_id_continue.c: Likewise.
57269         * tests/unictype/test-pr_id_start.c: Likewise.
57270         * tests/unictype/test-pr_ideographic.c: Likewise.
57271         * tests/unictype/test-pr_lowercase.c: Likewise.
57272         * tests/unictype/test-pr_math.c: Likewise.
57273         * tests/unictype/test-pr_numeric.c: Likewise.
57274         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
57275         * tests/unictype/test-pr_other_id_continue.c: Likewise.
57276         * tests/unictype/test-pr_other_math.c: Likewise.
57277         * tests/unictype/test-pr_punctuation.c: Likewise.
57278         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
57279         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
57280         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
57281         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
57282         * tests/unictype/test-pr_uppercase.c: Likewise.
57283         * tests/unictype/test-pr_xid_continue.c: Likewise.
57284         * tests/unictype/test-pr_xid_start.c: Likewise.
57285         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
57286         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
57287         changes.
57288         * lib/unictype/categ_Cc.h: Likewise.
57289         * lib/unictype/categ_Cf.h: Likewise.
57290         * lib/unictype/categ_Co.h: Likewise.
57291         * lib/unictype/categ_Cs.h: Likewise.
57292         * lib/unictype/categ_Lt.h: Likewise.
57293         * lib/unictype/categ_Nl.h: Likewise.
57294         * lib/unictype/categ_Pc.h: Likewise.
57295         * lib/unictype/categ_Pd.h: Likewise.
57296         * lib/unictype/categ_Pe.h: Likewise.
57297         * lib/unictype/categ_Pf.h: Likewise.
57298         * lib/unictype/categ_Pi.h: Likewise.
57299         * lib/unictype/categ_Ps.h: Likewise.
57300         * lib/unictype/categ_Z.h: Likewise.
57301         * lib/unictype/categ_Zl.h: Likewise.
57302         * lib/unictype/categ_Zp.h: Likewise.
57303         * lib/unictype/categ_Zs.h: Likewise.
57304         * lib/unictype/ctype_blank.h: Likewise.
57305         * lib/unictype/ctype_cntrl.h: Likewise.
57306         * lib/unictype/ctype_digit.h: Likewise.
57307         * lib/unictype/ctype_space.h: Likewise.
57308         * lib/unictype/ctype_xdigit.h: Likewise.
57309         * lib/unictype/mirror.h: Likewise.
57310         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
57311         * lib/unictype/pr_bidi_block_separator.h: Likewise.
57312         * lib/unictype/pr_bidi_common_separator.h: Likewise.
57313         * lib/unictype/pr_bidi_control.h: Likewise.
57314         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
57315         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
57316         * lib/unictype/pr_bidi_european_digit.h: Likewise.
57317         * lib/unictype/pr_bidi_pdf.h: Likewise.
57318         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
57319         * lib/unictype/pr_bidi_whitespace.h: Likewise.
57320         * lib/unictype/pr_dash.h: Likewise.
57321         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
57322         * lib/unictype/pr_diacritic.h: Likewise.
57323         * lib/unictype/pr_extender.h: Likewise.
57324         * lib/unictype/pr_hex_digit.h: Likewise.
57325         * lib/unictype/pr_hyphen.h: Likewise.
57326         * lib/unictype/pr_ids_binary_operator.h: Likewise.
57327         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
57328         * lib/unictype/pr_ignorable_control.h: Likewise.
57329         * lib/unictype/pr_iso_control.h: Likewise.
57330         * lib/unictype/pr_join_control.h: Likewise.
57331         * lib/unictype/pr_left_of_pair.h: Likewise.
57332         * lib/unictype/pr_line_separator.h: Likewise.
57333         * lib/unictype/pr_logical_order_exception.h: Likewise.
57334         * lib/unictype/pr_non_break.h: Likewise.
57335         * lib/unictype/pr_not_a_character.h: Likewise.
57336         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
57337         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
57338         * lib/unictype/pr_other_id_start.h: Likewise.
57339         * lib/unictype/pr_other_lowercase.h: Likewise.
57340         * lib/unictype/pr_other_uppercase.h: Likewise.
57341         * lib/unictype/pr_paired_punctuation.h: Likewise.
57342         * lib/unictype/pr_paragraph_separator.h: Likewise.
57343         * lib/unictype/pr_pattern_syntax.h: Likewise.
57344         * lib/unictype/pr_pattern_white_space.h: Likewise.
57345         * lib/unictype/pr_private_use.h: Likewise.
57346         * lib/unictype/pr_quotation_mark.h: Likewise.
57347         * lib/unictype/pr_radical.h: Likewise.
57348         * lib/unictype/pr_soft_dotted.h: Likewise.
57349         * lib/unictype/pr_space.h: Likewise.
57350         * lib/unictype/pr_titlecase.h: Likewise.
57351         * lib/unictype/pr_variation_selector.h: Likewise.
57352         * lib/unictype/pr_white_space.h: Likewise.
57353         * lib/unictype/pr_zero_width.h: Likewise.
57354         * lib/unictype/sy_c_ident.h: Likewise.
57355         * lib/unictype/sy_c_whitespace.h: Likewise.
57356         * lib/unictype/sy_java_whitespace.h: Likewise.
57357         * lib/uninorm/composition-table.gperf: Likewise.
57358         * lib/uninorm/decomposition-table1.h: Likewise.
57359         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
57360         LB8.
57361         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
57362         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
57363         * modules/unictype/*: Bump version number of expected libunistring
57364         version.
57366 2011-01-09  Bruno Haible  <bruno@clisp.org>
57368         Update to Unicode 5.2.0.
57369         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
57370         trailing whitespace removed.
57372 2011-01-09  Bruno Haible  <bruno@clisp.org>
57374         New Unicode character properties, from Unicode 5.2.0.
57375         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
57376         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
57377         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
57378         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
57379         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
57380         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
57381         uc_is_property_cased, uc_is_property_case_ignorable,
57382         uc_is_property_changes_when_lowercased,
57383         uc_is_property_changes_when_uppercased,
57384         uc_is_property_changes_when_titlecased,
57385         uc_is_property_changes_when_casefolded,
57386         uc_is_property_changes_when_casemapped): New declarations.
57387         * lib/unictype/pr_byname.gperf: Add the new properties.
57388         * modules/unictype/property-byname (Depends-on): Depend on the new
57389         properties modules.
57390         * modules/unictype/property-all (Depends-on): Likewise.
57391         * MODULES.html.sh (Unicode string functions): Add
57392         unictype/property-case-ignorable, unictype/property-cased,
57393         unictype/property-changes-when-casefolded,
57394         unictype/property-changes-when-casemapped,
57395         unictype/property-changes-when-lowercased,
57396         unictype/property-changes-when-titlecased,
57397         unictype/property-changes-when-uppercased.
57399         New module 'unictype/property-changes-when-casemapped'.
57400         * modules/unictype/property-changes-when-casemapped: New file.
57401         * lib/unictype/pr_changes_when_casemapped.c: New file.
57402         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
57403         generated by gen-uni-tables.
57404         * modules/unictype/property-changes-when-casemapped-tests: New file.
57405         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
57406         automatically generated by gen-uni-tables.
57408         New module 'unictype/property-changes-when-casefolded'.
57409         * modules/unictype/property-changes-when-casefolded: New file.
57410         * lib/unictype/pr_changes_when_casefolded.c: New file.
57411         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
57412         generated by gen-uni-tables.
57413         * modules/unictype/property-changes-when-casefolded-tests: New file.
57414         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
57415         automatically generated by gen-uni-tables.
57417         New module 'unictype/property-changes-when-titlecased'.
57418         * modules/unictype/property-changes-when-titlecased: New file.
57419         * lib/unictype/pr_changes_when_titlecased.c: New file.
57420         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
57421         generated by gen-uni-tables.
57422         * modules/unictype/property-changes-when-titlecased-tests: New file.
57423         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
57424         automatically generated by gen-uni-tables.
57426         New module 'unictype/property-changes-when-uppercased'.
57427         * modules/unictype/property-changes-when-uppercased: New file.
57428         * lib/unictype/pr_changes_when_uppercased.c: New file.
57429         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
57430         generated by gen-uni-tables.
57431         * modules/unictype/property-changes-when-uppercased-tests: New file.
57432         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
57433         automatically generated by gen-uni-tables.
57435         New module 'unictype/property-changes-when-lowercased'.
57436         * modules/unictype/property-changes-when-lowercased: New file.
57437         * lib/unictype/pr_changes_when_lowercased.c: New file.
57438         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
57439         generated by gen-uni-tables.
57440         * modules/unictype/property-changes-when-lowercased-tests: New file.
57441         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
57442         automatically generated by gen-uni-tables.
57444         New module 'unictype/property-case-ignorable'.
57445         * modules/unictype/property-case-ignorable: New file.
57446         * lib/unictype/pr_case_ignorable.c: New file.
57447         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
57448         by gen-uni-tables.
57449         * modules/unictype/property-case-ignorable-tests: New file.
57450         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
57451         generated by gen-uni-tables.
57453         New module 'unictype/property-cased'.
57454         * modules/unictype/property-cased: New file.
57455         * lib/unictype/pr_cased.c: New file.
57456         * lib/unictype/pr_cased.h: New file, automatically generated by
57457         gen-uni-tables.
57458         * modules/unictype/property-cased-tests: New file.
57459         * tests/unictype/test-pr_cased.c: New file, automatically generated by
57460         gen-uni-tables.
57462 2011-01-09  Bruno Haible  <bruno@clisp.org>
57464         Update to Unicode 5.2.0.
57465         * lib/gen-uni-tables.c (output_predicate, output_category,
57466         output_combclass, output_bidi_category, output_decimal_digit_test,
57467         output_decimal_digit, output_digit_test, output_digit,
57468         output_numeric_test, output_numeric, output_mirror, output_scripts,
57469         output_scripts_byname, output_blocks, output_ident_category): Fix
57470         comment header.
57471         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
57472         get_wbp.
57473         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
57474         items.
57475         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
57476         Changes_When_Lowercased, Changes_When_Uppercased,
57477         Changes_When_Titlecased, Changes_When_Casefolded,
57478         Changes_When_Casemapped.
57479         (is_property_alphabetic, is_property_default_ignorable_code_point):
57480         Update for Unicode 5.2.0.
57481         (is_property_cased, is_property_case_ignorable,
57482         is_property_changes_when_lowercased,
57483         is_property_changes_when_uppercased,
57484         is_property_changes_when_titlecased,
57485         is_property_changes_when_casefolded,
57486         is_property_changes_when_casemapped): New functions.
57487         (output_properties): Output also the properties cased, case_ignorable,
57488         changes_when_lowercased, changes_when_uppercased,
57489         changes_when_titlecased, changes_when_casefolded,
57490         changes_when_casemapped.
57491         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
57492         Unicode TR#11 revision 17 -> 19.
57493         (LBP_CP): New enumeration value.
57494         (LBP_*): Adjust values accordingly.
57495         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
57496         TR#14 revision 22 -> 24.
57497         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
57498         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
57499         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
57500         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
57501         is_WBP_MIDLETTER.
57502         (output_composition_tables): Allow for 24 bits instead of 16 bits in
57503         the code1 and code2 of each composition rule.
57504         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
57505         * lib/unicase/ignorable.h: Likewise.
57506         * lib/unicase/tocasefold.h: Likewise.
57507         * lib/unicase/tolower.h: Likewise.
57508         * lib/unicase/totitle.h: Likewise.
57509         * lib/unicase/toupper.h: Likewise.
57510         * lib/unictype/bidi_of.h: Likewise.
57511         * lib/unictype/blocks.h: Likewise.
57512         * lib/unictype/categ_C.h: Likewise.
57513         * lib/unictype/categ_Cf.h: Likewise.
57514         * lib/unictype/categ_Cn.h: Likewise.
57515         * lib/unictype/categ_L.h: Likewise.
57516         * lib/unictype/categ_Ll.h: Likewise.
57517         * lib/unictype/categ_Lm.h: Likewise.
57518         * lib/unictype/categ_Lo.h: Likewise.
57519         * lib/unictype/categ_Lu.h: Likewise.
57520         * lib/unictype/categ_M.h: Likewise.
57521         * lib/unictype/categ_Mc.h: Likewise.
57522         * lib/unictype/categ_Mn.h: Likewise.
57523         * lib/unictype/categ_N.h: Likewise.
57524         * lib/unictype/categ_Nd.h: Likewise.
57525         * lib/unictype/categ_Nl.h: Likewise.
57526         * lib/unictype/categ_No.h: Likewise.
57527         * lib/unictype/categ_P.h: Likewise.
57528         * lib/unictype/categ_Pd.h: Likewise.
57529         * lib/unictype/categ_Po.h: Likewise.
57530         * lib/unictype/categ_S.h: Likewise.
57531         * lib/unictype/categ_Sc.h: Likewise.
57532         * lib/unictype/categ_So.h: Likewise.
57533         * lib/unictype/categ_of.h: Likewise.
57534         * lib/unictype/combining.h: Likewise.
57535         * lib/unictype/ctype_alnum.h: Likewise.
57536         * lib/unictype/ctype_alpha.h: Likewise.
57537         * lib/unictype/ctype_graph.h: Likewise.
57538         * lib/unictype/ctype_lower.h: Likewise.
57539         * lib/unictype/ctype_print.h: Likewise.
57540         * lib/unictype/ctype_punct.h: Likewise.
57541         * lib/unictype/ctype_upper.h: Likewise.
57542         * lib/unictype/decdigit.h: Likewise.
57543         * lib/unictype/digit.h: Likewise.
57544         * lib/unictype/numeric.h: Likewise.
57545         * lib/unictype/pr_alphabetic.h: Likewise.
57546         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
57547         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
57548         * lib/unictype/pr_bidi_european_digit.h: Likewise.
57549         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
57550         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
57551         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
57552         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
57553         * lib/unictype/pr_combining.h: Likewise.
57554         * lib/unictype/pr_composite.h: Likewise.
57555         * lib/unictype/pr_currency_symbol.h: Likewise.
57556         * lib/unictype/pr_dash.h: Likewise.
57557         * lib/unictype/pr_decimal_digit.h: Likewise.
57558         * lib/unictype/pr_deprecated.h: Likewise.
57559         * lib/unictype/pr_diacritic.h: Likewise.
57560         * lib/unictype/pr_extender.h: Likewise.
57561         * lib/unictype/pr_grapheme_base.h: Likewise.
57562         * lib/unictype/pr_grapheme_extend.h: Likewise.
57563         * lib/unictype/pr_grapheme_link.h: Likewise.
57564         * lib/unictype/pr_id_continue.h: Likewise.
57565         * lib/unictype/pr_id_start.h: Likewise.
57566         * lib/unictype/pr_ideographic.h: Likewise.
57567         * lib/unictype/pr_ignorable_control.h: Likewise.
57568         * lib/unictype/pr_logical_order_exception.h: Likewise.
57569         * lib/unictype/pr_lowercase.h: Likewise.
57570         * lib/unictype/pr_numeric.h: Likewise.
57571         * lib/unictype/pr_other_alphabetic.h: Likewise.
57572         * lib/unictype/pr_punctuation.h: Likewise.
57573         * lib/unictype/pr_sentence_terminal.h: Likewise.
57574         * lib/unictype/pr_terminal_punctuation.h: Likewise.
57575         * lib/unictype/pr_unassigned_code_value.h: Likewise.
57576         * lib/unictype/pr_unified_ideograph.h: Likewise.
57577         * lib/unictype/pr_uppercase.h: Likewise.
57578         * lib/unictype/pr_xid_continue.h: Likewise.
57579         * lib/unictype/pr_xid_start.h: Likewise.
57580         * lib/unictype/pr_zero_width.h: Likewise.
57581         * lib/unictype/scripts.h: Likewise.
57582         * lib/unictype/scripts_byname.gperf: Likewise.
57583         * lib/unictype/sy_java_ident.h: Likewise.
57584         * lib/unigbrk/gbrkprop.h: Likewise.
57585         * lib/unilbrk/lbrkprop1.h: Likewise.
57586         * lib/unilbrk/lbrkprop2.h: Likewise.
57587         * lib/unilbrk/lbrktables.h: Likewise.
57588         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
57589         LBP_CP. Implement rule LB30.
57590         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
57591         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
57592         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
57593         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
57594         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
57595         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
57596         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
57597         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
57598         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
57599         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
57600         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
57601         bits instead of 16 bits in the code1 and code2 of each composition
57602         rule.
57603         (uc_composition): Update for Unicode 5.2.0.
57604         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
57605         * lib/uninorm/decomposition-table2.h: Likewise.
57606         * lib/uniwbrk/wbrkprop.h: Likewise.
57607         * tests/unicase/test-cased.c: Likewise.
57608         * tests/unicase/test-ignorable.c: Likewise.
57609         * tests/unicase/test-uc_tolower.c: Likewise.
57610         * tests/unicase/test-uc_totitle.c: Likewise.
57611         * tests/unicase/test-uc_toupper.c: Likewise.
57612         * tests/unictype/test-categ_C.c: Likewise.
57613         * tests/unictype/test-categ_Cf.c: Likewise.
57614         * tests/unictype/test-categ_Cn.c: Likewise.
57615         * tests/unictype/test-categ_L.c: Likewise.
57616         * tests/unictype/test-categ_Ll.c: Likewise.
57617         * tests/unictype/test-categ_Lm.c: Likewise.
57618         * tests/unictype/test-categ_Lo.c: Likewise.
57619         * tests/unictype/test-categ_Lu.c: Likewise.
57620         * tests/unictype/test-categ_M.c: Likewise.
57621         * tests/unictype/test-categ_Mc.c: Likewise.
57622         * tests/unictype/test-categ_Mn.c: Likewise.
57623         * tests/unictype/test-categ_N.c: Likewise.
57624         * tests/unictype/test-categ_Nd.c: Likewise.
57625         * tests/unictype/test-categ_Nl.c: Likewise.
57626         * tests/unictype/test-categ_No.c: Likewise.
57627         * tests/unictype/test-categ_P.c: Likewise.
57628         * tests/unictype/test-categ_Pd.c: Likewise.
57629         * tests/unictype/test-categ_Po.c: Likewise.
57630         * tests/unictype/test-categ_S.c: Likewise.
57631         * tests/unictype/test-categ_Sc.c: Likewise.
57632         * tests/unictype/test-categ_So.c: Likewise.
57633         * tests/unictype/test-ctype_alnum.c: Likewise.
57634         * tests/unictype/test-ctype_alpha.c: Likewise.
57635         * tests/unictype/test-ctype_graph.c: Likewise.
57636         * tests/unictype/test-ctype_lower.c: Likewise.
57637         * tests/unictype/test-ctype_print.c: Likewise.
57638         * tests/unictype/test-ctype_punct.c: Likewise.
57639         * tests/unictype/test-ctype_upper.c: Likewise.
57640         * tests/unictype/test-decdigit.h: Likewise.
57641         * tests/unictype/test-digit.h: Likewise.
57642         * tests/unictype/test-numeric.h: Likewise.
57643         * tests/unictype/test-pr_alphabetic.c: Likewise.
57644         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
57645         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
57646         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
57647         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
57648         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
57649         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
57650         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
57651         * tests/unictype/test-pr_combining.c: Likewise.
57652         * tests/unictype/test-pr_composite.c: Likewise.
57653         * tests/unictype/test-pr_currency_symbol.c: Likewise.
57654         * tests/unictype/test-pr_dash.c: Likewise.
57655         * tests/unictype/test-pr_decimal_digit.c: Likewise.
57656         * tests/unictype/test-pr_deprecated.c: Likewise.
57657         * tests/unictype/test-pr_diacritic.c: Likewise.
57658         * tests/unictype/test-pr_extender.c: Likewise.
57659         * tests/unictype/test-pr_grapheme_base.c: Likewise.
57660         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
57661         * tests/unictype/test-pr_grapheme_link.c: Likewise.
57662         * tests/unictype/test-pr_id_continue.c: Likewise.
57663         * tests/unictype/test-pr_id_start.c: Likewise.
57664         * tests/unictype/test-pr_ideographic.c: Likewise.
57665         * tests/unictype/test-pr_ignorable_control.c: Likewise.
57666         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
57667         * tests/unictype/test-pr_lowercase.c: Likewise.
57668         * tests/unictype/test-pr_numeric.c: Likewise.
57669         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
57670         * tests/unictype/test-pr_punctuation.c: Likewise.
57671         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
57672         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
57673         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
57674         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
57675         * tests/unictype/test-pr_uppercase.c: Likewise.
57676         * tests/unictype/test-pr_xid_continue.c: Likewise.
57677         * tests/unictype/test-pr_xid_start.c: Likewise.
57678         * tests/unictype/test-pr_zero_width.c: Likewise.
57679         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
57680         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
57681         changed behaviour: line breaking is now disallowed between a letter
57682         or '=' and '('.
57683         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
57684         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
57685         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
57686         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
57687         * tests/uniwidth/test-uc_width2.sh: Same updates as in
57688         lib/uniwidth/width.c.
57689         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
57690         without comments, but with the original copyright notice.
57691         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
57692         changes.
57693         * lib/unictype/categ_Cc.h: Likewise.
57694         * lib/unictype/categ_Co.h: Likewise.
57695         * lib/unictype/categ_Cs.h: Likewise.
57696         * lib/unictype/categ_Lt.h: Likewise.
57697         * lib/unictype/categ_Me.h: Likewise.
57698         * lib/unictype/categ_Pc.h: Likewise.
57699         * lib/unictype/categ_Pe.h: Likewise.
57700         * lib/unictype/categ_Pf.h: Likewise.
57701         * lib/unictype/categ_Pi.h: Likewise.
57702         * lib/unictype/categ_Ps.h: Likewise.
57703         * lib/unictype/categ_Sk.h: Likewise.
57704         * lib/unictype/categ_Sm.h: Likewise.
57705         * lib/unictype/categ_Z.h: Likewise.
57706         * lib/unictype/categ_Zl.h: Likewise.
57707         * lib/unictype/categ_Zp.h: Likewise.
57708         * lib/unictype/categ_Zs.h: Likewise.
57709         * lib/unictype/ctype_blank.h: Likewise.
57710         * lib/unictype/ctype_cntrl.h: Likewise.
57711         * lib/unictype/ctype_digit.h: Likewise.
57712         * lib/unictype/ctype_space.h: Likewise.
57713         * lib/unictype/ctype_xdigit.h: Likewise.
57714         * lib/unictype/mirror.h: Likewise.
57715         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
57716         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
57717         * lib/unictype/pr_bidi_block_separator.h: Likewise.
57718         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
57719         * lib/unictype/pr_bidi_common_separator.h: Likewise.
57720         * lib/unictype/pr_bidi_control.h: Likewise.
57721         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
57722         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
57723         * lib/unictype/pr_bidi_pdf.h: Likewise.
57724         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
57725         * lib/unictype/pr_bidi_whitespace.h: Likewise.
57726         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
57727         * lib/unictype/pr_format_control.h: Likewise.
57728         * lib/unictype/pr_hex_digit.h: Likewise.
57729         * lib/unictype/pr_hyphen.h: Likewise.
57730         * lib/unictype/pr_ids_binary_operator.h: Likewise.
57731         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
57732         * lib/unictype/pr_iso_control.h: Likewise.
57733         * lib/unictype/pr_join_control.h: Likewise.
57734         * lib/unictype/pr_left_of_pair.h: Likewise.
57735         * lib/unictype/pr_line_separator.h: Likewise.
57736         * lib/unictype/pr_math.h: Likewise.
57737         * lib/unictype/pr_non_break.h: Likewise.
57738         * lib/unictype/pr_not_a_character.h: Likewise.
57739         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
57740         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
57741         * lib/unictype/pr_other_id_continue.h: Likewise.
57742         * lib/unictype/pr_other_id_start.h: Likewise.
57743         * lib/unictype/pr_other_lowercase.h: Likewise.
57744         * lib/unictype/pr_other_math.h: Likewise.
57745         * lib/unictype/pr_other_uppercase.h: Likewise.
57746         * lib/unictype/pr_paired_punctuation.h: Likewise.
57747         * lib/unictype/pr_paragraph_separator.h: Likewise.
57748         * lib/unictype/pr_pattern_syntax.h: Likewise.
57749         * lib/unictype/pr_pattern_white_space.h: Likewise.
57750         * lib/unictype/pr_private_use.h: Likewise.
57751         * lib/unictype/pr_quotation_mark.h: Likewise.
57752         * lib/unictype/pr_radical.h: Likewise.
57753         * lib/unictype/pr_soft_dotted.h: Likewise.
57754         * lib/unictype/pr_space.h: Likewise.
57755         * lib/unictype/pr_titlecase.h: Likewise.
57756         * lib/unictype/pr_variation_selector.h: Likewise.
57757         * lib/unictype/pr_white_space.h: Likewise.
57758         * lib/unictype/sy_c_ident.h: Likewise.
57759         * lib/unictype/sy_c_whitespace.h: Likewise.
57760         * lib/unictype/sy_java_whitespace.h: Likewise.
57761         * modules/uni*/*: Bump version number of expected libunistring version.
57762         Reported by Simon Josefsson.
57764 2011-01-09  Karl Heuer  <kwzh@gnu.org>
57766         useless-if-before-free: fix typo in --help and make the internal,
57767         automatic version date update process work once again.
57768         --help output contained a NUL character instead of the
57769         backslash-zero that was intended.  Also, the "must lie within
57770         the first 8 lines" line is on line 9, and hence not getting
57771         automatically updated.
57772         * build-aux/useless-if-before-free: Fix the former by adding a
57773         backslash, and the latter by condensing the three lines of what-it-does
57774         to a single line, leaving one line of slack for the future.
57776 2011-01-09  Bruno Haible  <bruno@clisp.org>
57778         uniwidth/width: Fix width of U+1D173..U+1D17A.
57779         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
57780         symbolic_width, output_width_property_test): New functions.
57781         (main): Invoke output_nonspacing_property, output_width_property_test.
57782         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
57783         U+1D173..U+1D17A.
57784         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
57785         1.
57786         * modules/uniwidth/*: Bump version number of expected libunistring
57787         version.
57788         * modules/unilbrk/*: Likewise.
57790 2011-01-08  Bruno Haible  <bruno@clisp.org>
57792         uninorm tests: Preserve copyright of Unicode data file.
57793         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
57794         Mention modifications.
57796 2011-01-08  Bruno Haible  <bruno@clisp.org>
57798         gen-uni-tables: Prepare for Unicode 5.2.0.
57799         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
57800         (debug_output_lbp, output_lbp): Update.
57802 2011-01-08  Bruno Haible  <bruno@clisp.org>
57804         unilbrk: Clarify gen-uni-tables.c code.
57805         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
57806         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
57807         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
57809 2011-01-07  Bruno Haible  <bruno@clisp.org>
57811         strtod: Restore errno when successfully parsing Infinity or NaN.
57812         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
57813         restore the original errno.
57815 2011-01-07  Bruno Haible  <bruno@clisp.org>
57817         remove test: Avoid failure on HP-UX 11.
57818         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
57820 2011-01-07  Bruno Haible  <bruno@clisp.org>
57822         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
57823         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
57824         error code.
57826 2011-01-07  Pádraig Brady  <P@draigBrady.com>
57828         ignore-value: fixup comments, and add Eric Blake
57829         as an author since he rewrote the macros.
57830         * lib/ignore-value.h (ignore_value):  State that
57831         we now support aggregates.  Also specify exactly
57832         when the GCC warn_unused_result feature was added.
57834 2011-01-06  Eric Blake  <eblake@redhat.com>
57836         ignore-value: support aggregate types
57837         * lib/ignore-value.h (ignore_value): Provide separate gcc
57838         definition.
57839         * modules/ignore-value-tests: New test module.
57840         * tests/test-ignore-value.c: New test.
57842         maint.mk: improve sc_prohibit_strcmp regex
57843         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
57844         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
57845         definition of STRNEQ.
57847         signal: work around Haiku issue with SIGBUS
57848         * lib/siglist.h: Add comment.
57849         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
57850         strsignal's favoring of SIGSEGV.
57851         * tests/test-signal.c (main): Avoid test failure.
57852         * doc/posix-headers/signal.texi (signal.h): Document the issue.
57853         Reported by Scott McCreary.
57855         maint.mk: add pre-release check to ensure submodule commits are public
57856         * top/maint.mk (public-submodule-commit): New rule.
57857         (submodule-checks): New variable.
57858         (alpha beta stable): Depend on the variable.
57860 2011-01-05  Pádraig Brady  <P@draigBrady.com>
57861         and Jim Meyering  <meyering@redhat.com>
57863         ignore-value: make ignore_value more generic; deprecate ignore_ptr
57864         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
57865         (ATTRIBUTE_DEPRECATED): Define.
57866         (_ignore_case): New function.
57867         (ignore_value): New macro, to replace the old function.
57868         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
57869         * modules/ignore-value (Depends-on): Add stdint.
57871 2011-01-04  Eric Blake  <eblake@redhat.com>
57873         doc: regenerate INSTALL
57874         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
57875         @firstparagraphindent support, now that autoconf dropped it.
57876         (INSTALL_PRELUDE): Reinstate old macro.
57877         * doc/install.texi: Resync from autoconf.
57878         * doc/INSTALL: Reflect recent autoconf update.
57879         * doc/INSTALL.ISO: Likewise.
57880         * doc/INSTALL.UTF-8: Likewise.
57881         Reported by Karl Berry.
57883 2011-01-04  Bruce Korb  <address@hidden>
57885         git-version-gen: avoid a sub-shell
57886         * build-aux/git-version-gen: Redirect stderr in `...` via
57887         "exec 2>...", rather than via an added sub-shell.
57889 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
57891         git-version-gen: use (...) rather than sh -c '...'
57892         * build-aux/git-version-gen: Rather than hard-coding a shell's name
57893         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
57895 2011-01-03  Jim Meyering  <meyering@redhat.com>
57897         git-version-gen: convert leading TABs to spaces
57898         * build-aux/git-version-gen: Expand leading TABs.
57900         git-version-gen: handle failed "git rev-list"
57901         * build-aux/git-version-gen: Rather than leaking a "fatal" error
57902         from git and proceeding as if it had succeeded but printed no SHA1
57903         checksums, suppress the diagnostic and handle the failure.
57904         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
57906         git-version-gen: include command name in one more diagnostic
57907         * build-aux/git-version-gen: When the required .tarball-version file
57908         was missing or unreadable, you might see the diagnostic from "cat",
57909         but no trace of the name of the invoking script.  Now, you still see
57910         the diagnostic from cat, but also get one from "git-version-gen: ".
57911         Inspired by a patch from Bruce Korb.
57913         update-copyright: adjust test to match changed code
57914         * tests/test-update-copyright.sh: Change test's expected output
57915         to match new actual output.
57917 2011-01-02  Bruno Haible  <bruno@clisp.org>
57919         getlogin_r: Avoid test failure on HP-UX 11.
57920         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
57921         ERANGE when the second argument is zero.
57922         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
57923         portability problem.
57925 2011-01-02  Bruce Korb  <bkorb@gnu.org>
57927         * build-aux/update-copyright: doc Simon's changes
57929 2011-01-02  Simon Josefsson  <simon@josefsson.org>
57931         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
57932         environment variable.
57934 2011-01-02  Bruno Haible  <bruno@clisp.org>
57936         unigbrk: Avoid gcc warnings.
57937         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
57938         unused variable.
57939         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
57940         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
57941         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
57942         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
57943         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
57944         Change type of first argument to 'const char *'.
57945         (main): Remove unused variable.
57946         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
57947         type of first argument to 'const char *'.
57948         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
57949         Likewise.
57950         (main): Change type of variable 's'.
57951         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
57952         to 'int'.
57954 2011-01-02  Bruno Haible  <bruno@clisp.org>
57956         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
57957         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
57958         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
57959         bug.
57960         * lib/pwrite.c: Undo 2010-12-31 patch.
57961         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
57963 2011-01-02  Bruno Haible  <bruno@clisp.org>
57965         pread: Fix test whether it works.
57966         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
57968 2011-01-02  Bruno Haible  <bruno@clisp.org>
57970         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
57971         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
57972         ends in "6". Don't require a specific month name. Try also the locale
57973         names found on HP-UX 11 and Solaris 7.
57975 2011-01-02  Bruno Haible  <bruno@clisp.org>
57977         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
57978         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
57979         C linkage.
57980         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
57982 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
57984         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
57985         for consistency, since the "cluster" term is not used elsewhere.
57986         * lib/unigbrk.in.h: Update name.
57987         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
57988         * lib/unigbrk/u16-grapheme-next.c: Update name.
57989         * lib/unigbrk/u16-grapheme-prev.c: Update name.
57990         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
57991         * lib/unigbrk/u32-grapheme-next.c: Update name.
57992         * lib/unigbrk/u32-grapheme-prev.c: Update name.
57993         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
57994         * lib/unigbrk/u8-grapheme-next.c: Update name.
57995         * lib/unigbrk/u8-grapheme-prev.c: Update name.
57996         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
57997         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
57998         Suggested by Bruno Haible.
58000 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
58002         Remove module 'u8-grapheme-len' as too redundant with
58003         'u8-grapheme-next'.
58004         * modules/unigbrk/u8-grapheme-len: Delete file.
58005         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
58006         * lib/unigbrk.in.h: Remove prototype for deleted function.
58007         * lib/unigbrk/u8-grapheme-len.c: Delete file.
58008         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
58010         Remove module 'u16-grapheme-len' as too redundant with
58011         'u16-grapheme-next'.
58012         * modules/unigbrk/u16-grapheme-len: Delete file.
58013         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
58014         * lib/unigbrk.in.h: Remove prototype for deleted function.
58015         * lib/unigbrk/u16-grapheme-len.c: Delete file.
58016         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
58018         Remove module 'u32-grapheme-len' as too redundant with
58019         'u32-grapheme-next'.
58020         * modules/unigbrk/u32-grapheme-len: Delete file.
58021         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
58022         * lib/unigbrk.in.h: Remove prototype for deleted function.
58023         * lib/unigbrk/u32-grapheme-len.c: Delete file.
58024         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
58026         Suggested by Bruno Haible.
58028 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
58030         * unigbrk.in.h: Fix typo: "ben" => "been".
58031         Reported by Bruno Haible.
58033 2011-01-01  Jim Meyering  <meyering@redhat.com>
58035         maint: update almost all copyright ranges to include 2011
58036         Run the new "make update-copyright" rule.
58038 2011-01-01  Jim Meyering  <meyering@redhat.com>
58040         maint: update-copyright: exempt doc/INSTALL*
58041         * Makefile (update-copyright): Also exclude doc/INSTALL*,
58042         since they are generated.  Suggested by Bruno Haible.
58044 2011-01-01  Jim Meyering  <meyering@redhat.com>
58046         maint: refine the update-copyright rule
58047         * Makefile (update-copyright): Also exclude any file that includes
58048         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
58049         code that merely generates the comment.
58051 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
58053         New module 'u8-grapheme-len'.
58054         * modules/unigbrk/u8-grapheme-len: New file.
58055         * modules/unigbrk/u8-grapheme-len-tests: New file.
58056         * lib/unigbrk.in.h: Add prototype for new function.
58057         * lib/unigbrk/u8-grapheme-len.c: New file.
58058         * tests/unigbrk/test-u8-grapheme-len.c: New file.
58060         New module 'u16-grapheme-len'.
58061         * modules/unigbrk/u16-grapheme-len: New file.
58062         * modules/unigbrk/u16-grapheme-len-tests: New file.
58063         * lib/unigbrk.in.h: Add prototype for new function.
58064         * lib/unigbrk/u16-grapheme-len.c: New file.
58065         * tests/unigbrk/test-u16-grapheme-len.c: New file.
58067         New module 'u32-grapheme-len'.
58068         * modules/unigbrk/u32-grapheme-len: New file.
58069         * modules/unigbrk/u32-grapheme-len-tests: New file.
58070         * lib/unigbrk.in.h: Add prototype for new function.
58071         * lib/unigbrk/u32-grapheme-len.c: New file.
58072         * tests/unigbrk/test-u32-grapheme-len.c: New file.
58074         New module 'u8-grapheme-next'.
58075         * modules/unigbrk/u8-grapheme-next: New file.
58076         * modules/unigbrk/u8-grapheme-next-tests: New file.
58077         * lib/unigbrk.in.h: Add prototype for new function.
58078         * lib/unigbrk/u8-grapheme-next.c: New file.
58079         * tests/unigbrk/test-u8-grapheme-next.c: New file.
58081         New module 'u16-grapheme-next'.
58082         * modules/unigbrk/u16-grapheme-next: New file.
58083         * modules/unigbrk/u16-grapheme-next-tests: New file.
58084         * lib/unigbrk.in.h: Add prototype for new function.
58085         * lib/unigbrk/u16-grapheme-next.c: New file.
58086         * tests/unigbrk/test-u16-grapheme-next.c: New file.
58088         New module 'u32-grapheme-next'.
58089         * modules/unigbrk/u32-grapheme-next: New file.
58090         * modules/unigbrk/u32-grapheme-next-tests: New file.
58091         * lib/unigbrk.in.h: Add prototype for new function.
58092         * lib/unigbrk/u32-grapheme-next.c: New file.
58093         * tests/unigbrk/test-u32-grapheme-next.c: New file.
58095         New module 'u8-grapheme-prev'.
58096         * modules/unigbrk/u8-grapheme-prev: New file.
58097         * modules/unigbrk/u8-grapheme-prev-tests: New file.
58098         * lib/unigbrk.in.h: Add prototype for new function.
58099         * lib/unigbrk/u8-grapheme-prev.c: New file.
58100         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
58102         New module 'u16-grapheme-prev'.
58103         * modules/unigbrk/u16-grapheme-prev: New file.
58104         * modules/unigbrk/u16-grapheme-prev-tests: New file.
58105         * lib/unigbrk.in.h: Add prototype for new function.
58106         * lib/unigbrk/u16-grapheme-prev.c: New file.
58107         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
58109         New module 'u32-grapheme-prev'.
58110         * modules/unigbrk/u32-grapheme-prev: New file.
58111         * modules/unigbrk/u32-grapheme-prev-tests: New file.
58112         * lib/unigbrk.in.h: Add prototype for new function.
58113         * lib/unigbrk/u32-grapheme-prev.c: New file.
58114         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
58116         New module 'u8-grapheme-breaks'.
58117         * modules/unigbrk/u8-grapheme-breaks: New file.
58118         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
58119         * lib/unigbrk.in.h: Add prototype for new function.
58120         * lib/unigbrk/u8-grapheme-breaks.c: New file.
58121         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
58123         New module 'u16-grapheme-breaks'.
58124         * modules/unigbrk/u16-grapheme-breaks: New file.
58125         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
58126         * lib/unigbrk.in.h: Add prototype for new function.
58127         * lib/unigbrk/u16-grapheme-breaks.c: New file.
58128         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
58130         New module 'u32-grapheme-breaks'.
58131         * modules/unigbrk/u32-grapheme-breaks: New file.
58132         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
58133         * lib/unigbrk.in.h: Add prototype for new function.
58134         * lib/unigbrk/u32-grapheme-breaks.c: New file.
58135         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
58137         New module 'ulc-grapheme-breaks'.
58138         * modules/unigbrk/ulc-grapheme-breaks: New file.
58139         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
58140         * m4/locale-ar.m4: New file.
58141         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
58142         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
58143         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
58145 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
58147         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
58148         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
58149         modified how this file was generated before I initially submitted
58150         the module, but failed to regenerate it.  This meant that several
58151         of the level2 entries were wrong.
58152         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
58153         Remove the division-by-2 that is folded into the table now that
58154         gbrkprop.h has been regenerated properly.  Now -1 entries are
58155         handled correctly.
58157         New module 'unigbrk/uc-gbrk-prop-tests'.
58158         * modules/unigbrk/uc-gbrk-prop-tests: New file.
58159         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
58160         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
58161         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
58163 2011-01-01  Bruno Haible  <bruno@clisp.org>
58165         Avoid use of hexadecimal escapes.
58166         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
58167         instead of hexadecimal escapes.
58169 2011-01-01  Jim Meyering  <meyering@redhat.com>
58171         maint: new rule to update copyright year ranges
58172         * Makefile (update-copyright): New rule.
58174         maint: indent with TABs in Makefile
58175         * Makefile: Expand leading sequences of spaces to TABs
58177         version-etc: update the copyright year it reports
58178         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
58180 2010-12-31  Bruno Haible  <bruno@clisp.org>
58182         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
58183         * lib/isfinite.c (zerof, zerod, zerol): New variables.
58184         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
58185         zero.
58187 2010-12-31  Bruno Haible  <bruno@clisp.org>
58189         pwrite: Work around HP-UX 11.11 bug.
58190         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
58191         works and set REPLACE_PWRITE if not.
58192         * lib/pwrite.c (pwrite): Add an implementation that uses the system
58193         function.
58194         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
58196 2010-12-31  Bruno Haible  <bruno@clisp.org>
58198         pread: Work around HP-UX 11 bugs.
58199         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
58200         and set REPLACE_PREAD if not.
58201         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
58203 2010-12-31  Eric Blake  <eblake@redhat.com>
58205         nl_langinfo: fix YESEXPR on Irix 6.5
58206         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
58207         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
58208         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
58209         it.
58211 2010-12-31  Bruno Haible  <bruno@clisp.org>
58213         iconv: Document HP-UX 11 bug.
58214         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
58216 2010-12-31  Bruno Haible  <bruno@clisp.org>
58218         ldexpl: Fix link error on HP-UX 11.
58219         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
58220         LDEXPL_LIBM, using $ISNANL_LIBM.
58222 2010-12-31  Eric Blake  <eblake@redhat.com>
58224         ftello: avoid compilation failure with SunStudio c89
58225         * lib/ftello.c (ftello): Use lseek, not llseek.
58227         tests: avoid failing coreutils tests on cygwin
58228         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
58229         (create_exe_shims_): Return 0 when skipping.
58231 2010-12-31  Bruno Haible  <bruno@clisp.org>
58233         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
58234         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
58236 2010-12-31  Bruno Haible  <bruno@clisp.org>
58238         waitpid: Fix link error in C++ mode.
58239         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
58241 2010-12-31  Bruno Haible  <bruno@clisp.org>
58243         isnan: Use GCC built-ins when possible.
58244         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
58245         __builtin_isnan.
58246         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
58247         (isnan): Define using GCC built-ins for GCC >= 4.0.
58249 2010-12-31  Bruno Haible  <bruno@clisp.org>
58251         isnand: Fix mistake.
58252         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
58253         __builtin_isnand.
58255 2010-12-31  Bruno Haible  <bruno@clisp.org>
58257         open: Avoid C++ error on HP-UX 11.
58258         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
58260 2010-12-31  Bruno Haible  <bruno@clisp.org>
58262         time_r: Add missing declarations on HP-UX 11.
58263         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
58264         instead of HAVE_LOCALTIME_R.
58265         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
58266         HAVE_LOCALTIME_R always.
58267         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
58268         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
58269         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
58270         HAVE_LOCALTIME_R.
58271         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
58272         * doc/posix-functions/localtime_r.texi: Likewise.
58274 2010-12-29  Eric Blake  <eblake@redhat.com>
58276         mountlist: tweak previous commit
58277         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
58278         Reported by Paul Eggert.
58280         mountlist: fix local drive detection on cygwin
58281         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
58282         that works for cygwin.
58284 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58286         ftoastr, snprintf: ftoastr + snprintf module
58287         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
58288         since the snprintf module now should be good enough here.
58289         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
58290         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
58291         and gl_MODULE_INDICATOR([snprintf]), but the former enables
58292         GNULIB_SNPRINTF only for the test directory, and the latter
58293         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
58294         seems to suffice by itself.
58296 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58298         alloca: one step towards thread-safety
58299         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
58300         need for a static variable.  All callers changed.  This does not
58301         make the alloca replacement thread-safe, but it's one step.
58303         tests: minor indenting change
58304         * tests/init.sh: Sync from coreutils housekeeping patch
58305         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
58306         to keep lines within 80 columns.
58308 2010-12-28  Jim Meyering  <meyering@redhat.com>
58310         regex: don't infloop on persistent failing calloc
58311         * lib/regexec.c (build_trtable): Return failure indication upon
58312         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
58313         In glibc, this was fixed for version 2.13:
58314         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
58316 2010-12-28  Bruno Haible  <bruno@clisp.org>
58317             Paul Eggert <eggert@cs.ucla.edu>
58319         linkat: Make implementation robust against system behaviour variations.
58320         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
58321         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
58322         way, and to -2 if it needs a generic runtime test.
58323         * lib/linkat.c (solaris_optimized_link_immediate,
58324         solaris_optimized_link_follow): New functions.
58325         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
58326         (check_same_link): Use it.
58328 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
58330         New module 'unigbrk/base'.
58331         * modules/unigbrk/base: New file.
58332         * lib/unigbrk.in.h: New file.
58334         New module 'unigbrk/uc-gbrk-prop'.
58335         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
58336         * modules/unigbrk/uc-gbrk-prop: New file.
58337         * lib/unigbrk/gbrkprop.h: New file.
58338         * lib/unigbrk/uc-gbrk-prop.c: New file.
58340         New module 'unigbrk/uc-is-grapheme-break'.
58341         * modules/unigbrk/uc-is-grapheme-break: New file.
58342         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
58343         * lib/unigbrk/uc-is-grapheme-break.c: New file.
58344         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
58345         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
58346         * tests/unigbrk/GraphemeBreakTest.txt: New file.
58348         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
58350 2010-12-27  Bruno Haible  <bruno@clisp.org>
58352         linkat test: Avoid failure on Solaris 11 2010-11.
58353         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
58355 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
58357         utimens: work around glibc rounding bug on more platforms
58358         * lib/utimens.c (fdutimens): Work around rounding bug even if
58359         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
58360         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
58362 2010-12-27  Bruno Haible  <bruno@clisp.org>
58364         select tests: Improve comments.
58365         * tests/test-select.c (do_select): Add comments.
58367 2010-12-27  Bruno Haible  <bruno@clisp.org>
58369         select tests: Safer way of handling timeout.
58370         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
58371         at every invocation.
58373 2010-12-27  Bruno Haible  <bruno@clisp.org>
58375         select tests: Use 'bool' where appropriate.
58376         * tests/test-select.c (connect_to_socket): Change argument type to
58377         'bool'.
58379 2010-12-27  Bruno Haible  <bruno@clisp.org>
58381         select tests: Use existing modules.
58382         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
58383         (configure.ac): Don't test for unistd.h.
58384         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
58385         declared in <unistd.h>.
58387 2010-12-27  Bruno Haible  <bruno@clisp.org>
58389         mbrtowc: Work around a Solaris 7 bug.
58390         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
58391         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
58392         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
58393         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
58394         MBRTOWC_NULL_ARG1_BUG.
58395         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
58396         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
58397         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
58398         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
58400 2010-12-27  Jim Meyering  <meyering@redhat.com>
58402         read-file.c: tweak syntax
58403         * lib/read-file.c (fread_file): Remove space after "*" in function
58404         definitions.
58406 2010-12-27  Bruno Haible  <bruno@clisp.org>
58408         times test: Avoid gcc warnings on OSF/1.
58409         * tests/test-times.c (main): Cast printf arguments from clock_t to
58410         'long int'.
58412 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
58414         utimens: work around glibc rounding bug on older Linux kernels
58415         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
58416         on Linux with a glibc whose utimes might not work, then work
58417         around a longstanding glibc bug involving rounding rather than
58418         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
58419         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
58421 2010-12-26  Bruno Haible  <bruno@clisp.org>
58423         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
58424         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
58425         _GL_CXXALIAS_SYS.
58426         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58428 2010-12-26  Bruno Haible  <bruno@clisp.org>
58430         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
58431         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
58432         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
58433         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
58434         looking for the declaration.
58435         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
58436         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
58437         problem.
58438         * doc/posix-functions/inet_pton.texi: Likewise.
58440 2010-12-26  Bruno Haible  <bruno@clisp.org>
58442         arpa_inet: Use the common idioms with C++ support.
58443         * lib/arpa_inet.in.h: Include c++defs.h.
58444         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
58445         support.
58446         * modules/arpa_inet (Depends-on): Add c++defs.
58447         (Makefile.am): Substitute the contents of c++defs.h.
58448         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
58449         * modules/arpa_inet-c++-tests: New file.
58450         * tests/test-arpa_inet-c++.cc: New file.
58452 2010-12-25  Bruno Haible  <bruno@clisp.org>
58454         Fix more C++ link errors on Solaris 8.
58455         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
58456         $(LIB_EACCESS).
58457         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
58458         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
58459         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
58460         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
58461         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
58463 2010-12-25  Bruno Haible  <bruno@clisp.org>
58465         printf-posix: Fix link error when a non-GCC compiler is used.
58466         * lib/stdio.in.h (printf): When not using GCC, override printf
58467         correctly.
58468         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58470 2010-12-25  Bruno Haible  <bruno@clisp.org>
58472         strerror_r-posix: Update doc.
58473         * doc/posix-functions/strerror_r.texi: Update doc about the return
58474         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
58476 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58478         utimens: simplify the logic of the previous change
58479         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
58480         This should not affect whether the test succeeds or fails.
58482         utimens: configure better on hosts with NFS clock skew
58483         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
58484         uses the clock of the local host.  It might use the clock of the
58485         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
58486         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
58488 2010-12-25  Bruno Haible  <bruno@clisp.org>
58490         ptsname test: Avoid failure on Solaris.
58491         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
58492         open a pseudo-terminal; don't use BSD-style ptys.
58493         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
58495 2010-12-25  Bruno Haible  <bruno@clisp.org>
58497         ptsname: Avoid ERANGE failure on some systems.
58498         * lib/ptsname.c (buffer): Increase size.
58500 2010-12-25  Bruno Haible  <bruno@clisp.org>
58502         rename, renameat: Avoid test failures at NFS mounted locations.
58503         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
58504         so that subsequent mkdir calls succeed.
58506 2010-12-25  Bruno Haible  <bruno@clisp.org>
58508         iswblank: Fix C++ link error on Solaris 8.
58509         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
58510         _GL_FUNCDECL_SYS.
58512 2010-12-25  Bruno Haible  <bruno@clisp.org>
58514         unistd: Fix C++ link error on Solaris 8.
58515         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
58517 2010-12-25  Bruno Haible  <bruno@clisp.org>
58519         readlink doc: Mention an old glibc bug.
58520         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
58522 2010-12-25  Bruno Haible  <bruno@clisp.org>
58524         fcntl-h: Fix for use of C++ on glibc systems.
58525         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
58526         also on glibc systems in C++ mode.
58527         Reported by Gary V. Vaughan <gary@gnu.org>.
58529 2010-12-25  Bruno Haible  <bruno@clisp.org>
58531         roundl-ieee: Make it work on OSF/1 5.1 with cc.
58532         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
58534 2010-12-25  Bruno Haible  <bruno@clisp.org>
58536         truncl-ieee: Make it work on OSF/1 5.1 with cc.
58537         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
58538         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
58539         test whether truncl works according to ISO C 99 with IEC 60559.
58540         * m4/truncl-ieee.m4: New file.
58541         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
58542         m4/signbit.m4.
58543         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
58545 2010-12-25  Bruno Haible  <bruno@clisp.org>
58547         ceill-ieee: Make it work on OSF/1 5.1 with cc.
58548         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
58549         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
58550         test whether ceill works according to ISO C 99 with IEC 60559.
58551         * m4/ceill-ieee.m4: New file.
58552         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
58553         m4/signbit.m4.
58554         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
58556 2010-12-25  Bruno Haible  <bruno@clisp.org>
58558         Ensure all prerequisites of <wchar.h> are included.
58559         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
58560         before <wchar.h>.
58561         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
58562         gl_MBRLEN_NUL_RETVAL): Likewise.
58563         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
58564         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
58565         AC_FUNC_MBRTOWC): Likewise.
58566         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
58567         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
58568         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
58569         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
58570         Likewise.
58571         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
58572         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
58573         (gl_WCHAR_H): Improve comments.
58574         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
58576 2010-12-25  Bruno Haible  <bruno@clisp.org>
58578         strtok_r: Fix C syntax error in autoconf macro.
58579         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
58580         characters in test program.
58582 2010-12-24  Bruno Haible  <bruno@clisp.org>
58584         ceil, trunc, round: Fix gcc warnings.
58585         * lib/ceil.c (MIN): Undefine before redefining.
58586         * lib/trunc.c (MIN): Likewise.
58587         * lib/round.c (MIN): Likewise.
58588         Include <math.h> first.
58590 2010-12-24  Bruno Haible  <bruno@clisp.org>
58592         select tests: Avoid failures on OSF/1 5.1.
58593         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
58594         failure of closing the last socket; it may fail with ECONNRESET.
58596 2010-12-24  Eric Blake  <eblake@redhat.com>
58598         stdint: avoid HP-UX 10.20 preprocessor bug
58599         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
58600         than #if.
58601         * tests/test-floor2.c (main): Likewise.
58602         Reported by Peter O'Gorman.
58604         pipe: make obsoletion transition easier
58605         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
58606         * modules/pipe (Files): Include revived file.
58607         (Include): Drop reference, to mirror getdate's behavior.
58609 2010-12-24  Bruno Haible  <bruno@clisp.org>
58611         sys_socket: Hide mismatch of declarations on NonStop Kernel.
58612         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
58613         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
58614         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58616 2010-12-24  Bruno Haible  <bruno@clisp.org>
58618         gethostname: Ensure declaration on NonStop Kernel.
58619         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
58620         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58622 2010-12-24  Bruno Haible  <bruno@clisp.org>
58624         sys_select: Ensure all necessary types on NonStop Kernel.
58625         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
58626         include <sys/time.h>.
58627         * doc/posix-headers/sys_select.texi: Mention that it's missing on
58628         NonStop Kernel.
58629         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58631 2010-12-24  Bruno Haible  <bruno@clisp.org>
58633         sys_select: Remove unneeded include.
58634         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
58635         have <sys/select.h>.
58637 2010-12-24  Bruno Haible  <bruno@clisp.org>
58639         gethostname: Provide a fallback for HOST_NAME_MAX.
58640         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
58641         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
58642         instead.
58643         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58645 2010-12-24  Bruno Haible  <bruno@clisp.org>
58647         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
58648         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
58649         (SA_RESTART): Likewise.
58650         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58652 2010-12-24  Bruno Haible  <bruno@clisp.org>
58654         signal: Define NSIG.
58655         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
58656         * tests/test-signal.c (nsig): New variable.
58657         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58659 2010-12-24  Bruno Haible  <bruno@clisp.org>
58661         rename, renameat: Avoid test failures on OSF/1 5.1.
58662         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
58663         alternative error codes.
58664         * tests/test-renameat.c (main): Likewise.
58666 2010-12-24  Bruno Haible  <bruno@clisp.org>
58668         *printf: Detect large precisions bug on Solaris 10/SPARC.
58669         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
58670         by Paul Eggert.
58671         * tests/test-snprintf-posix.h (test_function): Add this test code here
58672         too.
58673         * tests/test-sprintf-posix.h (test_function): Likewise.
58674         * tests/test-vasnprintf-posix.c (test_function): Likewise.
58675         * tests/test-vasprintf-posix.c (test_function): Likewise.
58676         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
58677         around by gnulib.
58678         * doc/posix-functions/printf.texi: Likewise.
58679         * doc/posix-functions/snprintf.texi: Likewise.
58680         * doc/posix-functions/sprintf.texi: Likewise.
58681         * doc/posix-functions/vfprintf.texi: Likewise.
58682         * doc/posix-functions/vprintf.texi: Likewise.
58683         * doc/posix-functions/vsnprintf.texi: Likewise.
58684         * doc/posix-functions/vsprintf.texi: Likewise.
58685         * doc/posix-functions/dprintf.texi: Undo last commit.
58686         * doc/posix-functions/vdprintf.texi: Likewise.
58688 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58690         tests: port test-fdutimensat.c to Solaris 8
58691         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
58692         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
58693         On Solaris 8, it fails with errno == ENOSYS, because there is no
58694         futimens (so it can't use the fd), and there is no lutimens (so it
58695         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
58697         vsnprintf: make more consistent with snprintf; doc fixes
58699         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
58700         the byte count return problem was promoted from the snprintf-posix
58701         to the snprintf module.
58702         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
58703         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
58704         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
58705         * tests/test-snprintf.c (main): Check the byte count returned.
58706         * tests/test-vsnprintf.c (main): Likewise.
58708 2010-12-23  Eric Blake  <eblake@redhat.com>
58710         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
58711         * modules/sigpipe (License): Relax license.
58713 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
58715         doc: document Solaris printf bug with large float precisions
58716         * doc/posix-functions/dprintf.texi (dprintf):
58717         * doc/posix-functions/fprintf.texi (fprintf):
58718         * doc/posix-functions/printf.texi (printf):
58719         * doc/posix-functions/snprintf.texi (snprintf):
58720         * doc/posix-functions/sprintf.texi (sprintf):
58721         * doc/posix-functions/vdprintf.texi (vdprintf):
58722         * doc/posix-functions/vfprintf.texi (vfprintf):
58723         * doc/posix-functions/vprintf.texi (vprintf):
58724         * doc/posix-functions/vsnprintf.texi (vsnprintf):
58725         * doc/posix-functions/vsprintf.texi (vsprintf):
58726         Mention that these functions mishandle large floating point
58727         precisions on Solaris 10.  The same bug is also present in Solaris
58728         8, and I assume earlier.  This causes "cd gnulib-tests; make
58729         check" to fail on Solaris 8 (and I assume, later) when building
58730         the latest coreutils, in test-vasprintf-posix's call to
58731         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
58732         the wide flavors (e.g., wprintf) so this patch just updates the
58733         documentation for the narrow ones.
58735         test-posixtm.c: add two tests
58736         * tests/test-posixtm.c: Add two tests, to highlight the
58737         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
58738         around this bug; this is merely to document it.
58740 2010-12-22  Bruno Haible  <bruno@clisp.org>
58742         getlogin_r: Work around portability problem on OSF/1.
58743         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
58744         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
58745         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
58746         test for a truncated result.
58747         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
58748         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
58749         * modules/getlogin_r (Depends-on): Add memchr.
58750         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
58752 2010-12-22  Bruno Haible  <bruno@clisp.org>
58754         ptsname: Avoid test failure on OSF/1 5.1.
58755         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
58756         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
58757         (same_slave): New function.
58758         (main): Use it to compare ptsname's result with the expected file name.
58760 2010-12-22  Bruno Haible  <bruno@clisp.org>
58762         Port extended stdio modules to HP NonStop Kernel.
58763         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
58764         macros.
58765         * lib/fbufmode.c: Update comments.
58766         * lib/fflush.c: Likewise.
58767         * lib/fpurge.c: Likewise.
58768         * lib/freadable.c: Likewise.
58769         * lib/freadahead.c: Likewise.
58770         * lib/freading.c: Likewise.
58771         * lib/freadptr.c: Likewise.
58772         * lib/freadseek.c: Likewise.
58773         * lib/fseeko.c: Likewise.
58774         * lib/fseterr.c: Likewise.
58775         * lib/fwritable.c: Likewise.
58776         * lib/fwriting.c: Likewise.
58777         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58779 2010-12-22  Bruno Haible  <bruno@clisp.org>
58781         ttyname_r: Work around bug on OSF/1 5.1.
58782         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
58783         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
58784         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
58785         present.
58786         * lib/ttyname_r.c (ttyname_r): Update comments.
58788 2010-12-22  Bruno Haible  <bruno@clisp.org>
58790         round: Implement result sign according to IEEE 754.
58791         * lib/round.c (MIN, MINUS_ZERO): New macros.
58792         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
58793         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
58794         * tests/test-round-ieee.c (main): Likewise.
58795         * tests/test-roundl-ieee.c (main): Likewise.
58797         trunc: Implement result sign according to IEEE 754.
58798         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
58799         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
58800         * tests/test-trunc2.c: Include minus-zero.h.
58801         (MINUS_ZERO): New macro.
58802         (trunc_reference): Keep in sync with lib/trunc.c.
58803         * tests/test-truncf2.c: Include minus-zero.h.
58804         (MINUS_ZERO): New macro.
58805         (truncf_reference): Keep in sync with lib/trunc.c.
58806         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
58807         * tests/test-trunc-ieee.c (main): Likewise.
58808         * tests/test-truncl-ieee.c (main): Likewise.
58810         ceil: Implement result sign according to IEEE 754.
58811         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
58812         (FUNC): Return -0.0 for -1 < x < 0.
58813         * tests/test-ceil2.c: Include minus-zero.h.
58814         (MINUS_ZERO): New macro.
58815         (ceil_reference): Keep in sync with lib/ceil.c.
58816         * tests/test-ceilf2.c: Include minus-zero.h.
58817         (MINUS_ZERO): New macro.
58818         (ceilf_reference): Keep in sync with lib/ceil.c.
58819         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
58820         * tests/test-ceil-ieee.c (main): Likewise.
58821         * tests/test-ceill-ieee.c (main): Likewise.
58823         floor: Implement result sign according to IEEE 754.
58824         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
58825         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
58826         * tests/test-floorf2.c (floorf_reference): Likewise.
58827         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
58828         * tests/test-floor-ieee.c (main): Likewise.
58829         * tests/test-floorl-ieee.c (main): Likewise.
58831 2010-12-22  Bruno Haible  <bruno@clisp.org>
58833         getaddrinfo: Update doc.
58834         * doc/posix-functions/gai_strerror.texi: Return type is also different
58835         on AIX and HP-UX.
58837 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
58839         getaddrinfo, inet_ntop: Update doc for Solaris.
58840         * doc/posix-functions/gai_strerror.texi: Return type is also an
58841         issue on Solaris 9 and earlier.
58842         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
58843         on Solaris 10 and earlier.
58845 2010-12-21  Bruno Haible  <bruno@clisp.org>
58847         New module 'roundl-ieee'.
58848         * modules/roundl-ieee: New file.
58849         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
58850         test whether roundl works according to ISO C 99 with IEC 60559.
58851         * m4/roundl-ieee.m4: New file.
58852         * modules/roundl-ieee-tests: New file.
58853         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
58854         * tests/test-roundl.c (main): Remove signbit tests.
58855         * modules/roundl-tests (Depends-on): Remove signbit.
58856         * doc/posix-functions/roundl.texi: Mention the new module.
58858 2010-12-21  Bruno Haible  <bruno@clisp.org>
58860         New module 'truncl-ieee'.
58861         * modules/truncl-ieee: New file.
58862         * modules/truncl-ieee-tests: New file.
58863         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
58864         * tests/test-truncl.c (main): Remove signbit tests.
58865         * modules/truncl-tests (Depends-on): Remove signbit.
58866         * doc/posix-functions/truncl.texi: Mention the new module.
58868 2010-12-21  Bruno Haible  <bruno@clisp.org>
58870         New module 'ceill-ieee'.
58871         * modules/ceill-ieee: New file.
58872         * modules/ceill-ieee-tests: New file.
58873         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
58874         * tests/test-ceill.c (main): Remove signbit tests.
58875         * modules/ceill-tests (Depends-on): Remove signbit.
58876         * doc/posix-functions/ceill.texi: Mention the new module.
58878 2010-12-21  Bruno Haible  <bruno@clisp.org>
58880         New module 'floorl-ieee'.
58881         * modules/floorl-ieee: New file.
58882         * modules/floorl-ieee-tests: New file.
58883         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
58884         * tests/test-floorl.c (main): Remove signbit tests.
58885         * modules/floorl-tests (Depends-on): Remove signbit.
58886         * doc/posix-functions/floorl.texi: Mention the new module.
58888 2010-12-21  Bruno Haible  <bruno@clisp.org>
58890         New module 'round-ieee'.
58891         * modules/round-ieee: New file.
58892         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
58893         whether round works according to ISO C 99 with IEC 60559.
58894         * m4/round-ieee.m4: New file.
58895         * modules/round-ieee-tests: New file.
58896         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
58897         * tests/test-round1.c (main): Remove signbit tests.
58898         * modules/round-tests (Depends-on): Remove 'signbit'.
58899         * doc/posix-functions/round.texi: Mention the new module.
58901 2010-12-21  Bruno Haible  <bruno@clisp.org>
58903         New module 'trunc-ieee'.
58904         * modules/trunc-ieee: New file.
58905         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
58906         whether trunc works according to ISO C 99 with IEC 60559.
58907         * m4/trunc-ieee.m4: New file.
58908         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
58909         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
58910         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
58911         * modules/trunc-ieee-tests: New file.
58912         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
58913         * tests/test-trunc1.c (main): Remove signbit tests.
58914         * modules/trunc-tests (Depends-on): Remove 'signbit'.
58915         * doc/posix-functions/trunc.texi: Mention the new module.
58917 2010-12-21  Bruno Haible  <bruno@clisp.org>
58919         New module 'ceil-ieee'.
58920         * modules/ceil-ieee: New file.
58921         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
58922         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
58923         ISO C 99 with IEC 60559.
58924         * m4/ceil-ieee.m4: New file.
58925         * modules/ceil (Files): Add lib/ceil.c.
58926         (Depends-on): Add 'float'.
58927         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
58928         * lib/math.in.h (ceil): New declaration.
58929         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
58930         REPLACE_CEIL.
58931         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
58932         * modules/ceil-ieee-tests: New file.
58933         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
58934         * tests/test-math-c++.cc: Check the signature of 'ceil'.
58935         * doc/posix-functions/ceil.texi: Mention the new module.
58937 2010-12-21  Bruno Haible  <bruno@clisp.org>
58939         New module 'floor-ieee'.
58940         * modules/floor-ieee: New file.
58941         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
58942         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
58943         ISO C 99 with IEC 60559.
58944         * m4/floor-ieee.m4: New file.
58945         * modules/floor (Files): Add lib/floor.c.
58946         (Depends-on): Add 'float'.
58947         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
58948         * lib/math.in.h (floor): New declaration.
58949         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
58950         REPLACE_FLOOR.
58951         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
58952         * modules/floor-ieee-tests: New file.
58953         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
58954         * tests/test-math-c++.cc: Check the signature of 'floor'.
58955         * doc/posix-functions/floor.texi: Mention the new module.
58957 2010-12-21  Bruno Haible  <bruno@clisp.org>
58959         New module 'roundf-ieee'.
58960         * modules/roundf-ieee: New file.
58961         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
58962         test whether roundf works according to ISO C 99 with IEC 60559.
58963         * m4/roundf-ieee.m4: New file.
58964         * modules/roundf-ieee-tests: New file.
58965         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
58966         * tests/test-roundf1.c (main): Remove signbit tests.
58967         * modules/roundf-tests (Depends-on): Remove 'signbit'.
58968         * doc/posix-functions/roundf.texi: Mention the new module.
58970 2010-12-21  Bruno Haible  <bruno@clisp.org>
58972         New module 'truncf-ieee'.
58973         * modules/truncf-ieee: New file.
58974         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
58975         test whether truncf works according to ISO C 99 with IEC 60559.
58976         * m4/truncf-ieee.m4: New file.
58977         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
58978         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
58979         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
58980         * modules/truncf-ieee-tests: New file.
58981         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
58982         * tests/test-truncf1.c (main): Remove signbit tests.
58983         * modules/truncf-tests (Depends-on): Remove 'signbit'.
58984         * doc/posix-functions/truncf.texi: Mention the new module.
58986 2010-12-21  Bruno Haible  <bruno@clisp.org>
58988         New module 'ceilf-ieee'.
58989         * modules/ceilf-ieee: New file.
58990         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
58991         test whether ceilf works according to ISO C 99 with IEC 60559.
58992         * m4/ceilf-ieee.m4: New file.
58993         * modules/ceilf-ieee-tests: New file.
58994         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
58995         * tests/test-ceilf1.c (main): Remove signbit tests.
58996         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
58997         * doc/posix-functions/ceilf.texi: Mention the new module.
58999 2010-12-21  Bruno Haible  <bruno@clisp.org>
59001         New module 'floorf-ieee'.
59002         * modules/floorf-ieee: New file.
59003         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
59004         test whether floorf works according to ISO C 99 with IEC 60559.
59005         * m4/floorf-ieee.m4: New file.
59006         * modules/floorf-ieee-tests: New file.
59007         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
59008         * tests/test-floorf1.c (main): Remove signbit tests.
59009         * modules/floorf-tests (Depends-on): Remove 'signbit'.
59010         * doc/posix-functions/floorf.texi: Mention the new module.
59012 2010-12-21  Bruno Haible  <bruno@clisp.org>
59014         Support for minus zero in autoconf macros.
59015         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
59016         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
59017         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
59018         * tests/minus-zero.h: Update comments.
59020 2010-12-21  Bruno Haible  <bruno@clisp.org>
59022         Tests for module 'ceil'.
59023         * modules/ceil-tests: New file.
59024         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
59025         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
59027 2010-12-21  Bruno Haible  <bruno@clisp.org>
59029         Tests for module 'floor'.
59030         * modules/floor-tests: New file.
59031         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
59032         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
59034 2010-12-21  Bruno Haible  <bruno@clisp.org>
59036         math: Fix indentation.
59037         * lib/math.in.h (floorf): Fix indentation.
59039 2010-12-21  Bruno Haible  <bruno@clisp.org>
59041         Fix cross-compilation guesses on Solaris.
59042         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
59043         not match "solaris2.10".
59044         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
59045         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
59046         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
59048 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
59050         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
59051         This fixes a problem observed with the latest coreutils snapshot
59052         that caused a test to fail on Solaris 8.  src/csplit.c's call
59053         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
59054         earlier, instead of returning the number of bytes that would have
59055         been generated; this causes csplit to incorrectly report memory
59056         exhaustion.
59057         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
59058         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
59059         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
59060         comments to match.
59061         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
59062         Fix typo in matching older versions of Solaris: "solaris2.10"
59063         is matched by the shell pattern "solaris2.[0-9]*".  This matters
59064         only for guessing while cross-compiling.
59065         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
59067 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
59069         ftoastr: fix comment again
59070         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
59071         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
59072         Also, simplify example a bit by using flags = 0.
59074 2010-12-20  Bruno Haible  <bruno@clisp.org>
59076         round*, trunc*: Update documentation regarding glibc.
59077         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
59078         * doc/posix-functions/round.texi: Likewise.
59079         * doc/posix-functions/roundl.texi: Likewise.
59080         * doc/posix-functions/truncf.texi: Likewise.
59081         * doc/posix-functions/trunc.texi: Likewise.
59082         * doc/posix-functions/truncl.texi: Likewise.
59084 2010-12-20  Bruno Haible  <bruno@clisp.org>
59086         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
59087         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
59088         * doc/posix-functions/round.texi: Likewise.
59089         * doc/posix-functions/roundl.texi: Likewise.
59091 2010-12-20  Bruno Haible  <bruno@clisp.org>
59093         ttyname_r: Add missing declaration on HP-UX 11.
59094         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
59095         HAVE_TTYNAME_R.
59096         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
59097         declared. Set HAVE_TTYNAME_R always.
59098         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
59099         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
59100         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
59101         HAVE_TTYNAME_R.
59102         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
59104 2010-12-20  Bruno Haible  <bruno@clisp.org>
59106         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
59107         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
59108         * doc/posix-functions/getlogin_r.texi: Likewise.
59109         * tests/test-getlogin.c: Include <errno.h>.
59110         (main): Avoid test failure on HP-UX 11.11.
59111         * tests/test-getlogin_r.c (main): Likewise.
59113 2010-12-20  Bruno Haible  <bruno@clisp.org>
59115         getlogin_r: Add missing declaration on HP-UX 11.
59116         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
59117         declared also when it exists as a function.
59118         * doc/posix-functions/getlogin_r.texi: Document this workaround.
59120 2010-12-20  Bruno Haible  <bruno@clisp.org>
59122         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
59123         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
59124         through wcrtomb.
59126 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
59128         ftoastr: fix comment
59129         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
59130         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
59132 2010-12-19  Bruno Haible  <bruno@clisp.org>
59134         isnan: Ensure it is a macro.
59135         * lib/math.in.h (isnan): Define as a macro if not already a macro.
59136         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
59137         Solaris.
59139 2010-12-19  Bruno Haible  <bruno@clisp.org>
59141         ldexpl test: Fix link error on OSF/1 5.1.
59142         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
59144 2010-12-19  Bruno Haible  <bruno@clisp.org>
59146         wctype: Make it work in C++ mode on OSF/1 5.1.
59147         * lib/wctype.in.h (iswblank): Declare but not define here.
59148         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
59149         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
59150         * modules/wctype (Files): Add lib/iswblank.c.
59152 2010-12-19  Bruno Haible  <bruno@clisp.org>
59154         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
59155         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
59156         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
59158 2010-12-19  Bruno Haible  <bruno@clisp.org>
59160         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
59161         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
59162         _POSIX_PII_SOCKET.
59163         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
59164         * doc/posix-functions/recvfrom.texi: Likewise.
59165         * doc/posix-functions/send.texi: Likewise.
59166         * doc/posix-functions/sendto.texi: Likewise.
59168 2010-12-19  Bruno Haible  <bruno@clisp.org>
59170         tcgetsid: Add missing declaration on OSF/1 5.1.
59171         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
59172         HAVE_TCGETSID.
59173         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
59174         Don't set HAVE_TCGETSID.
59175         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
59176         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
59177         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
59178         HAVE_TCGETSID.
59179         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
59181 2010-12-19  Bruno Haible  <bruno@clisp.org>
59183         stdio: Fix problem with popen() declaration on OSF/1 5.1.
59184         * lib/stdio.in.h: During the include_next statement, let recursive
59185         includes of this file include only the system header file.
59187 2010-12-19  Bruno Haible  <bruno@clisp.org>
59189         iconv_open: Fix regression from 2010-12-04.
59190         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
59191         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
59193 2010-12-19  Bruno Haible  <bruno@clisp.org>
59195         stdbool test: Avoid a gcc warning.
59196         * tests/test-stdbool.c (main): Fail if e1 is false.
59197         Reported by Jim Meyering.
59199 2010-12-19  Jim Meyering  <meyering@redhat.com>
59201         setenv: restore to working order
59202         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
59203         mistakenly removed.
59204         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
59205         HAVE_SETENV.
59206         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
59207         HAVE_SETENV.
59209 2010-12-19  Bruno Haible  <bruno@clisp.org>
59211         Document some different function declarations on OSF/1 5.1.
59212         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
59213         * doc/posix-functions/inet_ntop.texi: Likewise.
59214         * doc/posix-functions/gethostname.texi: Likewise.
59215         * lib/unistd.in.h (gethostname): Update comment.
59217 2010-12-19  Bruno Haible  <bruno@clisp.org>
59219         doc: Mention vasprintf-posix module.
59220         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
59221         the 'vasprintf-posix' module.
59222         * doc/glibc-functions/vasprintf.texi: Likewise.
59224 2010-12-19  Bruno Haible  <bruno@clisp.org>
59226         unsetenv: Add missing declaration on OSF/1 5.1.
59227         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
59228         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
59229         Don't set HAVE_UNSETENV. In the test program, set _BSD.
59230         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
59231         not HAVE_UNSETENV.
59232         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
59233         HAVE_UNSETENV.
59234         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
59236 2010-12-19  Bruno Haible  <bruno@clisp.org>
59238         setenv: Add missing declaration on OSF/1 5.1.
59239         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
59240         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
59241         declared. Don't set HAVE_SETENV.
59242         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
59243         not HAVE_SETENV.
59244         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
59245         HAVE_SETENV.
59246         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
59248 2010-12-19  Bruno Haible  <bruno@clisp.org>
59250         nl_langinfo tests: Avoid gcc warning.
59251         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
59253 2010-12-19  Bruno Haible  <bruno@clisp.org>
59255         mknod: Avoid error in C++ mode on OSF/1 with GCC.
59256         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
59257         _GL_CXXALIAS_SYS.
59259 2010-12-19  Bruno Haible  <bruno@clisp.org>
59261         stdbool: Relax test.
59262         * tests/test-stdbool.c (e): Don't require that casts from a variable's
59263         address to 'bool' work in static initializer, for compilers other than
59264         GCC.
59266 2010-12-19  Bruno Haible  <bruno@clisp.org>
59268         ftello: Add missing declaration on OSF/1 5.1.
59269         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
59270         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
59271         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
59272         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
59273         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
59275 2010-12-19  Bruno Haible  <bruno@clisp.org>
59277         fseeko: Add missing declaration on OSF/1 5.1.
59278         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
59279         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
59280         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
59281         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
59282         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
59284 2010-12-19  Bruno Haible  <bruno@clisp.org>
59286         fchdir: Add missing declaration on OSF/1 5.1.
59287         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
59288         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
59289         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
59290         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
59291         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
59293 2010-12-19  Bruno Haible  <bruno@clisp.org>
59295         relocatable-prog-wrapper: Separate from relocatable-prog.
59296         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
59297         uninstall-relocwrapper rule here.
59298         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
59299         Reported by Ian Beckwith <ianb@erislabs.net>.
59301 2010-12-19  Bruno Haible  <bruno@clisp.org>
59303         unistr/u8-mbsnlen: Add missing dependency.
59304         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
59305         Reported by Ian Beckwith <ianb@erislabs.net>.
59307 2010-12-19  Bruno Haible  <bruno@clisp.org>
59309         iconv: Make it possible again to use this module without 'iconv-h'.
59310         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
59311         if it is not defined.
59312         Reported by Ian Beckwith <ianb@erislabs.net>.
59314 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59316         acl: port to Solaris 8 when copying from tmpfs to ufs
59317         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
59318         error number.  Problem observed on Solaris 8 with latest
59319         coreutils, with "mv A B", where A is on a tmpfs file system and B
59320         is on a ufs file system.  This caused coreutils' mv/part-symlink
59321         test to fail.
59323         tests: set fail=0 at start
59324         * tests/init.sh (setup_): Move fail=0 initialization here ...
59325         (mktempd_): ... from here, so that tests can rely on fail being
59326         set to 0 initially.  This fixes a problem in coreutils; see:
59327         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
59329 2010-12-18  Bruno Haible  <bruno@clisp.org>
59331         memmem-simple: Stylistic changes.
59332         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
59333         Fix preprocessor directive indentation.
59335 2010-12-15  Pádraig Brady  <P@draigBrady.com>
59337         memmem, memmem-simple: reorganize and expand empty needle check
59338         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
59339         functional checks to memmem-simple so that one has a fully functional
59340         memmem by using just this module.
59341         Restrict the performance only check to the memmem module.
59342         Also expand the empty needle check to ensure the correct
59343         pointer is returned, not just a non NULL pointer.
59344         * doc/glibc-functions/memmem.texi: Rearrange the portability
59345         documentation to correlate with the rearranged checks.
59346         Clarify exactly how the memmem and memmem-simple modules
59347         relate to each other.
59349 2010-12-15  Pádraig Brady  <P@draigBrady.com>
59350             Bruno Haible  <bruno@clisp.org>
59352         Improve cross-compilation guesses for uClibc.
59353         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
59354         that uClibc does not have the glibc bug.
59355         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
59356         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
59358 2010-12-14  Eric Blake  <eblake@redhat.com>
59360         configmake: provide fallbacks for oldest supported autotools
59361         * m4/configmake.m4: New file.
59362         * modules/configmake (Files): Ship it.
59363         (configure.ac): Use it to guarantee fallbacks.
59365 2010-12-13  Pádraig Brady  <P@draigBrady.com>
59367         read-file: Improve handling of large files
59368         * lib/read-file.c (fread_file): Minimize realloc()s
59369         for regular files, and better manage sizes around SIZE_MAX.
59371 2010-12-13  Eric Blake  <eblake@redhat.com>
59373         cloexec, fcntl: relax license
59374         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
59375         consent from all contributors.
59376         * modules/fcntl (License): Likewise.
59378 2010-12-10  Bruno Haible  <bruno@clisp.org>
59380         Tests for module 'pipe-posix'.
59381         * modules/pipe-posix-tests: New file.
59382         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
59384 2010-12-10  Bruno Haible  <bruno@clisp.org>
59386         pipe-posix: Make it work in C++ mode.
59387         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
59388         (pipe): Use common idiom, not a macro definition.
59389         * lib/pipe.c: New file.
59390         * m4/pipe.m4: New file.
59391         * modules/pipe-posix (Description): Enhance.
59392         (Files): Add lib/pipe.c, m4/pipe.m4.
59393         (configure.ac): Invoke gl_FUNC_PIPE.
59394         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
59395         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
59396         * tests/test-unistd-c++.cc: Check the signature of pipe.
59398 2010-12-10  Bruno Haible  <bruno@clisp.org>
59400         Rename module 'pipe' to 'spawn-pipe'.
59401         * modules/spawn-pipe: New file, renamed from modules/pipe.
59402         (Files, configure.ac, Makefile.am): Update.
59403         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
59404         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
59405         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
59406         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
59407         "spawn-pipe.h" instead of "pipe.h".
59408         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
59409         to gl_SPAWN_PIPE.
59410         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
59411         (Files, Makefile.am): Update.
59412         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
59413         Update.
59414         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
59415         Include "spawn-pipe.h" instead of "pipe.h".
59416         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
59417         * lib/javacomp.c: Likewise.
59418         * lib/javaversion.c: Likewise.
59419         * lib/pipe-filter-gi.c: Likewise.
59420         * lib/pipe-filter-ii.c: Likewise.
59421         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
59422         * modules/javacomp (Depends-on): Likewise.
59423         * modules/javaversion (Depends-on): Likewise.
59424         * modules/pipe-filter-gi (Depends-on): Likewise.
59425         * modules/pipe-filter-ii (Depends-on): Likewise.
59426         * MODULES.html.sh (Executing programs): Update.
59427         * NEWS: Mention the change.
59429 2010-12-10  Eric Blake  <eblake@redhat.com>
59431         pipe-posix: new module
59432         * modules/pipe-posix: New file.
59433         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
59434         (gl_UNISTD_H): Check for declaration.
59435         * modules/unistd (Makefile.am): Substitute it.
59436         * lib/unistd.in.h (pipe): Provide it for mingw.
59437         * doc/posix-functions/pipe.texi (pipe): Update documentation.
59438         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
59440 2010-12-07  Bruno Haible  <bruno@clisp.org>
59442         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
59443         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
59444         u8_strcmp_gnu.
59445         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
59447 2010-12-06  Bruno Haible  <bruno@clisp.org>
59449         Update internal documentation.
59450         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
59452 2010-12-04  Bruno Haible  <bruno@clisp.org>
59454         Put more information about failed tests into the test return codes.
59455         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
59456         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
59457         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
59458         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
59459         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
59460         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59461         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59462         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
59463         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
59464         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59465         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
59466         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
59467         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
59468         * m4/stdint.m4 (gl_STDINT_H): Likewise.
59469         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
59470         returns a bit mask.
59471         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
59472         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
59473         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
59474         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
59475         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
59476         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
59477         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59478         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
59479         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
59480         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
59481         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
59482         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
59483         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
59484         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
59485         * m4/link.m4 (gl_FUNC_LINK): Likewise.
59486         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
59487         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
59488         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
59489         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
59490         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
59491         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59492         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
59493         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
59494         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
59495         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
59496         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
59497         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
59498         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
59499         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
59500         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
59501         gl_PRINTF_PRECISION): Likewise.
59502         * m4/regex.m4 (gl_REGEX): Likewise.
59503         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
59504         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
59505         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
59506         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
59507         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59508         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59509         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
59510         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
59511         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59512         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59513         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
59514         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
59515         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
59516         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
59517         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
59518         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
59519         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
59520         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
59521         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59522         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
59523         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
59524         enumerated value.
59525         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
59527 2010-12-04  Bruno Haible  <bruno@clisp.org>
59529         Update for Solaris 11 2010-11.
59530         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
59531         Express, released in November 2010.
59533 2010-12-04  Bruno Haible  <bruno@clisp.org>
59535         nproc: Relax license.
59536         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
59537         and Paul Eggert.
59538         Requested by Ludovic Courtès <ludo@gnu.org>.
59540 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
59542         utimecmp: fine-grained src to nearby coarse-grained dest
59544         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
59545         and the source is on a file system with higher-resolution time
59546         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
59547         not work, and the time stamps are close together, the algorithm to
59548         determine the exact resolution from the read-back mtime was buggy:
59549         it had a "!=" where it should have had an "==".  This bug has been
59550         in the code ever since it was introduced to gnulib.
59551         Problem reported by Dan Jacobson in
59552         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
59554 2010-11-30  Bruno Haible  <bruno@clisp.org>
59556         strerror_r-posix: Fix autoconf test.
59557         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
59559 2010-11-28  Bruno Haible  <bruno@clisp.org>
59560             Paul Eggert  <eggert@cs.ucla.edu>
59562         Tests for module 'getdomainname'.
59563         * modules/getdomainname-tests: New file.
59564         * tests/test-getdomainname.c: New file, based on
59565         tests/test-gethostname.c.
59567 2010-11-28  Bruno Haible  <bruno@clisp.org>
59568             Paul Eggert  <eggert@cs.ucla.edu>
59570         getdomainname: Use the system function when possible.
59571         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
59572         (getdomainname): Replace if needed. Provide the declaration if it is
59573         missing. Don't use _GL_CXXALIAS_SYS_CAST.
59574         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
59575         (getdomainname): When the system has getdomainname, call the system
59576         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
59577         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
59578         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
59579         found in libnsl. Look for the declaration also in <netdb.h>. Replace
59580         the function if its second argument is of type 'int' or if it is found
59581         in libnsl.
59582         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
59583         <sys/systeminfo.h> and sysinfo().
59584         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
59585         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
59586         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
59587         HAVE_GETDOMAINNAME.
59588         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
59589         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
59590         * doc/glibc-functions/getdomainname.texi: Document the problems with
59591         the getdomainname declaration.
59593 2010-11-28  Bruno Haible  <bruno@clisp.org>
59595         sys_socket: Ensure ss_family field on AIX.
59596         * lib/sys_socket.in.h (ss_family): New macro definition.
59597         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
59598         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
59599         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
59600         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
59601         * modules/sys_socket (Makefile.am): Substitute
59602         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
59603         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
59605 2010-11-27  Bruno Haible  <bruno@clisp.org>
59607         readline: Improve configure output.
59608         * m4/readline.m4 (gl_FUNC_READLINE): Make the
59609         "checking for readline..." result understandable.
59611 2010-11-27  Bruno Haible  <bruno@clisp.org>
59613         *printf-posix: Detect a bug on Solaris 10/x86.
59614         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
59615         for floating-point output.
59616         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
59617         directive.
59618         * tests/test-snprintf-posix.h (test_function): Likewise.
59619         * tests/test-sprintf-posix.h (test_function): Likewise.
59620         * tests/test-vasprintf-posix.c (test_function): Likewise.
59621         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
59622         * doc/posix-functions/printf.texi: Likewise.
59623         * doc/posix-functions/snprintf.texi: Likewise.
59624         * doc/posix-functions/sprintf.texi: Likewise.
59625         * doc/posix-functions/vfprintf.texi: Likewise.
59626         * doc/posix-functions/vprintf.texi: Likewise.
59627         * doc/posix-functions/vsnprintf.texi: Likewise.
59628         * doc/posix-functions/vsprintf.texi: Likewise.
59629         * doc/glibc-functions/obstack_printf.texi: Likewise.
59630         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
59632 2010-11-27  Bruno Haible  <bruno@clisp.org>
59634         Fix link error when module libunistring-optional is in use.
59635         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
59636         * modules/striconveha-tests (Makefile.am): Likewise.
59638 2010-11-27  Bruno Haible  <bruno@clisp.org>
59640         regex: Mention link dependencies.
59641         * modules/regex (Link): New section.
59642         * modules/rpmatch (Link): Likewise.
59643         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
59645 2010-11-27  Bruno Haible  <bruno@clisp.org>
59647         ftoastr: Fix compilation error on Solaris.
59648         * lib/ftoastr.c: Include <config.h>.
59650 2010-11-27  Bruno Haible  <bruno@clisp.org>
59652         getloadavg: Update documentation.
59653         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
59655 2010-11-27  Bruno Haible  <bruno@clisp.org>
59657         sys_socket: Fix test whether the functions are declared.
59658         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
59659         not <sys/select.h>.
59661 2010-11-27  Bruno Haible  <bruno@clisp.org>
59663         getpass: Make sure to get system declaration on some platforms.
59664         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
59665         gl_USE_SYSTEM_EXTENSIONS.
59666         * modules/getpass (Depends-on): Add extensions.
59668 2010-11-26  Bruno Haible  <bruno@clisp.org>
59670         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
59671         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
59672         'iconv' module is present.
59673         (ICONV_CONST): New macro.
59674         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
59675         ICONV_CONST.
59676         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
59677         set ICONV_CONST.
59678         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
59679         here.
59680         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
59681         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
59682         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
59683         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
59684         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
59685         present.
59687 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
59689         ftoastr: comment fix
59690         * lib/ftoastr.c: "little" -> "little or no" in comment
59692 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
59694         stdint: port to GCC 4.3 + OSX + Octave
59695         On this platform, stdint.h is buggy and defines int64_t to long
59696         long int.  The replacement defined it to long int, causing
59697         problems with C++ style name mangling.  Instead, trust the system
59698         definition if INT64_MAX is defined, and likewise for the unsigned
59699         variant.   Problem reported by Jarno Rajahalme in
59700         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
59701         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
59702         and don't mess with int64_t and INT64_MAX in this case.
59703         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
59705 2010-11-24  Bruno Haible  <bruno@clisp.org>
59707         doc: Corrections regarding MacOS X 10.4 and 10.5.
59708         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
59709         MacOS X.
59710         Reported by Simon Josefsson.
59712 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
59714         Uninstall ".bin" files installed by relocwrapper.
59715         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
59716         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
59717         unless it is already there.
59719 2010-11-21  Bruno Haible  <bruno@clisp.org>
59721         Update for NetBSD 5.0.
59722         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
59723         NetBSD; the test fails on NetBSD 5.0.
59724         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
59725         about NetBSD.
59727 2010-11-21  Bruno Haible  <bruno@clisp.org>
59729         Update for HP-UX 11.23 and HP-UX 11.31.
59730         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
59731         HP-UX.
59733 2010-11-21  Bruno Haible  <bruno@clisp.org>
59735         Update for MacOS X 10.5.
59736         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
59737         MacOS X; the test fails on MacOS X 10.5.8.
59738         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
59739         about MacOS X.
59741 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
59743         bootstrap: add bootstrap_sync option.
59744         See discussion at
59745         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
59746         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
59747         * build-aux/bootstrap: Accept --bootstrap-sync to update
59748         bootstrap if it is not identical to the local gnulib's
59749         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
59750         enable this by default.  Accept --no-bootstrap-sync to disable
59751         it.
59753 2010-11-20  Bruno Haible  <bruno@clisp.org>
59755         Ensure that <features.h> is included before __GLIBC__ is tested.
59756         * lib/printf-parse.h: Include <features.h>.
59757         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
59758         Reported by Mike Frysinger <vapier@gentoo.org>.
59760         Ensure that <features.h> is included before __GLIBC__ is tested.
59761         * lib/wchar.in.h: Include <features.h>.
59762         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
59763         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
59764         Reported by Mike Frysinger <vapier@gentoo.org>.
59766         Ensure that <features.h> is included before __GLIBC__ is tested.
59767         * lib/arpa_inet.in.h: Include <features.h>.
59768         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
59769         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
59770         Reported by Mike Frysinger <vapier@gentoo.org>.
59772         Ensure that <features.h> is included before __GLIBC__ is tested.
59773         * build-aux/link-warning.h: Include <features.h>.
59774         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
59775         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
59776         Reported by Mike Frysinger <vapier@gentoo.org>.
59778         Ensure that <features.h> is included before __GLIBC__ is tested.
59779         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
59780         Reported by Mike Frysinger <vapier@gentoo.org>.
59782 2010-11-20  Bruno Haible  <bruno@clisp.org>
59784         memmem: Fix autoconf test.
59785         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
59787 2010-11-20  Bruno Haible  <bruno@clisp.org>
59789         Port to uClibc.
59790         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
59791         * lib/fcntl.in.h: Likewise.
59792         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
59793         * lib/mbrtowc.c (mbrtowc): Likewise.
59794         * lib/relocatable.c (find_shared_library_fullname): Likewise.
59795         * lib/strerror_r.c: Likewise.
59796         * lib/unistr/u8-strnlen.c: Likewise.
59797         * lib/vasnprintf.c (decimal_point_char): Likewise.
59798         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
59799         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
59800         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
59801         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
59802         * tests/test-sigaction.c (handler, main): Likewise.
59803         * lib/freading.h: Treat uClibc like a non-glibc platform.
59804         * lib/freading.c: Likewise.
59805         * lib/gettext.h: Likewise.
59806         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
59807         Likewise.
59808         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
59809         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
59810         * lib/propername.c (proper_name_utf8): Likewise.
59811         * lib/spawn.in.h: Likewise.
59812         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
59813         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
59814         mem_cd_iconveh_internal): Likewise.
59815         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
59816         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
59817         strstr, strcasestr): Likewise.
59818         * lib/unicodeio.c (unicode_to_mb): Likewise.
59819         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
59820         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
59821         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
59822         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
59823         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
59824         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
59825         * lib/unistr/u8-stpncpy.c: Likewise.
59826         * lib/vasnprintf.c (VASNPRINTF): Likewise.
59827         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
59828         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59829         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59830         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
59831         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
59832         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
59833         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
59834         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
59835         Likewise.
59836         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
59837         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59838         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
59839         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59840         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59841         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
59842         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
59843         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
59844         * tests/test-getopt.h (OPTIND_MIN): Likewise.
59845         * tests/test-striconveha.c (main): Likewise.
59846         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59847         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
59848         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
59849         * doc/posix-functions/getline.texi: Likewise.
59850         Reported by Mike Frysinger <vapier@gentoo.org>.
59852 2010-11-20  Bruno Haible  <bruno@clisp.org>
59854         nproc: Fix condition.
59855         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
59856         HAVE_PTHREAD_AFFINITY_NP.
59858 2010-11-20  Bruno Haible  <bruno@clisp.org>
59860         Fix a comment.
59861         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
59863 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
59865         ftoastr: don't assume snprintf
59866         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
59867         Implement a subset of snprintf here, by using sprintf safely.
59868         * modules/ftoastr (Depends-on): Remove snprintf.
59870 2010-11-19  Jim Meyering  <meyering@redhat.com>
59872         test-rename.h: fix compilation failure
59873         * tests/test-rename.h (test_rename): Add omitted "}".
59875 2010-11-17  Jim Meyering  <meyering@redhat.com>
59877         maint.mk: add a URL discussing the no-@acronym policy
59878         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
59880 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
59882         ftoastr: depend on snprintf, improve comments
59883         * lib/ftoastr.c: Also mention Loitsch's draft.
59884         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
59885         needed in the current implementation, but it might simplify
59886         speeding up the code later.
59887         * modules/ftoastr: Depend on snprintf; this improves portability.
59888         Suggested by Bruno Haible in the same email.
59890         ftoastr: port to hosts lacking strtof and strtold
59891         Problem reported by Bruno Haible in
59892         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
59893         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
59894         environment and strtold (and presumably strtof) are not available.
59895         * modules/ftoastr (Files): Add m4/c-strtod.m4.
59896         (configure.ac): Require gl_C99_STRTOLD.
59898 2010-11-18  Bruno Haible  <bruno@clisp.org>
59900         c-strtold: Avoid link error on AIX 7.
59901         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
59902         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
59903         (gl_C_STRTOLD): Test whether strtold_l exists.
59904         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59906 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
59908         intprops: new macro INT_BITS_STRLEN_BOUND
59909         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
59910         ftoastr.h.  This exposes an internal of intprops.h that was formerly
59911         not exposed.  Also, it uses a slightly tighter bound than before;
59912         though this makes no practical difference, we might as well be as
59913         tight as we easily can.
59915         ftoastr: new module, for lossless conversion of floats to short strings
59916         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
59917         * modules/ftoastr: New files.
59919 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59921         bootstrap: port to Solaris sed
59922         * build-aux/bootstrap (get_version): Port to Solaris sed.
59923         See Ralf Wildenhues's note in
59924         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
59926 2010-11-14  Jim Meyering  <meyering@redhat.com>
59928         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
59929         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
59930         and move definition closer to sole use.
59932 2010-11-13  Jim Meyering  <meyering@redhat.com>
59934         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
59935         Now we require at least autoconf-2.59, which means the work-around
59936         is no longer needed.
59937         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
59938         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
59939         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
59940         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
59941         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
59943 2010-11-13  Bruno Haible  <bruno@clisp.org>
59945         rename, renameat: Avoid test failures at NFS mounted locations.
59946         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
59947         functions.
59948         (test_rename): Use assert_nonexistent.
59949         * tests/test-rename.c: Include <dirent.h>.
59950         * tests/test-renameat.c: Likewise.
59951         Reported by Gary V. Vaughan <gary@gnu.org>.
59953         rename, renameat: Document Linux bug with NFS
59954         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
59955         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
59956         * doc/posix-functions/renameat.texi: Likewise.
59957         Suggested by Eric Blake.
59959 2010-11-13  Bruno Haible  <bruno@clisp.org>
59961         rename test: Add comments.
59962         * tests/test-rename.h (test_rename): Add structure and comments.
59964 2010-11-13  Eric Blake  <eblake@redhat.com>
59966         maintainer-makefile: cover a few more files
59967         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
59968         scripts generated within C files, for libvirt.
59970 2010-11-13  Bruno Haible  <bruno@clisp.org>
59972         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
59973         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
59974         character, return the number of bytes that belong together, not always
59975         1.
59976         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
59977         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
59978         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
59979         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
59980         number of bytes of an invalid character.
59981         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
59982         (main): Invoke it.
59983         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
59984         results.
59985         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
59986         malformed byte sequences.
59987         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
59988         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
59989         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
59990         Reported by Ben Pfaff and Paolo Bonzini.
59992 2010-11-13  Bruno Haible  <bruno@clisp.org>
59994         openat: Work around glibc bug with fchownat() and empty file names.
59995         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
59996         (gl_FUNC_FCHOWNAT): Invoke it.
59997         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
59998         * doc/posix-functions/fchownat.texi: Document the glibc bug.
59999         Reported by Gary V. Vaughan <gary@gnu.org>.
60001 2010-11-13  Bruno Haible  <bruno@clisp.org>
60003         openat: Ensure autoconf macro ordering.
60004         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
60005         gl_USE_SYSTEM_EXTENSIONS.
60006         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
60008 2010-11-13  Bruno Haible  <bruno@clisp.org>
60010         Update comments.
60011         * lib/unistr/u8-check.c: Update file name in comments.
60012         * lib/unistr/u8-mblen.c: Likewise.
60013         * lib/unistr/u8-prev.c: Likewise.
60014         * lib/unistr/u8-strmblen.c: Likewise.
60015         * lib/unistr/u8-strmbtouc.c: Likewise.
60017 2010-11-13  Jim Meyering  <meyering@redhat.com>
60019         tests: avoid test failure on Solaris 10 due to lack of PATH export
60020         * tests/test-update-copyright.sh: Don't forget to export PATH.
60022         init.sh: ensure that IFS is defined, just in case...
60023         * tests/init.sh (setup_): Ensure that IFS is defined,
60024         so that saving and restoring it works as expected.  This
60025         appears to be useful at least for an old version of dash
60026         from a long time ago (RH 6).  See here for details:
60027         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
60029         maint.mk: tighten "test a == b" check
60030         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
60031         test to files that contain something like #!/bin/sh.
60032         Without this, coreutils would get two false positives in
60033         the comments of C source files.
60035 2010-11-12  Eric Blake  <eblake@redhat.com>
60037         bootstrap: fix typo in previous attempt
60038         * build-aux/bootstrap (buildreq): Correct the grouping.
60039         Reported by Paul Eggert.
60041         maintainer-makefile: prohibit test x == x
60042         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
60043         Based on a report by Matthias Bolte.
60045         bootstrap: allow FreeBSD gzip
60046         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
60047         which has no '.' and goes to stderr.
60048         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
60049         Reported by Matthias Bolte.
60051         maintainer-makefile: check for i18n setup
60052         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
60053         will likely work.
60055 2010-11-12  Bruno Haible  <bruno@clisp.org>
60057         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
60058         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
60059         * lib/nanosleep.c (nanosleep): Likewise.
60061 2010-11-11  Bruno Haible  <bruno@clisp.org>
60063         fcntl-h: Fix for use of C++ on glibc systems.
60064         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
60065         also on glibc systems in C++ mode.
60066         Reported by Gary V. Vaughan <gary@gnu.org>.
60068 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
60070         mknod: avoid false failure with dash
60071         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
60073 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
60075         unlink: Fix "is it should" typo in diagnostic.
60076         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
60077         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
60079 2010-11-11  Bruno Haible  <bruno@clisp.org>
60081         Tests for module 'strerror_r-posix'.
60082         * modules/strerror_r-posix-tests: New file.
60083         * tests/test-strerror_r.c: New file.
60084         * tests/test-string-c++.cc: Check the signature of strerror_r.
60086         New module 'strerror_r-posix'.
60087         * lib/string.in.h (strerror_r): New declaration.
60088         * lib/strerror_r.c: New file.
60089         * m4/strerror_r.m4: New file.
60090         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
60091         of strerror_r.
60092         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
60093         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
60094         * modules/strerror_r-posix: New file.
60095         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
60096         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
60097         * doc/posix-functions/strerror_r.texi: Mention the new module and the
60098         portability problems.
60100 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
60102         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
60103         line is also considered for output. Quoted function name in shell
60104         command, so temporary files for functions like MyClass::operator()
60105         are removed correctly without errors.
60107 2010-11-09  Bruno Haible  <bruno@clisp.org>
60109         * doc/posix-functions/strerror.texi: List more failing platforms.
60111         * doc/posix-functions/strerror.texi: Add a comment.
60113 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60115         fdopendir: fix bug on MacOS X when low on file descriptors
60117         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
60118         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
60119         All callers changed.
60120         (fdopendir): Invoke save_cwd at the top level, not after using
60121         multiple dup() calls to use up file descriptors.  Then retry
60122         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
60123         less than the maximum number of open file descriptors, because
60124         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
60125         on Mac OS X 10.6.4 for tar 1.24
60126         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
60127         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
60128         and for tar 1.25
60129         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
60131 2010-11-07  Bruno Haible  <bruno@clisp.org>
60133         vasnprintf: Support I flag on glibc systems.
60134         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
60135         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
60136         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
60137         snprintf function.
60138         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
60139         glibc systems.
60140         * tests/test-vasnprintf-posix3.c: New file.
60141         * modules/vasnprintf-posix-tests (Files): Add it.
60142         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
60144 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60146         [html] Fix copy/paste bug: Use unique name for compiler warnings.
60147         * MODULES.html.sh: For compiler warnings, use name
60148         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
60150 2010-11-05  Eric Blake  <eblake@redhat.com>
60152         ceil, floor: avoid spurious failure with icc
60153         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
60154         [denormals-as-zero] when optimizing without -mieee-fp option.
60155         * tests/test-floorf2.c (floorf_reference): Likewise.
60156         * tests/test-ceilf1.c (dummy): New function.
60157         (main): Use it to outsmart icc's optimization.
60158         * tests/test-floorf1.c (dummy, main): Likewise.
60160         tests: require working signbit
60161         * modules/ceilf-tests (Depends-on): Add signbit.
60162         * modules/ceill-tests (Depends-on): Likewise.
60163         * modules/floorf-tests (Depends-on): Likewise.
60164         * modules/floorl-tests (Depends-on): Likewise.
60165         * modules/round-tests (Depends-on): Likewise.
60166         * modules/roundf-tests (Depends-on): Likewise.
60167         * modules/roundl-tests (Depends-on): Likewise.
60168         * modules/trunc-tests (Depends-on): Likewise.
60169         * modules/truncf-tests (Depends-on): Likewise.
60170         * modules/truncl-tests (Depends-on): Likewise.
60172         strtod: work around icc bug
60173         * lib/strtod.c (minus_zero): Define to working value.
60174         (strtod): Use it to avoid icc bug.
60176         copysign: enhance tests
60177         * modules/copysign-tests (Files): Add minus-zero.h.
60178         * tests/test-copysign.c (main): Also test zeros.
60180 2010-11-04  Eric Blake  <eblake@redhat.com>
60182         ceil, floor, round, trunc: enhance tests of -0
60183         * tests/test-ceilf1.c (main): Ensure correct sign of result.
60184         * tests/test-ceill.c (main): Likewise.
60185         * tests/test-floorf1.c (main): Likewise.
60186         * tests/test-floorl.c (main): Likewise.
60187         * tests/test-round1.c (main): Likewise.
60188         * tests/test-roundf1.c (main): Likewise.
60189         * tests/test-roundl.c (main): Likewise.
60190         * tests/test-trunc1.c (main): Likewise.
60191         * tests/test-truncf1.c (main): Likewise.
60192         * tests/test-truncl.c (main): Likewise.
60194 2010-11-04  Eric Blake  <eblake@redhat.com>
60196         frexp, tests: work around ICC bug with -zero
60197         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
60198         works with more compilers.
60199         * tests/minus-zero.h: New file.
60200         * modules/ceilf-tests (Files): Include it.
60201         * modules/ceill-tests (Files): Likewise.
60202         * modules/floorf-tests (Files): Likewise.
60203         * modules/floorl-tests (Files): Likewise.
60204         * modules/frexp-nolibm-tests (Files): Likewise.
60205         * modules/frexp-tests (Files): Likewise.
60206         * modules/frexpl-nolibm-tests (Files): Likewise.
60207         * modules/frexpl-tests (Files): Likewise.
60208         * modules/isnan-tests (Files): Likewise.
60209         * modules/isnand-nolibm-tests (Files): Likewise.
60210         * modules/isnand-tests (Files): Likewise.
60211         * modules/isnanf-nolibm-tests (Files): Likewise.
60212         * modules/isnanf-tests (Files): Likewise.
60213         * modules/isnanl-nolibm-tests (Files): Likewise.
60214         * modules/isnanl-tests (Files): Likewise.
60215         * modules/round-tests (Files): Likewise.
60216         * modules/roundf-tests (Files): Likewise.
60217         * modules/roundl-tests (Files): Likewise.
60218         * modules/ldexpl-tests (Files): Likewise.
60219         * modules/signbit-tests (Files): Likewise.
60220         * modules/snprintf-posix-tests (Files): Likewise.
60221         * modules/sprintf-posix-tests (Files): Likewise.
60222         * modules/strtod-tests (Files): Likewise.
60223         * modules/trunc-tests (Files): Likewise.
60224         * modules/truncf-tests (Files): Likewise.
60225         * modules/truncl-tests (Files): Likewise.
60226         * modules/vsnprintf-posix-tests (Files): Likewise.
60227         * modules/vsprintf-posix-tests (Files): Likewise.
60228         * modules/vasnprintf-posix-tests (Files): Likewise.
60229         * modules/vasprintf-posix-tests (Files): Likewise.
60230         * tests/test-ceilf1.c (main): Use it.
60231         * tests/test-ceill.c (main): Likewise.
60232         * tests/test-floorf1.c (main): Likewise.
60233         * tests/test-floorl.c (main): Likewise.
60234         * tests/test-frexp.c (main): Likewise.
60235         * tests/test-frexpl.c (main): Likewise.
60236         * tests/test-isnan.c (main): Likewise.
60237         * tests/test-isnand.h (main): Likewise.
60238         * tests/test-isnanf.h (main): Likewise.
60239         * tests/test-isnanl.h (main): Likewise.
60240         * tests/test-ldexpl.c (main): Likewise.
60241         * tests/test-round.c (main): Likewise.
60242         * tests/test-roundf.c (main): Likewise.
60243         * tests/test-roundl.c (main): Likewise.
60244         * tests/test-signbit.c (test_signbitf, test_signbitd)
60245         (test_signbitl): Likewise.
60246         * tests/test-snprintf-posix.h (test_function): Likewise.
60247         * tests/test-sprintf-posix.h (test_function): Likewise.
60248         * tests/test-strtod.c (main): Likewise.
60249         * tests/test-trunc1.c (main): Likewise.
60250         * tests/test-truncf1.c (main): Likewise.
60251         * tests/test-truncl.c (main): Likewise.
60253         isnanl: work around icc bug
60254         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
60256 2010-11-03  Eric Blake  <eblake@redhat.com>
60258         tests: fix compiler warnings
60259         * tests/test-getopt.h (test_getopt): Fix condition.
60260         * tests/test-getopt_long.h (test_getopt_long): Likewise.
60261         * tests/test-pipe2.c (main): Likewise.
60262         * tests/test-quotearg-simple.c (main): Avoid icc warning.
60264         utimens: fix broken m4 test
60265         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
60267 2010-10-28  Bruno Haible  <bruno@clisp.org>
60269         posix_spawn*, getdtablesize: Relax license.
60270         * modules/posix_spawn (License): Change to LGPLv2+.
60271         * modules/posix_spawnp (License): Likewise.
60272         * modules/posix_spawn-internal (License): Likewise.
60273         * modules/posix_spawnattr_init (License): Likewise.
60274         * modules/posix_spawnattr_getflags (License): Likewise.
60275         * modules/posix_spawnattr_setflags (License): Likewise.
60276         * modules/posix_spawnattr_getpgroup (License): Likewise.
60277         * modules/posix_spawnattr_setpgroup (License): Likewise.
60278         * modules/posix_spawnattr_getschedparam (License): Likewise.
60279         * modules/posix_spawnattr_setschedparam (License): Likewise.
60280         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
60281         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
60282         * modules/posix_spawnattr_getsigdefault (License): Likewise.
60283         * modules/posix_spawnattr_setsigdefault (License): Likewise.
60284         * modules/posix_spawnattr_getsigmask (License): Likewise.
60285         * modules/posix_spawnattr_setsigmask (License): Likewise.
60286         * modules/posix_spawnattr_destroy (License): Likewise.
60287         * modules/posix_spawn_file_actions_init (License): Likewise.
60288         * modules/posix_spawn_file_actions_addclose (License): Likewise.
60289         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
60290         * modules/posix_spawn_file_actions_addopen (License): Likewise.
60291         * modules/posix_spawn_file_actions_destroy (License): Likewise.
60292         * modules/getdtablesize (License): Likewise.
60293         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
60295 2010-10-26  Bruno Haible  <bruno@clisp.org>
60297         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
60298         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
60299         Cygwin and mingw.
60300         Suggested by Eric Blake.
60302 2010-10-26  Bruno Haible  <bruno@clisp.org>
60304         stdio: Work around compilation error due to renameat() on Solaris 10.
60305         * lib/stdio.in.h: Include <unistd.h> on Solaris.
60306         * lib/renameat.c: Don't include <unistd.h> here.
60307         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
60308         Reported by Paul Eggert and Eric Blake.
60310 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
60312         renameat: port to Solaris 10, which declares renameat in unistd.h
60314         * lib/renameat.c: Include unistd.h before stdio.h, because
60315         Solaris 10 declares renameat in unistd.h.  Problem encountered
60316         when building GNU tar 1.24 on Solaris 10.
60318 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
60320         fdopendir: fix C89 compilation
60321         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
60322         compilers.
60324 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
60326         inttostr: simplify by removing unnecessary redundancy
60327         * lib/anytostr.c: Don't include verify.h.
60328         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
60329         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
60330         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
60331         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
60332         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
60333         Likewise.
60334         * modules/inttostr (Depends-on): Remove 'verify'.
60336 2010-10-23  Bruno Haible  <bruno@clisp.org>
60338         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
60339         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
60340         Reported by Eric Blake.
60342 2010-10-23  Bruno Haible  <bruno@clisp.org>
60344         Tests: Fix LOCALE_JA on MirBSD 10.
60345         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
60346         to an UTF-8 locale.
60347         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
60348         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60349         Reported by Eric Blake.
60351 2010-10-21  Bruno Haible  <bruno@clisp.org>
60353         nl_langinfo test: Avoid test failure on NetBSD 5.
60354         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
60355         Reported by Eric Blake.
60357 2010-10-21  Eric Blake  <eblake@redhat.com>
60359         c-stack: work around libsigsegv 2.8 bug
60360         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
60361         overflow on at least PowerPC64.
60363 2010-10-17  Bruno Haible  <bruno@clisp.org>
60365         userspec: Drop redundant file.
60366         * modules/userspec (Files): Remove lib/inttostr.h.
60368 2010-10-17  Bruno Haible  <bruno@clisp.org>
60370         nl_langinfo tests: Silence some warnings.
60371         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
60372         Reported by Jim Meyering.
60374 2010-10-17  Bruno Haible  <bruno@clisp.org>
60376         Make use of GCC's attribute __alloc_size__.
60377         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
60378         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
60379         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
60380         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
60381         __alloc_size__.
60382         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
60383         Suggested by Jim Meyering.
60385 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
60387         bootstrap: anchor .gitignore entries.
60388         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
60389         with...
60390         (insert_vc_ignore): ... this new function, which prepends `/' to
60391         all .gitignore entries before passing them to
60392         insert_sorted_if_absent.
60394 2010-10-16  Bruno Haible  <bruno@clisp.org>
60396         nextafter: Fix configure check.
60397         * modules/nextafter (configure.ac): Correct expected prototype.
60399 2010-10-16  Bruno Haible  <bruno@clisp.org>
60401         termios: Update documentation.
60402         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
60404 2010-10-16  Bruno Haible  <bruno@clisp.org>
60406         tests: Make them compile with TinyCC.
60407         * tests/test-strstr.c (main): Remove parentheses around array
60408         initializer.
60410 2010-10-15  Eric Blake  <eblake@redhat.com>
60412         ignore-value: make header idempotent
60413         * lib/ignore-value.h: Add double-inclusion guards.
60414         Reported by Stefan Berger.
60416 2010-10-15  Jim Meyering  <meyering@redhat.com>
60418         GNUmakefile: handle "stable" target, not "major"
60419         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
60420         lists in maint.mk and announce-gen.  Without this, "make stable"
60421         would fail to ensure that $(VERSION) is up to date.
60423 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
60425         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
60426         & co.
60428 2010-10-14  Bruno Haible  <bruno@clisp.org>
60430         vasnprintf: Don't set errno to 0.
60431         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
60432         block that sets it to 0.
60433         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
60435 2010-10-14  Bruno Haible  <bruno@clisp.org>
60437         socketlib: Fix.
60438         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
60439         gl_PREREQ_SYS_H_WINSOCK2.
60440         Reported by Ian Beckwith <ianb@erislabs.net>.
60442 2010-10-13  Jim Meyering  <meyering@redhat.com>
60444         test-select-stdin.c: avoid warn_unused_result warnings
60445         * tests/test-select-stdin.c: Include "macros.h".
60446         ASSERT that read and fflush succeed.
60448 2010-10-13  Jim Meyering  <meyering@redhat.com>
60450         git-version-gen: do require git-VC'd files in cwd
60451         * build-aux/git-version-gen: Reject a git version string
60452         if there are no commits associated with the current directory.
60453         This avoids an unlikely false-positive (unrelated dir whose parent
60454         repository also contains a tag matching v*), as pointed out
60455         by Giuseppe Scrivano in
60456         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
60458 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
60460         argv-iter: omit nonconforming declaration
60461         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
60462         enum arg_iter_err declaration, which doesn't conform to C99.
60463         Solaris 10 cc warns about this.
60465 2010-10-13  Eric Blake  <eblake@redhat.com>
60467         termios: fix compilation on mingw
60468         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
60469         (gl_TERMIOS_H): Adjust it on mingw.
60470         * modules/termios (Makefile.am): Substitute new key.
60471         * lib/termios.in.h (includes): Make include_next conditional.
60472         * doc/posix-headers/termios.texi (termios.h): Update
60473         documentation.
60474         Reported by Daniel P. Berrange.
60476 2010-10-13  Jim Meyering  <meyering@redhat.com>
60478         git-version-gen: don't require that .git/ be in the current dir
60479         * build-aux/git-version-gen: Adjust this script so that it works
60480         when run from any working directory beneath the top-level .git/-
60481         containing directory.  Inspired by a patch from Giuseppe Scrivano,
60482         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
60484         test-select: avoid warn_unused_result warnings
60485         * tests/test-select.c: Include "macros.h".
60486         ASSERT that each call to read, write, and pipe succeeds.
60487         While not technically required, also check each "close".
60488         * modules/select-tests (Files): Add tests/macros.h.
60490         test-symlinkat: remove declaration of unused local
60491         * tests/test-symlinkat.c (main): Remove unused local, "buf".
60493         test-inttostr: avoid shadowing warnings
60494         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
60495         and use malloc rather than the stack for the same reason as
60496         mentioned in the comment justifying the other allocation.
60498 2010-10-11  Bruno Haible  <bruno@clisp.org>
60500         stdlib: Allow multiple gnulib generated replacements to coexist.
60501         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
60502         Reported by Sam Steingold <sds@gnu.org>.
60504 2010-10-11  Jim Meyering  <meyering@redhat.com>
60506         fix a documentation typo
60507         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
60509 2010-10-11  Eric Blake  <eblake@redhat.com>
60511         futimens: work around Solaris 11 bug
60512         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
60513         * tests/test-futimens.h (test_futimens): Enhance, rather than
60514         weaken test.
60515         * doc/posix-functions/futimens.texi (futimens): Document the bug.
60517 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60519         Indentation.
60520         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
60521         higher-level operators more to the left.
60523 2010-10-11  Jim Meyering  <meyering@redhat.com>
60525         test-futimens: avoid unwarranted test failure on Solaris 5.11
60526         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
60527         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
60528         because it tries to dereference the NULL name argument.
60530 2010-10-11  Bruno Haible  <bruno@clisp.org>
60532         Indentation.
60533         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
60534         indentation.
60536 2010-10-11  Jim Meyering  <meyering@redhat.com>
60538         spawn.in.h: make indentation consistent with parentheses
60539         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
60540         Make indentation consistent with parentheses.
60542 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
60544         Fix mismatched parens in previous commit
60545         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
60546         parens.
60548 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
60550         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
60552         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
60553         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
60554         * lib/malloca.c: Include "verify.h".
60555         (verify1): Remove, replacing with a verify call.
60556         * lib/relocwrapper.c (verify1): Likewise.
60557         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
60558         Likewise.
60559         * modules/malloca (Depends-on): Add 'verify'.
60560         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
60561         * modules/vasnprintf (Depends-on): Add 'verify'.
60562         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60563         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60564         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60565         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60566         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60567         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60568         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60570         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
60572         Formerly the style was sometimes 2*X - 1, because the C standard
60573         was wrongly thought to disallow ?: in integral constant expressions.
60574         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
60575         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
60576         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
60577         * lib/stdint.in.h (_verify_intmax_size): Likewise.
60578         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
60579         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
60580         verify that time_t cannot be floating.
60582 2010-10-08  Eric Blake  <eblake@redhat.com>
60584         time: enforce recent POSIX ruling that time_t is integral
60585         * lib/time.in.h (__time_t_must_be_integral): Detect any
60586         problematic systems, allowing the rest of gnulib to assume POSIX.
60588 2010-10-08  Jim Meyering  <meyering@redhat.com>
60590         fdopendir: fix a bug on systems lacking openat and /proc support
60591         OpenBSD 4.7 is one such system.  The most noticeable effect was
60592         failure of any application making nontrivial use of fts: rm, du,
60593         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
60594           ./rm: traversal failed: `a': Bad file descriptor
60595         Debugging that, you see that even though FD 6 was closed just
60596         prior to the opendir call in fd_clone_opendir, its resulting
60597         dir->dd_fd was 8, rather than the expected value of 6:
60599         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
60600         93                close (fd);
60601         (gdb) n
60602         94                dir = fd_clone_opendir (dupfd);
60603         (gdb) n
60604         95                saved_errno = errno;
60605         (gdb) p dir->dd_fd
60606         $11 = 8
60608         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
60609         The problem is that on OpenBSD, fd_clone_opendir has to resort
60610         to using the old-style save/restore CWD mechanism, due to its
60611         lack of openat/proc support, and *that* would steal the FD (6)
60612         that opendir was supposed to use.
60614         The fix is to squirrel away the desired FD so that save_cwd uses a
60615         different one, and then free the dest FD right before calling opendir.
60616         That guarantees opendir will use the required file descriptor.
60618         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
60620 2010-10-08  Bruno Haible  <bruno@clisp.org>
60622         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
60623         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
60625 2010-10-08  Bruno Haible  <bruno@clisp.org>
60627         nanosleep: Make replacement POSIX compliant.
60628         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
60629         is out of range.
60630         Reported by Jim Meyering.
60632 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60634         bootstrap: add hook for altering gnulib.mk, for Bison
60635         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
60636         the Bison bootstrapping process can rewrite file names and variables
60637         in this file before later parts of 'bootstrap' use the file.
60638         Bison wants to include lib/gnulib.mk from the top-level makefile,
60639         so it needs the file names in this file to be relative to the top
60640         level, not relative to lib; plus it needs variable names to be
60641         rewritten.
60642         (slurp): Use the new function.
60644         bootstrap: reformat for readability
60645         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
60647 2010-10-08  Eric Blake  <eblake@redhat.com>
60649         docs: update cygwin progress
60650         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
60651         1.7.7.
60652         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
60653         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
60654         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
60655         * doc/posix-functions/carg.texi (carg): Likewise.
60656         * doc/posix-functions/cargf.texi (cargf): Likewise.
60657         * doc/posix-functions/casin.texi (casin): Likewise.
60658         * doc/posix-functions/casinf.texi (casinf): Likewise.
60659         * doc/posix-functions/casinh.texi (casinh): Likewise.
60660         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
60661         * doc/posix-functions/catan.texi (catan): Likewise.
60662         * doc/posix-functions/catanf.texi (catanf): Likewise.
60663         * doc/posix-functions/catanh.texi (catanh): Likewise.
60664         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
60665         * doc/posix-functions/ccos.texi (ccos): Likewise.
60666         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
60667         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
60668         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
60669         * doc/posix-functions/cexp.texi (cexp): Likewise.
60670         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
60671         * doc/posix-functions/cimag.texi (cimag): Likewise.
60672         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
60673         * doc/posix-functions/clog.texi (clog): Likewise.
60674         * doc/posix-functions/clogf.texi (clogf): Likewise.
60675         * doc/posix-functions/conj.texi (conj): Likewise.
60676         * doc/posix-functions/conjf.texi (conjf): Likewise.
60677         * doc/posix-functions/cpow.texi (cpow): Likewise.
60678         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
60679         * doc/posix-functions/cproj.texi (cproj): Likewise.
60680         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
60681         * doc/posix-functions/creal.texi (creal): Likewise.
60682         * doc/posix-functions/crealf.texi (crealf): Likewise.
60683         * doc/posix-functions/csin.texi (csin): Likewise.
60684         * doc/posix-functions/csinf.texi (csinf): Likewise.
60685         * doc/posix-functions/csinh.texi (csinh): Likewise.
60686         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
60687         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
60688         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
60689         * doc/posix-functions/ctan.texi (ctan): Likewise.
60690         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
60691         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
60692         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
60693         * doc/posix-headers/complex.texi (complex.h): Likewise.
60695 2010-10-07  Jim Meyering  <meyering@redhat.com>
60697         parse-datetime: avoid compilation failure on OpenBSD 4.7
60698         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
60699         This works around a compilation failure on OpenBSD 4.7:
60700         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
60702 2010-10-07  Eric Blake  <eblake@redhat.com>
60704         docs: update cygwin progress
60705         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
60706         1.7.6.
60707         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
60708         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
60709         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
60710         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
60711         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
60712         Likewise.
60713         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
60714         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
60715         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
60716         Likewise.
60717         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
60718         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
60719         Likewise.
60720         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
60721         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
60722         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
60723         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
60724         Likewise.
60725         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
60726         Likewise.
60727         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
60729         docs: update parse-datetime history
60730         * doc/parse-datetime.texi (Authors of parse_datetime): Better
60731         documentation of this function's history and alternatives.
60733         cygwin: use more robust version check
60734         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
60735         exclude an eventual cygwin 1.9.1.
60736         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
60737         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
60738         (gl_FUNC_STRCASESTR): Likewise.
60739         Reported by Bruno Haible.
60741 2010-10-06  Bruno Haible  <bruno@clisp.org>
60743         string, sys_select: Avoid #including large headers unless necessary.
60744         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
60745         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
60746         OSF/1, BeOS, Haiku.
60747         Reported by Jim Meyering.
60749 2010-10-05  Eric Blake  <eblake@redhat.com>
60751         memmem, strstr, strcasestr: fix bug with long periodic needle
60752         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
60753         periodic needle having false positive.
60754         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
60755         and cygwin 1.7.7.
60756         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
60757         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
60758         (gl_FUNC_STRCASESTR): Likewise.
60759         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
60760         * tests/test-memmem.c (main): Expose the bug.
60761         * tests/test-strcasestr.c (main): Likewise.
60762         * tests/test-strstr.c (main): Likewise.
60763         * tests/test-c-strcasestr.c (main): Likewise.
60764         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
60765         * doc/posix-functions/strstr.texi (strstr): Likewise.
60766         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
60767         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
60769 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
60771         parse-datetime: do some more renaming
60772         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
60773         parse_datetime, not get_date.  Mention the renaming.
60774         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
60775         in comments.
60776         * m4/bison.m4: Likewise.
60778 2010-10-05  Eric Blake  <eblake@redhat.com>
60780         parse-datetime: better name than get_date
60781         * NEWS: Reword the deprecation notice.
60782         * modules/get_date: Rename to modules/parse-datetime.
60783         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
60784         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
60785         * lib/get_date.y: Rename to lib/parse-datetime.y.
60786         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
60787         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
60788         * doc/getdate.texi: Provide fallback wrapper.
60789         * lib/getdate.h: Move guts, and wrap...
60790         * lib/parse-datetime.h: ...new file.
60791         * lib/parse-datetime.y (get_date): Rename...
60792         (parse_datetime): ...to this.
60793         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
60794         (gl_PARSE_DATETIME): ...to this.
60795         * doc/posix-functions/getdate.texi (get_date): Provide fallback
60796         documentation.
60797         * modules/getdate (Files): Provide fallback docs and header.
60798         (Notice, Depends-on): Update references.
60799         * tests/test-parse-datetime.c: Likewise.
60800         * DEPENDENCIES: Likewise.
60801         * MODULES.html.sh (Date and time <time.h>): Likewise.
60802         * doc/parse-datetime.texi (Date input formats)
60803         (Authors of parse_datetime): Likewise.
60804         * modules/parse-datetime (Files, configure.ac, Makefile.am)
60805         (Include): Likewise.
60806         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
60807         * gnulib-tool: Likewise.
60808         * m4/bison.m4 (gl_BISON): Likewise.
60809         Suggested by Bruno Haible.
60811 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
60813         more ports to Solaris tr, which needs [] around ranges
60814         * gnulib-tool: Solaris tr needs [] around ranges.
60815         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
60816         * tests/test-pipe-filter-gi1.c (main): Likewise.
60817         * tests/test-pipe-filter-ii1.c (main): Likewise.
60819 2010-10-05  Eric Blake  <eblake@redhat.com>
60821         bootstrap: fix Solaris regression
60822         * build-aux/bootstrap (check_versions): Solaris tr still needs []
60823         around ranges.
60824         Reported by Pádraig Brady.
60826         bootstrap: work with pkg-config
60827         * build-aux/bootstrap (check_versions): Also transliterate - in
60828         prerequisite name.
60829         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
60830         prerequisites that were already found, to avoid confusion.
60831         Reported by Justin Clift.
60833         faccessat: remove unused wrappers
60834         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
60835         presence of these wrappers dragged in -lgen on Solaris.
60836         Reported by Clemens Brogi; fix suggested by Paul Eggert.
60838 2010-10-05  Jim Meyering  <meyering@redhat.com>
60840         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
60841         * Makefile (sc_pragma_columns): New syntax-check rule.
60843 2010-10-04  Bruno Haible  <bruno@clisp.org>
60845         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
60846         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
60847         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
60848         Reported by Bruce Korb and Eric Blake.
60850 2010-10-04  Bruno Haible  <bruno@clisp.org>
60852         threadlib: Make option --with-libpth-prefix work.
60853         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
60854         use $LIBPTH, not just -lpth.
60856 2010-10-04  Bruno Haible  <bruno@clisp.org>
60858         Avoid line length limitation from HP NonStop system header files.
60859         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
60860         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
60861         * lib/ctype.in.h: Likewise.
60862         * lib/dirent.in.h: Likewise.
60863         * lib/errno.in.h: Likewise.
60864         * lib/fcntl.in.h: Likewise.
60865         * lib/float.in.h: Likewise.
60866         * lib/getopt.in.h: Likewise.
60867         * lib/iconv.in.h: Likewise.
60868         * lib/inttypes.in.h: Likewise.
60869         * lib/langinfo.in.h: Likewise.
60870         * lib/locale.in.h: Likewise.
60871         * lib/math.in.h: Likewise.
60872         * lib/netdb.in.h: Likewise.
60873         * lib/netinet_in.in.h: Likewise.
60874         * lib/poll.in.h: Likewise.
60875         * lib/pthread.in.h: Likewise.
60876         * lib/pty.in.h: Likewise.
60877         * lib/sched.in.h: Likewise.
60878         * lib/se-selinux.in.h: Likewise.
60879         * lib/search.in.h: Likewise.
60880         * lib/signal.in.h: Likewise.
60881         * lib/spawn.in.h: Likewise.
60882         * lib/stdarg.in.h: Likewise.
60883         * lib/stddef.in.h: Likewise.
60884         * lib/stdint.in.h: Likewise.
60885         * lib/stdio.in.h: Likewise.
60886         * lib/stdlib.in.h: Likewise.
60887         * lib/string.in.h: Likewise.
60888         * lib/strings.in.h: Likewise.
60889         * lib/sys_file.in.h: Likewise.
60890         * lib/sys_ioctl.in.h: Likewise.
60891         * lib/sys_select.in.h: Likewise.
60892         * lib/sys_socket.in.h: Likewise.
60893         * lib/sys_stat.in.h: Likewise.
60894         * lib/sys_time.in.h: Likewise.
60895         * lib/sys_times.in.h: Likewise.
60896         * lib/sys_utsname.in.h: Likewise.
60897         * lib/sys_wait.in.h: Likewise.
60898         * lib/sysexits.in.h: Likewise.
60899         * lib/termios.in.h: Likewise.
60900         * lib/time.in.h: Likewise.
60901         * lib/unistd.in.h: Likewise.
60902         * lib/wchar.in.h: Likewise.
60903         * lib/wctype.in.h: Likewise.
60904         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
60905         * modules/ctype (Makefile.am): Likewise.
60906         * modules/dirent (Makefile.am): Likewise.
60907         * modules/errno (Makefile.am): Likewise.
60908         * modules/fcntl-h (Makefile.am): Likewise.
60909         * modules/float (Makefile.am): Likewise.
60910         * modules/getopt-posix (Makefile.am): Likewise.
60911         * modules/iconv-h (Makefile.am): Likewise.
60912         * modules/inttypes (Makefile.am): Likewise.
60913         * modules/langinfo (Makefile.am): Likewise.
60914         * modules/locale (Makefile.am): Likewise.
60915         * modules/math (Makefile.am): Likewise.
60916         * modules/netdb (Makefile.am): Likewise.
60917         * modules/netinet_in (Makefile.am): Likewise.
60918         * modules/poll-h (Makefile.am): Likewise.
60919         * modules/pthread (Makefile.am): Likewise.
60920         * modules/pty (Makefile.am): Likewise.
60921         * modules/sched (Makefile.am): Likewise.
60922         * modules/search (Makefile.am): Likewise.
60923         * modules/selinux-h (Makefile.am): Likewise.
60924         * modules/signal (Makefile.am): Likewise.
60925         * modules/spawn (Makefile.am): Likewise.
60926         * modules/stdarg (Makefile.am): Likewise.
60927         * modules/stddef (Makefile.am): Likewise.
60928         * modules/stdint (Makefile.am): Likewise.
60929         * modules/stdio (Makefile.am): Likewise.
60930         * modules/stdlib (Makefile.am): Likewise.
60931         * modules/string (Makefile.am): Likewise.
60932         * modules/strings (Makefile.am): Likewise.
60933         * modules/sys_file (Makefile.am): Likewise.
60934         * modules/sys_ioctl (Makefile.am): Likewise.
60935         * modules/sys_select (Makefile.am): Likewise.
60936         * modules/sys_socket (Makefile.am): Likewise.
60937         * modules/sys_stat (Makefile.am): Likewise.
60938         * modules/sys_time (Makefile.am): Likewise.
60939         * modules/sys_times (Makefile.am): Likewise.
60940         * modules/sys_utsname (Makefile.am): Likewise.
60941         * modules/sys_wait (Makefile.am): Likewise.
60942         * modules/sysexits (Makefile.am): Likewise.
60943         * modules/termios (Makefile.am): Likewise.
60944         * modules/time (Makefile.am): Likewise.
60945         * modules/unistd (Makefile.am): Likewise.
60946         * modules/wchar (Makefile.am): Likewise.
60947         * modules/wctype (Makefile.am): Likewise.
60949 2010-10-04  Bruno Haible  <bruno@clisp.org>
60951         read-file tests: Avoid a test failure on NonStop Kernel.
60952         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
60953         a regular file.
60954         Reported by Joachim Schmitz <schmitz@hp.com>.
60956 2010-10-03  Bruno Haible  <bruno@clisp.org>
60958         gnulib-tool: Fixes for --create-testdir with --libtool.
60959         * gnulib-tool (func_get_automake_snippet): Don't augment
60960         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
60961         an executable.
60962         (func_create_testdir): Handle module 'alloca' like func_import.
60963         Reported by Bruce Korb <bruce.korb@gmail.com>.
60965 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
60967         Avoid some lines longer than 80 characters.
60968         * lib/stdint.in.h: Break long comment lines.
60969         * lib/math.in.h: Likewise.
60970         (_GL_NUM_UINT_WORDS): New macro, for readability.
60971         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
60972         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
60973         * lib/stdlib.in.h: Likewise.
60974         * lib/spawn.in.h: Likewise.
60975         * lib/sys_socket.in.h: Update an URL.
60976         * lib/sys_stat.in.h: Break long line.
60978 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
60980         Improve pmccabe2html.
60981         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
60982         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
60983         when the sources change. Remove the line in the HTML about "Used
60984         ranges" (which implied that there might be other unused ranges),
60985         rename "Resume" to "Summary" (easier to understand for more users).
60986         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
60987         styles, and some unnecessary blank lines.
60989 2010-10-03  Bruno Haible  <bruno@clisp.org>
60990             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
60992         acl: Add support for ACLs on NonStop Kernel.
60993         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
60994         Check whether the function aclsort() exists.
60995         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
60996         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
60997         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
60998         (acl_nontrivial [HAVE_ACLSORT]: New function.
60999         (file_has_acl): Implement for NonStop Kernel.
61000         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
61001         (qset_acl): Implement for NonStop Kernel.
61002         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
61003         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
61004         (main): Implement for NonStop Kernel.
61005         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
61006         Kernel. Handle this flavor.
61007         * tests/test-set-mode-acl.sh: Likewise.
61008         * tests/test-copy-acl.sh: Likewise.
61009         * tests/test-copy-file.sh: Likewise.
61011 2010-10-03  Bruno Haible  <bruno@clisp.org>
61013         Info about ACLs on NonStop Kernel.
61014         * doc/acl-resources.txt: Add info about NonStop Kernel.
61015         References by Joachim Schmitz <schmitz@hp.com>.
61017 2010-10-02  Bruno Haible  <bruno@clisp.org>
61019         Define missing EDQUOT on NonStop Kernel.
61020         * lib/errno.in.h (EDQUOT): Assign a value if missing.
61021         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
61022         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
61023         missing.
61024         * doc/posix-headers/errno.texi: Mention the NSK bug.
61025         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
61026         Reported by Joachim Schmitz <schmitz@hp.com>.
61028 2010-10-02  Bruno Haible  <bruno@clisp.org>
61030         Update doc for POSIX:2008.
61031         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
61032         Update URL of POSIX specification.
61034 2010-10-02  Bruno Haible  <bruno@clisp.org>
61036         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
61037         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
61038         from gnulib, not from Automake.
61040 2010-10-02  Bruno Haible  <bruno@clisp.org>
61042         New module 'system-posix'.
61043         * modules/system-posix: New file.
61044         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
61045         module is present.
61046         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61047         GNULIB_SYSTEM_POSIX.
61048         * modules/stdlib (Depends-on): Remove sys_wait.
61049         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
61050         * doc/posix-functions/system.texi: Mention the new module.
61051         * doc/posix-headers/stdlib.texi: Likewise.
61052         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
61053         define test_sys_wait_macros to a no-op.
61054         Reported by Sam Steingold <sds@gnu.org>.
61056 2010-09-30  Bruno Haible  <bruno@clisp.org>
61058         More renaming from 'getdate' to 'get_date'.
61059         * doc/get_date.texi: Renamed from doc/getdate.texi.
61060         * modules/get_date (Files): Update.
61061         * MODULES.html.sh (Date and time <time.h>): Update.
61062         * DEPENDENCIES: Update.
61063         * gnulib-tool: Update comment.
61064         * m4/bison.m4 (gl_BISON): Likewise.
61065         * m4/get_date.m4 (gl_GET_DATE): Likewise.
61067 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
61069         bootstrap: support ACLOCAL_FLAGS during aclocal
61070         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
61071         can add additional -I dir for third-party .m4 files.
61073 2010-09-30  Eric Blake  <eblake@redhat.com>
61075         bootstrap: use glibtoolize on MacOS
61076         * build-aux/bootstrap (check_versions): Convert libtool into
61077         libtoolize.
61078         (tool search): Move libtool check earlier, and look for
61079         glibtoolize for MacOS.
61080         (gnulib_tool_options): Auto-add --libtool when appropriate.
61081         Reported by Justin Clift.
61083         poll: fix typo that broke test on MacOS
61084         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
61085         Reported by Justin Clift.
61087         getdate: rename to get_date
61088         Note: getdate.h is not renamed, to minimize client impact.
61089         * modules/getdate: Mark obsolete.  Move old contents...
61090         * modules/get_date: ...to new module name.
61091         * modules/getdate-tests: Move...
61092         * modules/get_date-tests: ...here.
61093         * m4/getdate.m4: Move...
61094         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
61095         * lib/getdate.y: Move...
61096         * lib/get_date.y: ...here.
61097         * tests/test-getdate.c: Move...
61098         * tests/test-get_date.c: ...here.
61099         * doc/posix-functions/getdate.texi (getdate): Update name.
61100         * NEWS: Mention the change.
61102 2010-09-29  Bruno Haible  <bruno@clisp.org>
61104         Separate the module 'waitpid' from the module 'sys_wait'.
61105         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
61106         present.
61107         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
61108         gl_MODULE_INDICATOR_FOR_TESTS.
61109         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
61110         * modules/sys_wait (Depends-on): Remove waitpid.
61111         (Makefile.am): Substitute GNULIB_WAITPID.
61112         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
61113         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
61114         signature only if the 'waitpid' module is present.
61115         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
61116         * NEWS: Mention the change.
61117         * modules/grantpt (Depends-on): Add waitpid.
61118         * modules/wait-process (Depends-on): Likewise.
61120 2010-09-29  Bruno Haible  <bruno@clisp.org>
61122         More tests for module 'sys_wait'.
61123         * modules/sys_wait-c++-tests: New file.
61124         * tests/test-sys_wait-c++.cc: New file.
61125         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
61126         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
61128 2010-09-29  Bruno Haible  <bruno@clisp.org>
61130         New module 'waitpid'.
61131         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
61132         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
61133         Don't include <process.h>.
61134         (waitpid): Declare only, using modern idiom.
61135         * m4/waitpid.m4: New file.
61136         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
61137         * modules/waitpid: New file.
61138         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
61139         (Makefile.am): Update.
61140         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
61142 2010-09-28  Bruno Haible  <bruno@clisp.org>
61144         poll: Assume ANSI C.
61145         * lib/poll.c (poll): Use an ANSI C declaration.
61147 2010-09-28  Bruno Haible  <bruno@clisp.org>
61149         poll-h: Create poll.h on all platforms.
61150         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
61151         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
61152         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
61153         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
61154         (gl_REPLACE_POLL_H): Don't set POLL_H.
61155         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
61156         * modules/poll-h (Depends-on): Add include_next.
61157         (Makefile.am): Create poll.h unconditionally. Substitute also
61158         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
61160 2010-09-28  Bruno Haible  <bruno@clisp.org>
61162         Tests for module 'poll-h'.
61163         * modules/poll-h-c++-tests: New file.
61164         * tests/test-poll-h-c++.cc: New file.
61166         Tests for module 'poll-h'.
61167         * modules/poll-h-tests: New file.
61168         * tests/test-poll-h.c: New file.
61170 2010-09-28  Bruno Haible  <bruno@clisp.org>
61172         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
61173         * modules/poll-h (Depends-on): Add 'extensions'.
61175 2010-09-28  Bruno Haible  <bruno@clisp.org>
61177         New module 'poll-h'.
61178         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
61179         (poll): Use modern idiom.
61180         * modules/poll-h: New file.
61181         * modules/poll (Files): Remove lib/poll.in.h.
61182         (Depends-on): Add poll-h.
61183         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
61184         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
61185         * m4/poll_h.m4: New file.
61186         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
61187         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
61188         and invoke gl_REPLACE_POLL_H.
61189         * lib/poll.c: Use common idiom.
61190         * tests/test-poll.c: Likewise.
61191         * doc/posix-headers/poll.texi: Mention the poll-h module.
61192         Suggested by Eric Blake.
61194 2010-09-26  Bruno Haible  <bruno@clisp.org>
61196         sys_wait: Implement WSTOPSIG.
61197         * lib/sys_wait.in.h (WSTOPSIG): New macro.
61198         Reported by Simon Josefsson.
61200 2010-09-26  Simon Josefsson  <simon@josefsson.org>
61202         stdlib, sys_wait: Avoid compilation error on mingw.
61203         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
61205 2010-09-26  Bruno Haible  <bruno@clisp.org>
61207         stdlib tests: Avoid code duplication.
61208         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
61209         * modules/sys_wait-tests (Files): Likewise.
61210         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
61211         * tests/test-stdlib.c: Include test-sys_wait.h.
61212         (main): Invoke test_sys_wait_macros.
61213         * tests/test-sys_wait.c: Include test-sys_wait.h.
61214         (main): Invoke test_sys_wait_macros.
61216 2010-09-25  Simon Josefsson  <simon@josefsson.org>
61218         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
61219         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
61220         sure Windows sockets are working before calling getaddrinfo.
61221         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
61222         * doc/gnulib.texi (Windows sockets): Fix typo.
61224 2010-09-25  Bruno Haible  <bruno@clisp.org>
61226         Tests for module 'regex-quote'.
61227         * modules/regex-quote-tests: New file.
61228         * tests/test-regex-quote.c: New file.
61230         New module 'regex-quote'.
61231         * lib/regex-quote.h: New file.
61232         * lib/regex-quote.c: New file.
61233         * modules/regex-quote: New file.
61234         Suggested by Reuben Thomas <rrt@sc3d.org>.
61236 2010-09-24  Bruno Haible  <bruno@clisp.org>
61238         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
61239         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
61241 2010-09-23  Bruno Haible  <bruno@clisp.org>
61243         setenv: Relax license.
61244         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
61245         Blake.
61246         Requested by Eric Blake.
61248 2010-09-22  Bruno Haible  <bruno@clisp.org>
61250         termios: Relax license.
61251         * modules/termios (License): Change to LGPLv2+.
61252         Requested by Eric Blake.
61254 2010-09-22  Bruno Haible  <bruno@clisp.org>
61256         threadlib: Allow the package to change the default to 'no'.
61257         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
61258         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
61259         Reported by Paul Eggert.
61261 2010-09-22  Pádraig Brady  <P@draigbrady.com>
61262             Bruno Haible  <bruno@clisp.org>
61264         Fix endless loop in mbmemcasecoll.
61265         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
61266         byte.
61267         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
61269 2010-09-22  Bruno Haible  <bruno@clisp.org>
61271         Tests for module 'memcoll'.
61272         * modules/memcoll-tests: New file.
61273         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
61275         memcoll, xmemcoll: Clarify size vs. length.
61276         * modules/memcoll.c (memcoll0): Clarify specification.
61277         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
61278         passed to collate_error.
61280 2010-09-22  Bruno Haible  <bruno@clisp.org>
61282         Tests for module 'memcasecmp'.
61283         * modules/memcasecmp-tests: New file.
61284         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
61286 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
61288         * lib/pthread.in.h: Add split double-inclusion guard, and include
61289         system <pthread.h> if there is one.  Use @@-style as in other
61290         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
61291         pthread.h doesn't.
61292         (pthread_mutexattr_destroy, pthread_mutexattr_init):
61293         (pthread_mutexattr_settype, pthread_mutex_trylock):
61294         New static inline functions, if there's no system <pthread.h>.
61295         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
61296         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
61297         Approximate with mutexes if the system lacks spinlocks, as in
61298         MacOS.
61299         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
61300         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
61301         @@-style.  Check for spinlocks separately.
61302         (gl_PTHREAD_DEFAULTS): New macro.
61303         * modules/pthread: Redo to use a more typical style for in.h files.
61305 2010-09-21  Eric Blake  <eblake@redhat.com>
61307         net_if: enhance tests
61308         * tests/test-net_if.c (main): Move signature checks earlier.
61309         Print failures to stderr.
61310         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
61311         Document the bug that we do not yet fix.
61313 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
61315         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
61316         about gnulib, not GSS.
61318 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
61320         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
61321         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
61322         for Emacs.
61323         * build-aux/pmccabe2html: Make Makefile.am example code more
61324         cut-and-paste friendly.
61326 2010-09-21  Simon Josefsson  <simon@josefsson.org>
61328         * tests/test-net_if.c: New file.
61329         * modules/net_if-tests: New file.
61331 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
61333         pthread: add pthread_spin_destroy
61334         * lib/pthread.in.h (pthread_spin_destroy): New function.
61336 2010-09-19  Bruno Haible  <bruno@clisp.org>
61338         gnulib-tool: Fix --help output.
61339         * gnulib-tool (func_usage): Fix help message.
61340         Reported by Reuben Thomas <rrt@sc3d.org>.
61342 2010-09-18  Jim Meyering  <meyering@redhat.com>
61344         maint.mk: avoid unexpanded \n in two diagnostics
61345         * top/maint.mk (sc_prohibit_always_true_header_tests):
61346         Don't use a literal \n in a halt=... assignment.  It would not be
61347         expanded, and the two \n bytes would appear in the diagnostic output
61348         rather than the desired newline.  Use halt=$$(printf ... instead.
61349         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
61351 2010-09-18  Bruno Haible  <bruno@clisp.org>
61353         netinet_in: Doc tweak.
61354         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
61355         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
61357 2010-09-18  Jim Meyering  <meyering@redhat.com>
61359         init.sh: correct an outdated comment
61360         * tests/init.sh (create_exe_shims_):  s/function/alias/
61362         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
61363         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
61364         a file named "*.exe" is removed between the glob expansion and the
61365         processing of that oddly named file.
61367 2010-09-17  Eric Blake  <eblake@redhat.com>
61369         mirbsd: add some more support
61370         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
61371         in BSD family.
61372         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
61373         devices as OpenBSD.
61374         * m4/host-os.m4 (mirbsd): Add MirBSD.
61376         tests: fix unportable assumption on sys/wait.h
61377         * tests/test-sys_wait.c (main): Relax test.
61378         * tests/test-stdlib.c (main): Likewise.
61380         init.sh: accommodate directory with no .exes
61381         * tests/init.sh: Accomodate directory containing only scripts.
61383         tests: avoid compiler warning
61384         * tests/test-stdlib.c (main): Use the variable.
61386         fdutimens, fdutimensat: update signature, again
61387         * lib/utimens.h (gl_futimens): Delete, and move signature...
61388         (fdutimens): ...here.
61389         (fdutimensat): Rearrange signature.
61390         (lutimensat): Rename variable for clarity.
61391         * lib/fdutimensat.c (fdutimensat): Update signature.
61392         * lib/utimens.c (fdutimens): Likewise.
61393         (gl_futimens): Delete.
61394         (utimens, lutimens): Update callers.
61395         * lib/futimens.c (futimens): Likewise.
61396         * tests/test-fdutimensat.c: Likewise.
61397         * tests/test-utimens.c: Likewise.
61398         * tests/test-futimens.h: Update comment.
61399         * NEWS: Mention this.
61400         Suggested by Paul Eggert.
61402 2010-09-17  Bruno Haible  <bruno@clisp.org>
61404         Take over the maintenance of some older macros from Autoconf.
61405         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
61406         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
61407         GNU Autoconf.
61408         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
61409         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
61411 2010-09-17  Eric Blake  <eblake@redhat.com>
61413         fdutimensat: drop atflag validation
61414         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
61415         with valid fd, to close a race scenario where futimens is
61416         unsupported and FILE was replaced by a symlink.
61417         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
61418         accordingly.
61419         Suggested by Paul Eggert.
61421 2010-09-16  Bruno Haible  <bruno@clisp.org>
61423         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
61424         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
61426 2010-09-16  Bruno Haible  <bruno@clisp.org>
61428         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
61429         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
61430         login_tty exists.
61431         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
61433 2010-09-16  Bruno Haible  <bruno@clisp.org>
61435         login_tty: Make the replacement code work on BSD systems.
61436         * lib/login_tty.c: Include <sys/ioctl.h>.
61437         (login_tty): Use ioctl TIOCSCTTY when available.
61438         * modules/login_tty (Depends-on): Add sys_ioctl.
61439         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
61441 2010-09-16  Bruno Haible  <bruno@clisp.org>
61443         login_tty: Stricter unit test.
61444         * modules/login_tty-tests (Depends-on): Add tcgetsid.
61445         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
61446         and tcgetsid() after login_tty.
61447         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
61449 2010-09-16  Bruno Haible  <bruno@clisp.org>
61451         New module 'tcgetsid'.
61452         * lib/tcgetsid.c: New file.
61453         * m4/tcgetsid.m4: New file.
61454         * modules/tcgetsid: New file.
61455         * modules/termios (Depends-on): Add c++defs, warn-on-use.
61456         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
61457         GNULIB_TCGETSID, HAVE_TCGETSID.
61458         * lib/termios.in.h: Include <sys/types.h>.
61459         (tcgetsid): New declaration.
61460         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
61461         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
61462         * doc/posix-functions/tcgetsid.texi: Mention the new module.
61463         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
61465 2010-09-16  Bruno Haible  <bruno@clisp.org>
61467         Tests for module 'termios'.
61468         * modules/termios-c++-tests: New file.
61469         * modules/termios-tests: New file.
61470         * tests/test-termios-c++.cc: New file.
61471         * tests/test-termios.c: New file.
61473         New module 'termios'.
61474         * modules/termios: New file.
61475         * lib/termios.in.h: New file.
61476         * m4/termios_h.m4: New file.
61477         * doc/posix-headers/termios.texi: Mention the new module.
61479 2010-09-16  Eric Blake  <eblake@redhat.com>
61481         fdutimensat: add an atflag parameter
61482         * lib/fdutimensat.c (fdutimensat): Add new parameter.
61483         * lib/utimens.h (fdutimensat): Update prototype.
61484         * tests/test-fdutimensat.c: Adjust test to match.
61485         * NEWS: Document the change.
61486         Suggested by Paul Eggert.
61488 2010-09-16  Bruno Haible  <bruno@clisp.org>
61490         Fix typos in comments.
61491         * lib/striconveh.h: Fix typo in comment.
61492         * lib/login_tty.c (login_tty): Likewise.
61494 2010-09-15  Bruno Haible  <bruno@clisp.org>
61496         stdlib: clarify MirBSD WEXITSTATUS bug
61497         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
61498         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
61500 2010-09-15  Eric Blake  <eblake@redhat.com>
61502         stdlib: work around MirBSD WEXITSTATUS bug
61503         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
61504         * modules/stdlib (Depends-on): Add sys_wait.
61505         * tests/test-sys_wait.c (main): Enhance test.
61506         * tests/test-stdlib.c (main): Likewise.
61507         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
61509         docs: mention MacOS issue with WEXITSTATUS(constant)
61510         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
61511         issue.
61512         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
61514         strnlen: add tests
61515         * modules/strnlen-tests: New file.
61516         * tests/test-strnlen.c: Likewise.
61518 2010-09-14  Bruno Haible  <bruno@clisp.org>
61520         unistr/base: Avoid link errors when module 'libunistring' is also used.
61521         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
61522         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
61523         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
61524         Declare also when HAVE_LIBUNISTRING is set.
61525         Reported by Pádraig Brady <P@draigbrady.com>.
61527 2010-09-14  Eric Blake  <eblake@redhat.com>
61529         test-rawmemchr: make more robust
61530         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
61531         (Depends-on, configure.ac): Add needed prerequisites to use it.
61532         * modules/memchr-tests (Files, Depends-on, configure.ac):
61533         Likewise, to avoid implicit reliance on memchr module prereqs.
61534         * tests/test-memchr.c (main): Ensure proper masking.
61535         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
61536         reads.
61538         memchr: detect glibc Alpha bug
61539         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
61540         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
61541         Alpha.
61542         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
61543         * tests/test-memchr.c (main): Enhance test.
61544         Reported by Nelson H. F. Beebe.
61546 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61548         fts, getcwd, glob: audit for dirfd returning -1
61549         * lib/fts.c (opendir): Remove #define; no longer used.
61550         (opendirat): New arg PDIR_FD.  All callers changed.
61551         (fts_build, _opendir2): Use new opendirat to avoid the need for
61552         dirfd, or for checking whether dirfd returns a negative value.
61553         Don't use opendir; always use openat followed by fdopendir.
61554         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
61555         it.
61556         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
61557         returns -1 here.
61558         * modules/fts (Depends-on): Remove dirfd.
61559         * modules/getcwd (Depends-on): Likewise.
61561 2010-09-13  Eric Blake  <eblake@redhat.com>
61563         float: fix broken MirBSD header
61564         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
61565         * doc/posix-headers/float.texi (float.h): Document it.
61567 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61569         fts: use O_NOFOLLOW to avoid race condition when opening a directory
61570         * lib/fts.c (opendirat): New arg extra_flags.
61571         (__opendir2): Use it to avoid following symlinks when opening
61572         a directory, if symlinks are not supposed to be followed.  See
61573         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
61575         fdopendir: preserve argument fd before returning
61576         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
61577         (fdopendir_with_dup, fd_clone_opendir): New static functions.
61578         (fdopendir): Use them, arranging for FD to be open to the same
61579         directory that it was when it started.  (It might be temporarily
61580         closed while fdopendir is running, so this not thread- or
61581         signal-safe.)  Be careful to do the right thing even when file
61582         descriptors are scarce and dup fails with errno == EMFILE.  See
61583         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
61585 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
61587         regex: Pass the system regex if its only problem is 32-bit regoff_t.
61588         * NEWS: Document change.
61589         * m4/regex.m4: Disable test for regoff_t size.
61591 2010-09-13  Jim Meyering  <meyering@redhat.com>
61593         fts: don't operate on an invalid file descriptor after failed dup
61594         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
61595         negative file descriptor.
61597 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
61599         savedir: add streamsavedir, deprecate fdsavedir
61600         * NEWS: Mention deprecation of fdsavedir.
61601         * lib/savedir.c (streamsavedir): New extern function, whose name
61602         ends in "savedir" to be consistent with the others.  This differs
61603         from savedirstream in that it doesn't close its argument.  The
61604         next version of GNU tar will use this instead of fdsavedir, to
61605         avoid some race conditions and conserve file descriptors.
61606         (savedirstream): Reimplement as a wrapper around streamsavedir.
61607         (fdsavedir): Add a comment deprecating this function.  As far as
61608         I know, only GNU tar used it, and GNU tar doesn't need it any more.
61609         * lib/savedir.h (streamsavedir): New decl.
61610         (fdsavedir): Add a comment deprecating this.
61612 2010-09-10  Bruno Haible  <bruno@clisp.org>
61614         langinfo: Fix last commit.
61615         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
61616         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
61617         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
61619 2010-09-10  Bruno Haible  <bruno@clisp.org>
61621         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
61622         * lib/progreloc.c (O_EXEC): Define fallback.
61624 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
61626         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
61627         * NEWS: Document recent changes to fcntl-h.
61628         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
61629         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
61630         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
61631         Similarly for O_SEARCH; this last was already true, but not documented.
61632         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
61633         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
61634         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
61635         Likewise.
61636         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
61637         is zero, not whether it is defined.
61638         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
61639         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
61640         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
61642 2010-09-10  Bruno Haible  <bruno@clisp.org>
61644         langinfo, nl_langinfo: Fix for IRIX 5.3.
61645         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
61646         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
61647         HAVE_LANGINFO_YESEXPR.
61648         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
61649         HAVE_LANGINFO_YESEXPR.
61650         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
61651         HAVE_LANGINFO_T_FMT_AMPM is 0.
61652         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
61653         HAVE_LANGINFO_YESEXPR is 0.
61654         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
61655         NOEXPR.
61656         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
61657         * doc/posix-functions/nl_langinfo.texi: Likewise.
61658         Reported by Eric Blake.
61660 2010-09-10  Bruno Haible  <bruno@clisp.org>
61662         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
61663         * doc/glibc-functions/login_tty.texi: Mention the include file problem
61664         on FreeBSD 8.0 and OpenBSD 4.6.
61665         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
61666         * m4/pty_h.m4 (gl_PTY_H): Likewise.
61667         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
61668         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
61669         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
61670         ac_includes_default.
61671         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
61673 2010-09-09  Eric Blake  <eblake@redhat.com>
61675         strsignal: work around NetBSD bug
61676         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
61677         * lib/string.in.h (includes): Likewise.
61678         * doc/posix-functions/strsignal.texi (strsignal): Document the
61679         bug.
61680         Reported by Nelson H. F. Beebe.
61682         gnulib-tool: work with NetBSD /bin/sh
61683         * gnulib-tool (func_cache_var, func_cache_lookup_module)
61684         (func_get_description, func_get_comment, func_get_status)
61685         (func_get_notice, func_get_applicability, func_get_filelist)
61686         (func_get_dependencies, func_get_autoconf_early_snippet)
61687         (func_get_autoconf_snippet, func_get_automake_snippet)
61688         (func_get_include_directive, func_get_link_directive)
61689         (func_get_license, func_get_maintainer, func_import): Avoid
61690         shell syntax errors from parsing syntax extensions.
61692 2010-09-09  Bruno Haible  <bruno@clisp.org>
61694         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
61695         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
61696         a reliable way to determine whether the 'alias' command works.
61698 2010-09-08  Jim Meyering  <meyering@redhat.com>
61700         init.sh: penalize a set-x-impaired shell; don't disqualify it
61701         * tests/init.sh: Too many shells corrupt application stderr when
61702         you set -x, so we can't afford to disqualify them, since at least
61703         on Irix-6.5, that would disqualify all bourne shells.
61704         Instead, use a two-pass approach.
61705         On the first pass, try to find a shell that meets the stricter
61706         condition that set -x does not corrupt stderr.
61707         If no shell meets the stricter condition, retest each candidate
61708         shell, but without that extra condition.  Finally, when
61709         VERBOSE=yes is requested and set -x might cause trouble, simply
61710         issue a warning and refrain from enabling debug output.
61712 2010-09-08  Eric Blake  <eblake@redhat.com>
61714         unsetenv: fix OpenBSD bug
61715         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
61716         * doc/posix-functions/unsetenv.texi (unsetenv): Update
61717         documentation.
61718         Reported by Jim Meyering.
61720         strtod: work around IRIX 6.5 bug
61721         * lib/strtod.c (strtod): Reparse number on shorter string if
61722         exponent parse was invalid.
61723         * tests/test-strtod.c (main): Add check for "0x1p 2".
61724         Reported by Tom G. Christensen.
61726         getopt: optimize previous patch
61727         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
61728         empty variable.  Speed up awk script.
61729         Reported by Paolo Bonzini.
61731 2010-09-08  Jim Meyering  <meyering@redhat.com>
61733         test.sh: disqualify shells for which set -x corrupts stderr
61734         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
61735         and OpenBSD 4.7.  They make it so with "set -x", environment settings
61736         appear in stderr output.  For example, this command:
61737             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
61738         prints "P=1" on those two systems:
61740 2010-09-08  Bruno Haible  <bruno@clisp.org>
61742         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
61743         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
61744         commands, because some shells ignore redirections when there is an
61745         error in the command lookup.
61746         Reported by Eric Blake.
61748 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
61750         * lib/regex.h: Fix a mention of `regex_compile' (should be
61751         `re_compile_pattern').
61752         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
61753         (re_set_registers): Correct name of parameter in comment.
61755         * doc/regex.texi: Add documentation for missing syntax flags.
61756         Remove commented-out documentation of defunct syntax option
61757         RE_NO_EMPTY_ALTS.
61758         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
61759         Add documentation of re_set_registers.
61760         Document trick to re-use a pattern buffer by setting fastmap manually.
61761         Update documentation of struct re_pattern_buffer per public members.
61762         Uncomment documentation of equivalence class operators and
61763         collating symbol operators, since they are now implemented,
61764         Explain leftmost-longest matching in relation to alternatives.
61765         Tidy documentation of substring matching.
61766         Remove POSIX documentation, which is done better in
61767         glibc, and refer the reader there. Keep BSD API documentation, as
61768         that is not readily available elsewhere.
61770 2010-09-07  Eric Blake  <eblake@redhat.com>
61772         getopt: handle POSIXLY_CORRECT set but not exported
61773         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
61774         export state of POSIXLY_CORRECT, due to bash set -o posix.
61775         Reported by Dustin J. Mitchell.
61777 2010-09-05  Bruno Haible  <bruno@clisp.org>
61779         gnulib-tool: Highlight the changed options.
61780         * gnulib-tool (func_usage): Display the --import, --add-import,
61781         --remove-import explanations in bold font.
61783 2010-09-06  Karl Berry  <karl@gnu.org>
61785         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
61787 2010-09-05  Bruno Haible  <bruno@clisp.org>
61789         uniwidth/width: Update comment.
61790         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
61791         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
61793 2010-09-05  Bruno Haible  <bruno@clisp.org>
61795         isinf, isnan: Relax license.
61796         * modules/isinf (License): Change from GPL to LGPL, with consent from
61797         Ben Pfaff.
61798         * modules/isnan (License): Likewise.
61799         Requested by Ludovic Courtès.
61801 2010-09-04  Bruno Haible  <bruno@clisp.org>
61803         gnulib-tool: Help migration from --import to --add-import or --update.
61804         * gnulib-tool: Emit a verbose error message when --import is used
61805         without any module name.
61807 2010-09-04  Bruno Haible  <bruno@clisp.org>
61809         Update doc about gnulib-tool.
61810         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
61811         'gnulib-tool --update' in more detail.
61812         Reported by Eric Blake.
61814 2010-09-04  Bruno Haible  <bruno@clisp.org>
61816         gnulib-tool: Change --import. New options --add/remove-import.
61817         * gnulib-tool: New options --add-import, --remove-import.
61818         (func_usage): Document them.
61819         (have_associative): Define always.
61820         (func_import): In import mode, don't merge the specified settings with
61821         the cached settings. Implement remove-import mode.
61822         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
61823         Explain when to use them versus --import.
61824         (Simple update): Use --add-import instead of --import.
61825         * NEWS: Mention the change.
61827 2010-09-04  Bruno Haible  <bruno@clisp.org>
61829         * doc/gnulib-tool.texi (Initial import): Update paragraph about
61830         separate gnulib.mk.
61832 2010-09-04  Bruno Haible  <bruno@clisp.org>
61834         gnulib-tool: Don't talk about CVS any more.
61835         * gnulib-tool (func_usage, func_import): Write "version control"
61836         instead of CVS.
61838 2010-09-04  Jim Meyering  <meyering@redhat.com>
61840         maint.mk: avoid obscure sc_copyright_check failure in coreutils
61841         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
61842         false positives (whose names may be ill-chosen) when searching
61843         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
61844         would cause a false-positive.
61846         avoid coreutils "make distcheck" failure
61847         Coreutils tests with an absolute build directory name that contains
61848         a space.  Not quoting this directory name caused a failure.
61849         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
61850         * tests/test-vc-list-files-cvs.sh: Likewise.
61852 2010-09-04  Bruno Haible  <bruno@clisp.org>
61854         gnulib-tool: Avoid error when run in a package without Makefile.am.
61855         * gnulib-tool: When collecting the m4dirs in a package that does not
61856         have a Makefile.am, eliminate those directories that contain no
61857         gnulib-cache.m4. Fix expression that counts these directories.
61859 2010-09-04  Bruno Haible  <bruno@clisp.org>
61861         update-copyright test: Improve output when perl is missing or too old.
61862         * tests/test-update-copyright.sh: Move test of Perl version down after
61863         the test whether Perl exists. Provide an explanation relating Perl's
61864         error message to Automake's SKIP: message.
61866 2010-09-04  Bruno Haible  <bruno@clisp.org>
61868         Don't augment PATH in TESTS_ENVIRONMENT.
61869         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
61870         set abs_aux_dir instead of augmenting PATH.
61871         * modules/vc-list-files-tests (Makefile.am): Likewise.
61872         * tests/test-update-copyright.sh: Augment PATH here.
61873         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
61874         path_prepend_.
61875         * tests/test-vc-list-files-git.sh: Likewise.
61877 2010-09-04  Jim Meyering  <meyering@redhat.com>
61879         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
61880         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
61882 2010-09-04  Bruno Haible  <bruno@clisp.org>
61884         strdup: Fix compilation error in C++ mode.
61885         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
61886         the macro.
61888 2010-09-04  Bruno Haible  <bruno@clisp.org>
61890         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
61891         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
61892         macro into a function.
61893         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
61895 2010-09-04  Bruno Haible  <bruno@clisp.org>
61897         Set PATH_SEPARATOR the same way autoconf does.
61898         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
61899         the value of PATH_SEPARATOR the same way autoconf-generated configure
61900         scripts do.
61901         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
61902         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
61904 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
61906         Set PATH_SEPARATOR the same way autoconf does.
61907         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
61908         the same way autoconf-generated configure scripts do.
61909         * posix-modules: Likewise.
61911 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
61913         hash: fix safe_hasher const typo
61914         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
61915         const; otherwise, there is a type error later.
61917 2010-09-02  Jim Meyering  <meyering@redhat.com>
61919         test-update-copyright.sh: require perl 5.8.0
61920         * tests/test-update-copyright.sh: Require 5.8.0,
61921         which Tom G. Christensen has confirmed is adequate,
61922         while 5.6.1 is not.
61924 2010-09-02  Eric Blake  <eblake@redhat.com>
61926         tests: init.sh improvements for re-exec'ing with zsh
61927         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
61928         -vx through shell re-exec.
61929         Reported by Tom G. Christensen.
61931         wctype: fix typo in previous commit
61932         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
61933         Reported by Ludovic Courtès.
61935 2010-09-02  Jim Meyering  <meyering@redhat.com>
61937         test-update-copyright.sh: skip test if Perl is too old
61938         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
61939         Reported by Tom G. Christensen.
61941 2010-09-02  Bruno Haible  <bruno@clisp.org>
61943         wctype: Avoid compilation error on IRIX 6.5.30.
61944         * lib/wctype.in.h (iswblank): Declare with a replacement if
61945         REPLACE_ISWBLANK is set.
61946         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
61947         declared. Set REPLACE_ISWBLANK.
61948         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
61949         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
61950         * doc/posix-headers/wctype.texi: Likewise.
61951         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
61953 2010-09-01  Bruno Haible  <bruno@clisp.org>
61955         New module 'socketlib'.
61956         * modules/socketlib: New file.
61957         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
61958         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
61959         * modules/sockets (Depends-on): Add socketlib.
61960         Suggested by Sam Steingold <sds@gnu.org>.
61962 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61964         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
61966         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
61967         when one needs search access to a directory but not read access.
61968         On systems where it is available, it works in some cases where
61969         O_RDONLY does not, namely on directories that are searchable but
61970         not readable, and which need only to be searchable.  If O_SEARCH
61971         is not available, fall back to the traditional method of using
61972         O_RDONLY.
61974         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
61975         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
61976         when opening a directory that needs only to be searchable.
61977         * lib/chdir-safer.c (chdir_no_follow): Likewise.
61978         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
61979         * lib/openat-proc.c (openat_proc_name): Likewise.
61980         * lib/openat.c (openat_needs_fchdir): Likewise.
61981         * lib/save-cwd.c (save_cwd): Likewise.
61982         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
61984 2010-08-28  Bruno Haible  <bruno@clisp.org>
61986         New module 'host-cpu-c-abi'.
61987         * modules/host-cpu-c-abi: New file.
61988         * m4/host-cpu-c-abi.m4: New file, based on part of
61989         clisp/src/m4/general.m4.
61990         Requested by Sam Steingold <sds@gnu.org>.
61992 2010-08-31  Eric Blake  <eblake@redhat.com>
61993         and Jim Meyering  <meyering@redhat.com>
61995         hash: factor, and guard against misbehaving hasher function
61996         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
61997         of table->hasher's return value.  Also protect against a hash value
61998         so large that adding it to table->bucket results in a NULL pointer.
61999         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
62000         Use it in place of open-coded check-and-abort.
62002 2010-08-30  Bruno Haible  <bruno@clisp.org>
62004         hash: silence spurious clang warning
62005         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
62006         Reported by Eric Blake.
62008 2010-08-30  Eric Blake  <eblake@redhat.com>
62010         strstr, memmem, strcasestr: avoid leaked shell message
62011         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
62012         FreeBSD.
62013         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
62014         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62016         tests: silence clang warning
62017         * tests/test-malloca.c (do_allocation): Avoid dead store.
62019 2010-08-29  Bruno Haible  <bruno@clisp.org>
62021         gettext: Fix recent mistake.
62022         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
62024 2010-08-29  Bruno Haible  <bruno@clisp.org>
62026         selinux-h: Offer a --without-selinux option.
62027         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
62028         --without-selinux was specified, skip all tests and define
62029         HAVE_SELINUX_SELINUX_H to 0.
62030         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
62031         set LIB_SELINUX to empty.
62032         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
62033         gl_LIBSELINUX. If --without-selinux was specified, replace
62034         selinux/context.h.
62035         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
62037 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62038             Bruno Haible  <bruno@clisp.org>
62040         Make the module 'realloc-gnu' work again on AIX and OSF/1.
62041         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
62042         of HAVE_REALLOC.
62043         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
62044         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
62045         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
62046         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
62048 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62049             Bruno Haible  <bruno@clisp.org>
62051         Make the module 'calloc-gnu' work again on AIX and OSF/1.
62052         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
62053         HAVE_CALLOC.
62054         * lib/xmalloc.c: Update accordingly.
62055         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
62056         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
62057         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
62059 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62060             Bruno Haible  <bruno@clisp.org>
62062         Make the module 'malloc-gnu' work again on AIX and OSF/1.
62063         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
62064         HAVE_MALLOC.
62065         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
62066         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
62067         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
62069 2010-08-29  Bruno Haible  <bruno@clisp.org>
62071         Update modules list.
62072         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
62073         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
62074         (String handling <string.h>): Add astrxfrm.
62075         (File system functions): Add readlinkat.
62077 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62079         Tests for module 'realloc-gnu'.
62080         * modules/realloc-gnu-tests: New file.
62081         * tests/test-realloc-gnu.c: New file.
62083         Tests for module 'calloc-gnu'.
62084         * modules/calloc-gnu-tests: New file.
62085         * tests/test-calloc-gnu.c: New file.
62087         Tests for module 'malloc-gnu'.
62088         * modules/malloc-gnu-tests: New file.
62089         * tests/test-malloc-gnu.c: New file.
62091 2010-08-28  Bruno Haible  <bruno@clisp.org>
62093         Rename module 'realloc' -> 'realloc-gnu'.
62094         * modules/realloc-gnu: New file, copied from modules/realloc.
62095         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
62096         obsolete.
62097         * modules/mgetgroups (Depends-on): Update.
62098         * doc/posix-functions/realloc.texi: Update.
62099         * NEWS: Mention the change.
62101         Rename module 'calloc' -> 'calloc-gnu'.
62102         * modules/calloc-gnu: New file, copied from modules/calloc.
62103         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
62104         obsolete.
62105         * doc/posix-functions/calloc.texi: Update.
62106         * NEWS: Mention the change.
62108         Rename module 'malloc' -> 'malloc-gnu'.
62109         * modules/malloc-gnu: New file, copied from modules/malloc.
62110         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
62111         obsolete.
62112         * modules/argp (Depends-on): Update.
62113         * modules/regex (Depends-on): Update.
62114         * doc/posix-functions/malloc.texi: Update.
62115         * NEWS: Mention the change.
62117 2010-08-28  Eric Blake  <eblake@redhat.com>
62119         pread, pwrite: add missing dependency
62120         * modules/pread (Depends-on): Add extensions.
62121         * modules/pwrite (Depends-on): Likewise.
62123 2010-08-28  Bruno Haible  <bruno@clisp.org>
62125         unistr/u*-strchr: Fix tests dependencies.
62126         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
62127         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
62128         Reported by Ian Beckwith <ianb@erislabs.net>.
62130 2010-08-28  Bruno Haible  <bruno@clisp.org>
62132         read-file: Don't occupy too much unused memory.
62133         * lib/read-file.c (fread_file): Shrink the buffer at the end.
62135 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
62136             Eric Blake  <eblake@redhat.com>
62137             Bruno Haible  <bruno@clisp.org>
62139         read-file: Avoid memory reallocations with regular files.
62140         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
62141         (fread_file): With regular files, use the remaining length as the
62142         initial buffer size.  Check against overflow.
62143         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
62144         sys_stat.
62146 2010-08-28  Bruno Haible  <bruno@clisp.org>
62148         ftello: Relax license.
62149         * modules/ftello (License): Relax to LGPLv2+.
62150         Reported by Eric Blake.
62152 2010-08-28  Bruno Haible  <bruno@clisp.org>
62154         Avoid relocwrapper link errors due to gnulib replacement functions.
62155         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
62156         function.
62157         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62159 2010-08-28  Bruno Haible  <bruno@clisp.org>
62161         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
62162         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
62163         defined.
62164         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
62165         Suggested by Eric Blake.
62167 2010-08-28  Bruno Haible  <bruno@clisp.org>
62169         sys_socket, netdb: Ensure socklen_t gets defined.
62170         * modules/sys_socket (Depends-on): Add socklen.
62171         * modules/netdb (Depends-on): Likewise.
62172         * modules/getaddrinfo (Depends-on): Remove socklen.
62173         * modules/getsockopt (Depends-on): Likewise.
62174         * modules/setsockopt (Depends-on): Likewise.
62175         * tests/test-sys_socket.c: Check that socklen_t is defined.
62176         * tests/test-netdb.c: Likewise.
62177         * m4/socklen.m4: Update comments.
62178         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62180 2010-08-27  Eric Blake  <eblake@redhat.com>
62182         login_tty: add missing dependency
62183         * modules/login_tty (Depends-on): Add pty.
62185 2010-08-26  Eric Blake  <eblake@redhat.com>
62187         lib-symbol-versions: fix m4 quoting
62188         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
62189         format for AC_LINK_IFELSE.
62191         glob: fix compile test
62192         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
62194         btowc: fix missing file
62195         * modules/btowc (Files): Also ship locale-fr.m4.
62197         lseek: fix link test
62198         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
62199         AC_LINK_IFELSE.
62201         include_next: silence autoconf 2.68 warning
62202         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
62203         AC_COMPILE_IFELSE as special.
62204         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
62205         autoconf < 2.68.
62207         acl: fix compilation test
62208         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
62209         AC_COMPILE_IFELSE.
62211 2010-08-26  Bruno Haible  <bruno@clisp.org>
62213         Modernize AC_TRY_RUN invocations.
62214         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
62215         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
62216         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
62217         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
62218         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
62219         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
62220         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
62221         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
62222         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
62223         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
62224         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
62225         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
62226         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
62227         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
62228         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
62229         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
62230         gl_MBRLEN_NUL_RETVAL): Likewise.
62231         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
62232         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
62233         Likewise.
62234         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
62235         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
62236         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
62237         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
62238         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
62239         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
62240         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
62241         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
62242         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
62243         Likewise.
62244         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
62245         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
62246         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62247         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
62248         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
62249         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
62250         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
62251         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
62252         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
62253         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62255 2010-08-26  Bruno Haible  <bruno@clisp.org>
62257         Modernize AC_TRY_LINK invocations.
62258         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
62259         AC_TRY_LINK.
62260         * m4/argp.m4 (gl_ARGP): Likewise.
62261         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
62262         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
62263         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
62264         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
62265         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
62266         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
62267         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
62268         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
62269         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
62270         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
62271         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
62272         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
62273         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
62274         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
62275         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
62276         * m4/hostent.m4 (gl_HOSTENT): Likewise.
62277         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
62278         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
62279         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
62280         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
62281         Likewise.
62282         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
62283         Likewise.
62284         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
62285         Likewise.
62286         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
62287         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
62288         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
62289         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
62290         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
62291         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
62292         * m4/servent.m4 (gl_SERVENT): Likewise.
62293         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
62294         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
62295         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
62296         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
62297         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
62298         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
62299         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
62300         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
62301         * modules/tsearch-tests (configure.ac): Likewise.
62303 2010-08-26  Bruno Haible  <bruno@clisp.org>
62305         Modernize AC_TRY_COMPILE invocations.
62306         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
62307         AC_TRY_COMPILE.
62308         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
62309         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
62310         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
62311         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
62312         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
62313         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
62314         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
62315         * m4/lock.m4 (gl_LOCK): Likewise.
62316         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
62317         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
62318         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
62319         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
62320         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
62321         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
62322         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
62323         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
62324         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
62325         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
62326         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
62327         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
62328         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
62329         extraneous semicolon.
62331 2010-08-26  Jim Meyering  <meyering@redhat.com>
62333         stat-time: relax license LGPL
62334         * modules/stat-time (License): Change from GPL to LGPL,
62335         with consent from all contributors, for use in libguile.
62336         Requested by Ludovic Courtès.
62338 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
62340         poll: return immediately on POLLHUP.
62341         * lib/poll.c (poll): Always set timeout before wait_timeout is
62342         computed.
62344 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62346         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
62347         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
62348         rmdir ("dir/.//"), unlinkat.
62350 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
62352         stdbool: avoid spurious failure with modern xlc
62353         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
62355 2010-08-24  Bruno Haible  <bruno@clisp.org>
62357         getloadavg: simplify code
62358         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
62359         gl_have_func. Update comments.
62361 2010-08-24  Eric Blake  <eblake@redhat.com>
62363         getloadavg: don't define SVR4 on cygwin
62364         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
62365         only define SVR4 when -lkvm is required.
62366         Reported by Yaakov Selkowitz.
62368 2010-08-24  Bruno Haible  <bruno@clisp.org>
62370         priv-set: fix comment
62371         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
62373 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
62375         priv-set: fix comments
62376         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
62377         to match code, as suggested by David Bartley in:
62378         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
62380 2010-08-23  Eric Blake  <eblake@redhat.com>
62382         stdbool: avoid rejecting clang
62383         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
62384         * tests/test-stdbool.c: Enable more tests if using the system
62385         <stdbool.h> instead of the gnulib replacement.
62386         (main): Move xlc bug test to a runtime test for all compilers.
62387         Reported by Anders Kaseorg.
62389         argz: fix shell quoting issue
62390         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
62391         Reported by Charles Wilson.
62393 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
62394             Erik Faye-Lund <kusmabite@gmail.com>
62396         poll, select: handle ERROR_BROKEN_PIPE.
62397         * lib/poll.c (win32_compute_revents): Return POLLHUP when
62398         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
62399         * lib/select.c (win32_compute_revents): Do not mark a pipe
62400         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
62402 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
62404         fts: allow compilation with C++
62405         * lib/fts_.h: Specify extern "C" linkage with C++.
62407 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62409         Fix gnulib-tool sed script de-commentation for AIX sed.
62410         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
62411         sed.
62413 2010-08-17  Eric Blake  <eblake@redhat.com>
62415         test-stddef: test for (some) offsetof bugs
62416         * tests/test-stddef.c: Enhance test to ensure correct type of
62417         offsetof.
62418         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
62419         that we are not fixing at this time.
62421 2010-08-15  Bruno Haible  <bruno@clisp.org>
62423         stpncpy: Allow stpncpy to be defined as a macro.
62424         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
62425         if it's already correctly declared.
62426         * lib/string.in.h (stpncpy): Undefine before redefining.
62427         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
62429 2010-08-14  Bruno Haible  <bruno@clisp.org>
62431         Rename module 'memxfrm' to 'amemxfrm'.
62432         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
62433         (amemxfrm): Renamed from memxfrm.
62434         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
62435         (amemxfrm): Renamed from memxfrm.
62436         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
62437         * NEWS: Mention the change.
62438         * MODULES.html.sh (String handling <string.h>): Update.
62439         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
62440         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
62441         * lib/unicase/u16-casexfrm.c: Likewise.
62442         * lib/unicase/u32-casexfrm.c: Likewise.
62443         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
62444         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
62445         * lib/uninorm/u16-normxfrm.c: Likewise.
62446         * lib/uninorm/u32-normxfrm.c: Likewise.
62447         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
62448         memxfrm.
62449         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
62450         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
62451         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
62452         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
62453         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
62454         Suggested by Paul Eggert.
62456 2010-08-14  Bruno Haible  <bruno@clisp.org>
62458         Tests for module 'astrxfrm'.
62459         * modules/astrxfrm-tests: New file.
62460         * tests/test-astrxfrm.c: New file.
62462         New module 'astrxfrm'.
62463         * lib/astrxfrm.h: New file.
62464         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
62465         * modules/astrxfrm: New file.
62467 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
62469         regex: Tweak doc.
62470         * doc/regex.texi (Overview): Don't mention regex.c.
62471         (GNU Regular Expression Compiling): Likewise.
62472         (Match-end-of-line Operator): Mention 'not_eol'.
62474 2010-08-14  Brian Gough  <bjg@gnu.org>
62475             Bruno Haible  <bruno@clisp.org>
62477         git-merge-changelog: add doc relating to use with bzr and hg.
62478         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
62480 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
62482         pthread: fix pthread.h creation for srcdir != builddir
62483         * modules/pthread (Makefile.am): Fix the rule to work also in a
62484         non-srcdir build.
62486 2010-08-13  Karl Berry  <karl@gnu.org>
62488         * doc/regex.texi (Predefined Syntaxes): @smallexample.
62489         * doc/posix-*/*: force line break before @url of POSIX
62490         specifications.
62491         Suggested by Werner Lemberg.
62493 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62495         strtod: fix const diagnostic
62496         * lib/strtod.c (strtod): Don't assign const char * to char *,
62497         as this elicits a warning from GCC when warnings are enabled.
62499 2010-08-10  Pádraig Brady  <P@draigbrady.com>
62500         and Eric Blake  <eblake@redhat.com>
62502         copy-acl: ignore ENOTSUP on HP-UX
62503         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
62504         so that it is available for HP-UX.
62505         * lib/copy-acl.c (qcopy_acl): Use it.
62506         Reported by Patrick M. Callahan.
62508 2010-08-10  Eric Blake  <eblake@redhat.com>
62510         open, chown: relax license
62511         * modules/open (License): Change to LGPLv2+, with consent by all
62512         authors, for use in augeas.
62513         * modules/chown (License): Likewise.
62514         * modules/lchown (Likewise): Likewise.
62515         Requested by Adam Stokes.
62517 2010-08-09  Karl Berry  <karl@gnu.org>
62519         * build-aux/ar-lib: new file, import from Automake.
62520         * config/srclist.txt: autocheck for updates.
62522 2010-08-09  Eric Blake  <eblake@redhat.com>
62524         readlinkat: adjust client modules
62525         * modules/areadlinkat (Depends-on): Use readlinkat, not
62526         symlinkat.
62527         * modules/areadlinkat-with-size (Depends-on): Likewise.
62529         mknod: be more vocal about danger of running tests as root
62530         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
62531         root, since that is just asking for problems.
62532         Suggested by Bruno Haible, based on a report by Rainer Tammer.
62534         readlinkat: split into its own module
62535         * modules/symlinkat: Split readlinkat...
62536         * modules/readlinkat: ...into separate module.
62537         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
62538         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
62539         * lib/symlinkat.c (readlinkat): Move...
62540         * lib/readlinkat.c: ...into new file.
62541         * modules/symlinkat-tests: Split readlinkat test...
62542         * modules/readlinkat-tests: ...into separate module.
62543         * tests/test-symlinkat.c: Split...
62544         * tests/test-readlinkat.c: ...into new file.
62545         * NEWS: Document the split.
62546         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
62547         * lib/unistd.in.h (readlinkat): Likewise.
62548         Suggested by Bruno Haible.
62550 2010-08-08  Bruno Haible  <bruno@clisp.org>
62552         memxfrm: Speed up.
62553         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
62554         that usually only one call to strxfrm is necessary for each string
62555         part.
62556         Reported by Paul Eggert <eggert@cs.ucla.edu>.
62558 2010-08-07  Karl Berry  <karl@gnu.org>
62560         * doc/posix-headers/limits.texi,
62561         * doc/posix-functions/malloc.texi,
62562         * doc/posix-functions/strsignal.texi: missing @item.
62563         * doc/ld-version-script.texi: spurious leading i.
62564         * doc/regex.texi (Interval Operators): no commas inside @var.
62566 2010-08-01  Bruno Haible  <bruno@clisp.org>
62568         Integrate the regex documentation.
62569         * doc/gnulib.texi: Define 'cn' index.
62570         (Regular expressions): New a chapter that includes regex.texi and
62571         regexprops-generic.texi.
62572         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
62573         syntax.
62575         Whitespace cleanup.
62576         * doc/regex.texi: Remove trailing spaces.
62578         Add regex documentation.
62579         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
62580         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
62581         Written by Kathy A. Hargreaves and Karl Berry.
62583 2010-08-01  Bruno Haible  <bruno@clisp.org>
62585         link: Update documentation.
62586         * doc/posix-functions/link.texi: Update regarding Solaris.
62588 2010-07-31  Bruno Haible  <bruno@clisp.org>
62590         Update modules list.
62591         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
62592         (String handling <string.h>): Add memcmp2, memxfrm.
62593         (Container data structures): Add xlist, xsublist, xoset.
62594         (Core language properties): Add alignof, unused-parameter.
62595         (Process control, Numeric conversion functions <stdlib.h>): Renamed
62596         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
62597         (Unibyte characters <ctype.h>): New section.
62598         (String handling <string.h>): New section.
62599         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
62600         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
62601         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
62602         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
62603         tan, tanh, tanl, y0, y1, yn.
62604         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
62605         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
62606         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
62607         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
62608         unlockpt, vdprintf, vdprintf-posix.
62609         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
62610         (File system functions): Add concat-filename, sys_file, sys_ioctl,
62611         xconcat-filename.
62612         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
62613         getdtablesize, pipe2, pipe2-safer.
62614         (Security): New section.
62615         (Networking functions): Add accept4.
62616         (Signal handling): Add sigpipe.
62617         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
62618         mbmemcasecoll.
62619         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
62620         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
62621         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
62622         pipe-filter-ii.
62623         (Misc): Add argp-version-etc, login_tty, parse-duration.
62625 2010-07-31  Bruno Haible  <bruno@clisp.org>
62627         Improve doc in MODULES.html.
62628         * modules/linkat (Description): Add the word "function".
62629         * modules/mkfifo (Description): Likewise.
62630         * modules/mknod (Description): Likewise.
62631         * modules/remove (Description): Likewise.
62632         * modules/renameat (Description): Likewise.
62633         * modules/stat (Description): Likewise.
62634         * modules/symlink (Description): Likewise.
62635         * modules/unlink (Description): Likewise.
62637 2010-07-31  Bruno Haible  <bruno@clisp.org>
62639         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
62640         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
62641         option --enable/disable-c++ instead of --enable/disable-cxx.
62642         * NEWS: Mention the change.
62644 2010-07-31  Bruno Haible  <bruno@clisp.org>
62646         readlink, areadlink: Relax test a bit.
62647         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
62648         alternative to ENOTDIR.
62649         * tests/test-areadlink.h (test_areadlink): Likewise.
62650         Reported by Rainer Tammer.
62652 2010-07-31  Bruno Haible  <bruno@clisp.org>
62654         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
62655         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
62656         character, perform the search using U_STRCHR.
62657         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
62658         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
62659         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
62660         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
62661         Suggested by Paolo Bonzini.
62663 2010-07-31  Bruno Haible  <bruno@clisp.org>
62665         unistr/u*-strstr: Fix dependencies.
62666         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
62667         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
62668         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
62670 2010-07-31  Bruno Haible  <bruno@clisp.org>
62672         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
62673         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
62674         the beginning of the loop.
62675         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
62676         cases in 'switch' statement.
62678         unistr/u8-strchr: Fix several bugs.
62679         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
62680         the string. When not found, return NULL, not a pointer near the end.
62682         More tests for unistr/u8-strchr.
62683         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
62684         that the function does not read past the first occurrence of the byte
62685         being searched.
62686         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
62687         * tests/unistr/test-u16-strchr.c (main): New function.
62688         * tests/unistr/test-u32-strchr.c (main): New function.
62690 2010-07-31  Bruno Haible  <bruno@clisp.org>
62692         posix-modules: Ignore backup files of documentation files.
62693         * posix-modules: grep only through files named *.texi.
62695 2010-07-31  Bruno Haible  <bruno@clisp.org>
62697         symlinkat: Fix documentation.
62698         * doc/posix-functions/readlinkat.texi: Fix module name.
62700 2010-07-31  Bruno Haible  <bruno@clisp.org>
62702         fchownat: Replace also when chown has the trailing slash bug.
62703         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
62704         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
62705         introduced on 2010-04-10.
62706         Reported by Rainer Tammer.
62708 2010-07-31  Bruno Haible  <bruno@clisp.org>
62710         linkat: Work around AIX 7.1 bug.
62711         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
62712         whether linkat handles trailing slash correctly. If not, replace linkat
62713         and define LINKAT_TRAILING_SLASH_BUG.
62714         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
62715         check whether (fd1,file1) points to a directory if file1 or file2 ends
62716         in a slash. Code taken from lib/link.c.
62717         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
62718         Reported by Rainer Tammer.
62720 2010-07-31  Bruno Haible  <bruno@clisp.org>
62722         Correctly determine whether pow is available in libc on AIX 7 with xlc.
62723         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
62724         This disables an xlc optimization that was causing wrong test results.
62725         Reported by Rainer Tammer.
62727 2010-07-31  Bruno Haible  <bruno@clisp.org>
62729         iconv: Work around AIX 6.1..7.1 bug.
62730         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
62731         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
62732         cross-compiling, guess no on all versions of AIX.
62733         Reported by Rainer Tammer.
62735 2010-07-31  Bruno Haible  <bruno@clisp.org>
62737         readlink: Relax test a bit.
62738         * tests/test-readlink.h (test_readlink): Allow different errno value
62739         when readlink is called with a file name that ends in / and refers to
62740         a file.
62741         Suggested by Eric Blake.
62742         Reported by Rainer Tammer.
62744 2010-07-31  Bruno Haible  <bruno@clisp.org>
62746         copysign: Does not require -lm on glibc systems.
62747         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
62748         gl_COMMON_DOUBLE_MATHFUNC.
62749         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
62751 2010-07-31  Bruno Haible  <bruno@clisp.org>
62753         duplocale: Work around AIX 7.1 bug.
62754         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
62755         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
62756         * lib/duplocale.c (rpl_duplocale): Update comment.
62757         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
62758         Reported by Rainer Tammer.
62760 2010-07-30  Bruno Haible  <bruno@clisp.org>
62762         dirfd: Avoid link error on AIX 7.1.
62763         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
62764         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
62765         exist, set REPLACE_DIRFD.
62766         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
62767         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
62768         * doc/posix-functions/dirfd.texi: Update.
62769         Reported by Rainer Tammer.
62771 2010-07-30  Eric Blake  <eblake@redhat.com>
62773         strtod: next round of AIX fixes
62774         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
62775         exponent.
62776         * tests/test-strtod.c (main): Enhance tests.
62777         * doc/posix-functions/strtod.texi (strtod): Document next bug.
62778         Reported by Rainer Tammer.
62780         futimens: fix configure check
62781         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
62782         Reported by Bruno Haible.
62784 2010-07-30  Bruno Haible  <bruno@clisp.org>
62786         getline: Update regarding AIX.
62787         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
62788         Reported by Rainer Tammer.
62790 2010-07-30  Bruno Haible  <bruno@clisp.org>
62792         wcwidth: Drop replacement on AIX 7.
62793         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
62794         AIX 7.
62795         Reported by Rainer Tammer.
62797 2010-07-30  Bruno Haible  <bruno@clisp.org>
62799         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
62800         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
62801         a 'char *'.
62802         Reported by Rainer Tammer.
62804 2010-07-30  Bruno Haible  <bruno@clisp.org>
62806         unlink: Update regarding AIX.
62807         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
62808         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
62809         Reported by Rainer Tammer.
62811 2010-07-30  Bruno Haible  <bruno@clisp.org>
62813         symlink: Update regarding AIX.
62814         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
62815         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
62816         Reported by Rainer Tammer.
62818 2010-07-30  Bruno Haible  <bruno@clisp.org>
62820         strndup: Update regarding AIX.
62821         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
62822         AIX 7.
62823         Reported by Rainer Tammer.
62825 2010-07-30  Bruno Haible  <bruno@clisp.org>
62827         stat: Update regarding AIX.
62828         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
62829         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
62830         Reported by Rainer Tammer.
62832 2010-07-30  Bruno Haible  <bruno@clisp.org>
62834         truncl: Fix autoconf test.
62835         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
62836         whether truncl works.
62837         Reported by Rainer Tammer.
62839 2010-07-30  Bruno Haible  <bruno@clisp.org>
62841         round: Update regarding AIX.
62842         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
62843         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
62844         Reported by Rainer Tammer.
62846 2010-07-30  Bruno Haible  <bruno@clisp.org>
62848         rename: Update regarding AIX.
62849         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
62850         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
62851         Reported by Rainer Tammer.
62853 2010-07-30  Bruno Haible  <bruno@clisp.org>
62855         printf.m4: Update regarding AIX.
62856         * m4/printf.m4: Update comments regarding AIX.
62857         Reported by Rainer Tammer.
62859 2010-07-30  Bruno Haible  <bruno@clisp.org>
62861         iconv: Update regarding AIX.
62862         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
62863         AIX 7.
62864         Reported by Rainer Tammer.
62866 2010-07-30  Bruno Haible  <bruno@clisp.org>
62868         getopt: Update regarding AIX.
62869         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
62870         no on AIX.
62871         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
62872         Reported by Rainer Tammer.
62874 2010-07-30  Bruno Haible  <bruno@clisp.org>
62876         ldexpl; Update regarding AIX.
62877         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
62878         on AIX 7.
62879         Reported by Rainer Tammer.
62881 2010-07-30  Bruno Haible  <bruno@clisp.org>
62883         frexpl: Update regarding AIX.
62884         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
62885         on AIX 7.
62886         Reported by Rainer Tammer.
62888 2010-07-30  Bruno Haible  <bruno@clisp.org>
62890         open, fopen: Update regarding AIX.
62891         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
62892         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
62893         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
62894         * doc/posix-functions/fopen.texi: Likewise.
62895         Reported by Rainer Tammer.
62897 2010-07-30  Bruno Haible  <bruno@clisp.org>
62899         chown: Update doc regarding AIX.
62900         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
62901         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
62902         Reported by Rainer Tammer.
62904 2010-07-30  Eric Blake  <eblake@redhat.com>
62906         strtod: fix bug in replacement function on AIX
62907         * lib/strtod.c (strtod): Special case broken "0x" parse in
62908         underlying strtod.
62909         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
62910         * doc/posix-functions/strtod.texi (strtod): Likewise.
62911         Reported by Rainer Tammer.
62913 2010-07-30  Bruno Haible  <bruno@clisp.org>
62915         mbrlen: Fix cross-compilation guess for AIX.
62916         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
62917         guess. Leftover from 2008-12-22.
62919 2010-07-30  Bruno Haible  <bruno@clisp.org>
62921         mbrtowc: Fix cross-compilation guess for AIX.
62922         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
62923         guess. Leftover from 2008-12-21.
62925 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
62927         init.sh: work around trap limitation of some shells
62928         * tests/init.sh (setup_): Move exit trap outside of shell function.
62930 2010-07-29  Eric Blake  <eblake@redhat.com>
62932         strtod: aid debugging
62933         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
62934         understanding why strtod is rejected.
62936 2010-07-28  Bruno Haible  <bruno@clisp.org>
62938         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
62939         * lib/unistr/u8-chr.c: Include <string.h>.
62940         * tests/unistr/test-u8-chr.c: Likewise.
62941         * tests/unistr/test-u16-chr.c: Likewise.
62942         * tests/unistr/test-u32-chr.c: Likewise.
62943         * tests/unistr/test-u8-strchr.c: Likewise.
62944         * tests/unistr/test-u16-strchr.c: Likewise.
62945         * tests/unistr/test-u32-strchr.c: Likewise.
62946         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
62947         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
62948         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
62949         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
62951 2010-07-28  Bruno Haible  <bruno@clisp.org>
62953         Use spaces for indentation, not tabs.
62954         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
62956 2010-07-27  Bruno Haible  <bruno@clisp.org>
62958         mbspcasecmp: Fix function specification.
62959         * lib/string.in.h (mbspcasecmp): Fix specification comment.
62960         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
62961         Reported by Eric Blake <eblake@redhat.com>.
62963 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
62965         timespec: use cast and not conditional, as truncation isn't possible
62966         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
62967         instead of a conditional.  Comment about the situation in more detail.
62968         This undoes most of the 2009-10-29 patch.
62970 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
62972         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
62973         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
62974         * lib/unistr/u8-strchr.c: Likewise.
62975         * modules/unistr/u8-chr: Depend on memchr.
62977         unistr/u*-strchr: add tests
62978         * modules/unistr/u8-strchr-tests: New file.
62979         * modules/unistr/u16-strchr-tests: New file.
62980         * modules/unistr/u32-strchr-tests: New file.
62981         * tests/unistr/test-strchr.h: New file.
62982         * tests/unistr/test-u8-strchr.c: New file.
62983         * tests/unistr/test-u16-strchr.c: New file.
62984         * tests/unistr/test-u32-strchr.c: New file.
62986         unistr/u*-chr: test multibyte sequences more
62987         * tests/unistr/test-chr.h: Do complete testing of the characters in the
62988         test vector.
62989         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
62990         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
62991         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
62993         unistr/u*-chr: test multibyte sequences
62994         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
62996         unistr/u*-chr: prepare for multibyte tests
62997         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
62998         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
62999         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
63000         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
63001         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
63002         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
63004 2010-07-18  Bruno Haible  <bruno@clisp.org>
63006         unistr/u8-strchr: Optimize non-ASCII argument case.
63007         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
63008         because the first byte often matches anyway.
63009         Reported by Pádraig Brady <P@draigbrady.com>.
63011 2010-07-15  Karl Berry  <karl@gnu.org>
63013         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
63015 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
63017         getcwd: on Solaris, work better if ancestors are inaccessible
63018         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
63019         buffer and size, try again with a large buffer.  This works better
63020         on Solaris, since its getcwd succeeds even if the path to the root
63021         is inaccessible, and this is helpful in common cases such as .zfs
63022         hidden directories.  Problem reported by J Chapman Flack in
63023         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
63024         Use system getcwd if it's declared, not merely if it's partly
63025         working; use the partly-working test only to avoid needless effort
63026         if the system getcwd fails.
63027         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
63028         comment that was already obsolete and is now even more obsolete.
63029         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
63030         now might call strdup.
63032 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
63034         pthread: Add enough so that coreutils/src/sort.c compiles.
63035         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
63036         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
63037         gnulib. Include <sched.h> and <time.h>, as per POSIX.
63038         Include <sys/types.h>, in case it defines pthread_t.
63039         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
63040         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
63041         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
63042         (pthread_rwlockattr_t, pthread_spinlock_t):
63043         New typedefs, if HAVE_PTHREAD_T is not defined.
63044         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
63045         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
63046         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
63047         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
63048         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
63049         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
63050         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
63051         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
63052         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
63053         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
63054         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
63055         New macros.
63056         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
63057         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
63058         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
63059         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
63060         (pthread_spin_unlock): New dummy functions.
63061         (pthread_create): Return EAGAIN; don't set errno.
63062         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
63063         require AC_C_INLINE.
63064         * modules/pthread (Depends-on): Add sched, time.
63065         (pthread.h): Use AM_V_GEN.
63067 2010-07-13  Bruno Haible  <bruno@clisp.org>
63069         striconveh: Don't malloc memory if the result buffer is sufficient.
63070         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
63071         buffer if its size is sufficient.
63072         Reported by Ludovic Courtès <ludo@gnu.org>.
63074 2010-07-13  Bruno Haible  <bruno@clisp.org>
63076         strtod: Add safety check.
63077         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
63079 2010-07-12  Bruno Haible  <bruno@clisp.org>
63081         Unify tests that set gl_cv_func_ldexpl_no_libm.
63082         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
63083         gl_FUNC_LDEXPL.
63084         (gl_FUNC_LDEXPL): Invoke it.
63085         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
63087 2010-07-12  Bruno Haible  <bruno@clisp.org>
63089         Unify tests that set gl_cv_func_ldexp_no_libm.
63090         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
63091         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
63092         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
63093         (configure.ac): Simply invoke gl_FUNC_LDEXP.
63094         * modules/strtod (Files): Add m4/ldexp.m4.
63096 2010-07-12  Bruno Haible  <bruno@clisp.org>
63098         Unify tests that set gl_cv_func_frexpl_no_libm.
63099         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
63100         gl_FUNC_FREXPL_NO_LIBM.
63101         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
63102         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
63104 2010-07-12  Bruno Haible  <bruno@clisp.org>
63106         Unify tests that set gl_cv_func_frexp_no_libm.
63107         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
63108         gl_FUNC_FREXP_NO_LIBM.
63109         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
63110         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
63112 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
63114         memcoll: clarify sizes versus lengths, document better, and tweak perf
63115         * lib/memcoll.c (strcoll_loop, memcoll0):
63116         Improve quality of descriptive comments.  Name variables
63117         consistently as to whether they are lengths (which do not include
63118         terminating null) versus sizes (which do).
63119         * lib/xmemcoll.c (xmemcoll0): Likewise.
63120         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
63121         returned when s1size == 0; this is easier to compile and saves
63122         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
63124 2010-07-12  Bruno Haible  <bruno@clisp.org>
63126         Tests for module '_Exit'.
63127         * modules/_Exit-tests: New file.
63128         * tests/test-_Exit.sh: New file.
63129         * tests/test-_Exit.c: New file.
63131         New module '_Exit'.
63132         * lib/stdlib.in.h (__attribute__): New macro.
63133         (_Exit): New declaration.
63134         * lib/_Exit.c: New file.
63135         * m4/_Exit.m4: New file.
63136         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
63137         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
63138         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
63139         * modules/_Exit: New file.
63140         * tests/test-stdlib-c++.cc (_Exit): Check signature.
63141         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
63143 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
63145         strtod: make it more-accurate typically, and don't require libm
63146         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
63147         Include limits.h.  Don't include string.h.
63148         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
63149         (locale_isspace): New function, so that no casts are needed to
63150         check whether *s is a space.
63151         (ldexp): Provide an unused dummy if not available.
63152         (scale_radix_exp, parse_number, underlying_strtod): New functions.
63153         (strtod): Use them.  This implementation prefers to use the
63154         underlying strtod if available, falling back on our own code
63155         only to fix known bugs.  This is more likely to produce an
63156         accurate result.  Also, it avoids the use of libm functions.
63157         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
63158         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
63159         was absent, but it caused a test failure with coreutils.
63160         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
63161         with libm.
63162         * modules/strtod (Makefile.am, Link): libm is no longer needed.
63163         * modules/strtod-tests (Makefile.am): Likewise.
63165 2010-07-11  Pádraig Brady  <P@draigBrady.com>
63166             Bruno Haible  <bruno@clisp.org>
63168         unistr/u8-strchr: Optimize ASCII argument case.
63169         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
63171 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
63173         (x)memcoll: minor tweaks
63174         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
63175         is after the type that it qualifies.
63176         (memcoll0): Likewise.
63177         * lib/memcoll.h (memcoll0): Likewise.
63178         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
63179         * lib/xmemcoll.h (xmemcoll0): Likewise.
63180         * lib/memcoll.c (memcoll0): Correct the comment.  This function
63181         differs from memcoll in that the NUL byte is part of the argument.
63182         Omit the abort-checks, as performance is a real issue here.  Plus,
63183         the checks were wrong anyway (an off-by-one error).  Omit local
63184         variable 'diff', as it's a bit clearer that way.
63185         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
63186         no longer needed.
63188 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
63190         (x)memcoll: speedup when input is known to be NUL delimited
63191         * lib/memcoll.c: Include stdlib.
63192         (memcoll0): New function.
63193         (strcoll_loop): New function, refactored for use in both memcoll
63194         and memcoll0.
63195         * lib/memcoll.h (memcoll0): Add prototype.
63196         * lib/xmemcoll.c (xmemcoll0): New function.
63197         (collate_error): New function, refactored for use in both xmemcoll
63198         and xmemcoll0.
63199         * lib/xmemcoll.h (xmemcoll0): Add prototype.
63200         * m4/memcoll.m4: add inline invocation.
63202 2010-07-06  Pádraig Brady  <P@draigBrady.com>
63204         * build-aux/bootstrap: Remove any local translations
63205         from the translation project synchronization directory,
63206         so that local only translations are not distributed.
63208 2010-07-04  Bruno Haible  <bruno@clisp.org>
63210         fsusage: Clarify which code applies to which platforms.
63211         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
63212         platform.
63213         * lib/fsusage.c (get_fs_usage): Likewise.
63215 2010-07-04  Bruno Haible  <bruno@clisp.org>
63217         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
63218         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
63219         Reported by Martin Lambers <marlam@marlam.de>.
63221 2010-07-04  Jim Meyering  <meyering@redhat.com>
63223         hash: once again explicitly disallow insertion of NULL
63224         * lib/hash.c (hash_insert0): Reinstate just-removed test:
63225         inserting a NULL pointer cannot work with these functions.
63226         Add a comment with details.
63227         This reverts part of the 2010-07-01 commit, 5bef1a35
63228         "hash: extend module to deal with non-pointer keys".
63230 2010-07-01  Bruno Haible  <bruno@clisp.org>
63232         stdbool: Update doc.
63233         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
63234         Info from Christian Weisgerber <naddy@mips.inka.de>.
63236 2010-07-01  Jim Meyering  <meyering@redhat.com>
63238         hash: extend module to deal with non-pointer keys
63239         * lib/hash.c (hash_insert0): New interface, much like hash_insert
63240         but that allows insertion of non-pointer entries.
63241         Do not disallow an ENTRY value of NULL.
63242         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
63243         * lib/hash.h (hash_insert0): Declare.
63245 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
63247         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
63248         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
63249         not present (i.e. with autoconf 2.59 and when using gettextize, not
63250         gnulib), require AC_GNU_SOURCE instead.
63252 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
63254         idpriv-drop: Fix tests.
63255         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
63256         not to the test-idpriv-droptemp program.
63258 2010-06-29  Bruno Haible  <bruno@clisp.org>
63260         string: Fix syntax error with g++ 2.96.
63261         * lib/string.in.h (__pure__): Remove definition.
63262         (_GL_ATTRIBUTE_PURE): New macro.
63263         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
63264         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
63265         Reported by Christian Weisgerber <naddy@mips.inka.de>.
63267 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
63269         unitypes: Fix bug introduced on 2010-05-18.
63270         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
63272 2010-06-22  Eric Blake  <eblake@redhat.com>
63274         memmem: slight optimization
63275         * lib/str-two-way.h (critical_factorization): Update comments.
63276         Reduce work during factorization phase.
63277         Reported by Carlos Bueno <carlos@bueno.org>.
63279 2010-06-21  Bruno Haible  <bruno@clisp.org>
63281         Fix HAVE_CALLOC_POSIX misnomer.
63282         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
63283         !HAVE_CALLOC_POSIX.
63284         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
63285         HAVE_CALLOC_POSIX.
63286         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
63287         instead of HAVE_CALLOC_POSIX.
63288         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
63289         HAVE_CALLOC_POSIX.
63291         Use modern idiom for calloc() replacement.
63292         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
63293         AC_FUNC_CALLOC.
63294         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
63295         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
63296         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
63297         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
63298         (gl_REPLACE_CALLOC): New macro.
63300 2010-06-21  Bruno Haible  <bruno@clisp.org>
63302         Fix HAVE_REALLOC_POSIX misnomer.
63303         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
63304         !HAVE_REALLOC_POSIX.
63305         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
63306         HAVE_REALLOC_POSIX.
63307         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
63308         instead of HAVE_REALLOC_POSIX.
63309         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
63310         HAVE_REALLOC_POSIX.
63312         Use modern idiom for realloc() replacement.
63313         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
63314         AC_FUNC_REALLOC.
63315         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
63316         Autoconf's AC_FUNC_REALLOC.
63317         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
63318         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
63319         (gl_REPLACE_REALLOC): New macro.
63320         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
63322 2010-06-21  Bruno Haible  <bruno@clisp.org>
63324         Fix HAVE_MALLOC_POSIX misnomer.
63325         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
63326         !HAVE_MALLOC_POSIX.
63327         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
63328         HAVE_MALLOC_POSIX.
63329         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
63330         instead of HAVE_MALLOC_POSIX.
63331         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
63332         HAVE_MALLOC_POSIX.
63334         Use modern idiom for malloc() replacement.
63335         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
63336         AC_FUNC_MALLOC.
63337         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
63338         Autoconf's AC_FUNC_MALLOC.
63339         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
63340         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
63341         (gl_REPLACE_MALLOC): New macro.
63342         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
63344 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
63346         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
63347         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
63348         This macro takes 3 arguments, not 4.
63350 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
63352         ipv6: fix detection under mingw
63353         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
63354         in6_addr.
63356 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
63358         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
63359         that strtod() works when cross-compiling to a glibc version known
63360         to work.
63362 2010-06-15  Bruno Haible  <bruno@clisp.org>
63364         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
63366 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
63368         select: Correct timeout.
63369         * lib/select.c (rpl_select): Compute wait_timeout correctly.
63371 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
63373         git-version-gen: init shell var to avoid env var influence
63374         * build-aux/git-version-gen (v): Init shell var to empty.
63376 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
63378         priv-set: Don't assume that priv.h exists merely because getppriv does.
63379         See Jan Andersen's bug report about AIX 5L in
63380         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
63381         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
63382         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
63383         * lib/priv-set.h: Likewise.
63384         * tests/test-priv-set.c: Likewise.
63386 2010-06-13  Bruno Haible  <bruno@clisp.org>
63388         relocatable: Make it easier to test whether to install wrappers.
63389         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
63390         RELOCATABLE_VIA_WRAPPER.
63392 2010-06-13  Bruno Haible  <bruno@clisp.org>
63394         gnulib-tool: Display specified modules and dependencies differently.
63395         * gnulib-tool (func_show_module_list): New function.
63396         (func_import, func_create_testdir): Invoke it.
63397         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
63399 2010-06-13  Bruno Haible  <bruno@clisp.org>
63401         gnulib-tool: Align code of func_import and func_create_testdir.
63402         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
63403         specified_modules.
63405 2010-06-12  Jim Meyering  <meyering@redhat.com>
63407         test-inttostr: avoid spurious failure on Solaris 9
63408         * tests/test-inttostr.c (main): Skip the test when snprintf fails
63409         to accept "%ju".  Reported by Bruno Haible.
63411 2010-06-11  Jim Meyering  <meyering@redhat.com>
63413         test-sys_socket: mark variables as used more readably
63414         * tests/test-sys_socket.c (main): Mark otherwise unused variables
63415         as "used" explicitly via (void) statement casts.  This is more
63416         readable than using them in an artificial return expression.
63417         Suggestion from Bruno Haible.
63419 2010-06-11  Bruno Haible  <bruno@clisp.org>
63421         Avoid some more warnings from "gcc -Wwrite-strings".
63422         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
63423         to 'const char *'.
63424         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
63425         * tests/test-c-strcasestr.c (main): Likewise.
63426         * tests/test-mbscasestr1.c (main): Likewise.
63427         * tests/test-mbscasestr2.c (main): Likewise.
63428         * tests/test-memmem.c (main): Likewise.
63429         * tests/test-strstr.c (main): Likewise.
63430         * tests/test-strcasestr.c (main): Likewise.
63432 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63434         init.sh: change framework_failure_ to fail with status 99, not 1
63435         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
63436         automake's parallel-tests rule that this is an unexpected failure,
63437         even if the test is listed in XFAIL_TESTS.
63439 2010-06-11  Jim Meyering  <meyering@redhat.com>
63441         test-inttostr: avoid warnings about 4-6KB literal strings
63442         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
63443         Include "macros.h", for its definition of ASSERT.
63444         (CK): s/assert/ASSERT/
63445         * modules/inttostr-tests (Files): Add macros.h.
63447         init.sh: don't use $ME_ or skip_ before they are defined
63448         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
63449         their first uses.  Also hoist their companions: warn_, fail_,
63450         framework_failure_, $stderr_fileno.  Prompted by a patch from
63451         Stefano Lattarini.
63453         test-sys_socket: avoid set-but-not-used warnings from gcc
63454         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
63455         avoid warning about set-but-not-used variables.
63457         test-xvasprintf: avoid 'const' discard warnings
63458         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
63459         "const" when assigning from literal strings.
63460         (test_xasprintf): Add "void" in function argument list to placate
63461         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
63463         tests: avoid compilation warnings in argmatch and exclude tests...
63464         in packages that define ARGMATCH_DIE_DECL, like coreutils.
63465         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
63466         Since it always exits, declare with the "noreturn" attribute.
63467         * tests/test-argmatch.c: Likewise.
63469         tests: avoid 'const' discard warnings in mbsstr tests
63470         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
63471         * tests/test-mbsstr2.c (main): Likewise.
63473         test-verify: avoid warning from gcc's -Wmissing-declarations
63474         * tests/test-verify.c (function): Declare to be static.
63476         test-inttostr.c: include <string.h> for use of strcmp
63477         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
63479         test-linkat: avoid failed assertion on "other" architectures
63480         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
63481         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
63482         sparc: https://bugs.launchpad.net/bugs/591968
63484 2010-06-11  Jim Meyering  <meyering@redhat.com>
63486         printf.m4: avoid autoconf's "Expanded Before Required" warning
63487         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
63488         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
63489         autoconf warning.
63491 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
63493         Replacement header templates are now named with ".in", not "_".
63494         * doc/gnulib-intro.texi: Correct.
63496 2010-06-10  Jim Meyering  <meyering@redhat.com>
63498         inttostr-tests: depend on snprintf, not snprintf-posix
63499         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
63500         snprintf-posix, to avoid this aclocal failure:
63501           missing file gnulib-tests/vasnprintf.c
63502           configure.ac:45: error: expected source file, required through \
63503           AC_LIBSOURCES, not found
63505 2010-06-10  Jim Meyering  <meyering@redhat.com>
63507         inttostr: add a new function, inttostr, and tests
63508         The namesake function was not available.  The existence of the
63509         template file, inttostr.c makes its addition nontrivial.
63510         * lib/anytostr.c: Rename from inttostr.c.
63511         (anytostr): Rename from inttostr.
63512         * lib/inttostr.c: New file.
63513         * modules/inttostr (Files): Add anytostr.c.
63514         (Makefile.am): Set lib_SOURCES instead of ...
63515         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
63516         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
63517         * lib/offtostr.c: Likewise.
63518         * lib/uinttostr.c: Likewise.
63519         * lib/umaxtostr.c: Likewise.
63520         * modules/inttostr-tests: New file.
63521         * tests/test-inttostr.c: New file.  Test these functions.
63523 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
63524             Bruno Haible  <bruno@clisp.org>
63526         Add "Extending Gnulib" chapter to manual.
63527         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
63528         chapter.
63529         (Extending Gnulib): New chapter.
63530         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
63531         chapter.
63533 2010-06-09  Bruno Haible  <bruno@clisp.org>
63535         Avoid relocwrapper link errors due to gnulib replacement functions.
63536         * lib/areadlink.c: Use the system's malloc, realloc functions.
63537         (areadlink): Set errno to ENOMEM explicitly.
63538         * modules/areadlink (Depends-on): Remove malloc-posix.
63539         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63541 2010-06-09  Bruno Haible  <bruno@clisp.org>
63543         Avoid relocwrapper link errors due to gnulib replacement functions.
63544         * lib/canonicalize-lgpl.c: Use the system's malloc function.
63545         * lib/malloca.c: Likewise.
63546         * lib/relocatable.c: Likewise.
63547         * lib/progreloc.c: Use the system's malloc, sprintf functions.
63548         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
63549         * lib/setenv.c: Use the system's malloc, realloc functions.
63550         * lib/strerror.c: Use the system's sprintf function.
63551         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63553 2010-06-04  Bruno Haible  <bruno@clisp.org>
63555         Prefer documented low-level autoconf macro names.
63556         * m4/lib-link.m4: Use m4_translit instead of translit.
63557         * m4/environ.m4: Likewise.
63558         * m4/mathfunc.m4: Likewise.
63559         * m4/onceonly.m4: Likewise.
63560         * m4/stdint.m4: Likewise.
63561         Suggested by Eric Blake.
63563 2010-06-04  Martin Lambers  <marlam@marlam.de>
63564             Bruno Haible  <bruno@clisp.org>
63566         havelib: Allow library names with '+' characters.
63567         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
63568         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
63570 2010-06-09  Bruno Haible  <bruno@clisp.org>
63572         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
63573         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
63574         realloc failed.
63576 2010-06-08  Peter Simons  <simons@cryp.to>
63578         maint.mk: make the news-check rule more configurable
63579         * top/maint.mk (news-check-lines-spec): New variable.
63580         (news-check): Use "sed -n 1,10p" in place of "head".
63582 2010-06-07  Jim Meyering  <meyering@redhat.com>
63584         do-release-commit-and-tag: fix typo in --help
63585         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
63587         regex: avoid new dead-code warning with gcc-4.6.0
63588         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
63589         if-block containing a while-loop.  It's been unused for at least
63590         5 years.
63592 2010-06-05  Bruno Haible  <bruno@clisp.org>
63594         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
63595         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
63597 2010-06-04  Bruno Haible  <bruno@clisp.org>
63599         Update to GNU gettext 0.18.1.
63600         * modules/gettext (configure.ac): Require gettext infrastructure from
63601         version 0.18.1.
63603 2010-06-03  Bruno Haible  <bruno@clisp.org>
63605         Don't use AC_LIBOBJ with file names in subdirectories.
63606         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
63607         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
63608         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
63609         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
63610         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
63611         gl_LIBUNISTRING_LIBSOURCE.
63612         (Makefile.am): Augment lib_SOURCES here, conditionally.
63613         * NEWS: Drop requirement for Automake option 'subdir-objects'.
63615 2010-06-03  Bruno Haible  <bruno@clisp.org>
63617         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
63618         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
63619         expansion does not end with a newline.
63620         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
63621         unnecessary newline.
63623 2010-06-03  Bruno Haible  <bruno@clisp.org>
63625         Reduce dependencies.
63626         * tests/test-quotearg.h: New file, extracted from
63627         tests/test-quotearg.c.
63628         * tests/test-quotearg-simple.c: New file, extracted from
63629         tests/test-quotearg.c.
63630         * tests/test-quotearg.c: Don't include <ctype.h>.
63631         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
63632         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
63633         use_quote_double_quotes, use_quotearg_colon): Moved to
63634         tests/test-quotearg.h.
63635         (results_g, flag_results, custom_quotes, custom_results): Moved
63636         to tests/test-quotearg-simple.c.
63637         (main): Moved the part that does not depend on gettext to
63638         tests/test-quotearg-simple.c. Return 77 if the test cannot be
63639         performed.
63640         * modules/quotearg-simple: New file.
63641         * modules/quotearg-simple-tests: New file.
63642         * modules/quotearg (Depends-on): Add quotearg-simple.
63643         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
63644         (Files): Add tests/test-quotearg.h.
63645         Reported by Paolo Bonzini.
63647 2010-06-03  Bruno Haible  <bruno@clisp.org>
63649         Reduce dependencies.
63650         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
63652 2010-06-03  Bruno Haible  <bruno@clisp.org>
63654         time: Undefine more broken macros.
63655         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
63656         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
63657         Reported by Eric Blake.
63659 2010-06-03  Bruno Haible  <bruno@clisp.org>
63661         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
63662         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
63663         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
63664         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
63665         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
63666         Reported by Ludovic Courtès <ludo@gnu.org>.
63668 2010-06-02  Eric Blake  <eblake@redhat.com>
63670         time: work with mingw + pthreads-win32 library
63671         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
63672         if timespec is defined only in pthread.h.
63673         * modules/time (Makefile.am): Substitute it.
63674         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
63675         <pthread.h>, when needed.
63676         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
63677         from the library.
63679 2010-05-31  Bruno Haible  <bruno@clisp.org>
63681         Avoid expanding two macros in the wrong order.
63682         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
63683         gl_LIBUNISTRING if it is defined.
63684         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
63685         autoconf >= 2.64.
63686         Reported by Ludovic Courtès <ludo@gnu.org>.
63688 2010-05-27  Jim Meyering  <meyering@redhat.com>
63690         maint.mk: also prohibit "#undef" of always-defined symbols
63691         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
63692         Allow more than one space before the symbol name.
63693         (sc_prohibit_always-defined_macros): Use grep's -E, now that
63694         the regexp uses alternation.
63696 2010-05-26  Eric Blake  <eblake@redhat.com>
63698         maint.mk: avoid echo -e
63699         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
63700         Convert all uses of echo -* to printf.
63701         Reported by Matthias Bolte.
63703 2010-05-25  Bruno Haible  <bruno@clisp.org>
63705         Update to GNU gettext 0.18, part 2.
63706         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
63707         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
63709 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63711         Add missing include in test-pwrite.c.
63712         * tests/test-pwrite.c: Include string.h, for strcmp.
63714 2010-05-24  Bruno Haible  <bruno@clisp.org>
63716         * NEWS: Mention requirement for Automake option 'subdir-objects'.
63718 2010-05-24  Bruno Haible  <bruno@clisp.org>
63720         Don't use conversion with transliteration in u{8,16,32}_strcoll.
63721         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
63722         iconveh_error argument.
63723         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
63724         U_STRCONV_TO_LOCALE.
63725         * lib/unistr/u16-strcoll.c: Likewise.
63726         * lib/unistr/u32-strcoll.c: Likewise.
63727         * modules/unistr/u8-strcoll (Depends-on): Add
63728         uniconv/u8-strconv-to-enc, localcharset. Remove
63729         uniconv/u8-strconv-to-locale.
63730         (configure.ac): Bump version number.
63731         * modules/unistr/u16-strcoll (Depends-on): Add
63732         uniconv/u16-strconv-to-enc, localcharset. Remove
63733         uniconv/u16-strconv-to-locale.
63734         (configure.ac): Bump version number.
63735         * modules/unistr/u32-strcoll (Depends-on): Add
63736         uniconv/u32-strconv-to-enc, localcharset. Remove
63737         uniconv/u32-strconv-to-locale.
63738         (configure.ac): Bump version number.
63740 2010-05-24  Bruno Haible  <bruno@clisp.org>
63742         Avoid a test failure on NetBSD 5.0.
63743         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
63744         an iconv() bug.
63746 2010-05-24  Bruno Haible  <bruno@clisp.org>
63748         Adjust #include directive style.
63749         * modules/regex (Includes): Recommend to write <regex.h>.
63751 2010-05-24  Bruno Haible  <bruno@clisp.org>
63753         regex: Don't require alloca.
63754         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
63755         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
63756         only inside if (0).
63758 2010-05-23  Jim Meyering  <meyering@redhat.com>
63760         test-renameat.c: include <sys/stat.h>
63761         * tests/test-renameat.c: Include <sys/stat.h>; required for
63762         definition of S_IS* macros.
63764 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
63766         Update maintainer documentation for 'relocatable-prog' module.
63767         * doc/relocatable-maint.texi: Update.
63768         Comments by Bruno Haible.
63770 2010-05-23  Bruno Haible  <bruno@clisp.org>
63772         git-merge-changelog: Enable --split-merged-entry by default.
63773         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
63774         (usage): Don't mention this option any more.
63775         Reported by Ralf Wildenhues.
63777 2010-05-23  Jim Meyering  <meyering@redhat.com>
63779         test-pwrite: do not leave behind a test file named "out"
63780         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
63781         The trivial-looking use of init.sh is really necessary.
63782         It ensures that the temporary file, "out", is created in
63783         a temporary directory, and removed upon termination.
63784         * tests/test-pwrite.sh: Re-add file.
63785         * modules/pwrite-tests: Reference it.
63787 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63789         Fix output redirection buglet in init.sh.
63790         * tests/init.sh: Fix redirection of stderr.
63792 2010-05-20  Simon Josefsson  <simon@josefsson.org>
63794         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
63796 2010-05-17  Simon Josefsson  <simon@josefsson.org>
63798         * modules/valgrind-tests: New file.
63799         * m4/valgrind-tests.m4: New file.
63800         * doc/valgrind-tests.texi: New file.
63801         * doc/gnulib.texi (Running self-tests under valgrind): New
63802         section.
63804 2010-05-19  Bruno Haible  <bruno@clisp.org>
63806         Clean up dead code in recent commit.
63807         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
63808         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
63809         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
63810         Suggested by Paolo Bonzini.
63812 2010-05-19  Bruno Haible  <bruno@clisp.org>
63814         Avoid valgrind error reports from libunistring.
63815         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
63816         * modules/libunistring (Files): Add it.
63817         * modules/libunistring-optional (Files): Likewise.
63819 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
63820             Bruno Haible  <bruno@clisp.org>
63822         New module 'libunistring-optional'.
63823         * modules/libunistring-optional: New file.
63824         * m4/libunistring-base.m4: New file.
63825         * m4/libunistring-optional.m4: New file.
63826         * lib/unicase.in.h: Renamed from lib/unicase.h.
63827         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
63828         * lib/unictype.in.h: Renamed from lib/unictype.h.
63829         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
63830         * lib/uniname.in.h: Renamed from lib/uniname.h.
63831         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
63832         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
63833         * lib/unistr.in.h: Renamed from lib/unistr.h.
63834         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
63835         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
63836         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
63837         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
63838         gl_LIBUNISTRING. If the library was found, determine the installed
63839         version and set LIBUNISTRING_VERSION.
63840         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
63841         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
63842         handle a configuration option --with-included-libunistring.
63843         * modules/libunistring (Files): Add m4/absolute-header.m4.
63844         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
63845         Add m4/libunistring-base.m4.
63846         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63847         (Makefile.am): Build unicase.h from unicase.in.h.
63848         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
63849         Add m4/libunistring-base.m4.
63850         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63851         (Makefile.am): Build uniconv.h from uniconv.in.h.
63852         * modules/unictype/base (Files): Use unictype.in.h instead of
63853         unictype.h. Add m4/libunistring-base.m4.
63854         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63855         (Makefile.am): Build unictype.h from unictype.in.h.
63856         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
63857         Add m4/libunistring-base.m4.
63858         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63859         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
63860         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
63861         Add m4/libunistring-base.m4.
63862         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63863         (Makefile.am): Build uniname.h from uniname.in.h.
63864         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
63865         Add m4/libunistring-base.m4.
63866         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63867         (Makefile.am): Build uninorm.h from uninorm.in.h.
63868         * modules/unistdio/base (Files): Use unistdio.in.h instead of
63869         unistdio.h. Add m4/libunistring-base.m4.
63870         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63871         (Makefile.am): Build unistdio.h from unistdio.in.h.
63872         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
63873         Add m4/libunistring-base.m4.
63874         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63875         (Makefile.am): Build unistr.h from unistr.in.h.
63876         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
63877         Add m4/libunistring-base.m4.
63878         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63879         (Makefile.am): Build unitypes.h from unitypes.in.h.
63880         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
63881         Add m4/libunistring-base.m4.
63882         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63883         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
63884         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
63885         uniwidth.h. Add m4/libunistring-base.m4.
63886         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63887         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
63888         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
63889         instead of augmenting lib_SOURCES.
63890         * modules/unicase/empty-suffix-context: Likewise.
63891         * modules/unicase/locale-language: Likewise.
63892         * modules/unicase/tolower: Likewise.
63893         * modules/unicase/totitle: Likewise.
63894         * modules/unicase/toupper: Likewise.
63895         * modules/unicase/u8-casecmp: Likewise.
63896         * modules/unicase/u8-casecoll: Likewise.
63897         * modules/unicase/u8-casefold: Likewise.
63898         * modules/unicase/u8-casexfrm: Likewise.
63899         * modules/unicase/u8-ct-casefold: Likewise.
63900         * modules/unicase/u8-ct-tolower: Likewise.
63901         * modules/unicase/u8-ct-totitle: Likewise.
63902         * modules/unicase/u8-ct-toupper: Likewise.
63903         * modules/unicase/u8-is-cased: Likewise.
63904         * modules/unicase/u8-is-casefolded: Likewise.
63905         * modules/unicase/u8-is-lowercase: Likewise.
63906         * modules/unicase/u8-is-titlecase: Likewise.
63907         * modules/unicase/u8-is-uppercase: Likewise.
63908         * modules/unicase/u8-prefix-context: Likewise.
63909         * modules/unicase/u8-suffix-context: Likewise.
63910         * modules/unicase/u8-tolower: Likewise.
63911         * modules/unicase/u8-totitle: Likewise.
63912         * modules/unicase/u8-toupper: Likewise.
63913         * modules/unicase/u16-casecmp: Likewise.
63914         * modules/unicase/u16-casecoll: Likewise.
63915         * modules/unicase/u16-casefold: Likewise.
63916         * modules/unicase/u16-casexfrm: Likewise.
63917         * modules/unicase/u16-ct-casefold: Likewise.
63918         * modules/unicase/u16-ct-tolower: Likewise.
63919         * modules/unicase/u16-ct-totitle: Likewise.
63920         * modules/unicase/u16-ct-toupper: Likewise.
63921         * modules/unicase/u16-is-cased: Likewise.
63922         * modules/unicase/u16-is-casefolded: Likewise.
63923         * modules/unicase/u16-is-lowercase: Likewise.
63924         * modules/unicase/u16-is-titlecase: Likewise.
63925         * modules/unicase/u16-is-uppercase: Likewise.
63926         * modules/unicase/u16-prefix-context: Likewise.
63927         * modules/unicase/u16-suffix-context: Likewise.
63928         * modules/unicase/u16-tolower: Likewise.
63929         * modules/unicase/u16-totitle: Likewise.
63930         * modules/unicase/u16-toupper: Likewise.
63931         * modules/unicase/u32-casecmp: Likewise.
63932         * modules/unicase/u32-casecoll: Likewise.
63933         * modules/unicase/u32-casefold: Likewise.
63934         * modules/unicase/u32-casexfrm: Likewise.
63935         * modules/unicase/u32-ct-casefold: Likewise.
63936         * modules/unicase/u32-ct-tolower: Likewise.
63937         * modules/unicase/u32-ct-totitle: Likewise.
63938         * modules/unicase/u32-ct-toupper: Likewise.
63939         * modules/unicase/u32-is-cased: Likewise.
63940         * modules/unicase/u32-is-casefolded: Likewise.
63941         * modules/unicase/u32-is-lowercase: Likewise.
63942         * modules/unicase/u32-is-titlecase: Likewise.
63943         * modules/unicase/u32-is-uppercase: Likewise.
63944         * modules/unicase/u32-prefix-context: Likewise.
63945         * modules/unicase/u32-suffix-context: Likewise.
63946         * modules/unicase/u32-tolower: Likewise.
63947         * modules/unicase/u32-totitle: Likewise.
63948         * modules/unicase/u32-toupper: Likewise.
63949         * modules/unicase/ulc-casecmp: Likewise.
63950         * modules/unicase/ulc-casecoll: Likewise.
63951         * modules/unicase/ulc-casexfrm: Likewise.
63952         * modules/uniconv/u8-conv-from-enc: Likewise.
63953         * modules/uniconv/u8-conv-to-enc: Likewise.
63954         * modules/uniconv/u8-strconv-from-enc: Likewise.
63955         * modules/uniconv/u8-strconv-from-locale: Likewise.
63956         * modules/uniconv/u8-strconv-to-enc: Likewise.
63957         * modules/uniconv/u8-strconv-to-locale: Likewise.
63958         * modules/uniconv/u16-conv-from-enc: Likewise.
63959         * modules/uniconv/u16-conv-to-enc: Likewise.
63960         * modules/uniconv/u16-strconv-from-enc: Likewise.
63961         * modules/uniconv/u16-strconv-from-locale: Likewise.
63962         * modules/uniconv/u16-strconv-to-enc: Likewise.
63963         * modules/uniconv/u16-strconv-to-locale: Likewise.
63964         * modules/uniconv/u32-conv-from-enc: Likewise.
63965         * modules/uniconv/u32-conv-to-enc: Likewise.
63966         * modules/uniconv/u32-strconv-from-enc: Likewise.
63967         * modules/uniconv/u32-strconv-from-locale: Likewise.
63968         * modules/uniconv/u32-strconv-to-enc: Likewise.
63969         * modules/uniconv/u32-strconv-to-locale: Likewise.
63970         * modules/unictype/bidicategory-byname: Likewise.
63971         * modules/unictype/bidicategory-name: Likewise.
63972         * modules/unictype/bidicategory-of: Likewise.
63973         * modules/unictype/bidicategory-test: Likewise.
63974         * modules/unictype/block-list: Likewise.
63975         * modules/unictype/block-test: Likewise.
63976         * modules/unictype/category-C: Likewise.
63977         * modules/unictype/category-Cc: Likewise.
63978         * modules/unictype/category-Cf: Likewise.
63979         * modules/unictype/category-Cn: Likewise.
63980         * modules/unictype/category-Co: Likewise.
63981         * modules/unictype/category-Cs: Likewise.
63982         * modules/unictype/category-L: Likewise.
63983         * modules/unictype/category-Ll: Likewise.
63984         * modules/unictype/category-Lm: Likewise.
63985         * modules/unictype/category-Lo: Likewise.
63986         * modules/unictype/category-Lt: Likewise.
63987         * modules/unictype/category-Lu: Likewise.
63988         * modules/unictype/category-M: Likewise.
63989         * modules/unictype/category-Mc: Likewise.
63990         * modules/unictype/category-Me: Likewise.
63991         * modules/unictype/category-Mn: Likewise.
63992         * modules/unictype/category-N: Likewise.
63993         * modules/unictype/category-Nd: Likewise.
63994         * modules/unictype/category-Nl: Likewise.
63995         * modules/unictype/category-No: Likewise.
63996         * modules/unictype/category-P: Likewise.
63997         * modules/unictype/category-Pc: Likewise.
63998         * modules/unictype/category-Pd: Likewise.
63999         * modules/unictype/category-Pe: Likewise.
64000         * modules/unictype/category-Pf: Likewise.
64001         * modules/unictype/category-Pi: Likewise.
64002         * modules/unictype/category-Po: Likewise.
64003         * modules/unictype/category-Ps: Likewise.
64004         * modules/unictype/category-S: Likewise.
64005         * modules/unictype/category-Sc: Likewise.
64006         * modules/unictype/category-Sk: Likewise.
64007         * modules/unictype/category-Sm: Likewise.
64008         * modules/unictype/category-So: Likewise.
64009         * modules/unictype/category-Z: Likewise.
64010         * modules/unictype/category-Zl: Likewise.
64011         * modules/unictype/category-Zp: Likewise.
64012         * modules/unictype/category-Zs: Likewise.
64013         * modules/unictype/category-and: Likewise.
64014         * modules/unictype/category-and-not: Likewise.
64015         * modules/unictype/category-byname: Likewise.
64016         * modules/unictype/category-name: Likewise.
64017         * modules/unictype/category-none: Likewise.
64018         * modules/unictype/category-of: Likewise.
64019         * modules/unictype/category-or: Likewise.
64020         * modules/unictype/category-test: Likewise.
64021         * modules/unictype/combining-class: Likewise.
64022         * modules/unictype/ctype-alnum: Likewise.
64023         * modules/unictype/ctype-alpha: Likewise.
64024         * modules/unictype/ctype-blank: Likewise.
64025         * modules/unictype/ctype-cntrl: Likewise.
64026         * modules/unictype/ctype-digit: Likewise.
64027         * modules/unictype/ctype-graph: Likewise.
64028         * modules/unictype/ctype-lower: Likewise.
64029         * modules/unictype/ctype-print: Likewise.
64030         * modules/unictype/ctype-punct: Likewise.
64031         * modules/unictype/ctype-space: Likewise.
64032         * modules/unictype/ctype-upper: Likewise.
64033         * modules/unictype/ctype-xdigit: Likewise.
64034         * modules/unictype/decimal-digit: Likewise.
64035         * modules/unictype/digit: Likewise.
64036         * modules/unictype/mirror: Likewise.
64037         * modules/unictype/numeric: Likewise.
64038         * modules/unictype/property-alphabetic: Likewise.
64039         * modules/unictype/property-ascii-hex-digit: Likewise.
64040         * modules/unictype/property-bidi-arabic-digit: Likewise.
64041         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
64042         * modules/unictype/property-bidi-block-separator: Likewise.
64043         * modules/unictype/property-bidi-boundary-neutral: Likewise.
64044         * modules/unictype/property-bidi-common-separator: Likewise.
64045         * modules/unictype/property-bidi-control: Likewise.
64046         * modules/unictype/property-bidi-embedding-or-override: Likewise.
64047         * modules/unictype/property-bidi-eur-num-separator: Likewise.
64048         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
64049         * modules/unictype/property-bidi-european-digit: Likewise.
64050         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
64051         * modules/unictype/property-bidi-left-to-right: Likewise.
64052         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
64053         * modules/unictype/property-bidi-other-neutral: Likewise.
64054         * modules/unictype/property-bidi-pdf: Likewise.
64055         * modules/unictype/property-bidi-segment-separator: Likewise.
64056         * modules/unictype/property-bidi-whitespace: Likewise.
64057         * modules/unictype/property-byname: Likewise.
64058         * modules/unictype/property-combining: Likewise.
64059         * modules/unictype/property-composite: Likewise.
64060         * modules/unictype/property-currency-symbol: Likewise.
64061         * modules/unictype/property-dash: Likewise.
64062         * modules/unictype/property-decimal-digit: Likewise.
64063         * modules/unictype/property-default-ignorable-code-point: Likewise.
64064         * modules/unictype/property-deprecated: Likewise.
64065         * modules/unictype/property-diacritic: Likewise.
64066         * modules/unictype/property-extender: Likewise.
64067         * modules/unictype/property-format-control: Likewise.
64068         * modules/unictype/property-grapheme-base: Likewise.
64069         * modules/unictype/property-grapheme-extend: Likewise.
64070         * modules/unictype/property-grapheme-link: Likewise.
64071         * modules/unictype/property-hex-digit: Likewise.
64072         * modules/unictype/property-hyphen: Likewise.
64073         * modules/unictype/property-id-continue: Likewise.
64074         * modules/unictype/property-id-start: Likewise.
64075         * modules/unictype/property-ideographic: Likewise.
64076         * modules/unictype/property-ids-binary-operator: Likewise.
64077         * modules/unictype/property-ids-trinary-operator: Likewise.
64078         * modules/unictype/property-ignorable-control: Likewise.
64079         * modules/unictype/property-iso-control: Likewise.
64080         * modules/unictype/property-join-control: Likewise.
64081         * modules/unictype/property-left-of-pair: Likewise.
64082         * modules/unictype/property-line-separator: Likewise.
64083         * modules/unictype/property-logical-order-exception: Likewise.
64084         * modules/unictype/property-lowercase: Likewise.
64085         * modules/unictype/property-math: Likewise.
64086         * modules/unictype/property-non-break: Likewise.
64087         * modules/unictype/property-not-a-character: Likewise.
64088         * modules/unictype/property-numeric: Likewise.
64089         * modules/unictype/property-other-alphabetic: Likewise.
64090         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
64091         * modules/unictype/property-other-grapheme-extend: Likewise.
64092         * modules/unictype/property-other-id-continue: Likewise.
64093         * modules/unictype/property-other-id-start: Likewise.
64094         * modules/unictype/property-other-lowercase: Likewise.
64095         * modules/unictype/property-other-math: Likewise.
64096         * modules/unictype/property-other-uppercase: Likewise.
64097         * modules/unictype/property-paired-punctuation: Likewise.
64098         * modules/unictype/property-paragraph-separator: Likewise.
64099         * modules/unictype/property-pattern-syntax: Likewise.
64100         * modules/unictype/property-pattern-white-space: Likewise.
64101         * modules/unictype/property-private-use: Likewise.
64102         * modules/unictype/property-punctuation: Likewise.
64103         * modules/unictype/property-quotation-mark: Likewise.
64104         * modules/unictype/property-radical: Likewise.
64105         * modules/unictype/property-sentence-terminal: Likewise.
64106         * modules/unictype/property-soft-dotted: Likewise.
64107         * modules/unictype/property-space: Likewise.
64108         * modules/unictype/property-terminal-punctuation: Likewise.
64109         * modules/unictype/property-test: Likewise.
64110         * modules/unictype/property-titlecase: Likewise.
64111         * modules/unictype/property-unassigned-code-value: Likewise.
64112         * modules/unictype/property-unified-ideograph: Likewise.
64113         * modules/unictype/property-uppercase: Likewise.
64114         * modules/unictype/property-variation-selector: Likewise.
64115         * modules/unictype/property-white-space: Likewise.
64116         * modules/unictype/property-xid-continue: Likewise.
64117         * modules/unictype/property-xid-start: Likewise.
64118         * modules/unictype/property-zero-width: Likewise.
64119         * modules/unictype/scripts: Likewise.
64120         * modules/unictype/syntax-c-ident: Likewise.
64121         * modules/unictype/syntax-c-whitespace: Likewise.
64122         * modules/unictype/syntax-java-ident: Likewise.
64123         * modules/unictype/syntax-java-whitespace: Likewise.
64124         * modules/unilbrk/u8-possible-linebreaks: Likewise.
64125         * modules/unilbrk/u8-width-linebreaks: Likewise.
64126         * modules/unilbrk/u16-possible-linebreaks: Likewise.
64127         * modules/unilbrk/u16-width-linebreaks: Likewise.
64128         * modules/unilbrk/u32-possible-linebreaks: Likewise.
64129         * modules/unilbrk/u32-width-linebreaks: Likewise.
64130         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
64131         * modules/unilbrk/ulc-width-linebreaks: Likewise.
64132         * modules/uniname/uniname: Likewise.
64133         * modules/uninorm/canonical-decomposition: Likewise.
64134         * modules/uninorm/composition: Likewise.
64135         * modules/uninorm/decomposing-form: Likewise.
64136         * modules/uninorm/decomposition: Likewise.
64137         * modules/uninorm/filter: Likewise.
64138         * modules/uninorm/nfc: Likewise.
64139         * modules/uninorm/nfd: Likewise.
64140         * modules/uninorm/nfkc: Likewise.
64141         * modules/uninorm/nfkd: Likewise.
64142         * modules/uninorm/u8-normalize: Likewise.
64143         * modules/uninorm/u8-normcmp: Likewise.
64144         * modules/uninorm/u8-normcoll: Likewise.
64145         * modules/uninorm/u8-normxfrm: Likewise.
64146         * modules/uninorm/u16-normalize: Likewise.
64147         * modules/uninorm/u16-normcmp: Likewise.
64148         * modules/uninorm/u16-normcoll: Likewise.
64149         * modules/uninorm/u16-normxfrm: Likewise.
64150         * modules/uninorm/u32-normalize: Likewise.
64151         * modules/uninorm/u32-normcmp: Likewise.
64152         * modules/uninorm/u32-normcoll: Likewise.
64153         * modules/uninorm/u32-normxfrm: Likewise.
64154         * modules/unistdio/u8-asnprintf: Likewise.
64155         * modules/unistdio/u8-asprintf: Likewise.
64156         * modules/unistdio/u8-snprintf: Likewise.
64157         * modules/unistdio/u8-sprintf: Likewise.
64158         * modules/unistdio/u8-u8-asnprintf: Likewise.
64159         * modules/unistdio/u8-u8-asprintf: Likewise.
64160         * modules/unistdio/u8-u8-snprintf: Likewise.
64161         * modules/unistdio/u8-u8-sprintf: Likewise.
64162         * modules/unistdio/u8-u8-vasnprintf: Likewise.
64163         * modules/unistdio/u8-u8-vasprintf: Likewise.
64164         * modules/unistdio/u8-u8-vsnprintf: Likewise.
64165         * modules/unistdio/u8-u8-vsprintf: Likewise.
64166         * modules/unistdio/u8-vasnprintf: Likewise.
64167         * modules/unistdio/u8-vasprintf: Likewise.
64168         * modules/unistdio/u8-vsnprintf: Likewise.
64169         * modules/unistdio/u8-vsprintf: Likewise.
64170         * modules/unistdio/u16-asnprintf: Likewise.
64171         * modules/unistdio/u16-asprintf: Likewise.
64172         * modules/unistdio/u16-snprintf: Likewise.
64173         * modules/unistdio/u16-sprintf: Likewise.
64174         * modules/unistdio/u16-u16-asnprintf: Likewise.
64175         * modules/unistdio/u16-u16-asprintf: Likewise.
64176         * modules/unistdio/u16-u16-snprintf: Likewise.
64177         * modules/unistdio/u16-u16-sprintf: Likewise.
64178         * modules/unistdio/u16-u16-vasnprintf: Likewise.
64179         * modules/unistdio/u16-u16-vasprintf: Likewise.
64180         * modules/unistdio/u16-u16-vsnprintf: Likewise.
64181         * modules/unistdio/u16-u16-vsprintf: Likewise.
64182         * modules/unistdio/u16-vasnprintf: Likewise.
64183         * modules/unistdio/u16-vasprintf: Likewise.
64184         * modules/unistdio/u16-vsnprintf: Likewise.
64185         * modules/unistdio/u16-vsprintf: Likewise.
64186         * modules/unistdio/u32-asnprintf: Likewise.
64187         * modules/unistdio/u32-asprintf: Likewise.
64188         * modules/unistdio/u32-snprintf: Likewise.
64189         * modules/unistdio/u32-sprintf: Likewise.
64190         * modules/unistdio/u32-u32-asnprintf: Likewise.
64191         * modules/unistdio/u32-u32-asprintf: Likewise.
64192         * modules/unistdio/u32-u32-snprintf: Likewise.
64193         * modules/unistdio/u32-u32-sprintf: Likewise.
64194         * modules/unistdio/u32-u32-vasnprintf: Likewise.
64195         * modules/unistdio/u32-u32-vasprintf: Likewise.
64196         * modules/unistdio/u32-u32-vsnprintf: Likewise.
64197         * modules/unistdio/u32-u32-vsprintf: Likewise.
64198         * modules/unistdio/u32-vasnprintf: Likewise.
64199         * modules/unistdio/u32-vasprintf: Likewise.
64200         * modules/unistdio/u32-vsnprintf: Likewise.
64201         * modules/unistdio/u32-vsprintf: Likewise.
64202         * modules/unistdio/ulc-asnprintf: Likewise.
64203         * modules/unistdio/ulc-asprintf: Likewise.
64204         * modules/unistdio/ulc-fprintf: Likewise.
64205         * modules/unistdio/ulc-snprintf: Likewise.
64206         * modules/unistdio/ulc-sprintf: Likewise.
64207         * modules/unistdio/ulc-vasnprintf: Likewise.
64208         * modules/unistdio/ulc-vasprintf: Likewise.
64209         * modules/unistdio/ulc-vfprintf: Likewise.
64210         * modules/unistdio/ulc-vsnprintf: Likewise.
64211         * modules/unistdio/ulc-vsprintf: Likewise.
64212         * modules/unistr/u8-check: Likewise.
64213         * modules/unistr/u8-chr: Likewise.
64214         * modules/unistr/u8-cmp: Likewise.
64215         * modules/unistr/u8-cmp2: Likewise.
64216         * modules/unistr/u8-cpy: Likewise.
64217         * modules/unistr/u8-cpy-alloc: Likewise.
64218         * modules/unistr/u8-endswith: Likewise.
64219         * modules/unistr/u8-mblen: Likewise.
64220         * modules/unistr/u8-mbsnlen: Likewise.
64221         * modules/unistr/u8-mbtouc: Likewise.
64222         * modules/unistr/u8-mbtouc-unsafe: Likewise.
64223         * modules/unistr/u8-mbtoucr: Likewise.
64224         * modules/unistr/u8-move: Likewise.
64225         * modules/unistr/u8-next: Likewise.
64226         * modules/unistr/u8-prev: Likewise.
64227         * modules/unistr/u8-set: Likewise.
64228         * modules/unistr/u8-startswith: Likewise.
64229         * modules/unistr/u8-stpcpy: Likewise.
64230         * modules/unistr/u8-stpncpy: Likewise.
64231         * modules/unistr/u8-strcat: Likewise.
64232         * modules/unistr/u8-strchr: Likewise.
64233         * modules/unistr/u8-strcmp: Likewise.
64234         * modules/unistr/u8-strcoll: Likewise.
64235         * modules/unistr/u8-strcpy: Likewise.
64236         * modules/unistr/u8-strcspn: Likewise.
64237         * modules/unistr/u8-strdup: Likewise.
64238         * modules/unistr/u8-strlen: Likewise.
64239         * modules/unistr/u8-strmblen: Likewise.
64240         * modules/unistr/u8-strmbtouc: Likewise.
64241         * modules/unistr/u8-strncat: Likewise.
64242         * modules/unistr/u8-strncmp: Likewise.
64243         * modules/unistr/u8-strncpy: Likewise.
64244         * modules/unistr/u8-strnlen: Likewise.
64245         * modules/unistr/u8-strpbrk: Likewise.
64246         * modules/unistr/u8-strrchr: Likewise.
64247         * modules/unistr/u8-strspn: Likewise.
64248         * modules/unistr/u8-strstr: Likewise.
64249         * modules/unistr/u8-strtok: Likewise.
64250         * modules/unistr/u8-to-u16: Likewise.
64251         * modules/unistr/u8-to-u32: Likewise.
64252         * modules/unistr/u8-uctomb: Likewise.
64253         * modules/unistr/u16-check: Likewise.
64254         * modules/unistr/u16-chr: Likewise.
64255         * modules/unistr/u16-cmp: Likewise.
64256         * modules/unistr/u16-cmp2: Likewise.
64257         * modules/unistr/u16-cpy: Likewise.
64258         * modules/unistr/u16-cpy-alloc: Likewise.
64259         * modules/unistr/u16-endswith: Likewise.
64260         * modules/unistr/u16-mblen: Likewise.
64261         * modules/unistr/u16-mbsnlen: Likewise.
64262         * modules/unistr/u16-mbtouc: Likewise.
64263         * modules/unistr/u16-mbtouc-unsafe: Likewise.
64264         * modules/unistr/u16-mbtoucr: Likewise.
64265         * modules/unistr/u16-move: Likewise.
64266         * modules/unistr/u16-next: Likewise.
64267         * modules/unistr/u16-prev: Likewise.
64268         * modules/unistr/u16-set: Likewise.
64269         * modules/unistr/u16-startswith: Likewise.
64270         * modules/unistr/u16-stpcpy: Likewise.
64271         * modules/unistr/u16-stpncpy: Likewise.
64272         * modules/unistr/u16-strcat: Likewise.
64273         * modules/unistr/u16-strchr: Likewise.
64274         * modules/unistr/u16-strcmp: Likewise.
64275         * modules/unistr/u16-strcoll: Likewise.
64276         * modules/unistr/u16-strcpy: Likewise.
64277         * modules/unistr/u16-strcspn: Likewise.
64278         * modules/unistr/u16-strdup: Likewise.
64279         * modules/unistr/u16-strlen: Likewise.
64280         * modules/unistr/u16-strmblen: Likewise.
64281         * modules/unistr/u16-strmbtouc: Likewise.
64282         * modules/unistr/u16-strncat: Likewise.
64283         * modules/unistr/u16-strncmp: Likewise.
64284         * modules/unistr/u16-strncpy: Likewise.
64285         * modules/unistr/u16-strnlen: Likewise.
64286         * modules/unistr/u16-strpbrk: Likewise.
64287         * modules/unistr/u16-strrchr: Likewise.
64288         * modules/unistr/u16-strspn: Likewise.
64289         * modules/unistr/u16-strstr: Likewise.
64290         * modules/unistr/u16-strtok: Likewise.
64291         * modules/unistr/u16-to-u32: Likewise.
64292         * modules/unistr/u16-to-u8: Likewise.
64293         * modules/unistr/u16-uctomb: Likewise.
64294         * modules/unistr/u32-check: Likewise.
64295         * modules/unistr/u32-chr: Likewise.
64296         * modules/unistr/u32-cmp: Likewise.
64297         * modules/unistr/u32-cmp2: Likewise.
64298         * modules/unistr/u32-cpy: Likewise.
64299         * modules/unistr/u32-cpy-alloc: Likewise.
64300         * modules/unistr/u32-endswith: Likewise.
64301         * modules/unistr/u32-mblen: Likewise.
64302         * modules/unistr/u32-mbsnlen: Likewise.
64303         * modules/unistr/u32-mbtouc: Likewise.
64304         * modules/unistr/u32-mbtouc-unsafe: Likewise.
64305         * modules/unistr/u32-mbtoucr: Likewise.
64306         * modules/unistr/u32-move: Likewise.
64307         * modules/unistr/u32-next: Likewise.
64308         * modules/unistr/u32-prev: Likewise.
64309         * modules/unistr/u32-set: Likewise.
64310         * modules/unistr/u32-startswith: Likewise.
64311         * modules/unistr/u32-stpcpy: Likewise.
64312         * modules/unistr/u32-stpncpy: Likewise.
64313         * modules/unistr/u32-strcat: Likewise.
64314         * modules/unistr/u32-strchr: Likewise.
64315         * modules/unistr/u32-strcmp: Likewise.
64316         * modules/unistr/u32-strcoll: Likewise.
64317         * modules/unistr/u32-strcpy: Likewise.
64318         * modules/unistr/u32-strcspn: Likewise.
64319         * modules/unistr/u32-strdup: Likewise.
64320         * modules/unistr/u32-strlen: Likewise.
64321         * modules/unistr/u32-strmblen: Likewise.
64322         * modules/unistr/u32-strmbtouc: Likewise.
64323         * modules/unistr/u32-strncat: Likewise.
64324         * modules/unistr/u32-strncmp: Likewise.
64325         * modules/unistr/u32-strncpy: Likewise.
64326         * modules/unistr/u32-strnlen: Likewise.
64327         * modules/unistr/u32-strpbrk: Likewise.
64328         * modules/unistr/u32-strrchr: Likewise.
64329         * modules/unistr/u32-strspn: Likewise.
64330         * modules/unistr/u32-strstr: Likewise.
64331         * modules/unistr/u32-strtok: Likewise.
64332         * modules/unistr/u32-to-u16: Likewise.
64333         * modules/unistr/u32-to-u8: Likewise.
64334         * modules/unistr/u32-uctomb: Likewise.
64335         * modules/uniwbrk/u8-wordbreaks: Likewise.
64336         * modules/uniwbrk/u16-wordbreaks: Likewise.
64337         * modules/uniwbrk/u32-wordbreaks: Likewise.
64338         * modules/uniwbrk/ulc-wordbreaks: Likewise.
64339         * modules/uniwbrk/wordbreak-property: Likewise.
64340         * modules/uniwidth/u8-strwidth: Likewise.
64341         * modules/uniwidth/u8-width: Likewise.
64342         * modules/uniwidth/u16-strwidth: Likewise.
64343         * modules/uniwidth/u16-width: Likewise.
64344         * modules/uniwidth/u32-strwidth: Likewise.
64345         * modules/uniwidth/u32-width: Likewise.
64346         * modules/uniwidth/width: Likewise.
64347         * modules/unicase/cased-tests (Makefile.am): Link all test programs
64348         with $(LIBUNISTRING).
64349         * modules/unicase/ignorable-tests: Likewise.
64350         * modules/unicase/locale-language-tests: Likewise.
64351         * modules/unicase/tolower-tests: Likewise.
64352         * modules/unicase/totitle-tests: Likewise.
64353         * modules/unicase/toupper-tests: Likewise.
64354         * modules/unicase/u8-casecmp-tests: Likewise.
64355         * modules/unicase/u8-casecoll-tests: Likewise.
64356         * modules/unicase/u8-casefold-tests: Likewise.
64357         * modules/unicase/u8-is-cased-tests: Likewise.
64358         * modules/unicase/u8-is-casefolded-tests: Likewise.
64359         * modules/unicase/u8-is-lowercase-tests: Likewise.
64360         * modules/unicase/u8-is-titlecase-tests: Likewise.
64361         * modules/unicase/u8-is-uppercase-tests: Likewise.
64362         * modules/unicase/u8-tolower-tests: Likewise.
64363         * modules/unicase/u8-totitle-tests: Likewise.
64364         * modules/unicase/u8-toupper-tests: Likewise.
64365         * modules/unicase/u16-casecmp-tests: Likewise.
64366         * modules/unicase/u16-casecoll-tests: Likewise.
64367         * modules/unicase/u16-casefold-tests: Likewise.
64368         * modules/unicase/u16-is-cased-tests: Likewise.
64369         * modules/unicase/u16-is-casefolded-tests: Likewise.
64370         * modules/unicase/u16-is-lowercase-tests: Likewise.
64371         * modules/unicase/u16-is-titlecase-tests: Likewise.
64372         * modules/unicase/u16-is-uppercase-tests: Likewise.
64373         * modules/unicase/u16-tolower-tests: Likewise.
64374         * modules/unicase/u16-totitle-tests: Likewise.
64375         * modules/unicase/u16-toupper-tests: Likewise.
64376         * modules/unicase/u32-casecmp-tests: Likewise.
64377         * modules/unicase/u32-casecoll-tests: Likewise.
64378         * modules/unicase/u32-casefold-tests: Likewise.
64379         * modules/unicase/u32-is-cased-tests: Likewise.
64380         * modules/unicase/u32-is-casefolded-tests: Likewise.
64381         * modules/unicase/u32-is-lowercase-tests: Likewise.
64382         * modules/unicase/u32-is-titlecase-tests: Likewise.
64383         * modules/unicase/u32-is-uppercase-tests: Likewise.
64384         * modules/unicase/u32-tolower-tests: Likewise.
64385         * modules/unicase/u32-totitle-tests: Likewise.
64386         * modules/unicase/u32-toupper-tests: Likewise.
64387         * modules/unicase/ulc-casecmp-tests: Likewise.
64388         * modules/unicase/ulc-casecoll-tests: Likewise.
64389         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
64390         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
64391         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
64392         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
64393         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
64394         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
64395         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
64396         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
64397         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
64398         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
64399         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
64400         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
64401         * modules/unictype/bidicategory-byname-tests: Likewise.
64402         * modules/unictype/bidicategory-name-tests: Likewise.
64403         * modules/unictype/bidicategory-of-tests: Likewise.
64404         * modules/unictype/bidicategory-test-tests: Likewise.
64405         * modules/unictype/block-list-tests: Likewise.
64406         * modules/unictype/block-of-tests: Likewise.
64407         * modules/unictype/block-test-tests: Likewise.
64408         * modules/unictype/category-C-tests: Likewise.
64409         * modules/unictype/category-Cc-tests: Likewise.
64410         * modules/unictype/category-Cf-tests: Likewise.
64411         * modules/unictype/category-Cn-tests: Likewise.
64412         * modules/unictype/category-Co-tests: Likewise.
64413         * modules/unictype/category-Cs-tests: Likewise.
64414         * modules/unictype/category-L-tests: Likewise.
64415         * modules/unictype/category-Ll-tests: Likewise.
64416         * modules/unictype/category-Lm-tests: Likewise.
64417         * modules/unictype/category-Lo-tests: Likewise.
64418         * modules/unictype/category-Lt-tests: Likewise.
64419         * modules/unictype/category-Lu-tests: Likewise.
64420         * modules/unictype/category-M-tests: Likewise.
64421         * modules/unictype/category-Mc-tests: Likewise.
64422         * modules/unictype/category-Me-tests: Likewise.
64423         * modules/unictype/category-Mn-tests: Likewise.
64424         * modules/unictype/category-N-tests: Likewise.
64425         * modules/unictype/category-Nd-tests: Likewise.
64426         * modules/unictype/category-Nl-tests: Likewise.
64427         * modules/unictype/category-No-tests: Likewise.
64428         * modules/unictype/category-P-tests: Likewise.
64429         * modules/unictype/category-Pc-tests: Likewise.
64430         * modules/unictype/category-Pd-tests: Likewise.
64431         * modules/unictype/category-Pe-tests: Likewise.
64432         * modules/unictype/category-Pf-tests: Likewise.
64433         * modules/unictype/category-Pi-tests: Likewise.
64434         * modules/unictype/category-Po-tests: Likewise.
64435         * modules/unictype/category-Ps-tests: Likewise.
64436         * modules/unictype/category-S-tests: Likewise.
64437         * modules/unictype/category-Sc-tests: Likewise.
64438         * modules/unictype/category-Sk-tests: Likewise.
64439         * modules/unictype/category-Sm-tests: Likewise.
64440         * modules/unictype/category-So-tests: Likewise.
64441         * modules/unictype/category-Z-tests: Likewise.
64442         * modules/unictype/category-Zl-tests: Likewise.
64443         * modules/unictype/category-Zp-tests: Likewise.
64444         * modules/unictype/category-Zs-tests: Likewise.
64445         * modules/unictype/category-and-not-tests: Likewise.
64446         * modules/unictype/category-and-tests: Likewise.
64447         * modules/unictype/category-byname-tests: Likewise.
64448         * modules/unictype/category-name-tests: Likewise.
64449         * modules/unictype/category-none-tests: Likewise.
64450         * modules/unictype/category-of-tests: Likewise.
64451         * modules/unictype/category-or-tests: Likewise.
64452         * modules/unictype/category-test-withtable-tests: Likewise.
64453         * modules/unictype/combining-class-tests: Likewise.
64454         * modules/unictype/ctype-alnum-tests: Likewise.
64455         * modules/unictype/ctype-alpha-tests: Likewise.
64456         * modules/unictype/ctype-blank-tests: Likewise.
64457         * modules/unictype/ctype-cntrl-tests: Likewise.
64458         * modules/unictype/ctype-digit-tests: Likewise.
64459         * modules/unictype/ctype-graph-tests: Likewise.
64460         * modules/unictype/ctype-lower-tests: Likewise.
64461         * modules/unictype/ctype-print-tests: Likewise.
64462         * modules/unictype/ctype-punct-tests: Likewise.
64463         * modules/unictype/ctype-space-tests: Likewise.
64464         * modules/unictype/ctype-upper-tests: Likewise.
64465         * modules/unictype/ctype-xdigit-tests: Likewise.
64466         * modules/unictype/decimal-digit-tests: Likewise.
64467         * modules/unictype/digit-tests: Likewise.
64468         * modules/unictype/mirror-tests: Likewise.
64469         * modules/unictype/numeric-tests: Likewise.
64470         * modules/unictype/property-alphabetic-tests: Likewise.
64471         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
64472         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
64473         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
64474         * modules/unictype/property-bidi-block-separator-tests: Likewise.
64475         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
64476         * modules/unictype/property-bidi-common-separator-tests: Likewise.
64477         * modules/unictype/property-bidi-control-tests: Likewise.
64478         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
64479         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
64480         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
64481         * modules/unictype/property-bidi-european-digit-tests: Likewise.
64482         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
64483         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
64484         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
64485         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
64486         * modules/unictype/property-bidi-pdf-tests: Likewise.
64487         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
64488         * modules/unictype/property-bidi-whitespace-tests: Likewise.
64489         * modules/unictype/property-byname-tests: Likewise.
64490         * modules/unictype/property-combining-tests: Likewise.
64491         * modules/unictype/property-composite-tests: Likewise.
64492         * modules/unictype/property-currency-symbol-tests: Likewise.
64493         * modules/unictype/property-dash-tests: Likewise.
64494         * modules/unictype/property-decimal-digit-tests: Likewise.
64495         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
64496         * modules/unictype/property-deprecated-tests: Likewise.
64497         * modules/unictype/property-diacritic-tests: Likewise.
64498         * modules/unictype/property-extender-tests: Likewise.
64499         * modules/unictype/property-format-control-tests: Likewise.
64500         * modules/unictype/property-grapheme-base-tests: Likewise.
64501         * modules/unictype/property-grapheme-extend-tests: Likewise.
64502         * modules/unictype/property-grapheme-link-tests: Likewise.
64503         * modules/unictype/property-hex-digit-tests: Likewise.
64504         * modules/unictype/property-hyphen-tests: Likewise.
64505         * modules/unictype/property-id-continue-tests: Likewise.
64506         * modules/unictype/property-id-start-tests: Likewise.
64507         * modules/unictype/property-ideographic-tests: Likewise.
64508         * modules/unictype/property-ids-binary-operator-tests: Likewise.
64509         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
64510         * modules/unictype/property-ignorable-control-tests: Likewise.
64511         * modules/unictype/property-iso-control-tests: Likewise.
64512         * modules/unictype/property-join-control-tests: Likewise.
64513         * modules/unictype/property-left-of-pair-tests: Likewise.
64514         * modules/unictype/property-line-separator-tests: Likewise.
64515         * modules/unictype/property-logical-order-exception-tests: Likewise.
64516         * modules/unictype/property-lowercase-tests: Likewise.
64517         * modules/unictype/property-math-tests: Likewise.
64518         * modules/unictype/property-non-break-tests: Likewise.
64519         * modules/unictype/property-not-a-character-tests: Likewise.
64520         * modules/unictype/property-numeric-tests: Likewise.
64521         * modules/unictype/property-other-alphabetic-tests: Likewise.
64522         * modules/unictype/property-other-default-ignorable-code-point-tests:
64523         Likewise.
64524         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
64525         * modules/unictype/property-other-id-continue-tests: Likewise.
64526         * modules/unictype/property-other-id-start-tests: Likewise.
64527         * modules/unictype/property-other-lowercase-tests: Likewise.
64528         * modules/unictype/property-other-math-tests: Likewise.
64529         * modules/unictype/property-other-uppercase-tests: Likewise.
64530         * modules/unictype/property-paired-punctuation-tests: Likewise.
64531         * modules/unictype/property-paragraph-separator-tests: Likewise.
64532         * modules/unictype/property-pattern-syntax-tests: Likewise.
64533         * modules/unictype/property-pattern-white-space-tests: Likewise.
64534         * modules/unictype/property-private-use-tests: Likewise.
64535         * modules/unictype/property-punctuation-tests: Likewise.
64536         * modules/unictype/property-quotation-mark-tests: Likewise.
64537         * modules/unictype/property-radical-tests: Likewise.
64538         * modules/unictype/property-sentence-terminal-tests: Likewise.
64539         * modules/unictype/property-soft-dotted-tests: Likewise.
64540         * modules/unictype/property-space-tests: Likewise.
64541         * modules/unictype/property-terminal-punctuation-tests: Likewise.
64542         * modules/unictype/property-test-tests: Likewise.
64543         * modules/unictype/property-titlecase-tests: Likewise.
64544         * modules/unictype/property-unassigned-code-value-tests: Likewise.
64545         * modules/unictype/property-unified-ideograph-tests: Likewise.
64546         * modules/unictype/property-uppercase-tests: Likewise.
64547         * modules/unictype/property-variation-selector-tests: Likewise.
64548         * modules/unictype/property-white-space-tests: Likewise.
64549         * modules/unictype/property-xid-continue-tests: Likewise.
64550         * modules/unictype/property-xid-start-tests: Likewise.
64551         * modules/unictype/property-zero-width-tests: Likewise.
64552         * modules/unictype/scripts-tests: Likewise.
64553         * modules/unictype/syntax-c-ident-tests: Likewise.
64554         * modules/unictype/syntax-c-whitespace-tests: Likewise.
64555         * modules/unictype/syntax-java-ident-tests: Likewise.
64556         * modules/unictype/syntax-java-whitespace-tests: Likewise.
64557         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
64558         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
64559         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
64560         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
64561         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
64562         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
64563         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
64564         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
64565         * modules/uniname/uniname-tests: Likewise.
64566         * modules/uninorm/canonical-decomposition-tests: Likewise.
64567         * modules/uninorm/compat-decomposition-tests: Likewise.
64568         * modules/uninorm/composition-tests: Likewise.
64569         * modules/uninorm/decomposing-form-tests: Likewise.
64570         * modules/uninorm/decomposition-tests: Likewise.
64571         * modules/uninorm/filter-tests: Likewise.
64572         * modules/uninorm/nfc-tests: Likewise.
64573         * modules/uninorm/nfd-tests: Likewise.
64574         * modules/uninorm/nfkc-tests: Likewise.
64575         * modules/uninorm/nfkd-tests: Likewise.
64576         * modules/uninorm/u8-normcmp-tests: Likewise.
64577         * modules/uninorm/u8-normcoll-tests: Likewise.
64578         * modules/uninorm/u16-normcmp-tests: Likewise.
64579         * modules/uninorm/u16-normcoll-tests: Likewise.
64580         * modules/uninorm/u32-normcmp-tests: Likewise.
64581         * modules/uninorm/u32-normcoll-tests: Likewise.
64582         * modules/unistdio/u8-asnprintf-tests: Likewise.
64583         * modules/unistdio/u8-vasnprintf-tests: Likewise.
64584         * modules/unistdio/u8-vasprintf-tests: Likewise.
64585         * modules/unistdio/u8-vsnprintf-tests: Likewise.
64586         * modules/unistdio/u8-vsprintf-tests: Likewise.
64587         * modules/unistdio/u16-asnprintf-tests: Likewise.
64588         * modules/unistdio/u16-vasnprintf-tests: Likewise.
64589         * modules/unistdio/u16-vasprintf-tests: Likewise.
64590         * modules/unistdio/u16-vsnprintf-tests: Likewise.
64591         * modules/unistdio/u16-vsprintf-tests: Likewise.
64592         * modules/unistdio/u32-asnprintf-tests: Likewise.
64593         * modules/unistdio/u32-vasnprintf-tests: Likewise.
64594         * modules/unistdio/u32-vasprintf-tests: Likewise.
64595         * modules/unistdio/u32-vsnprintf-tests: Likewise.
64596         * modules/unistdio/u32-vsprintf-tests: Likewise.
64597         * modules/unistdio/ulc-asnprintf-tests: Likewise.
64598         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
64599         * modules/unistdio/ulc-vasprintf-tests: Likewise.
64600         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
64601         * modules/unistdio/ulc-vsprintf-tests: Likewise.
64602         * modules/unistr/u8-check-tests: Likewise.
64603         * modules/unistr/u8-chr-tests: Likewise.
64604         * modules/unistr/u8-cmp-tests: Likewise.
64605         * modules/unistr/u8-cmp2-tests: Likewise.
64606         * modules/unistr/u8-cpy-alloc-tests: Likewise.
64607         * modules/unistr/u8-cpy-tests: Likewise.
64608         * modules/unistr/u8-mblen-tests: Likewise.
64609         * modules/unistr/u8-mbsnlen-tests: Likewise.
64610         * modules/unistr/u8-mbtouc-tests: Likewise.
64611         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
64612         * modules/unistr/u8-mbtoucr-tests: Likewise.
64613         * modules/unistr/u8-move-tests: Likewise.
64614         * modules/unistr/u8-next-tests: Likewise.
64615         * modules/unistr/u8-prev-tests: Likewise.
64616         * modules/unistr/u8-set-tests: Likewise.
64617         * modules/unistr/u8-stpcpy-tests: Likewise.
64618         * modules/unistr/u8-stpncpy-tests: Likewise.
64619         * modules/unistr/u8-strcat-tests: Likewise.
64620         * modules/unistr/u8-strcmp-tests: Likewise.
64621         * modules/unistr/u8-strcoll-tests: Likewise.
64622         * modules/unistr/u8-strcpy-tests: Likewise.
64623         * modules/unistr/u8-strdup-tests: Likewise.
64624         * modules/unistr/u8-strlen-tests: Likewise.
64625         * modules/unistr/u8-strmblen-tests: Likewise.
64626         * modules/unistr/u8-strmbtouc-tests: Likewise.
64627         * modules/unistr/u8-strncat-tests: Likewise.
64628         * modules/unistr/u8-strncmp-tests: Likewise.
64629         * modules/unistr/u8-strncpy-tests: Likewise.
64630         * modules/unistr/u8-strnlen-tests: Likewise.
64631         * modules/unistr/u8-to-u16-tests: Likewise.
64632         * modules/unistr/u8-to-u32-tests: Likewise.
64633         * modules/unistr/u8-uctomb-tests: Likewise.
64634         * modules/unistr/u16-check-tests: Likewise.
64635         * modules/unistr/u16-chr-tests: Likewise.
64636         * modules/unistr/u16-cmp-tests: Likewise.
64637         * modules/unistr/u16-cmp2-tests: Likewise.
64638         * modules/unistr/u16-cpy-alloc-tests: Likewise.
64639         * modules/unistr/u16-cpy-tests: Likewise.
64640         * modules/unistr/u16-mblen-tests: Likewise.
64641         * modules/unistr/u16-mbsnlen-tests: Likewise.
64642         * modules/unistr/u16-mbtouc-tests: Likewise.
64643         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
64644         * modules/unistr/u16-mbtoucr-tests: Likewise.
64645         * modules/unistr/u16-move-tests: Likewise.
64646         * modules/unistr/u16-next-tests: Likewise.
64647         * modules/unistr/u16-prev-tests: Likewise.
64648         * modules/unistr/u16-set-tests: Likewise.
64649         * modules/unistr/u16-stpcpy-tests: Likewise.
64650         * modules/unistr/u16-stpncpy-tests: Likewise.
64651         * modules/unistr/u16-strcat-tests: Likewise.
64652         * modules/unistr/u16-strcmp-tests: Likewise.
64653         * modules/unistr/u16-strcoll-tests: Likewise.
64654         * modules/unistr/u16-strcpy-tests: Likewise.
64655         * modules/unistr/u16-strdup-tests: Likewise.
64656         * modules/unistr/u16-strlen-tests: Likewise.
64657         * modules/unistr/u16-strmblen-tests: Likewise.
64658         * modules/unistr/u16-strmbtouc-tests: Likewise.
64659         * modules/unistr/u16-strncat-tests: Likewise.
64660         * modules/unistr/u16-strncmp-tests: Likewise.
64661         * modules/unistr/u16-strncpy-tests: Likewise.
64662         * modules/unistr/u16-strnlen-tests: Likewise.
64663         * modules/unistr/u16-to-u32-tests: Likewise.
64664         * modules/unistr/u16-to-u8-tests: Likewise.
64665         * modules/unistr/u16-uctomb-tests: Likewise.
64666         * modules/unistr/u32-check-tests: Likewise.
64667         * modules/unistr/u32-chr-tests: Likewise.
64668         * modules/unistr/u32-cmp-tests: Likewise.
64669         * modules/unistr/u32-cmp2-tests: Likewise.
64670         * modules/unistr/u32-cpy-alloc-tests: Likewise.
64671         * modules/unistr/u32-cpy-tests: Likewise.
64672         * modules/unistr/u32-mblen-tests: Likewise.
64673         * modules/unistr/u32-mbsnlen-tests: Likewise.
64674         * modules/unistr/u32-mbtouc-tests: Likewise.
64675         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
64676         * modules/unistr/u32-mbtoucr-tests: Likewise.
64677         * modules/unistr/u32-move-tests: Likewise.
64678         * modules/unistr/u32-next-tests: Likewise.
64679         * modules/unistr/u32-prev-tests: Likewise.
64680         * modules/unistr/u32-set-tests: Likewise.
64681         * modules/unistr/u32-stpcpy-tests: Likewise.
64682         * modules/unistr/u32-stpncpy-tests: Likewise.
64683         * modules/unistr/u32-strcat-tests: Likewise.
64684         * modules/unistr/u32-strcmp-tests: Likewise.
64685         * modules/unistr/u32-strcoll-tests: Likewise.
64686         * modules/unistr/u32-strcpy-tests: Likewise.
64687         * modules/unistr/u32-strdup-tests: Likewise.
64688         * modules/unistr/u32-strlen-tests: Likewise.
64689         * modules/unistr/u32-strmblen-tests: Likewise.
64690         * modules/unistr/u32-strmbtouc-tests: Likewise.
64691         * modules/unistr/u32-strncat-tests: Likewise.
64692         * modules/unistr/u32-strncmp-tests: Likewise.
64693         * modules/unistr/u32-strncpy-tests: Likewise.
64694         * modules/unistr/u32-strnlen-tests: Likewise.
64695         * modules/unistr/u32-to-u16-tests: Likewise.
64696         * modules/unistr/u32-to-u8-tests: Likewise.
64697         * modules/unistr/u32-uctomb-tests: Likewise.
64698         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
64699         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
64700         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
64701         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
64702         * modules/uniwidth/u8-strwidth-tests: Likewise.
64703         * modules/uniwidth/u8-width-tests: Likewise.
64704         * modules/uniwidth/u16-strwidth-tests: Likewise.
64705         * modules/uniwidth/u16-width-tests: Likewise.
64706         * modules/uniwidth/u32-strwidth-tests: Likewise.
64707         * modules/uniwidth/u32-width-tests: Likewise.
64708         * modules/uniwidth/width-tests: Likewise.
64710 2010-05-18  Richard Jones  <rjones@redhat.com>
64712         doc: users.txt: list hivex
64713         * users.txt: Add hivex.
64715 2010-05-18  Richard Jones  <rjones@redhat.com>
64717         doc: users.txt: list febootstrap
64718         * users.txt: Add febootstrap.
64720 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
64722         bootstrap: fix an error when gnulib is not used as a git submodule
64723         * build-aux/bootstrap (gnulib_path): If its length is zero then
64724         assign "gnulib" to it.
64725         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
64727 2010-05-16  Bruno Haible  <bruno@clisp.org>
64729         Avoid autoconf warnings about AM_ICONV.
64730         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
64731         2.64.
64733 2010-05-16  Bruno Haible  <bruno@clisp.org>
64735         absolute-header: Make the macro usable in more situations.
64736         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
64737         from gl_ABSOLUTE_HEADER.
64738         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
64740 2010-05-16  James Youngman  <jay@gnu.org>
64742         doc: update users.txt
64743         * users.txt: Add CSSC.
64745 2010-05-16  Jim Meyering  <meyering@redhat.com>
64747         init.sh: fix an error in the previous change; add more comments
64748         * tests/init.sh: Compare exit code in loop against 9, not 2.
64749         Patch by Bruno Haible.
64750         Make the two tests more similar by adding an empty "then" clause.
64751         Add comments.
64753         init.sh: avoid unnecessary shell re-exec
64754         * tests/init.sh: Improve the re-exec-required check to first test the
64755         current shell.  If it passes the test, do not search for a shell that
64756         does pass, and do not re-exec.  This test is particularly contorted to
64757         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
64758         of $(...) evokes a syntax error and causes immediate shell exit with
64759         status 2.  Bruno Haible reported that the re-exec made it impossible
64760         to single-step through any init.sh-using script.
64762 2010-05-16  Bruno Haible  <bruno@clisp.org>
64764         Fix collision between gnulib's and libintl's printf replacements.
64765         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
64766         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
64767         (printf): When using GNU C, map the __printf__ function to rpl_printf
64768         via __asm__. When not using GNU C, define rpl_printf instead of
64769         __printf__.
64770         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
64771         commit.
64772         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
64773         commit.
64774         * m4/asm-underscore.m4: New file.
64775         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
64776         * modules/stdio (Files): Add m4/asm-underscore.m4.
64777         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
64778         Reported by Ben Pfaff.
64780 2010-05-16  Bruno Haible  <bruno@clisp.org>
64782         verify: Avoid skipping the test on openSUSE 11.0.
64783         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
64785 2010-05-13  Bruno Haible  <bruno@clisp.org>
64787         Avoid useless warnings from G++.
64788         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
64789         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
64790         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
64792 2010-05-11  Jim Meyering  <meyering@redhat.com>
64794         maint.mk: tweak preceding change
64795         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
64796         regexps tighter by anchoring at EOL, and make the new group "shy"
64797         for slightly decreased overhead.
64799 2010-05-11  Eric Blake  <eblake@redhat.com>
64801         maint.mk: gnulib doesn't guarantee NSIG
64802         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
64804 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
64806         test-pwrite.c: Remove unused variable declaration.
64807         * tests/test-pwrite.c (main): Remove read_buf declaration.
64809         Remove useless test-pwrite.sh file.
64810         * tests/test-pwrite.sh: Delete file.
64811         * modules/pwrite-tests: Remove references.
64812         Reported by Bruno Haible.
64814 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
64816         init.sh: fix a typo
64817         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
64819 2010-05-10  Jim Meyering  <meyering@redhat.com>
64821         maint.mk: avoid using a temporary file in the always-defined-macros check
64822         * top/maint.mk (.re-defmac): Remove rule.
64823         (gl_trap_): Remove definition.
64824         (sc_prohibit_always-defined_macros): Rewrite not to create and
64825         depend on a temporary file.  Instead, depend on GNU grep's ability
64826         to read a list of regular expressions from stdin when given "-f -".
64828 2010-05-09  Bruno Haible  <bruno@clisp.org>
64830         Update to GNU gettext 0.18, part 1.
64831         * m4/gettext.m4: Update to GNU gettext 0.18.
64832         * m4/intl.m4: Likewise.
64833         * m4/po.m4: Likewise.
64834         * modules/gettext (Files): Add m4/fcntl-o.m4.
64835         (configure.ac): Require gettext infrastructure from version 0.18.
64837 2010-05-09  Jim Meyering  <meyering@redhat.com>
64839         init.sh: enable MALLOC_PERTURB_
64840         * tests/init.sh: Enable glibc's malloc-perturbing option.
64842         maint.mk: improve sc_cross_check_PATH_usage_in_tests
64843         With my recent change in init.sh from the two-line form:
64844             -#   : ${srcdir=.}
64845             -#   . "$srcdir/init.sh"; path_prepend_ .
64846             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
64847         I noticed that using the one-line form would cause this test
64848         to fail with a false-positive, or to stop working altogether,
64849         depending on whether help-version changed or all the tests did.
64850         * top/maint.mk (_hv_regex): Remove this definition.
64851         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
64852         (_hv_regex_strong): Use a stronger regex to check for conformance.
64853         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
64854         Give a separate diagnostic for lack of conforming use.
64856         maint.mk: prohibit definition of symbols defined by gnulib
64857         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
64858         definition of symbols defined by gnulib.
64860 2010-05-09  Bruno Haible  <bruno@clisp.org>
64862         acl: Avoid test failure on Cygwin-hosted mingw.
64863         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
64865 2010-05-09  Bruno Haible  <bruno@clisp.org>
64867         error: Use system's fcntl function.
64868         * lib/error.c (fcntl): Undefine.
64870 2010-05-09  Jim Meyering  <meyering@redhat.com>
64872         verify: adjust formatting to be more consistent
64873         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
64874         argument-list '('s, and after one comma.
64876 2010-05-09  Bruno Haible  <bruno@clisp.org>
64878         error: More reliable output on mingw.
64879         * lib/error.c: Include <windows.h>.
64880         (is_open): New function.
64881         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
64882         defined.
64884 2010-05-09  Bruno Haible  <bruno@clisp.org>
64886         vasnprintf: Fix syntax errors in libintl build on mingw.
64887         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
64888         pad_ourselves and prec_ourselves after use.
64890 2010-05-08  Bruno Haible  <bruno@clisp.org>
64892         * lib/config.charset: Update comments for Cygwin 1.7.
64893         * lib/localcharset.c: Likewise.
64895 2010-05-07  Jim Meyering  <meyering@redhat.com>
64897         init.sh: improve comments
64898         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
64899         . "${srcdir=.}/init.sh"; path_prepend_ .
64900         Add a note about path_prepend_ and the alternative of using
64901         TESTS_ENVIRONMENT.
64903 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
64905         exclude: Unescape hashed patterns in wildcard mode.
64906         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
64907         to the hash list.
64908         * tests/test-exclude8.sh: New test case.
64909         * modules/exclude-tests: Add new test.
64911 2010-05-05  Eric Blake  <eblake@redhat.com>
64913         verify: automate tests
64914         * modules/verify-tests: New module.
64915         * tests/test-verify.sh: New file.
64916         * tests/test-verify.c: Guard each negative test with a unique id.
64917         Also avoid warning about unused left hand of comma expressions.
64919 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
64921         Further improvements to verify.h, suggested by Eric Blake.
64922         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
64923         the GL_* versions, to avoid collision with OpenGL.
64924         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
64925         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
64926         than testing merely whether it's defined.
64928         Modify verify.h to pacify gcc -Wredundant_decls.
64929         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
64930         These use the prefix "GL_" since they're likely to be useful elsewhere.
64931         We may need to break them out into a different .h file.
64932         (__COUNTER__): Define to 0 if the compiler doesn't support it.
64933         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
64934         of verify_function__.
64936 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
64938         Tests for module pwrite.
64939         * modules/pwrite-tests: New file.
64940         * tests/test-pwrite.sh: New file.
64941         * tests/test-pwrite.c: New file.
64943         New module pwrite.
64944         * lib/unistd.in.h (pwrite): New declaration.
64945         * lib/pwrite.c: New file, from glibc with modifications.
64946         * m4/pwrite.m4: New file.
64947         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
64948         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
64949         REPLACE_PWRITE.
64950         * modules/pwrite: New file.
64951         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
64952         REPLACE_PWRITE.
64953         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
64954         * doc/posix-functions/pwrite.texi: Mention the new module.
64956 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
64958         pread: Update documentation.
64959         * doc/posix-functions/pread.texi: Mention the 'pread' module.
64961 2010-05-04  Eric Blake  <eblake@redhat.com>
64963         docs: update cygwin progress
64964         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
64965         this bug.
64966         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
64967         Added in cygwin 1.7.2.
64968         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
64969         Likewise.
64970         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
64971         Likewise.
64972         * doc/glibc-functions/dup3.texi (dup3): Likewise.
64973         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
64974         * doc/glibc-functions/accept4.texi (accept4): Likewise.
64975         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
64976         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
64977         Mention nproc module.
64978         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
64979         bug in cygwin 1.7.5 addition.
64980         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
64981         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
64982         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
64983         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
64984         1.7.5.
64985         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
64986         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
64987         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
64988         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
64989         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
64990         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
64991         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
64992         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
64993         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
64994         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
64995         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
64996         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
64997         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
64998         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
64999         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
65000         Likewise.
65001         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
65002         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
65003         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
65004         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
65005         Likewise.
65006         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
65007         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
65008         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
65009         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
65010         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
65011         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
65012         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
65013         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
65014         Likewise.
65015         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
65016         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
65017         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
65018         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
65019         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
65020         Likewise.
65021         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
65022         Likewise.
65023         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
65024         Likewise.
65025         * doc/glibc-functions/xdrrec_endofrecord.texi
65026         (xdrrec_endofrecord): Likewise.
65027         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
65028         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
65029         Likewise.
65030         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
65031         Likewise.
65033 2010-05-04  Jim Meyering  <meyering@redhat.com>
65035         gendocs.sh: make its "-s FILE" option more useful
65036         * build-aux/gendocs.sh: When honoring the -s FILE option, update
65037         $PACKAGE to reflect the probably-different basename of "FILE".
65039 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
65041         bootstrap: don't ignore download_po_files failure
65042         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
65043         failure.
65045 2010-05-03  Jim Meyering  <meyering@redhat.com>
65047         maint.mk: allow to pass options to gendocs.sh
65048         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
65049         (gendocs_options_): New overridable variable.
65051         gnu-web-doc-update: don't ignore configure or build failure
65052         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
65054         announce-gen: backslash-escape '@'s in --help output
65055         * build-aux/announce-gen: Fix syntax errors.
65057         maint.mk, announce-gen: allow project-specific announcement mail headers
65058         * top/maint.mk (translation_project_): Define default.
65059         (announcement_Cc_, announcement_mail_headers_): Likewise.
65060         (announcement): Invoke announce-gen with new --mail-headers option.
65061         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
65063         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
65064         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
65065         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
65066         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
65067         line in the "err2" output file when running "make check" in verbose
65068         mode (i.e., with set -x enabled).
65070 2010-05-03  Bruno Haible  <bruno@clisp.org>
65072         wctob: Fix for weird platforms.
65073         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
65074         argument value.
65076 2010-05-03  Jim Meyering  <meyering@redhat.com>
65078         maint.mk: prohibit unwarranted use of <strings.h>
65079         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
65080         strings.h in a file that does not also use strcasecmp, strncasecmp,
65081         ffs or ffsll.
65083         maint.mk: remove obsolete comments
65084         * top/maint.mk: Remove stale, commented-out rules.
65086 2010-05-02  Bruno Haible  <bruno@clisp.org>
65088         wcwidth: Declare also when it's aliased.
65089         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
65090         macro.
65092 2010-05-02  Bruno Haible  <bruno@clisp.org>
65094         Fix regression from 2010-04-25.
65095         * gnulib-tool (func_modules_transitive_closure): Check the status of
65096         all modules, not only of the tests that are of the form foo-tests where
65097         foo is a module.
65099 2010-05-02  Bruno Haible  <bruno@clisp.org>
65101         wctob: Work around nasty Cygwin 1.7.2 bug.
65102         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
65103         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
65105 2010-05-01  Bruno Haible  <bruno@clisp.org>
65107         fpurge: Sharper test.
65108         * tests/test-fpurge.c (main): Add one more ftell check.
65109         * modules/fpurge-tests (Depends-on): Add ftell.
65110         Suggested by Eric Blake.
65112 2010-05-01  Bruno Haible  <bruno@clisp.org>
65114         ftello: Another test.
65115         * tests/test-ftello3.c: New file.
65116         * modules/ftello-tests (Files): Add it.
65117         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
65118         MOSTLYCLEANFILES.
65120         ftell: Another test.
65121         * tests/test-ftell3.c: New file.
65122         * modules/ftell-tests (Files): Add it.
65123         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
65124         MOSTLYCLEANFILES.
65126 2010-05-01  Bruno Haible  <bruno@clisp.org>
65128         ftell, ftello: Work around Solaris bug.
65129         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
65130         * lib/ftello.c: Include stdio-impl.h.
65131         (ftello): On Solaris, when _IOWRT is set, compute the result without
65132         looking at _IOREAD.
65133         * modules/ftello (Files): Add lib/stdio-impl.h.
65134         * doc/posix-functions/ftell.texi: Mention Solaris bug.
65135         * doc/posix-functions/ftello.texi: Likewise.
65136         Reported by Eric Blake.
65138 2010-05-01  Bruno Haible  <bruno@clisp.org>
65140         freading: Adapt to special meaning of _IOREAD flag on Solaris.
65141         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
65142         the _IOWRT flag is also set.
65144 2010-05-01  Bruno Haible  <bruno@clisp.org>
65146         Fix doc about a HP-UX stdio bug.
65147         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
65148         * doc/posix-functions/ftello.texi: Likewise.
65150 2010-05-01  Bruno Haible  <bruno@clisp.org>
65152         lseek test: Fix failure on Solaris.
65153         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
65154         output.
65156 2010-04-30  Jim Meyering  <meyering@redhat.com>
65158         bootstrap: don't ignore failure to generate po*/Makevars
65159         * build-aux/bootstrap (with_gettext): Don't ignore failure
65160         to create po/Makevars or runtime-po/Makevars.
65162 2010-04-29  Eric Blake  <eblake@redhat.com>
65164         headers: relax license to LGPLv2+
65165         * modules/fcntl-h (License): Relax license.
65166         * modules/getopt-posix (License): Likewise.
65167         * modules/locale (License): Likewise.
65168         * modules/math (License): Likewise.
65169         * modules/pty (License): Likewise.
65170         * modules/sched (License): Likewise.
65171         * modules/search (License): Likewise.
65172         * modules/spawn (License): Likewise.
65173         * modules/stdarg (License): Likewise.
65174         * modules/sysexits (License): Likewise.
65176 2010-04-29  Jim Meyering  <meyering@redhat.com>
65178         inttypes: relax license to LGPLv2+
65179         * modules/inttypes (License): Relax license.
65181 2010-04-29  Simon Josefsson  <simon@josefsson.org>
65183         * top/maint.mk (indent): Run twice to produce idempotent results.
65185 2010-04-28  Bruno Haible  <bruno@clisp.org>
65187         getdate: Generate getdate.c in the source directory.
65188         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
65189         MOSTLYCLEANFILES.
65190         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
65192 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
65194         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
65195         is not declared as a const *; avoid warnings in that case.
65197 2010-04-28  Eric Blake  <eblake@redhat.com>
65199         canonicalize-lgpl: avoid compiler warning
65200         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
65201         declaration' / 'extraneous semicolon' warning with some compilers.
65202         Reported by Andreas Gruenbacher.
65204 2010-04-28  Jim Meyering  <meyering@redhat.com>
65206         init.sh: ensure a more reliable exit status when exiting via trap
65207         * tests/init.sh (setup_): Don't rely on $? in signal handler.
65208         Inspired by patches from Dmitry V. Levin.
65209         Also trap on signal 3 (SIGQUIT).
65211 2010-04-27  Bruno Haible  <bruno@clisp.org>
65213         Update doc about utimes().
65214         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
65215         'utimens' module.
65216         Reported by Andreas Gruenbacher <agruen@suse.de>.
65218 2010-04-27  Eric Blake  <eblake@redhat.com>
65220         full-read, full-write: relax license
65221         * modules/full-read (License): Drop to LGPLv2+.
65222         * modules/full-write (License): Likewise.
65223         * modules/safe-read (License): Likewise.
65224         * modules/safe-write (License): Likewise.
65226         pthread: mention library for linking
65227         * modules/pthread (Link): Mention $(LIB_PTHREAD).
65229 2010-04-27  Jim Meyering  <meyering@redhat.com>
65231         maint.mk: fix a bug introduced in last change
65232         * top/maint.mk (gl_assured_headers_): Now that all names are on
65233         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
65234         is not anchored to end of word, it should be adequate.
65236         maint.mk: avoid side-effect in latest syntax-check
65237         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
65238         to run commands via $(shell...), and hence to incur cost only when
65239         the new rule is actually run.
65241         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
65242         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
65243         and use that to create a regexp used to detect all #if HAVE_..._H uses.
65244         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
65245         (gl_assured_headers_, az_, AZ_): Define.
65246         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
65248 2010-04-26  Jim Meyering  <jim@meyering.net>
65249             Bruno Haible  <bruno@clisp.org>
65251         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
65252         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
65253         Prompted by an exchange with Gilles Espinasse.
65255 2010-04-26  Jim Meyering  <meyering@redhat.com>
65257         git-version-gen: aesthetic tweak
65258         * build-aux/git-version-gen: Use "$nl" rather than a literal,
65259         so that the command remains on a single line.
65261 2010-04-26  Eric Blake  <eblake@redhat.com>
65263         git-version-gen: allow use on EBCDIC hosts
65264         * build-aux/git-version-gen (dirty): Use literal rather than tying
65265         ourselves to ascii.
65266         Reported by Steve Goetze.
65268 2010-04-25  Bruno Haible  <bruno@clisp.org>
65270         netdb: Add support for GNULIB_POSIXCHECK.
65271         * lib/netdb.in.h: Include warn-on-use.h.
65272         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
65273         functions are used when GNULIB_POSIXCHECK is defined and the
65274         getaddrinfo module is not in use.
65275         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
65276         freeaddrinfo, gai_strerror, getnameinfo are declared.
65277         * modules/netdb (Depends-on): Add warn-on-use.
65278         (Makefile.am): Include warn-on-use.h in netdb.h.
65280 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
65282         build: avoid "make check" failure without .git/ directory
65283         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
65284         there is no .git/ directory.
65286 2010-04-25  Bruno Haible  <bruno@clisp.org>
65288         ptsname: Fix misuse of ttyname_r.
65289         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
65290         of errno.
65292 2010-04-25  Bruno Haible  <bruno@clisp.org>
65294         ttyname_r: Make it work on Solaris 10.
65295         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
65296         if the system function has the POSIX declaration. Test whether the
65297         function fails if the buffer is less than 128 bytes large.
65298         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
65299         system's ttyname_r function. Provide a reasonably large buffer.
65300         * modules/ttyname_r (Depends-on): Add extensions.
65301         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
65303 2010-04-25  Bruno Haible  <bruno@clisp.org>
65305         Use the 'extensions' module for some more functions on Solaris.
65306         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
65307         module.
65308         * doc/posix-functions/ctime_r.texi: Likewise.
65309         * doc/posix-functions/getgrgid_r.texi: Likewise.
65310         * doc/posix-functions/getgrnam_r.texi: Likewise.
65311         * doc/posix-functions/getpwnam_r.texi: Likewise.
65312         * doc/posix-functions/getpwuid_r.texi: Likewise.
65313         * doc/posix-functions/readdir_r.texi: Likewise.
65314         * doc/posix-functions/sigwait.texi: Likewise.
65315         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
65316         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
65318 2010-04-25  Bruno Haible  <bruno@clisp.org>
65320         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
65321         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
65322         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
65323         * lib/ttyname_r.c: Include <limits.h>.
65324         (ttyname_r): Define using the system's ttyname_r function, if it exists
65325         and not on Solaris.
65326         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
65327         set.
65328         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
65329         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
65330         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
65331         Reported by Simon Josefsson.
65333 2010-04-25  Bruno Haible  <bruno@clisp.org>
65335         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
65336         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
65337         * doc/posix-functions/ctime_r.texi: Likewise.
65338         * doc/posix-functions/getgrgid_r.texi: Likewise.
65339         * doc/posix-functions/getgrnam_r.texi: Likewise.
65340         * doc/posix-functions/getlogin_r.texi: Likewise.
65341         * doc/posix-functions/getpwnam_r.texi: Likewise.
65342         * doc/posix-functions/getpwuid_r.texi: Likewise.
65343         * doc/posix-functions/readdir_r.texi: Likewise.
65344         * doc/posix-functions/sigwait.texi: Likewise.
65345         * doc/posix-functions/ttyname_r.texi: Likewise.
65346         Reported by Simon Josefsson.
65348 2010-04-25  Bruno Haible  <bruno@clisp.org>
65350         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
65351         * gnulib-tool (func_usage): Document that --with-*-tests options apply
65352         also to --create-testdir.
65353         (func_acceptable): Don't consider the status of *-tests modules here.
65354         (func_modules_transitive_closure): Consider it here, before including a
65355         test module.
65356         (func_import, func_create_testdir): Set inc_all_direct_tests,
65357         inc_all_indirect_tests.
65358         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
65359         --create-testdir and --create-megatestdir.
65361 2010-04-25  Bruno Haible  <bruno@clisp.org>
65363         gnulib-tool: Add --without-*-tests options.
65364         * gnulib-tool (func_usage): Document the --without-*-tests options.
65365         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
65366         excl_unportable_tests): New variables.
65367         Fail if they are specified with --import or --update.
65368         (func_acceptable): Respect the excl_*_tests variables.
65369         (func_import): Set the excl_*_tests variables to empty.
65371 2010-04-25  Simon Josefsson  <simon@josefsson.org>
65372             Bruno Haible  <bruno@clisp.org>
65374         Work around a MacOS X 10.4 bug with openpty.
65375         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
65376         * tests/test-openpty.c (main): Close the master side explicitly.
65378 2010-04-25  Bruno Haible  <bruno@clisp.org>
65380         strnlen: Fix a C++ test error on MacOS X and Solaris.
65381         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
65382         the function is not declared.
65383         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
65384         Simon Josefsson.
65386 2010-04-24  Bruno Haible  <bruno@clisp.org>
65388         Avoid a gcc warning.
65389         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
65390         of correct type for %08lx directive.
65391         Reported by Eric Blake.
65393 2010-04-24  Bruno Haible  <bruno@clisp.org>
65395         vasnprintf: Correct errno value in case of out-of-memory.
65396         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
65397         or sprintf. Use the errno value from SNPRINTF or sprintf.
65398         Reported by Ian Beckwith <ianb@erislabs.net>.
65400 2010-04-24  Bruno Haible  <bruno@clisp.org>
65402         ansi-c++-opt: Find correct compiler when cross-compiling.
65403         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
65404         AC_CHECK_PROGS.
65405         Reported by Simon Josefsson.
65407 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
65409         vc-list-files: Add support for subversion
65410         * build-aux/vc-list-files: Use "svn list" to generate the list of
65411         files controlled by subversion.
65413 2010-04-23  Jim Meyering  <meyering@redhat.com>
65415         vc-list-files tests: convert to use init.sh
65416         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
65417         path_prepend_.
65418         Use Exit, not exit.
65419         Use skip_ rather than open coding it.
65420         Remove trap set-up and compare definitions.
65421         * tests/test-vc-list-files-git.sh: Likewise.
65422         * modules/vc-list-files-tests (Files): Add tests/init.sh.
65424 2010-04-22  Simon Josefsson  <simon@josefsson.org>
65426         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
65427         backup files.
65429 2010-04-21  Simon Josefsson  <simon@josefsson.org>
65431         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
65433 2010-04-20  Eric Blake  <eblake@redhat.com>
65435         tests: be robust to ignored SIGPIPE
65436         * tests/test-select-in.sh: Consume all output.
65437         * tests/test-lseek.sh: Check correct exit status, while avoiding
65438         EPIPE.
65440 2010-04-20  Simon Josefsson  <simon@josefsson.org>
65441             Bruno Haible  <bruno@clisp.org>
65443         visibility: Don't use -fvisibility if it leads to a warning.
65444         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
65445         yes, don't pretend that visibility works if it leads to a warning.
65446         Reported by Mike Gran <spk121@yahoo.com>.
65448 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
65450         * build-aux/bootstrap: Use "git -h" for testing for supported options
65451         instead of "git --help".  The short-form option only shows a summary,
65452         and doesn't layout the full man page.  Grep for the full option name
65453         in the summary, too.
65455 2010-04-19  Bruno Haible  <bruno@clisp.org>
65457         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
65458         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
65459         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
65460         mention of RELOCATABLE_STRIP.
65461         Reported by Sylvain Beucler <beuc@beuc.net>.
65463 2010-04-19  Bruno Haible  <bruno@clisp.org>
65465         * lib/diffseq.h: Fix typo in comment.
65466         Reported by Eric Blake.
65468 2010-04-19  Bruno Haible  <bruno@clisp.org>
65470         ioctl: Move autoconf macro to a .m4 file.
65471         * m4/ioctl.m4: New file, extracted from modules/ioctl.
65472         * modules/ioctl (Files): Add it.
65473         (configure.ac): Simply invoke gl_FUNC_IOCTL.
65474         Reported by Ian Beckwith <ianb@erislabs.net>.
65476 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
65477             Bruno Haible  <bruno@clisp.org>
65479         diffseq: Accommodate use-case with abstract arrays.
65480         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
65481         is not defined.
65482         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
65483         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
65485 2010-04-18  Bruno Haible  <bruno@clisp.org>
65487         * doc/posix-headers/stdbool.texi: More precise wording.
65489 2010-04-17  Jim Meyering  <meyering@redhat.com>
65491         maint.mk: use gnu-style indentation in an embedded perl script
65492         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
65493         Rename variable: s/two/last_two_bytes/
65495 2010-04-16  Eric Blake  <eblake@redhat.com>
65497         test-stdbool: skip test that fails with Solaris CC
65498         * tests/test-stdbool.c (f): Skip test that causes compilation
65499         error under buggy C++ compiler.
65500         * lib/stdbool.in.h: Document the limitation.
65501         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
65503         setenv: allow compilation with C++
65504         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
65505         register keyword.
65507         stdint: allow test to pass with C++
65508         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
65510         getopt: allow compilation with C++
65511         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
65512         struct.
65513         * lib/getopt.c (_getopt_internal_r): Use correct type.
65514         Reported by Dagobert Michelson, via Joel E. Denny.
65516 2010-04-16  Bruno Haible  <bruno@clisp.org>
65518         Override netdb.h always.
65519         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
65520         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
65521         Reported by Ludovic Courtès <ludo@gnu.org>.
65523 2010-04-15  Bruno Haible  <bruno@clisp.org>
65525         openpty: Fix mistake from 2010-03-21.
65526         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
65527         Reported by Simon Josefsson.
65529 2010-04-15  Eric Blake  <eblake@redhat.com>
65531         test-forkpty: fix expected signature
65532         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
65533         Reported by Simon Josefsson.
65535 2010-04-15  Jim Meyering  <meyering@redhat.com>
65537         maint.mk: texinfo_suffix_re_: correct the default regexp
65538         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
65540         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
65541         make it configurable via texinfo_suffix_re_.
65543 2010-04-14  Eric Blake  <eblake@redhat.com>
65545         strtok_r: relax license to LGPLv2+
65546         * modules/strtok_r (License): Relax license.
65547         Reported by Matthias Bolte.
65549 2010-04-14  Simon Josefsson  <simon@josefsson.org>
65551         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
65552         version 1.4.4 by default instead of requiring the libgcrypt
65553         version used during build.  This makes it possible to use the
65554         application with older but still binary compatible libgcrypt
65555         versions.
65557 2010-04-13  Eric Blake  <eblake@redhat.com>
65559         getopt-gnu: match recent glibc fixes and posix ruling
65560         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
65561         '+' handling, when requesting extensions.
65562         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
65563         'W;' handling.
65564         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
65565         * doc/posix-functions/getopt.texi (getopt): Document this.
65566         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
65567         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
65568         Likewise.
65570         getopt: merge bug fixes from glibc
65571         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
65572         diagnostics.  Honor '+:' correctly.  Reject ';'.
65574         getopt-posix: detect MacOS bug
65575         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
65576         optind when missing a required argument.
65577         * doc/posix-functions/getopt.texi (getopt): Document the bug.
65578         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
65579         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
65580         Likewise.
65582         getopt-posix: avoid spurious failure on Solaris
65583         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
65584         an indicator that setting optind=1 is sufficient for reset.
65586         getopt-posix: avoid spurious failure on FreeBSD
65587         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
65588         in POSIX mode, since the m4 test uses it.
65590         gnulib-tool: silence warning on BSD sh
65591         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
65593 2010-04-13  Jim Meyering  <meyering@redhat.com>
65595         doc: users.txt: GNU patch now uses gnulib
65596         * users.txt: Add patch.
65598 2010-04-12  Jim Meyering  <meyering@redhat.com>
65600         maint.mk: generate more concise timing data for syntax-check rules
65601         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
65602         " done" from each line that reports a syntax-check test duration.
65604 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
65606         git-version-gen: use "git update-index..." rather than "git status"
65607         * build-aux/git-version-gen: Use git update-index --refresh, not
65608         "git status".  With some versions of git, "git status" would fail
65609         to update the index and result in an unwarranted "-dirty" suffix.
65611 2010-04-11  Jim Meyering  <meyering@redhat.com>
65613         openat: correct formatting (no semantic change)
65614         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
65615         Suggested by Bruno Haible.
65617 2010-04-11  Bruno Haible  <bruno@clisp.org>
65619         Stricter declaration checking in testdirs.
65620         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65621         If for_tests is true, augment AM_CPPFLAGS to define
65622         GNULIB_STRICT_CHECKING.
65623         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
65624         GNULIB_STRICT_CHECKING is defined, verify that the function is
65625         declared.
65627 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
65628             Bruno Haible  <bruno@clisp.org>
65630         libunistring: Improve configure output.
65631         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
65632         Don't say "consider installing GNU libunistring" when checking again
65633         with libiconv.
65635 2010-04-11  Bruno Haible  <bruno@clisp.org>
65637         libunistring: Correct value of $LTLIBUNISTRING.
65638         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
65639         correct the value of $LTLIBUNISTRING.
65641 2010-04-11  Bruno Haible  <bruno@clisp.org>
65643         havelib: Add static libraries to LIBS in the right order.
65644         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
65645         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
65647 2010-04-11  Bruno Haible  <bruno@clisp.org>
65649         libunistring: Detect libunistring also when it depends on libiconv.
65650         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
65651         the second AC_LIB_HAVE_LINKFLAGS invocation.
65653 2010-04-11  James Youngman  <jay@gnu.org>
65655         close-stream: declare local scalars to be "const"
65656         * lib/close-stream.c (close_stream): Make boolean variables const
65657         to document the fact that we set but do not change them.
65659 2010-04-11  Bruno Haible  <bruno@clisp.org>
65661         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
65663 2010-04-11  Jim Meyering  <meyering@redhat.com>
65665         maint.mk: don't include dist-check.mk
65666         * top/maint.mk: Remove bogus include directive.
65668         maint.mk: improve empty-line-at-EOF check
65669         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
65670         solution, rather than tail+Perl-based one.  The latter would read
65671         a few kilobytes from the end of each file, and did not handle empty
65672         files properly.
65674         maint.mk: print the elapsed time for each syntax-check rule
65675         * top/maint.mk (sc_m_rules_): Save start time in a file.
65676         (sc_z_rules_): New rules: remove temp file and print elapsed time.
65677         (local-check): Interpose the .z rules
65679 2010-04-11  Jim Meyering  <meyering@redhat.com>
65681         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
65682         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
65683         empty file with one that ends in an empty line.
65685 2010-04-10  Bruno Haible  <bruno@clisp.org>
65687         mkdir: Make it work on mingw64.
65688         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
65689         * lib/mkdir.c: Update comment.
65690         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
65692 2010-04-10  Bruno Haible  <bruno@clisp.org>
65694         Don't override improved macro from newer autoconf.
65695         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
65696         autoconf >= 2.62.
65697         Reported by Joel E. Denny <jdenny@clemson.edu>.
65699 2010-04-10  Jim Meyering  <meyering@redhat.com>
65701         maint.mk: new syntax-check rule: prohibit empty lines at end of file
65702         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
65704         maint.mk: correct a diagnostic
65705         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
65706         in diagnostic; now use $prohibit.
65708 2010-04-10  Bruno Haible  <address@hidden>
65710         fchownat: Fix a C++ test error on Solaris 8.
65711         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
65712         the function does not exist.
65714 2010-04-10  Bruno Haible  <bruno@clisp.org>
65716         vasnprintf: Add more tests.
65717         * tests/test-vasnprintf-posix.c: Include <errno.h>.
65718         (test_function): Test converting an invalid wide string.
65720         vasnprintf: Correct handling of unconvertible wide string arguments.
65721         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
65722         VASNPRINTF.
65723         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
65724         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
65725         smaller than the expected maximum need for the directive. Set errno to
65726         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
65727         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
65728         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
65729         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
65730         * modules/vasnprintf (Files): Add m4/printf.m4.
65731         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65733 2010-04-10  Bruno Haible  <bruno@clisp.org>
65735         vasnprintf: Fix crash in %ls directive.
65736         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
65737         string is passed as argument to %ls, with no precision and no width.
65738         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65740 2010-04-10  Bruno Haible  <bruno@clisp.org>
65742         vasnprintf: Fix multiple test failures on mingw.
65743         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
65744         _snprintf, or snwprintf, not _snwprintf.
65746 2010-04-10  Bruno Haible  <bruno@clisp.org>
65748         write: Fix a C++ test error on mingw.
65749         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
65751 2010-04-10  Bruno Haible  <bruno@clisp.org>
65753         vasnprintf test: Reduce code duplication.
65754         * tests/test-vasnprintf.c (test_function): New function, extracted from
65755         test_vasnprintf.
65756         (test_vasnprintf, test_asnprintf): Invoke it.
65758 2010-04-10  Bruno Haible  <bruno@clisp.org>
65760         strnlen: Fix warning in C++ mode on MacOS X.
65761         * lib/string.in.h (strnlen): Use the modern idiom.
65762         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
65763         defining strnlen as a macro already in <config.h>.
65764         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
65765         REPLACE_STRNLEN.
65766         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
65767         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65769 2010-04-08  James Youngman  <jay@gnu.org>
65771         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
65772         the example.
65774 2010-04-09  Jim Meyering  <meyering@redhat.com>
65776         maint.mk: print better diagnostic when there is no $(_hv_file)
65777         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
65778         announce that when $(_hv_file) (aka help-version) does not exist.
65780         init.sh: run tr in the "C" locale to avoid multibyte interpretation
65781         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
65782         not try to interpret its random input bytes.  Jarno Rajahalme reported
65783         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
65784         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
65785         (mktempd_): Likewise, just in case.
65787         ftruncate: add two years to projected module removal date: 2012
65788         * m4/ftruncate.m4: Adjust comments.
65790         ftruncate: mark module as obsolete; even MinGW provides it, now
65791         * modules/ftruncate (Status): Obsolete.
65792         (Notice): Say that.
65793         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
65794         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
65796 2010-04-08  Bruno Haible  <bruno@clisp.org>
65798         Fix side effects from tests-related modules.
65799         * modules/dprintf-posix (Comment): New section.
65800         * modules/fprintf-posix (Comment): Likewise.
65801         * modules/obstack-printf-posix (Comment): Likewise.
65802         * modules/printf-posix (Comment): Likewise.
65803         * modules/snprintf-posix (Comment): Likewise.
65804         * modules/sprintf-posix (Comment): Likewise.
65805         * modules/vasnprintf-posix (Comment): Likewise.
65806         * modules/vasprintf-posix (Comment): Likewise.
65807         * modules/vdprintf-posix (Comment): Likewise.
65808         * modules/vfprintf-posix (Comment): Likewise.
65809         * modules/vprintf-posix (Comment): Likewise.
65810         * modules/vsnprintf-posix (Comment): Likewise.
65811         * modules/vsprintf-posix (Comment): Likewise.
65812         * modules/xprintf-posix (Comment): Likewise.
65813         * modules/xvasprintf-posix (Comment): Likewise.
65814         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
65815         * modules/floorf-tests (Depends-on): Likewise.
65816         * modules/round-tests (Depends-on): Likewise.
65817         * modules/roundf-tests (Depends-on): Likewise.
65818         * modules/trunc-tests (Depends-on): Likewise.
65819         * modules/truncf-tests (Depends-on): Likewise.
65820         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
65821         'fprintf-posix' module is not present.
65822         * tests/test-floorf2.c (check): Likewise.
65823         * tests/test-trunc2.c (check): Likewise.
65824         * tests/test-truncf2.c (check): Likewise.
65825         * tests/test-round2.c (equal): Likewise.
65826         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65828 2010-04-07  Karl Berry  <karl@gnu.org>
65830         * config/srclist.txt,
65831         * config/srclistvars.sh,
65832         * config/srclist-update: doc fixes.
65834 2010-04-07  Jim Meyering  <meyering@redhat.com>
65836         maint.mk: add a PATH crosschecking syntax-check rule
65837         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
65838         Useful if you use a test like the one in help-version (coreutils,
65839         diffutils, grep, gzip) that ensures $(VERSION) matches what is
65840         printed by prog --version.
65842 2010-04-06  Bruno Haible  <bruno@clisp.org>
65844         Fix link error on mingw.
65845         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
65846         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
65848 2010-04-06  Bruno Haible  <bruno@clisp.org>
65850         Assume rmdir exists.
65851         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
65853 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
65855         doc: update users.txt
65856         * users.txt: Add gcal.
65858 2010-04-06  Jim Meyering  <meyering@redhat.com>
65860         init.sh: simply unset TMPDIR rather than risking env -i
65861         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
65862         although it probably works fine on all Unix-based systems, some
65863         systems (Cygwin?) cannot tolerate a totally cleared environment.
65864         Suggestion from Eric Blake.
65866 2010-04-06  Jim Meyering  <meyering@redhat.com>
65868         init.sh: portability fix: use env's POSIX-specified -i option not -u
65869         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
65870         than unportable env -u.  Solaris 5.11's env lacks support for -u.
65872 2010-04-05  Bruno Haible  <bruno@clisp.org>
65874         btowc: Work around Cygwin 1.7.2 bug.
65875         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
65876         does not map NUL to 0.
65877         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
65879 2010-04-05  Bruno Haible  <bruno@clisp.org>
65881         Make the multithread modules work on Cygwin 1.7.2.
65882         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
65883         imported symbols can be declared weak, so that it returns "no" on
65884         Cygwin 1.7.2.
65886 2010-04-05  Bruno Haible  <bruno@clisp.org>
65888         Use the module 'strncat'.
65889         * modules/unistr/u8-strncat (Depends-on): Add strncat.
65891         Tests for module 'strncat'.
65892         * modules/strncat-tests: New file.
65893         * tests/test-strncat.c: New file.
65895         New module 'strncat'.
65896         * lib/string.in.h (strncat): New declaration.
65897         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
65898         * m4/strncat.m4: New file, based on m4/memchr.m4.
65899         * modules/strncat: New file.
65900         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
65901         is declared.
65902         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
65903         REPLACE_STRNCAT.
65904         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
65905         REPLACE_STRNCAT.
65906         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
65907         module.
65908         * tests/test-string-c++.cc: Check signature of strncat.
65910 2010-04-05  Jim Meyering  <meyering@redhat.com>
65912         xstrtoumax-tests: convert to use init.sh
65913         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
65914         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
65915         Use Exit, not exit.
65916         Remove uses of $EXEEXT and "./" to run a program in the current dir.
65918         xstrtoimax-tests: convert to use init.sh
65919         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
65920         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
65921         Use Exit, not exit.
65922         Remove uses of $EXEEXT and "./" to run a program in the current dir.
65924 2010-04-05  Bruno Haible  <bruno@clisp.org>
65926         sys_socket: Avoid #define replacements in C++ mode.
65927         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
65928         warning to the function if possible, rather than #defining the symbol
65929         to a dysfunctional alias.
65931 2010-04-05  Bruno Haible  <bruno@clisp.org>
65933         fseeko: Fix C++ test error on mingw.
65934         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
65935         gl_FUNC_FSEEKO.
65936         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
65937         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
65938         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
65939         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
65941 2010-04-05  Bruno Haible  <bruno@clisp.org>
65943         duplocale: Improve test output.
65944         * tests/test-duplocale.c (main): Print reason for skipped test.
65946 2010-04-05  Bruno Haible  <bruno@clisp.org>
65948         Assume rmdir exists.
65949         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
65950         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
65952 2010-04-05  Bruno Haible  <bruno@clisp.org>
65954         Fix link error on Solaris 8 with cc.
65955         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
65957 2010-04-05  Bruno Haible  <bruno@clisp.org>
65959         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
65960         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
65962 2010-04-05  Bruno Haible  <bruno@clisp.org>
65964         vasprintf: Update documentation.
65965         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
65967 2010-04-05  Bruno Haible  <bruno@clisp.org>
65969         ptsname: Improve test.
65970         * tests/test-ptsname.c (main): Also try the various master names of BSD
65971         systems.
65973 2010-04-05  Bruno Haible  <bruno@clisp.org>
65975         memchr: Avoid a possible C++ test error.
65976         * lib/string.in.h (memchr): Provide declaration if function is missing.
65977         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
65978         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
65979         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
65980         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
65982 2010-04-05  Bruno Haible  <bruno@clisp.org>
65984         strtok_r: Improve idiom.
65985         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
65986         AC_LIBOBJ is used.
65988 2010-04-05  Bruno Haible  <bruno@clisp.org>
65990         strdup: Improve idiom.
65991         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
65992         AC_LIBOBJ is used.
65993         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
65994         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
65995         when AC_LIBOBJ is used.
65997 2010-04-05  Bruno Haible  <bruno@clisp.org>
65999         mbsinit, mbrtowc, wcrtomb: Improve idioms.
66000         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
66001         don't set REPLACE_MBSINIT to 1.
66002         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
66003         don't set REPLACE_MBRTOWC to 1.
66004         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
66005         exist, don't set REPLACE_MBSRTOWCS to 1.
66006         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
66007         exist, don't set REPLACE_MBSNRTOWCS to 1.
66008         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
66009         don't set REPLACE_WCRTOMB to 1.
66010         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
66011         exist, don't set REPLACE_WCSRTOMBS to 1.
66012         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
66013         exist, don't set REPLACE_WCSNRTOMBS to 1.
66015 2010-04-05  Bruno Haible  <bruno@clisp.org>
66017         ldexpl: Improve idiom.
66018         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
66019         make sure to set HAVE_DECL_LDEXPL to 0.
66021 2010-04-05  Jim Meyering  <meyering@redhat.com>
66023         xstrtol-tests: convert to use init.sh
66024         * modules/xstrtol-tests (Files): Add tests/init.sh.
66025         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
66026         Use Exit, not exit.
66027         Remove uses of $EXEEXT and "./" to run a program in the current dir.
66029         atexit-tests: convert to use init.sh
66030         * modules/atexit-tests (Files): Add tests/init.sh.
66031         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
66032         Use Exit, not exit.
66033         Remove uses of $EXEEXT and "./" to run a program in the current dir.
66035         init.sh: fix typo
66036         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
66038         init.sh: make it easier for a test script to write to the tty, ...
66039         when using automake's parallel-tests mode.
66040         * tests/init.sh (stderr_fileno_): Define overridable variable.
66041         (warn_): New function, to use it.
66042         (fail_, skip_, framework_failure_): Use warn_.
66044 2010-04-04  Bruno Haible  <bruno@clisp.org>
66046         btowc: Avoid warning.
66047         * lib/btowc.c: Include <stdlib.h>.
66048         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
66050 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
66051             Bruno Haible  <bruno@clisp.org>
66053         wchar: Port to NetBSD 1.5.
66054         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
66055         * lib/wctype.in.h (WEOF): Likewise.
66057 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
66058             Bruno Haible  <bruno@clisp.org>
66060         Port extended stdio to NetBSD 1.5.
66061         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
66062         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
66063         older.
66065 2010-04-04  Bruno Haible  <bruno@clisp.org>
66067         string: Remove unused substitution.
66068         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
66069         HAVE_DECL_STRERROR.
66070         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
66072 2010-04-04  Bruno Haible  <bruno@clisp.org>
66074         strtod: Avoid a possible C++ test error.
66075         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
66076         set REPLACE_STRTOD.
66078 2010-04-04  Bruno Haible  <bruno@clisp.org>
66080         strerror: Update documentation.
66081         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
66083 2010-04-04  Bruno Haible  <bruno@clisp.org>
66085         stdio: Fix some C++ test errors on Solaris 8 with GCC.
66086         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
66087         _GL_CXXALIAS_SYS_CAST.
66089 2010-04-04  Bruno Haible  <bruno@clisp.org>
66091         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
66092         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
66093         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
66094         REPLACE_FREXPL to 1.
66095         * doc/posix-functions/frexpl.texi: Update documentation.
66097 2010-04-04  Bruno Haible  <bruno@clisp.org>
66099         math: Fix some C++ test errors on Solaris 8 and Cygwin.
66100         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
66102 2010-04-04  Bruno Haible  <bruno@clisp.org>
66104         Implement nanosleep for native Windows.
66105         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
66107 2010-04-04  Bruno Haible  <bruno@clisp.org>
66109         math: Fix some C++ test errors on Solaris 8.
66110         * lib/math.in.h (truncf, trunc): Use simpler idiom.
66112 2010-04-04  Bruno Haible  <bruno@clisp.org>
66114         math: Fix some C++ test errors on Cygwin.
66115         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
66116         truncl): Provide declaration if the system does not have it.
66117         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
66118         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
66119         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
66120         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
66121         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
66122         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
66123         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
66124         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
66125         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
66126         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
66127         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
66128         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
66129         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
66130         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
66131         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
66132         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
66133         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
66134         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
66135         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
66136         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
66137         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
66138         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
66140 2010-04-04  Bruno Haible  <bruno@clisp.org>
66142         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
66143         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
66144         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
66145         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
66146         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
66147         * m4/isinf.m4 (gl_ISINF): Likewise.
66148         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
66150 2010-04-04  Bruno Haible  <bruno@clisp.org>
66152         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
66153         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
66155 2010-04-04  Bruno Haible  <bruno@clisp.org>
66157         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
66158         * modules/tmpfile (configure.ac): Update.
66160         tmpfile: Fix C++ test error on mingw.
66161         * lib/stdio.in.h (tmpfile): New declaration.
66162         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
66163         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
66164         * modules/tmpfile (Depends-on): Add stdio.
66165         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
66166         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
66167         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
66168         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
66169         REPLACE_TMPFILE.
66170         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
66172 2010-04-04  Bruno Haible  <bruno@clisp.org>
66174         ioctl: Fix C++ test error on mingw.
66175         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
66176         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
66177         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
66179 2010-04-03  Bruno Haible  <bruno@clisp.org>
66181         wcwidth: Fix C++ test error on mingw.
66182         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
66183         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
66184         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
66186 2010-04-03  Bruno Haible  <bruno@clisp.org>
66188         nanosleep: Fix C++ test error on mingw.
66189         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
66190         * lib/time.in.h (nanosleep): Use modern idiom.
66191         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
66192         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
66193         REPLACE_NANOSLEEP to 1.
66194         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
66195         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
66197 2010-04-03  Bruno Haible  <bruno@clisp.org>
66199         strptime: Fix C++ test error on mingw.
66200         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
66201         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
66202         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
66203         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
66204         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
66205         not REPLACE_STRPTIME.
66206         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
66207         REPLACE_STRPTIME.
66209 2010-04-03  Bruno Haible  <bruno@clisp.org>
66211         timegm: Fix C++ test error on mingw.
66212         * lib/time.in.h (timegm): Use modern idiom.
66213         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
66214         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
66215         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
66216         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
66218 2010-04-03  Bruno Haible  <bruno@clisp.org>
66220         timegm: Assume declaration if function exists.
66221         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
66222         if it exists. Don't clobber ac_cv_func_timegm.
66224 2010-04-03  Bruno Haible  <bruno@clisp.org>
66226         time_r: Fix C++ test error on mingw.
66227         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
66228         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
66229         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
66230         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
66231         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
66233 2010-04-03  Bruno Haible  <bruno@clisp.org>
66235         time_r: Minor updates.
66236         * modules/time_r (Description): Mention the provided functions.
66237         * lib/time_r.c: Don't include <string.h>.
66238         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
66239         * doc/posix-functions/localtime_r.texi: Likewise.
66241 2010-04-03  Bruno Haible  <bruno@clisp.org>
66243         time: Fix regression introduced on 2010-03-08.
66244         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
66245         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
66247 2010-04-03  Jim Meyering  <meyering@redhat.com>
66249         maint.mk: don't silently disable project-specific syntax-check rules
66250         * top/maint.mk (_prohibit_regexp): Define, to help people realize
66251         that they need to convert their project-specific syntax-check rules
66252         to use the new _sc_search_regexp.
66254 2010-04-03  Bruno Haible  <bruno@clisp.org>
66256         fchdir: Fix regression introduced on 2010-03-08.
66257         * lib/unistd.in.h (fchdir): Fix declaration.
66258         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
66259         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
66260         REPLACE_FCHDIR.
66261         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
66262         REPLACE_FCHDIR.
66264 2010-04-03  Bruno Haible  <bruno@clisp.org>
66266         getpagesize: Fix C++ test error on mingw.
66267         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
66268         system does not declare the function.
66269         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
66270         declared.
66271         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
66272         HAVE_DECL_GETPAGESIZE.
66273         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
66275 2010-04-03  Bruno Haible  <bruno@clisp.org>
66277         stdio: Make C++ tests work on mingw.
66278         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
66279         does not declare the function.
66281 2010-04-03  Bruno Haible  <bruno@clisp.org>
66283         ftello: Fix C++ test error on mingw.
66284         * lib/stdio.in.h (ftello): Use modern idiom.
66285         * lib/ftello.c (ftello): Renamed from rpl_ftello.
66286         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
66287         is missing and that it needs to be replaced.
66288         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
66289         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
66290         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
66292 2010-04-03  Bruno Haible  <bruno@clisp.org>
66294         fseeko: Fix C++ test error on mingw.
66295         * lib/stdio.in.h (fseeko): Use modern idiom.
66296         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
66297         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
66298         is missing and that it needs to be replaced.
66299         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
66300         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
66301         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
66303 2010-04-03  Bruno Haible  <bruno@clisp.org>
66305         mkstemp: Fix C++ test error on mingw.
66306         * lib/stdlib.in.h (mkstemp): Use modern idiom.
66307         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
66308         function is missing and that it needs to be replaced.
66309         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
66310         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
66312 2010-04-03  Bruno Haible  <bruno@clisp.org>
66314         stpncpy: Fix C++ test error on mingw.
66315         * lib/string.in.h (stpncpy): Use modern idiom.
66316         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
66317         function is missing and that it needs to be replaced.
66318         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
66319         REPLACE_STPNCPY.
66320         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
66322 2010-04-03  Bruno Haible  <bruno@clisp.org>
66324         sys_stat: Fix C++ test error on mingw.
66325         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
66326         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
66328 2010-04-03  Bruno Haible  <bruno@clisp.org>
66330         pty: Update doc.
66331         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
66333 2010-04-03  Bruno Haible  <bruno@clisp.org>
66335         unistd: Fix C++ test error on mingw.
66336         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
66338 2010-04-03  Bruno Haible  <bruno@clisp.org>
66340         Update doc regarding mingw.
66341         * doc/glibc-functions/openpty.texi: Update regarding mingw.
66342         * doc/glibc-functions/login_tty.texi: Likewise.
66343         * doc/glibc-functions/forkpty.texi: Likewise.
66345 2010-04-03  Bruno Haible  <bruno@clisp.org>
66347         stdlib: Avoid compilation failure of c-strtold on mingw.
66348         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
66350 2010-04-03  Bruno Haible  <bruno@clisp.org>
66352         locale: Make C++ tests work on Cygwin and mingw.
66353         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
66354         cannot provide the function.
66355         Reported by Simon Josefsson.
66357 2010-04-03  Bruno Haible  <bruno@clisp.org>
66359         localename: Port to MacOS X 10.6.
66360         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
66361         memory layout of the locales in MacOS X 10.6 as well.
66362         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
66364 2010-04-02  Bruno Haible  <bruno@clisp.org>
66366         gnulib-tool: Ensure that long-running tests are executed last.
66367         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
66368         running tests after the one for the other tests.
66370 2010-04-02  Bruno Haible  <bruno@clisp.org>
66372         gnulib-tool: Ensure the tests in the main directory are executed first.
66373         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
66374         start with the current directory.
66376 2010-04-02  Bruno Haible  <bruno@clisp.org>
66378         Tests for module 'havelib', moved here from GNU gettext.
66379         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
66380         modifications.
66381         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
66382         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
66383         with modifications.
66384         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
66385         modifications.
66386         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
66387         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
66388         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
66389         with modifications.
66390         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
66391         with modifications.
66392         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
66393         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
66394         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
66395         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
66396         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
66397         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
66398         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
66399         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
66400         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
66401         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
66402         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
66403         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
66404         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
66405         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
66406         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
66407         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
66408         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
66409         with modifications.
66410         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
66411         with modifications.
66412         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
66413         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
66414         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
66415         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
66416         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
66417         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
66418         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
66419         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
66420         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
66421         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
66422         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
66423         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
66424         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
66425         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
66426         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
66427         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
66428         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
66429         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
66430         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
66431         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
66432         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
66433         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
66434         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
66435         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
66436         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
66437         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
66438         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
66439         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
66440         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
66441         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
66442         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
66443         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
66444         * tests/havelib/rpathx/rpathx.c: New file, from
66445         gettext/autoconf-lib-link.
66446         * tests/havelib/rpathx/Makefile.am: New file, from
66447         gettext/autoconf-lib-link.
66448         * tests/havelib/rpathx/configure.ac: New file, from
66449         gettext/autoconf-lib-link with modifications.
66450         * tests/havelib/rpathy/rpathy.c: New file, from
66451         gettext/autoconf-lib-link.
66452         * tests/havelib/rpathy/Makefile.am: New file, from
66453         gettext/autoconf-lib-link.
66454         * tests/havelib/rpathy/configure.ac: New file, from
66455         gettext/autoconf-lib-link with modifications.
66456         * tests/havelib/rpathz/rpathz.c: New file, from
66457         gettext/autoconf-lib-link.
66458         * tests/havelib/rpathz/Makefile.am: New file, from
66459         gettext/autoconf-lib-link.
66460         * tests/havelib/rpathz/configure.ac: New file, from
66461         gettext/autoconf-lib-link with modifications.
66462         * tests/havelib/rpathlx/usex.c: New file, from
66463         gettext/autoconf-lib-link.
66464         * tests/havelib/rpathlx/Makefile.am: New file, from
66465         gettext/autoconf-lib-link.
66466         * tests/havelib/rpathlx/configure.ac: New file, from
66467         gettext/autoconf-lib-link with modifications.
66468         * tests/havelib/rpathly/usey.c: New file, from
66469         gettext/autoconf-lib-link.
66470         * tests/havelib/rpathly/Makefile.am: New file, from
66471         gettext/autoconf-lib-link.
66472         * tests/havelib/rpathly/configure.ac: New file, from
66473         gettext/autoconf-lib-link with modifications.
66474         * tests/havelib/rpathlz/usez.c: New file, from
66475         gettext/autoconf-lib-link.
66476         * tests/havelib/rpathlz/Makefile.am: New file, from
66477         gettext/autoconf-lib-link.
66478         * tests/havelib/rpathlz/configure.ac: New file, from
66479         gettext/autoconf-lib-link with modifications.
66480         * tests/havelib/rpathlyx/usey.c: New file, from
66481         gettext/autoconf-lib-link.
66482         * tests/havelib/rpathlyx/Makefile.am: New file, from
66483         gettext/autoconf-lib-link.
66484         * tests/havelib/rpathlyx/configure.ac: New file, from
66485         gettext/autoconf-lib-link with modifications.
66486         * tests/havelib/rpathlzyx/usez.c: New file, from
66487         gettext/autoconf-lib-link.
66488         * tests/havelib/rpathlzyx/Makefile.am: New file, from
66489         gettext/autoconf-lib-link.
66490         * tests/havelib/rpathlzyx/configure.ac: New file, from
66491         gettext/autoconf-lib-link with modifications.
66492         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
66493         with modifications.
66495 2010-04-02  Bruno Haible  <bruno@clisp.org>
66497         gnulib-tool: Create distributed built sources also for the tests.
66498         * gnulib-tool (func_create_testdir): Also generate distributed built
66499         sources in the tests directory.
66501 2010-04-02  Bruno Haible  <bruno@clisp.org>
66503         gnulib-tool: Obey user's environment variables.
66504         * gnulib-tool (func_create_testdir): When creating built sources,
66505         respect the environment variables for autoconf, automake, etc. given by
66506         the user.
66508 2010-04-02  Bruno Haible  <bruno@clisp.org>
66510         gnulib-tool: Provide the value of --m4-base to modules.
66511         * gnulib-tool (func_import, func_create_testdir): Emit a definition
66512         of gl_m4_base.
66514 2010-04-02  Eric Blake  <eblake@redhat.com>
66516         maint.mk: fix some fallout
66517         * NEWS: Document the incompatible change, and its effect on cfg.mk.
66518         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
66520 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
66522         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
66523         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
66524         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
66525         (sc_cast_of_x_alloc_return_value): Likewise.
66526         (sc_cast_of_alloca_return_value): Likewise.
66527         (sc_space_tab): Likewise.
66528         (sc_prohibit_atoi_atof): Likewise.
66529         (sc_prohibit_magic_number_exit): Likewise.
66530         (sc_error_exit_success): Likewise.
66531         (sc_file_system): Likewise.
66532         (sc_prohibit_have_config_h): Likewise.
66533         (sc_require_config_h): Likewise.
66534         (sc_prohibit_HAVE_MBRTOWC): Likewise.
66535         (sc_obsolete_symbols): Likewise.
66536         (sc_changelog): Likewise.
66537         (sc_program_name): Likewise.
66538         (sc_the_the): Likewise.
66539         (sc_trailing_blank): Likewise.
66540         (sc_two_space_separator_in_usage): Likewise.
66541         (sc_useless_cpp_parens): Likewise.
66542         (sc_GPL_version): Likewise.
66543         (sc_GFDL_version): Likewise.
66544         (sc_texinfo_acronym): Likewise.
66545         (sc_prohibit_cvs_keyword): Likewise.
66546         (sc_prohibit_stat_st_blocks): Likewise.
66547         (sc_prohibit_S_IS_definition): Likewise.
66548         (sc_redundant_const): Likewise.
66549         (sc_makefile_TAB_only_indentation): Likewise.
66550         (sc_m4_quote_check): Likewise.
66551         (sc_makefile_path_separator_check): Likewise.
66552         (sc_copyright_check): Likewise.
66553         (sc_Wundef_boolean): Likewise.
66554         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
66556         maint.mk: match 0 or more whitespace-before-function-call '('
66557         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
66558         that have zero or two-and-more spaces between the function name
66559         and the open parenthesis.
66560         (sc_error_message_warn_fatal): Likewise.
66561         (sc_error_message_uppercase): Likewise.
66562         (sc_error_message_period): Likewise.
66564 2010-03-31  Eric Blake  <eblake@redhat.com>
66566         maint.mk: check for [ as well as test
66567         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
66568         Based on a libvirt report by Matthias Bolte.
66570         gnumakefile: don't squelch _version output
66571         * top/GNUmakefile (_version): Create one-shot dependency rather
66572         than using $(shell) when version must be regenerated.
66573         (_autoreconf): Run verbosely, by default.
66575         sys_time: avoid compiler warnings
66576         * lib/sys_time.in.h (includes): Ensure gcc pragma is
66577         unconditional, fixing regression from 2010-03-29.
66578         Reported by Simon Josefsson.
66580 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
66582         maint.mk: s/_header_without_use/_sc_header_without_use/
66583         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
66584         (sc_prohibit_assert_without_use): Use the new name.
66585         (sc_prohibit_close_stream_without_use): Likewise.
66586         (sc_prohibit_getopt_without_use): Likewise.
66587         (sc_prohibit_quotearg_without_use): Likewise.
66588         (sc_prohibit_quote_without_use): Likewise.
66589         (sc_prohibit_long_options_without_use): Likewise.
66590         (sc_prohibit_inttostr_without_use): Likewise.
66591         (sc_prohibit_ignore_value_without_use): Likewise.
66592         (sc_prohibit_error_without_use): Likewise.
66593         (sc_prohibit_xalloc_without_use): Likewise.
66594         (sc_prohibit_hash_without_use): Likewise.
66595         (sc_prohibit_hash_pjw_without_use): Likewise.
66596         (sc_prohibit_safe_read_without_use): Likewise.
66597         (sc_prohibit_argmatch_without_use): Likewise.
66598         (sc_prohibit_canonicalize_without_use): Likewise.
66599         (sc_prohibit_root_dev_ino_without_use): Likewise.
66600         (sc_prohibit_openat_without_use): Likewise.
66601         (sc_prohibit_c_ctype_without_use): Likewise.
66602         (sc_prohibit_signal_without_use): Likewise.
66603         (sc_prohibit_intprops_without_use): Likewise.
66605 2010-03-30  Eric Blake  <eblake@redhat.com>
66607         maint: improve module indicators
66608         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
66609         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
66610         columns, and avoid extra macro expansion.
66612         fdopendir: work around FreeBSD bug
66613         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
66614         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
66615         * modules/dirent (Makefile.am): Substitute it.
66616         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
66617         declaration.
66618         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
66619         fix.
66620         Reported by Christian Weisgerber <naddy@mips.inka.de>.
66622 2010-03-29  Bruno Haible  <bruno@clisp.org>
66624         Emit #pragma system_header after the inclusion guard, not before.
66625         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
66626         guard that spans the entire file, not before. This enables an
66627         optimization in GCC's preprocessor.
66628         * lib/ctype.in.h: Likewise.
66629         * lib/dirent.in.h: Likewise.
66630         * lib/errno.in.h: Likewise.
66631         * lib/float.in.h: Likewise.
66632         * lib/getopt.in.h: Likewise.
66633         * lib/iconv.in.h: Likewise.
66634         * lib/langinfo.in.h: Likewise.
66635         * lib/locale.in.h: Likewise.
66636         * lib/math.in.h: Likewise.
66637         * lib/netdb.in.h: Likewise.
66638         * lib/netinet_in.in.h: Likewise.
66639         * lib/pty.in.h: Likewise.
66640         * lib/sched.in.h: Likewise.
66641         * lib/se-selinux.in.h: Likewise.
66642         * lib/search.in.h: Likewise.
66643         * lib/spawn.in.h: Likewise.
66644         * lib/stdarg.in.h: Likewise.
66645         * lib/stdint.in.h: Likewise.
66646         * lib/string.in.h: Likewise.
66647         * lib/strings.in.h: Likewise.
66648         * lib/sys_file.in.h: Likewise.
66649         * lib/sys_ioctl.in.h: Likewise.
66650         * lib/sys_time.in.h: Likewise.
66651         * lib/sys_times.in.h: Likewise.
66652         * lib/sys_utsname.in.h: Likewise.
66653         * lib/sys_wait.in.h: Likewise.
66654         * lib/sysexits.in.h: Likewise.
66655         * lib/wctype.in.h: Likewise.
66657 2010-03-28  James Youngman  <jay@gnu.org>
66659         save-cwd: don't leak a file descriptor when the caller execs.
66660         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
66661         saved file descriptor.
66662         * modules/save-cwd (Depends-on): Depend on cloexec.
66664 2010-03-29  Bruno Haible  <bruno@clisp.org>
66666         Remove vestiges of fts-lgpl module.
66667         * lib/fts_.h: Assume GNULIB_FTS is 1.
66668         * lib/fts.c: Likewise.
66669         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
66671 2010-03-28  Bruno Haible  <bruno@clisp.org>
66673         Fix definition of tests witness macro.
66674         * gnulib-tool (func_import): Fix definition of witness macro.
66676 2010-03-28  Bruno Haible  <bruno@clisp.org>
66678         Fix ioctl's protoype on glibc systems.
66679         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
66680         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
66681         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
66682         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
66683         signature. If not, arrange to replace the ioctl function.
66684         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
66685         REPLACE_IOCTL.
66686         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
66687         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
66688         Reported by Ludovic Courtès <ludo@gnu.org>.
66690 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
66692         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
66693         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
66694         made it so grep -r --include=GLOB* ... did not work.
66696 2010-03-26  Jim Meyering  <meyering@redhat.com>
66697             Eric Blake  <eblake@redhat.com>
66699         maint.mk: prohibit use of test's -o and -a operators
66700         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
66702 2010-03-28  Bruno Haible  <bruno@clisp.org>
66704         Remove unused GNULIB_XYZ macro definitions.
66705         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
66706         invocation.
66708 2010-03-28  Bruno Haible  <bruno@clisp.org>
66710         Mark privileged tests modules.
66711         * modules/idpriv-drop-tests (Status): New section.
66712         * modules/idpriv-droptemp-tests (Status): New section.
66714 2010-03-28  Bruno Haible  <bruno@clisp.org>
66716         Split C++ tests into separate tests modules.
66717         * modules/dirent-c++-tests: New file, extracted from
66718         modules/dirent-tests.
66719         * modules/dirent-tests: Depend on it.
66720         * modules/fcntl-h-c++-tests: New file, extracted from
66721         modules/fcntl-h-tests.
66722         * modules/fcntl-h-tests: Depend on it.
66723         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
66724         * modules/glob-tests: Depend on it.
66725         * modules/iconv-h-c++-tests: New file, extracted from
66726         modules/iconv-h-tests.
66727         * modules/iconv-h-tests: Depend on it.
66728         * modules/langinfo-c++-tests: New file, extracted from
66729         modules/langinfo-tests.
66730         * modules/langinfo-tests: Depend on it.
66731         * modules/locale-c++-tests: New file, extracted from
66732         modules/locale-tests.
66733         * modules/locale-tests: Depend on it.
66734         * modules/math-c++-tests: New file, extracted from modules/math-tests.
66735         * modules/math-tests: Depend on it.
66736         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
66737         * modules/pty-tests: Depend on it.
66738         * modules/search-c++-tests: New file, extracted from
66739         modules/search-tests.
66740         * modules/search-tests: Depend on it.
66741         * modules/signal-c++-tests: New file, extracted from
66742         modules/signal-tests.
66743         * modules/signal-tests: Depend on it.
66744         * modules/spawn-c++-tests: New file, extracted from
66745         modules/spawn-tests.
66746         * modules/spawn-tests: Depend on it.
66747         * modules/stdio-c++-tests: New file, extracted from
66748         modules/stdio-tests.
66749         * modules/stdio-tests: Depend on it.
66750         * modules/stdlib-c++-tests: New file, extracted from
66751         modules/stdlib-tests.
66752         * modules/stdlib-tests: Depend on it.
66753         * modules/string-c++-tests: New file, extracted from
66754         modules/string-tests.
66755         * modules/string-tests: Depend on it.
66756         * modules/sys_ioctl-c++-tests: New file, extracted from
66757         modules/sys_ioctl-tests.
66758         * modules/sys_ioctl-tests: Depend on it.
66759         * modules/sys_select-c++-tests: New file, extracted from
66760         modules/sys_select-tests.
66761         * modules/sys_select-tests: Depend on it.
66762         * modules/sys_socket-c++-tests: New file, extracted from
66763         modules/sys_socket-tests.
66764         * modules/sys_socket-tests: Depend on it.
66765         * modules/sys_stat-c++-tests: New file, extracted from
66766         modules/sys_stat-tests.
66767         * modules/sys_stat-tests: Depend on it.
66768         * modules/sys_time-c++-tests: New file, extracted from
66769         modules/sys_time-tests.
66770         * modules/sys_time-tests: Depend on it.
66771         * modules/time-c++-tests: New file, extracted from modules/time-tests.
66772         * modules/time-tests: Depend on it.
66773         * modules/unistd-c++-tests: New file, extracted from
66774         modules/unistd-tests.
66775         * modules/unistd-tests: Depend on it.
66776         * modules/wchar-c++-tests: New file, extracted from
66777         modules/wchar-tests.
66778         * modules/wchar-tests: Depend on it.
66779         * modules/wctype-c++-tests: New file, extracted from
66780         modules/wctype-tests.
66781         * modules/wctype-tests: Depend on it.
66782         Reported by Simon Josefsson.
66784 2010-03-28  Bruno Haible  <bruno@clisp.org>
66786         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
66787         * gnulib-tool (func_exists_module): New function, extracted from
66788         func_verify_module.
66789         (func_verify_module): Use it.
66790         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
66791         'foo' only if 'foo' exists.
66792         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
66793         module.
66795 2010-03-28  Bruno Haible  <bruno@clisp.org>
66797         gnulib-tool: Add support for special categories of tests.
66798         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
66799         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
66800         (func_usage): Document them.
66801         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
66802         inc_unportable_tests, inc_all_tests): New variables.
66803         (func_acceptable): Consider these variables.
66804         (func_modules_transitive_closure): Make it work when the 'Status' field
66805         consists of multiple words.
66806         (func_import): Store and restore the values of inc_cxx_tests,
66807         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
66808         inc_all_tests in gnulib-comp.m4.
66809         (func_create_testdir): Set inc_all_tests to true.
66810         * doc/gnulib.texi (Extra tests modules): New section.
66811         Suggested by Jim Meyering.
66813 2010-03-28  Bruno Haible  <bruno@clisp.org>
66815         ansi-c++-opt: Allow turning off the C++ build by default.
66816         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
66817         gl_CXX_CHOICE_DEFAULT_NO is defined.
66818         Requested by Eric Blake.
66820 2010-03-28  Bruno Haible  <bruno@clisp.org>
66822         unistd: Avoid #define replacements in C++ mode.
66823         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
66824         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
66825         setsockopt, shutdown, select): In C++, attach a warning to the function
66826         if possible, rather than #defining the symbol to a dysfunctional alias.
66827         Reported by John W. Eaton <jwe@gnu.org>.
66829 2010-03-28  Bruno Haible  <bruno@clisp.org>
66831         Fix link errors on mingw.
66832         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
66833         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
66834         $(LIBSOCKET).
66835         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
66836         $(LIBSOCKET).
66838 2010-03-28  Bruno Haible  <bruno@clisp.org>
66839             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66841         lib-ignore: Determine different options for different compilers.
66842         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
66843         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
66844         Add comments.
66845         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
66846         * NEWS: Mention the change.
66848 2010-03-27  Bruno Haible  <bruno@clisp.org>
66850         Remove unused GNULIB_XYZ macro definitions.
66851         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
66852         * modules/fseek (configure.ac): Likewise.
66853         * modules/ioctl (configure.ac): Likewise.
66854         * modules/open (configure.ac): Likewise.
66855         * modules/stdlib-safer (configure.ac): Likewise.
66857 2010-03-27  Bruno Haible  <bruno@clisp.org>
66859         Add a remark about certain modules.
66860         * modules/malloc (Comment): New section.
66861         * modules/realloc (Comment): Likewise.
66862         * modules/sigpipe (Comment): Likewise.
66864 2010-03-27  Bruno Haible  <bruno@clisp.org>
66866         Resolve conflict between the two kinds of module indicators.
66867         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
66868         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
66869         * modules/canonicalize (configure.ac): Invoke
66870         gl_MODULE_INDICATOR_FOR_TESTS.
66871         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
66872         GNULIB_XYZ.
66873         * tests/test-dirent-c++.cc: Likewise.
66874         * tests/test-dirent-safer.c: Likewise.
66875         * tests/test-dup2.c: Likewise.
66876         * tests/test-fchdir.c: Likewise.
66877         * tests/test-fcntl-h-c++.cc: Likewise.
66878         * tests/test-getopt.c: Likewise.
66879         * tests/test-getopt.h: Likewise.
66880         * tests/test-langinfo-c++.cc: Likewise.
66881         * tests/test-locale-c++.cc: Likewise.
66882         * tests/test-math-c++.cc: Likewise.
66883         * tests/test-pty-c++.cc: Likewise.
66884         * tests/test-search-c++.cc: Likewise.
66885         * tests/test-signal-c++.cc: Likewise.
66886         * tests/test-spawn-c++.cc: Likewise.
66887         * tests/test-stdio-c++.cc: Likewise.
66888         * tests/test-stdlib-c++.cc: Likewise.
66889         * tests/test-string-c++.cc: Likewise.
66890         * tests/test-sys_ioctl-c++.cc: Likewise.
66891         * tests/test-sys_select-c++.cc: Likewise.
66892         * tests/test-sys_socket-c++.cc: Likewise.
66893         * tests/test-sys_stat-c++.cc: Likewise.
66894         * tests/test-sys_time-c++.cc: Likewise.
66895         * tests/test-time-c++.cc: Likewise.
66896         * tests/test-unistd-c++.cc: Likewise.
66897         * tests/test-wchar-c++.cc: Likewise.
66898         * tests/uninorm/test-u8-nfc.c: Likewise.
66899         * tests/uninorm/test-u8-nfd.c: Likewise.
66900         * tests/uninorm/test-u8-nfkc.c: Likewise.
66901         * tests/uninorm/test-u8-nfkd.c: Likewise.
66902         * tests/uninorm/test-u16-nfc.c: Likewise.
66903         * tests/uninorm/test-u16-nfd.c: Likewise.
66904         * tests/uninorm/test-u16-nfkc.c: Likewise.
66905         * tests/uninorm/test-u16-nfkd.c: Likewise.
66906         * tests/uninorm/test-u32-nfc.c: Likewise.
66907         * tests/uninorm/test-u32-nfc-big.c: Likewise.
66908         * tests/uninorm/test-u32-nfd.c: Likewise.
66909         * tests/uninorm/test-u32-nfd-big.c: Likewise.
66910         * tests/uninorm/test-u32-nfkc.c: Likewise.
66911         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
66912         * tests/uninorm/test-u32-nfkd.c: Likewise.
66913         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
66914         * tests/uninorm/test-u32-normalize-big.c: Likewise.
66916 2010-03-27  Bruno Haible  <bruno@clisp.org>
66918         Distinguish two kinds of module indicators.
66919         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
66920         gl_MODULE_INDICATOR.
66921         (gl_MODULE_INDICATOR): New macro.
66922         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
66923         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
66924         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
66925         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
66926         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
66927         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
66928         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
66929         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
66930         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
66931         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
66932         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
66933         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
66934         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
66935         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
66936         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
66937         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
66938         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
66939         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
66940         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
66941         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
66942         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
66943         * modules/cloexec (configure.ac): Likewise.
66944         * modules/getopt-gnu (configure.ac): Likewise.
66945         * modules/uninorm/u8-normalize (configure.ac): Likewise.
66946         * modules/uninorm/u16-normalize (configure.ac): Likewise.
66947         * modules/uninorm/u32-normalize (configure.ac): Likewise.
66948         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
66950 2010-03-27  Bruno Haible  <bruno@clisp.org>
66952         New module description field 'Comment'.
66953         * gnulib-tool: New option --extract-comment.
66954         (func_usage): Document it.
66955         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
66956         (func_get_comment): New function.
66957         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
66959 2010-03-27  Bruno Haible  <bruno@clisp.org>
66961         Addendum to 2010-02-07 commit.
66962         * gnulib-tool (func_usage): Document --extract-applicability option.
66964 2010-03-27  Bruno Haible  <bruno@clisp.org>
66966         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
66967         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
66968         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
66969         rather than link errors.
66971 2010-03-27  Bruno Haible  <bruno@clisp.org>
66973         Avoid side effects from tests-related modules on the compilation of lib.
66974         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
66975         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
66976         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
66977         parameter. Emit into AM_CPPFLAGS a definition of the designated C
66978         macro.
66979         (func_import): Define a witness macro. Assign it a value that depends
66980         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
66981         tests-related modules.
66982         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
66983         Reported by Jim Meyering.
66985 2010-03-27  Bruno Haible  <bruno@clisp.org>
66987         Factorize common .m4 code.
66988         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
66989         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
66990         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
66991         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
66992         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
66993         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
66994         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
66995         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
66996         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
66997         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
66998         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
66999         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
67000         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
67001         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
67002         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
67003         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
67004         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
67005         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
67006         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
67007         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
67008         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
67009         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
67010         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
67011         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
67012         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
67013         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
67014         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
67015         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
67016         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
67017         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
67018         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
67019         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
67021 2010-03-27  Bruno Haible  <bruno@clisp.org>
67023         Fix a compilation error on Cygwin with g++ >= 4.3.
67024         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
67025         if it is undefined or if we alias it to chmod.
67026         (lstat): Don't warn about the use of this function if it is undefined
67027         or if we alias it to stat.
67028         Reported by Simon Josefsson.
67030 2010-03-27  Bruno Haible  <bruno@clisp.org>
67032         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
67033         * modules/getlogin (configure.ac): Update.
67035         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
67036         * modules/getlogin_r (configure.ac): Update.
67038         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
67039         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
67040         * modules/inet_ntop (configure.ac): Update.
67042         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
67043         * modules/inet_pton (configure.ac): Update.
67045         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
67046         * modules/mbslen (configure.ac): Update.
67048         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
67049         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
67050         * modules/forkpty (configure.ac): Update.
67051         * modules/openpty (configure.ac): Update.
67053 2010-03-26  Simon Josefsson  <simon@josefsson.org>
67055         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
67056         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
67058 2010-03-25  Eric Blake  <eblake@redhat.com>
67060         maint: use pragma consistently across replacement headers
67061         * lib/ctype.in.h (system_header): Hoist for consistent placement.
67062         * lib/dirent.in.h (system_header): Likewise.
67063         * lib/errno.in.h (system_header): Likewise.
67064         * lib/float.in.h (system_header): Likewise.
67065         * lib/getopt.in.h (system_header): Likewise.
67066         * lib/iconv.in.h (system_header): Likewise.
67067         * lib/inttypes.in.h (system_header): Likewise.
67068         * lib/langinfo.in.h (system_header): Likewise.
67069         * lib/locale.in.h (system_header): Likewise.
67070         * lib/math.in.h (system_header): Likewise.
67071         * lib/netdb.in.h (system_header): Likewise.
67072         * lib/netinet_in.in.h (system_header): Likewise.
67073         * lib/pty.in.h (system_header): Likewise.
67074         * lib/sched.in.h (system_header): Likewise.
67075         * lib/se-selinux.in.h (system_header): Likewise.
67076         * lib/search.in.h (system_header): Likewise.
67077         * lib/spawn.in.h (system_header): Likewise.
67078         * lib/stdarg.in.h (system_header): Likewise.
67079         * lib/stdint.in.h (system_header): Likewise.
67080         * lib/string.in.h (system_header): Likewise.
67081         * lib/strings.in.h (system_header): Likewise.
67082         * lib/sys_file.in.h (system_header): Likewise.
67083         * lib/sys_ioctl.in.h (system_header): Likewise.
67084         * lib/sys_socket.in.h (system_header): Likewise.
67085         * lib/sys_times.in.h (system_header): Likewise.
67086         * lib/sys_utsname.in.h (system_header): Likewise.
67087         * lib/sys_wait.in.h (system_header): Likewise.
67088         * lib/sysexits.in.h (system_header): Likewise.
67089         * lib/unistd.in.h (system_header): Likewise.
67090         * lib/wctype.in.h (system_header): Likewise.
67092         arpa/inet: fix mingw compilation warning
67093         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
67094         Reported by Matthew Bolte.
67096 2010-03-25  Bruno Haible  <bruno@clisp.org>
67098         Avoid collision between gnulib wrapper and libintl wrapper.
67099         * lib/printf.c (printf): Don't define if a printf wrapper is already
67100         defined in intl/printf.c.
67101         Reported by Michel Boaventura <michel@michelboaventura.com>.
67103 2010-03-25  Bruno Haible  <bruno@clisp.org>
67105         Use ANSI C.
67106         * lib/readutmp.h (getutent): Provide ANSI C prototype.
67108 2010-03-25  Bruno Haible  <bruno@clisp.org>
67110         Minor formatting changes.
67111         * lib/acosl.c: Insert space before function argument list.
67112         * lib/argz.c: Likewise.
67113         * lib/asinl.c: Likewise.
67114         * lib/expl.c: Likewise.
67115         * lib/gen-uni-tables.c: Likewise.
67116         * lib/gettext.h: Likewise.
67117         * lib/glthread/lock.h: Likewise.
67118         * lib/tanl.c: Likewise.
67119         * lib/uniname/uniname.c: Likewise.
67120         * tests/test-idpriv-drop.c: Likewise.
67121         * tests/test-idpriv-droptemp.c: Likewise.
67122         * tests/test-lock.c: Likewise.
67123         * tests/test-tls.c: Likewise.
67124         * lib/argp-help.c: Insert space before function-like macro argument
67125         list.
67126         * lib/memcmp.c: Likewise.
67127         * tests/test-base64.c: Likewise.
67128         * lib/localename.c: Insert space before sizeof's argument list.
67129         * lib/safe-alloc.h: Likewise.
67130         * lib/file-set.h: Insert space before macro argument list.
67131         * tests/test-argp.c: Likewise.
67132         * lib/argp-namefrob.h: Insert space before function parameter list.
67133         * lib/getaddrinfo.c: Likewise.
67134         * lib/netdb.in.h: Likewise.
67135         * lib/parse-duration.h: Likewise.
67136         * lib/parse-duration.c: Likewise.
67137         * lib/poll.c: Likewise.
67138         * lib/select.c: Likewise.
67139         * lib/trim.h: Likewise.
67140         * tests/test-usleep.c: Likewise.
67141         * lib/ldexpl.c: Insert space before function parameter list and before
67142         function argument list.
67143         * lib/logl.c: Likewise.
67144         * lib/sqrtl.c: Likewise.
67145         * lib/trim.c: Likewise.
67146         * lib/cosl.c: Use GNU style indentation. Insert space before function
67147         argument list.
67148         * lib/sinl.c: Likewise.
67149         * lib/tsearch.c: Insert space after 'for'.
67150         Reported by Jim Meyering.
67152 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
67154         * maint.mk (sc_Wundef_boolean): Check for the presence of the
67155         config header before grepping, as it's not present before
67156         autoreconf/configure are run.  Reported by Simon Josefsson.
67158 2010-03-23  Bruno Haible  <bruno@clisp.org>
67160         pt_chown: Make it work with automake < 1.11.
67161         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
67162         Reported by Simon Josefsson.
67164 2010-03-23  Bruno Haible  <bruno@clisp.org>
67166         pt_chown: Don't depend on GPLed modules.
67167         * lib/pt_chown.c: Don't include idpriv.h.
67168         (main): Don't drop privileges.
67169         * modules/pt_chown (Depends-on): Remove idpriv-drop.
67170         Reported by Simon Josefsson.
67172 2010-03-24  Simon Josefsson  <simon@josefsson.org>
67174         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
67175         suggestions from karl@freefriends.org (Karl Berry).
67177 2010-03-22  Eric Blake  <eblake@redhat.com>
67179         gethostname: further tweaks
67180         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
67181         are overriding gethostname.
67182         Suggested by Bruno Haible.
67184 2010-03-21  Bruno Haible  <bruno@clisp.org>
67186         Fix comments.
67187         * lib/forkpty.c (rpl_forkpty): Fix comment.
67188         * lib/openpty.c (rpl_openpty): Likewise.
67189         Reported by Eric Blake.
67191 2010-03-22  Eric Blake  <eblake@redhat.com>
67193         gethostname: fix build on mingw
67194         * lib/unistd.in.h (includes): Work around fact that mingw
67195         <winsock2.h> re-includes <unistd.h>, by avoiding any
67196         redeclarations if we are being included by <winsock2.h>.
67197         Reported by Matthias Bolte.
67199 2010-03-21  Bruno Haible  <bruno@clisp.org>
67201         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
67202         * lib/forkpty.c (forkpty): New replacement function, from glibc with
67203         modifications.
67204         * lib/pty.in.h (forkpty): Update declaration. Add comments.
67205         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
67206         provide the replacement.
67207         * modules/forkpty (Depends-on): Add openpty, login_tty.
67208         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
67209         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
67210         * doc/glibc-functions/forkpty.texi: More supported platforms.
67211         * config/srclist.txt: Add forkpty.c (commented).
67213 2010-03-21  Bruno Haible  <bruno@clisp.org>
67215         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
67216         (Makefile.am): Verify that PTY_LIB is defined.
67218         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
67220 2010-03-21  Bruno Haible  <bruno@clisp.org>
67222         Tests for module 'login_tty'.
67223         * modules/login_tty-tests: New file.
67224         * tests/test-login_tty.c: New file.
67226         New module 'login_tty'.
67227         * lib/login_tty.c: New file.
67228         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
67229         * modules/login_tty: New file.
67230         * doc/glibc-functions/login_tty.texi: Mention the new module.
67232 2010-03-21  Bruno Haible  <bruno@clisp.org>
67234         login_tty: Documentation.
67235         * doc/glibc-functions/login_tty.texi: New file.
67236         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
67238 2010-03-21  Bruno Haible  <bruno@clisp.org>
67240         pty: Consistent macro naming.
67241         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
67242         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
67243         * modules/pty (configure.ac): Update.
67245 2010-03-21  Bruno Haible  <bruno@clisp.org>
67247         Tests for openpty: Make stricter.
67248         * tests/test-openpty.c (main): Add test of canonical processing and
67249         erase.
67250         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
67252         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
67253         * lib/openpty.c (openpty): New replacement function.
67254         * lib/pty.in.h: Include <termios.h>.
67255         (openpty): Update declaration. Add comments.
67256         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
67257         is not declared, arrange to provide the replacement. Check for _getpty
67258         and posix_openpt.
67259         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
67260         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
67261         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
67262         * modules/pty-tests (test_pty_c___LDADD): New variable.
67263         * doc/glibc-functions/openpty.texi: More supported platforms.
67265 2010-03-21  Bruno Haible  <bruno@clisp.org>
67267         setenv: Tweaks.
67268         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
67269         the test program.
67270         * doc/posix-functions/setenv.texi: Update platforms list.
67272 2010-03-21  Bruno Haible  <bruno@clisp.org>
67274         New module 'unlockpt'.
67275         * lib/unlockpt.c: New file, from glibc with modifications.
67276         * m4/unlockpt.m4: New file.
67277         * modules/unlockpt: New file.
67278         * lib/stdlib.in.h (unlockpt): New declaration.
67279         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
67280         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
67281         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
67282         HAVE_UNLOCKPT.
67283         * doc/posix-functions/unlockpt.texi: Mention the new module.
67284         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
67285         * config/srclist.txt: Add unlockpt.c (commented).
67287 2010-03-21  Jim Meyering  <meyering@redhat.com>
67289         maint.mk: prohibit inclusion of "intprops.h" without use
67290         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
67292 2010-03-21  Bruno Haible  <bruno@clisp.org>
67294         New module 'grantpt'.
67295         * lib/grantpt.c: New file, from glibc with modifications.
67296         * m4/grantpt.m4: New file.
67297         * modules/grantpt: New file.
67298         * lib/stdlib.in.h (grantpt): New declaration.
67299         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
67300         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
67301         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
67302         HAVE_GRANTPT.
67303         * doc/posix-functions/grantpt.texi: Mention the new module.
67304         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
67305         * config/srclist.txt: Add grantpt.c (commented).
67307 2010-03-21  Bruno Haible  <bruno@clisp.org>
67309         New module 'pt_chown'.
67310         * lib/pt_chown.c: New file, from glibc with modifications.
67311         * lib/pty-private.h: New file, from glibc with modifications.
67312         * modules/pt_chown: New file.
67313         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
67315 2010-03-21  Bruno Haible  <bruno@clisp.org>
67317         Tests for module 'ptsname'.
67318         * modules/ptsname-tests: New file.
67319         * tests/test-ptsname.c: New file.
67321         New module 'ptsname'.
67322         * lib/ptsname.c: New file, from glibc with modifications.
67323         * m4/ptsname.m4: New file.
67324         * modules/ptsname: New file.
67325         * lib/stdlib.in.h (ptsname): New declaration.
67326         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
67327         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
67328         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
67329         HAVE_PTSNAME.
67330         * doc/posix-functions/ptsname.texi: Mention the new module.
67331         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
67332         * config/srclist.txt: Add ptsname.c (commented).
67334 2010-03-21  Bruno Haible  <bruno@clisp.org>
67336         Tests for module 'ttyname_r'.
67337         * modules/ttyname_r-tests: New file.
67338         * tests/test-ttyname_r.c: New file.
67340         New module 'ttyname_r'.
67341         * lib/ttyname_r.c: New file.
67342         * m4/ttyname_r.m4: New file.
67343         * modules/ttyname_r: New file.
67344         * lib/unistd.in.h (ttyname_r): New declaration.
67345         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
67346         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
67347         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
67348         HAVE_TTYNAME_R.
67349         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
67350         * doc/posix-functions/ttyname_r.texi: Mention the new module.
67352 2010-03-20  Bruno Haible  <bruno@clisp.org>
67354         signal: Undefine macro definitions in C++ mode.
67355         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
67356         sigfillset): Undefine macro definitions from the system header in C++
67357         mode.
67358         Reported by John W. Eaton <jwe@gnu.org>.
67360 2010-03-20  Bruno Haible  <bruno@clisp.org>
67362         Ensure no #include statements inside extern "C" { ... }.
67363         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
67364         contain #include statements.
67365         * lib/time.in.h: Likewise.
67367 2010-03-20  Bruno Haible  <bruno@clisp.org>
67369         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
67370         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
67371         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
67372         Reported by John W. Eaton <jwe@gnu.org>.
67374 2010-03-20  Bruno Haible  <bruno@clisp.org>
67376         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
67377         Reported by Jim Meyering.
67379 2010-03-20  Bruno Haible  <bruno@clisp.org>
67381         pipe: Set errno upon failure.
67382         * lib/pipe.h: Specify that when -1 is returned, errno is set.
67383         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
67384         errno value in error message.
67386 2010-03-20  Bruno Haible  <bruno@clisp.org>
67387             Jim Meyering  <meyering@redhat.com>
67389         lchown: Avoid "unused variable" warning.
67390         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
67392 2010-03-20  Bruno Haible  <bruno@clisp.org>
67394         Work around unlink() bug on MacOS X 10.5.6.
67395         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
67396         attempting to unlink a parent directory.
67397         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
67398         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
67399         activate for the replacement function.
67400         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
67402 2010-03-20  Bruno Haible  <bruno@clisp.org>
67404         Fix link errors on Solaris 8.
67405         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
67406         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
67408 2010-03-19  Jim Meyering  <meyering@redhat.com>
67410         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
67411         The _LIBC implementation of build_range_exp correctly honors the
67412         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
67413         However, the non-_LIBC implementation would ignore that syntax-bit
67414         flag and return REG_ERANGE unconditionally.
67415         This change makes it honor that flag.
67416         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
67417         Make two pointer parameters "const".
67418         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
67419         (parse_bracket_exp): Update caller.
67421         regex.m4: correct the reversed range endpoint ([b-a]) test
67422         * m4/regex.m4: When requiring that [b-a] evoke failure,
67423         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
67424         test pass once again for x86-based systems.
67426 2010-03-19  Bruno Haible  <bruno@clisp.org>
67428         scandir: Fix link error on Solaris 8.
67429         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
67430         macros.
67432 2010-03-19  Bruno Haible  <bruno@clisp.org>
67434         getusershell: Fix documentation.
67435         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
67436         module.
67437         * doc/glibc-functions/setusershell.texi: Likewise.
67439         getusershell: Provide declaration, missing on Solaris 9.
67440         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
67441         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
67442         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
67443         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
67444         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
67445         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
67446         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
67447         HAVE_GETUSERSHELL.
67448         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
67450 2010-03-19  Bruno Haible  <bruno@clisp.org>
67452         wctype: Provide iswblank function.
67453         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
67454         exists and is fine.
67455         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
67456         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
67457         * tests/test-wctype.c (main): Re-enable the iswblank tests.
67458         * doc/posix-functions/iswblank.texi: Update.
67460 2010-03-19  Bruno Haible  <bruno@clisp.org>
67462         Tests of module 'pty' in C++ mode.
67463         * modules/pty-tests: New file.
67464         * tests/test-pty-c++.cc: New file.
67465         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
67467 2010-03-19  Eric Blake  <eblake@redhat.com>
67469         logb: fix documentation
67470         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
67471         1.5 declaration bug.
67473         forkpty, openpty: prefer glibc's const-safe prototype
67474         * lib/forkpty.c (rpl_forkpty): New file.
67475         * lib/openpty.c (rpl_openpty): Likewise.
67476         * modules/forkpty (Files): Distribute it.
67477         * modules/openpty (Files): Likewise.
67478         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
67479         check...
67480         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
67481         replacement for non-const BSD signature.
67482         * modules/pty (Makefile.am): Substitute witnesses.
67483         * lib/pty.in.h (forkpty, openpty): Declare replacements.
67484         * tests/test-forkpty.c: Update signature check.
67485         * tests/test-openpty.c: Likewise.
67486         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
67487         * doc/glibc-functions/openpty.texi (openpty): Likewise.
67489         forkpty, openpty: split functions into new modules
67490         * modules/pty (Makefile.am): Substitute new witnesses.
67491         (Libraries): Move library detection...
67492         * modules/forkpty: ...into new module.
67493         * modules/openpty: Another new module.
67494         * modules/pty-tests: Rename and split...
67495         * modules/forkpty-tests: ...to this...
67496         * modules/openpty-tests: ...and this.
67497         * tests/test-pty.c: Rename and split...
67498         * tests/test-forkpty.c: ...to this...
67499         * tests/test-openpty.c: ...and this.
67500         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
67501         (gl_PTY): Split library searching...
67502         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
67503         (gl_FORKPTY, gl_OPENPTY): New macros.
67504         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
67505         * NEWS: Mention the split.
67506         * MODULES.html.sh (Misc): Document the modules.
67507         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
67508         * doc/glibc-functions/openpty.texi (openpty): Likewise.
67510         pty: improve replacement header
67511         * lib/pty.in.h: New file.
67512         * modules/pty (Files): Ship it.
67513         (Makefile.am): Always build replacement.
67514         * m4/pty.m4: Rename...
67515         * m4/pty_h.m4: ...to this.
67516         (gl_PTY): Modernize setting of witness macros; update check of
67517         forkpty to take proper advantage of cache.
67518         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
67520         getopt: avoid compiler warning
67521         * lib/getopt.c (attribute_hidden): Remove unused macro.
67523 2010-03-18  Bruno Haible  <bruno@clisp.org>
67525         Fix link errors on Solaris 8.
67526         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
67527         * modules/search-tests (test_search_c___LDADD): Likewise.
67528         * modules/signal-tests (test_signal_c___LDADD): Likewise.
67529         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
67530         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
67531         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
67532         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
67533         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
67534         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
67536 2010-03-18  Bruno Haible  <bruno@clisp.org>
67538         Fix bug introduced on 2010-03-14.
67539         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
67540         (gl_SPAWN_H): Require it.
67541         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
67542         Reported by Simon Josefsson.
67544 2010-03-18  Bruno Haible  <bruno@clisp.org>
67546         Fix typo introduced on 2009-12-31.
67547         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
67548         posix_spawn_file_actions_adddup2.
67550 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
67551         and Eric Blake  <eblake@redhat.com>
67553         test-vc-list-files-git: make more robust
67554         * tests/test-vc-list-files-git.sh: Unset problematic environment
67555         variables.  Chain commands together.
67557 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
67559         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
67560         `AC_CHECK_DECL' invocation.
67562 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
67564         * lib/inttostr.c (inttostr): Make sure the invocation of verify
67565         appears before executable statements. Suggested by Petr Sumbera
67566         <Petr.Sumbera@Sun.COM>.
67568 2010-03-14  Bruno Haible  <bruno@clisp.org>
67570         * tests/test-flock.c (test_exclusive): Comment out a test that causes
67571         portability problems. Instead use a simpler test.
67572         (main): Check that invalid arguments are rejected only on Linux.
67574 2010-03-14  Bruno Haible  <bruno@clisp.org>
67576         Fix bug introduced on 2009-12-31.
67577         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
67578         gl_PREREQ_SYS_H_WINSOCK2 always.
67579         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
67580         SYS_SOCKET_H variable.
67581         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
67582         Update comments.
67583         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
67584         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
67585         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
67586         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
67587         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
67589 2010-03-14  Bruno Haible  <bruno@clisp.org>
67591         Fix values returned by sinl, cosl.
67592         * lib/trigl.h: Add specification comments.
67593         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
67594         that combines the values from the precomputed table with the values of
67595         the Chebyshev polynomials.
67597 2010-03-14  Bruno Haible  <bruno@clisp.org>
67599         Fix compilation error when modules 'posix_spawn[p]' are not used.
67600         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
67601         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
67603 2010-03-14  Bruno Haible  <bruno@clisp.org>
67605         Fix compilation error on mingw when module 'time_r' is not used.
67606         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
67607         is 1.
67608         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
67609         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
67610         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
67611         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
67613 2010-03-14  Bruno Haible  <bruno@clisp.org>
67615         Fix compilation error with Sun C.
67616         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
67617         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
67618         instead of GCC specific ULONG_LONG_MAX.
67619         * lib/xstrtoll.c: Likewise.
67620         * lib/xstrtoull.c: Likewise.
67622 2010-03-13  Bruno Haible  <bruno@clisp.org>
67624         Allow the user to disable C++ code and tests.
67625         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
67626         (gl_PROG_ANSI_CXX): Require it.
67628 2010-03-13  Bruno Haible  <bruno@clisp.org>
67630         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
67631         cases.
67633 2010-03-13  Bruno Haible  <bruno@clisp.org>
67635         Test that gnulib does not break the standard C++ headers.
67636         * tests/test-locale-c++2.cc: New file.
67637         * modules/locale-tests (Files): Add it.
67638         (Makefile.am): Compile it for test-locale-c++.
67639         * tests/test-math-c++2.cc: New file.
67640         * modules/math-tests (Files): Add it.
67641         (Makefile.am): Compile it for test-math-c++.
67642         * tests/test-signal-c++2.cc: New file.
67643         * modules/signal-tests (Files): Add it.
67644         (Makefile.am): Compile it for test-signal-c++.
67645         * tests/test-stdio-c++2.cc: New file.
67646         * modules/stdio-tests (Files): Add it.
67647         (Makefile.am): Compile it for test-stdio-c++.
67648         * tests/test-stdlib-c++2.cc: New file.
67649         * modules/stdlib-tests (Files): Add it.
67650         (Makefile.am): Compile it for test-stdlib-c++.
67651         * tests/test-string-c++2.cc: New file.
67652         * modules/string-tests (Files): Add it.
67653         (Makefile.am): Compile it for test-string-c++.
67654         * tests/test-time-c++2.cc: New file.
67655         * modules/time-tests (Files): Add it.
67656         (Makefile.am): Compile it for test-time-c++.
67657         Reported by John W. Eaton <jwe@gnu.org>.
67659 2010-03-13  Bruno Haible  <bruno@clisp.org>
67661         * gnulib-tool (func_usage): Clarify which options are available for
67662         --create-testdir and --create-megatestdir.
67664 2010-03-13  Bruno Haible  <bruno@clisp.org>
67666         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
67667         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
67668         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
67669         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
67670         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
67671         when appropriate.
67672         Reported by Jim Meyering.
67674 2010-03-12  Simon Josefsson  <simon@josefsson.org>
67676         * gnulib-tool (func_import): Explain origin of code.
67678 2010-03-12  Bruno Haible  <bruno@clisp.org>
67680         Fix problem with automake's definition of CXXLINK.
67681         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
67682         Reported by Simon Josefsson and Ludovic Courtès.
67684 2010-03-12  Bruno Haible  <bruno@clisp.org>
67686         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
67687         stable releases.
67689 2010-03-11  Bruno Haible  <bruno@clisp.org>
67691         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
67692         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
67693         whether the system provides one variant or multiple variants of the
67694         function.
67695         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
67696         C++ compilers.
67697         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
67698         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
67699         Reported by Jim Meyering.
67701 2010-03-09  Simon Josefsson  <simon@josefsson.org>
67703         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
67705 2010-03-08  Bruno Haible  <bruno@clisp.org>
67707         gnulib-tool: Add support for --libtool in --create-testdir.
67708         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
67709         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
67711 2010-03-08  Eric Blake  <eblake@redhat.com>
67713         gnulib-tool.texi: mention possibility of git submodule
67714         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
67715         submodules.
67716         * doc/.gitignore: Ignore another generated file.
67718 2010-03-08  Karl Berry  <karl@gnu.org>
67720         * doc/gnulib-tool.texi (VCS Issues): Mention third option
67721         of committing gnulib files while skipping others.
67723 2010-03-07  Bruno Haible  <bruno@clisp.org>
67725         Tests of module 'wctype' in C++ mode.
67726         * tests/test-wctype-c++.cc: New file.
67727         * modules/wctype-tests (Files): Add it and tests/signature.h.
67728         (Depends-on): Add ansi-c++-opt.
67729         (Makefile.am): Arrange to compile and run test-wctype-c++.
67731         Tests of module 'wchar' in C++ mode.
67732         * tests/test-wchar-c++.cc: New file.
67733         * modules/wchar-tests (Files): Add it and tests/signature.h.
67734         (Depends-on): Add ansi-c++-opt.
67735         (Makefile.am): Arrange to compile and run test-wchar-c++.
67736         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
67737         gl_MODULE_INDICATOR.
67739         Tests of module 'unistd' in C++ mode.
67740         * tests/test-unistd-c++.cc: New file.
67741         * modules/unistd-tests (Files): Add it and tests/signature.h.
67742         (Depends-on): Add ansi-c++-opt.
67743         (Makefile.am): Arrange to compile and run test-unistd-c++.
67744         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
67745         gl_MODULE_INDICATOR.
67747         Tests of module 'time' in C++ mode.
67748         * tests/test-time-c++.cc: New file.
67749         * modules/time-tests (Files): Add it and tests/signature.h.
67750         (Depends-on): Add ansi-c++-opt.
67751         (Makefile.am): Arrange to compile and run test-time-c++.
67752         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
67754         Tests of module 'sys_time' in C++ mode.
67755         * tests/test-sys_time-c++.cc: New file.
67756         * modules/sys_time-tests (Files): Add it and tests/signature.h.
67757         (Depends-on): Add ansi-c++-opt.
67758         (Makefile.am): Arrange to compile and run test-sys_time-c++.
67759         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
67760         gl_MODULE_INDICATOR.
67762         Tests of module 'sys_stat' in C++ mode.
67763         * tests/test-sys_stat-c++.cc: New file.
67764         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
67765         (Depends-on): Add ansi-c++-opt.
67766         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
67767         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
67768         gl_MODULE_INDICATOR.
67770         Tests of module 'sys_socket' in C++ mode.
67771         * tests/test-sys_socket-c++.cc: New file.
67772         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
67773         (Depends-on): Add ansi-c++-opt.
67774         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
67775         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
67776         gl_MODULE_INDICATOR.
67778         Tests of module 'sys_select' in C++ mode.
67779         * tests/test-sys_select-c++.cc: New file.
67780         * modules/sys_select-tests (Files): Add it and tests/signature.h.
67781         (Depends-on): Add ansi-c++-opt.
67782         (Makefile.am): Arrange to compile and run test-sys_select-c++.
67783         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
67784         gl_MODULE_INDICATOR.
67786         Tests of module 'sys_ioctl' in C++ mode.
67787         * tests/test-sys_ioctl-c++.cc: New file.
67788         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
67789         (Depends-on): Add ansi-c++-opt.
67790         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
67791         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
67792         gl_MODULE_INDICATOR.
67794         Tests of module 'string' in C++ mode.
67795         * tests/test-string-c++.cc: New file.
67796         * modules/string-tests (Files): Add it and tests/signature.h.
67797         (Depends-on): Add ansi-c++-opt.
67798         (Makefile.am): Arrange to compile and run test-string-c++.
67799         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
67800         gl_MODULE_INDICATOR.
67802         Tests of module 'stdlib' in C++ mode.
67803         * tests/test-stdlib-c++.cc: New file.
67804         * modules/stdlib-tests (Files): Add it and tests/signature.h.
67805         (Depends-on): Add ansi-c++-opt.
67806         (Makefile.am): Arrange to compile and run test-stdlib-c++.
67807         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
67808         gl_MODULE_INDICATOR.
67810         Tests of module 'stdio' in C++ mode.
67811         * tests/test-stdio-c++.cc: New file.
67812         * modules/stdio-tests (Files): Add it and tests/signature.h.
67813         (Depends-on): Add ansi-c++-opt.
67814         (Makefile.am): Arrange to compile and run test-stdio-c++.
67815         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
67816         gl_MODULE_INDICATOR.
67818         Tests of module 'spawn' in C++ mode.
67819         * tests/test-spawn-c++.cc: New file.
67820         * modules/spawn-tests (Files): Add it and tests/signature.h.
67821         (Depends-on): Add ansi-c++-opt.
67822         (Makefile.am): Arrange to compile and run test-spawn-c++.
67823         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
67824         gl_MODULE_INDICATOR.
67826         Tests of module 'signal' in C++ mode.
67827         * tests/test-signal-c++.cc: New file.
67828         * modules/signal-tests (Files): Add it and tests/signature.h.
67829         (Depends-on): Add ansi-c++-opt.
67830         (Makefile.am): Arrange to compile and run test-signal-c++.
67831         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
67832         gl_MODULE_INDICATOR.
67834         Tests of module 'search' in C++ mode.
67835         * tests/test-search-c++.cc: New file.
67836         * modules/search-tests (Files): Add it and tests/signature.h.
67837         (Depends-on): Add ansi-c++-opt.
67838         (Makefile.am): Arrange to compile and run test-search-c++.
67839         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
67840         gl_MODULE_INDICATOR.
67842         Tests of module 'math' in C++ mode.
67843         * tests/test-math-c++.cc: New file.
67844         * modules/math-tests (Files): Add it and tests/signature.h.
67845         (Depends-on): Add ansi-c++-opt.
67846         (Makefile.am): Arrange to compile and run test-math-c++.
67847         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
67849         Tests of module 'locale' in C++ mode.
67850         * tests/test-locale-c++.cc: New file.
67851         * modules/locale-tests (Files): Add it and tests/signature.h.
67852         (Depends-on): Add ansi-c++-opt.
67853         (Makefile.am): Arrange to compile and run test-locale-c++.
67854         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
67855         gl_MODULE_INDICATOR.
67857         Tests of module 'langinfo' in C++ mode.
67858         * tests/test-langinfo-c++.cc: New file.
67859         * modules/langinfo-tests (Files): Add it and tests/signature.h.
67860         (Depends-on): Add ansi-c++-opt.
67861         (Makefile.am): Arrange to compile and run test-langinfo-c++.
67862         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
67863         gl_MODULE_INDICATOR.
67865         Tests of module 'iconv-h' in C++ mode.
67866         * tests/test-iconv-h-c++.cc: New file.
67867         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
67868         (Depends-on): Add ansi-c++-opt.
67869         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
67871         Tests of module 'glob' in C++ mode.
67872         * tests/test-glob-c++.cc: New file.
67873         * modules/glob-tests (Files): Add it.
67874         (Depends-on): Add ansi-c++-opt.
67875         (Makefile.am): Arrange to compile and run test-glob-c++.
67877         Tests of module 'fcntl-h' in C++ mode.
67878         * tests/test-fcntl-h-c++.cc: New file.
67879         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
67880         (Depends-on): Add ansi-c++-opt.
67881         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
67882         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
67883         gl_MODULE_INDICATOR.
67885         Tests of module 'dirent' in C++ mode.
67886         * tests/test-dirent-c++.cc: New file.
67887         * modules/dirent-tests (Files): Add it and tests/signature.h.
67888         (Depends-on): Add ansi-c++-opt.
67889         (Makefile.am): Arrange to compile and run test-dirent-c++.
67890         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
67891         gl_MODULE_INDICATOR.
67893         New module 'ansi-c++-opt'.
67894         * modules/ansi-c++-opt: New file.
67895         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
67897         Document C++ namespace mode.
67898         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
67900         wctype: Avoid #define replacements in C++ mode.
67901         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
67902         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
67903         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
67904         In C++, define a namespaced alias symbol.
67905         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
67906         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
67907         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
67908         rule.
67910         wchar: Avoid #define replacements in C++ mode.
67911         * lib/wchar.in.h: Include c++defs.h.
67912         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
67913         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
67914         symbol.
67915         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
67916         * modules/wchar (Depends-on): Add c++defs.
67917         (Makefile.am): Update wchar.h rule.
67919         unistd: Avoid #define replacements in C++ mode.
67920         * lib/unistd.in.h: Include c++defs.h.
67921         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
67922         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
67923         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
67924         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
67925         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
67926         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
67927         symbol.
67928         (environ): Update.
67929         * modules/unistd (Depends-on): Add c++defs.
67930         (Makefile.am): Update unistd.h rule.
67932         time: Avoid #define replacements in C++ mode.
67933         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
67934         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
67935         define a namespaced alias symbol.
67936         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
67937         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
67938         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
67939         * modules/time (Depends-on): Add c++defs, warn-on-use.
67940         (Makefile.am): Update time.h rule.
67941         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
67942         * modules/nanosleep (configure.ac): Likewise.
67943         * modules/strptime (configure.ac): Likewise.
67944         * modules/timegm (configure.ac): Likewise.
67946         sys_time: Avoid #define replacements in C++ mode.
67947         * lib/sys_time.in.h: Include c++defs.h.
67948         (gettimeofday): In C++, define a namespaced alias symbol.
67949         * modules/sys_time (Depends-on): Add c++defs.
67950         (Makefile.am): Update sys/time.h rule.
67952         sys_stat: Avoid #define replacements in C++ mode.
67953         * lib/sys_stat.in.h: Include c++defs.h.
67954         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
67955         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
67956         namespaced alias symbol.
67957         In C++, define a namespaced alias symbol.
67958         * modules/sys_stat (Depends-on): Add c++defs.
67959         (Makefile.am): Update sys/stat.h rule.
67961         sys_socket: Avoid #define replacements in C++ mode.
67962         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
67963         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
67964         definitions also when the system has a <sys/socket.h>.
67965         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
67966         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
67967         In C++, define a namespaced alias symbol.
67968         * modules/sys_socket (Depends-on): Add c++defs.
67969         (Makefile.am): Update sys/socket.h rule.
67971         sys_select: Avoid #define replacements in C++ mode.
67972         * lib/sys_select.in.h: Include c++defs.h. Enable the function
67973         definitions also when the system has a <sys/select.h>.
67974         (select): In C++, define a namespaced alias symbol.
67975         * modules/sys_select (Depends-on): Add c++defs.
67976         (Makefile.am): Update sys/select.h rule.
67978         sys_ioctl: Avoid #define replacements in C++ mode.
67979         * lib/sys_ioctl.in.h: Include c++defs.h.
67980         (ioctl): In C++, define a namespaced alias symbol.
67981         * modules/sys_ioctl (Depends-on): Add c++defs.
67982         (Makefile.am): Update sys/ioctl.h rule.
67984         string: Avoid #define replacements in C++ mode.
67985         * lib/string.in.h: Include c++defs.h.
67986         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
67987         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
67988         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
67989         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
67990         strsignal, strverscmp): In C++, define a namespaced alias symbol.
67991         * modules/string (Depends-on): Add c++defs.
67992         (Makefile.am): Update string.h rule.
67994         stdlib: Avoid #define replacements in C++ mode.
67995         * lib/stdlib.in.h: Include c++defs.h.
67996         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
67997         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
67998         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
67999         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
68000         symbol.
68001         * modules/stdlib (Depends-on): Add c++defs.
68002         (Makefile.am): Update stdlib.h rule.
68004         stdio: Avoid #define replacements in C++ mode.
68005         * lib/stdio.in.h: Include c++defs.h.
68006         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
68007         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
68008         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
68009         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
68010         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
68011         namespaced alias symbol.
68012         * modules/stdio (Depends-on): Add c++defs.
68013         (Makefile.am): Update stdio.h rule.
68015         spawn: Avoid #define replacements in C++ mode.
68016         * lib/spawn.in.h: Include c++defs.h.
68017         (posix_spawn, posix_spawnp, posix_spawnattr_init,
68018         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
68019         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
68020         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
68021         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
68022         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
68023         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
68024         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
68025         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
68026         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
68027         In C++, define a namespaced alias symbol.
68028         * modules/spawn (Depends-on): Add c++defs.
68029         (Makefile.am): Update spawn.h rule.
68031         signal: Avoid #define replacements in C++ mode.
68032         * lib/signal.in.h: Include c++defs.h.
68033         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
68034         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
68035         namespaced alias symbol.
68036         * modules/signal (Depends-on): Add c++defs.
68037         (Makefile.am): Update signal.h rule.
68039         search: Avoid #define replacements in C++ mode.
68040         * lib/search.in.h: Include c++defs.h.
68041         (_gl_search_compar_fn, _gl_search_action_fn): New types.
68042         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
68043         symbol.
68044         * modules/search (Depends-on): Add c++defs.
68045         (Makefile.am): Update search.h rule.
68047         math: Avoid #define replacements in C++ mode.
68048         * lib/math.in.h: Include c++defs.h.
68049         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
68050         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
68051         trunc, truncl): In C++, define a namespaced alias symbol.
68052         * modules/math (Depends-on): Add c++defs.
68053         (Makefile.am): Update math.h rule.
68055         locale: Avoid #define replacements in C++ mode.
68056         * lib/locale.in.h: Include c++defs.h.
68057         (duplocale): In C++, define a namespaced alias symbol.
68058         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
68059         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
68060         * modules/locale (Depends-on): Add c++defs.
68061         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
68063         langinfo: Avoid #define replacements in C++ mode.
68064         * lib/langinfo.in.h: Include c++defs.h.
68065         (nl_langinfo): In C++, define a namespaced alias symbol.
68066         * modules/langinfo (Depends-on): Add c++defs.
68067         (Makefile.am): Update langinfo.h rule.
68069         iconv-h: Avoid #define replacements in C++ mode.
68070         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
68071         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
68072         symbol.
68073         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
68074         whenever iconv is present.
68075         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
68076         (Makefile.am): Update iconv.h rule.
68078         glob: Avoid #define replacements in C++ mode.
68079         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
68080         (_gl_glob_errfunc_fn): New type.
68081         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
68082         symbol.
68083         * modules/glob (Depends-on): Add c++defs, warn-on-use.
68084         (Makefile.am): Update glob.h rule.
68086         fcntl-h: Avoid #define replacements in C++ mode.
68087         * lib/fcntl.in.h: Include c++defs.h.
68088         (fcntl, open, openat): In C++, define a namespaced alias symbol.
68089         * modules/fcntl-h (Depends-on): Add c++defs.
68090         (Makefile.am): Update fcntl.h rule.
68092         dirent: Avoid #define replacements in C++ mode.
68093         * lib/dirent.in.h: Include c++defs.h.
68094         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
68095         namespaced alias symbol.
68096         (dirfd): Update declaration.
68097         * modules/dirent (Depends-on): Add c++defs.
68098         (Makefile.am): Update dirent.h rule.
68100         ctype: Make it usable in C++ code.
68101         * lib/ctype.in.h: Include c++defs.h.
68102         (isblank): Declare as extern "C".
68103         * modules/ctype (Depends-on): Add c++defs.
68104         (Makefile.am): Update ctype.h rule.
68106         New module 'c++defs'.
68107         * modules/c++defs: New file.
68108         * build-aux/c++defs.h: New file.
68109         Reported by John W. Eaton <jwe@gnu.org>.
68111 2010-03-07  Bruno Haible  <bruno@clisp.org>
68113         logb: Provide missing declaration for Cygwin.
68114         * lib/math.in.h (logb): New declaration.
68115         * m4/logb.m4: New file.
68116         * modules/logb (Files): Add m4/logb.m4.
68117         (Depends-on): Add math.
68118         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
68119         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
68120         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
68121         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
68122         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
68124 2010-03-07  Bruno Haible  <bruno@clisp.org>
68126         Fix test-cond link error.
68127         * tests/test-cond.c: Include <stdio.h>.
68129 2010-03-07  Bruno Haible  <bruno@clisp.org>
68131         Fix test-dirent-safer link error.
68132         * modules/dirent-safer-tests (Makefile.am): Define
68133         test_dirent_safer_LDADD.
68135 2010-03-07  Bruno Haible  <bruno@clisp.org>
68137         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
68138         among default module list.
68140 2010-03-07  Bruno Haible  <bruno@clisp.org>
68142         Fix link error on platforms with GNU libiconv.
68143         * modules/unistr/u8-strcoll-tests (Makefile): Define
68144         test_u8_strcoll_LDADD.
68145         * modules/unistr/u16-strcoll-tests (Makefile): Define
68146         test_u16_strcoll_LDADD.
68147         * modules/unistr/u32-strcoll-tests (Makefile): Define
68148         test_u32_strcoll_LDADD.
68150 2010-03-07  Bruno Haible  <bruno@clisp.org>
68152         Use POSIX declarations for socket functions.
68153         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
68154         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
68155         rpl_sendto): Change declaration to match POSIX.
68156         * lib/connect.c (rpl_connect): Likewise.
68157         * lib/accept.c (rpl_accept): Likewise.
68158         * lib/bind.c (rpl_bind): Likewise.
68159         * lib/getpeername.c (rpl_getpeername): Likewise.
68160         * lib/getsockname.c (rpl_getsockname): Likewise.
68161         * lib/recv.c (rpl_recv): Likewise.
68162         * lib/send.c (rpl_send): Likewise.
68163         * lib/recvfrom.c (rpl_recvfrom): Likewise.
68164         * lib/sendto.c (rpl_sendto): Likewise.
68166 2010-03-06  Bruno Haible  <bruno@clisp.org>
68168         Clarify access, euidaccess, faccessat.
68169         * doc/posix-functions/faccessat.texi: Mention security problem under
68170         "Other problems", not "Portability problems".
68171         * doc/posix-functions/access.texi: Likewise. Mention a related security
68172         problem.
68173         * doc/glibc-functions/euidaccess.texi: Mention security problems.
68174         * lib/euidaccess.c: Add comments about platforms.
68175         * lib/unistd.in.h (access, euidaccess): Add warnings.
68177 2010-03-07  Bruno Haible  <bruno@clisp.org>
68179         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
68180         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
68181         (POSIX_SPAWN_SETSCHEDULER): Likewise.
68182         (POSIX_SPAWN_USEVFORK): Define in a way that works when
68183         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
68184         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
68185         declare when POSIX_SPAWN_SETSCHEDULER is zero.
68186         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
68187         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
68188         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
68189         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
68190         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
68191         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
68192         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
68193         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
68194         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
68195         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
68196         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
68197         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
68198         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
68199         Likewise.
68200         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
68201         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
68202         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
68203         Likewise.
68204         * tests/test-spawn.c (main): Make it work when
68205         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
68207 2010-03-07  Bruno Haible  <bruno@clisp.org>
68209         Fix incorrect Makefile.am generation in German locale.
68210         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68211         Execute sed command with character range in C locale.
68213 2010-03-06  Bruno Haible  <bruno@clisp.org>
68215         Tests for module 'iconv-h'.
68216         * modules/iconv-h-tests: New file.
68217         * tests/test-iconv-h.c: New file.
68219         New module 'iconv-h'.
68220         * modules/iconv-h: New file.
68221         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
68222         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
68223         (configure.ac): Remove gl_ICONV_H.
68224         (Makefile.am): Remove rule for iconv.h.
68226 2010-03-06  Bruno Haible  <bruno@clisp.org>
68228         More consistent naming of *.m4 files.
68229         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
68230         * modules/wctype (Files): Update.
68232         More consistent naming of *.m4 files.
68233         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
68234         * modules/wchar (Files): Update.
68236 2010-03-06  Jim Meyering  <meyering@redhat.com>
68238         euidaccess: relax license to LGPLv2+
68239         * modules/euidaccess (License): Relax to LGPLv2+.
68241 2010-03-06  Bruno Haible  <bruno@clisp.org>
68243         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
68244         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
68245         (Makefile.am): Augment lib_SOURCES instead.
68247 2010-03-04  Jim Meyering  <meyering@redhat.com>
68249         utime: remove obsolete module
68250         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
68251         unnecessary for years, and has been marked as obsolete for 10 months.
68252         * modules/utime: Remove file.
68253         * lib/utime.c: Remove file.
68254         * m4/utime.m4: Remove file.
68255         * m4/utimes-null.m4: Remove file.
68256         * doc/posix-functions/utime.texi (utime): Remove reference to
68257         the module.  Move the sole "fixed by gnulib" item into the
68258         "problems not fixed by Gnulib" list.
68259         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
68261 2010-03-05  Simon Josefsson  <simon@josefsson.org>
68263         * modules/exit (License): Relax license to LGPLv2+.
68264         (Status): Mark as obsolete.
68265         * NEWS: Mention deprecated 'exit' module.
68266         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
68267         of now obsolete 'exit'.
68269 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68271         fts-lgpl: remove unused module
68272         * modules/fts-lgpl: Remove.
68273         * MODULES.html.sh (func_all_modules): Adjust.
68274         * check-module (find_included_lib_files): Adjust.
68275         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
68277 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
68279         copy-acl: enhance Solaris ACL error handling
68280         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
68281         * lib/set-mode-acl.c (qset_acl): Likewise.
68283 2010-03-02  Bruno Haible  <bruno@clisp.org>
68285         spawn: Don't override the system defined values on FreeBSD 8.
68286         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
68287         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
68288         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
68289         if HAVE_POSIX_SPAWN is 1.
68290         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
68292 2010-03-01  Bruno Haible  <bruno@clisp.org>
68294         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
68295         regarding Automake.
68297 2010-02-25  Bruno Haible  <bruno@clisp.org>
68299         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
68300         * gnulib-tool: Define 'echo' as a function only before the ksh alias
68301         setting, not afterwards.
68302         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
68304 2010-02-24  Eric Blake  <eblake@redhat.com>
68306         bootstrap, git-version-gen: use timestamp
68307         * build-aux/git-version-gen (scriptversion): Force UTC.
68308         * build-aux/bootstrap (scriptversion): New variable.
68310         bootstrap: allow older git
68311         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
68312         older than 1.6.4.  Requested by the libvirt project.
68314 2010-02-23  Eric Blake  <eblake@redhat.com>
68316         warn-on-use: work with old autoconf
68317         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
68318         AS_VAR semantics of autoconf 2.60.
68319         Reported by Bruno Haible.
68321         bootstrap: improve some comments
68322         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
68323         clarification comments.
68325         gettimeofday: provide correct function
68326         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
68327         when replacement is declared, otherwise provide gettimeofday.
68328         Reported by Michael Goffioul.
68330 2010-02-23  Jim Meyering  <meyering@redhat.com>
68332         lib-ignore: relax license to "unlimited", not LGPLv2+
68333         * modules/lib-ignore (License): Relax to "unlimited".
68335 2010-02-23  Jim Meyering  <meyering@redhat.com>
68337         lib-ignore: relax license to LGPLv2+
68338         * modules/lib-ignore (License): Relax to LGPLv2+.
68340 2010-02-22  Eric Blake  <eblake@redhat.com>
68342         lseek: avoid bash 3.2 broken pipe bug
68343         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
68344         warning from bash 3.2.
68345         Reported by Ben Pfaff, with analysis from Bruno Haible.
68347         bootstrap: support non-FSF copyright holder
68348         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
68349         bootstrap.conf override of COPYRIGHT_HOLDER.
68350         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
68352         bootstrap: interoperate with gettext 0.14.1
68353         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
68355         bootstrap: allow for alternate submodule location
68356         * build-aux/bootstrap (gnulib_path): New variable; use instead of
68357         hardcoding submodule location.
68358         (gnulib_mk): Allow direct use of Makefile.am.
68360         bootstrap: use GNULIB_SRCDIR to reduce disk usage
68361         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
68362         rather than reconfiguring where the submodule points.
68364         gettimeofday: restore support for platforms that lack function
68365         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
68366         replacement if function is missing.
68367         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
68368         * modules/sys_time (Makefile.am): Substitute it.
68369         * lib/sys_time.in.h (gettimeofday): Check it.
68370         Reported by Michael Goffioul.
68372 2010-02-21  Bruno Haible  <bruno@clisp.org>
68374         * lib/stdio.in.h (obstack_printf): Fix typo.
68376 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
68378         vc-list-files: use bzr ls's -R option
68379         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
68380         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
68382 2010-02-21  Jim Meyering  <meyering@redhat.com>
68384         init.sh: fix EXEEXT shims to work also for names like test-prog
68385         * tests/init.sh: Re-exec a better shell, when needed.
68386         If the current shell lacks support for posix $(...), an init.sh-using
68387         test will now try to find a shell that supports that.  If EXEEXT is
68388         nonempty, we also require support for hyphen-in-alias-name and shell
68389         substitutions like ${var#glob}.  Failure to find such a shell results
68390         in a skipped test.
68392 2010-02-21  Bruno Haible  <bruno@clisp.org>
68394         Really work around "broken pipe" error message from bash 3.2.
68395         * gnulib-tool (func_reset_sigpipe): Remove function.
68396         (echo): In bash 3.2, define to a function that uses printf.
68397         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
68399 2010-02-20  Bruno Haible  <bruno@clisp.org>
68401         Restore support for automake 1.9.6 with autoconf 2.61.
68402         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
68403         Reported by James Youngman <jay@gnu.org>.
68405 2010-02-20  Bruno Haible  <bruno@clisp.org>
68407         Improve *printf warning condition.
68408         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
68409         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
68410         and the function is overridden due to SIGPIPE emulation.
68412 2010-02-20  Bruno Haible  <bruno@clisp.org>
68414         * lib/stdio.in.h: Tweak comments.
68416 2010-02-19  Bruno Haible  <bruno@clisp.org>
68418         Make it easier to find modules. New gnulib-tool option '--find'.
68419         * gnulib-tool: New option --find.
68420         (func_usage): Document it.
68421         (func_sanitize_modulelist): New function, extracted from
68422         func_all_modules.
68423         (func_all_modules): Invoke it.
68424         * doc/gnulib-tool.texi (Which modules?): New node.
68426 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
68428         * lib/sys_select.in.h: Provide select replacement even if
68429         sys/select.h exists on a system, for Interix.
68431 2010-02-18  Jim Meyering  <meyering@redhat.com>
68433         init.sh: don't use $(...) just yet
68434         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
68435         to accommodate e.g., Solaris' /bin/sh.
68437 2010-02-17  Bruno Haible  <bruno@clisp.org>
68439         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
68440         Reported by Ludovic Courtès <ludo@gnu.org>.
68442 2010-02-16  Simon Josefsson  <simon@josefsson.org>
68444         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
68445         linking with -lintl.
68447 2010-02-17  Simon Josefsson  <simon@josefsson.org>
68449         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
68450         if not provided by the system's netdb.h.  Reported by
68451         ludo@gnu.org (Ludovic Courtès).
68453 2010-02-15  Jim Meyering  <meyering@redhat.com>
68455         init.sh: improve portability and efficiency
68456         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
68457         "dummy" in a for loop.
68458         Use '!', not '^' to select the complement of a character set used
68459         in a "case" statement.
68460         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
68461         Suggestions from Eric Blake.
68463         init.sh: automatically accommodate programs with the .exe suffix
68464         Automatically arrange for an invocation of "prog" to execute the
68465         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
68466         may use the simpler "prog", yet still work when built on a system
68467         that requires specifying the added suffix.
68468         Do this by constructing a function named "prog" that invokes
68469         "prog.exe" for each .exe file in selected directories.
68470         * tests/init.sh (find_exe_basenames_): New function.
68471         (create_exe_shim_functions_): New function.
68472         (path_prepend_): Use it.
68474         maint.mk: mark syntax-check sc_*.m rules as .PHONY
68475         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
68476         "make -t syntax-check" doesn't create a ton of sc_*.m files.
68478 2010-02-14  Jim Meyering  <meyering@redhat.com>
68480         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
68481         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
68482         (sc_prohibit_hash_pjw_without_use): New rule.
68484         maint.mk: allow the default upload destination dir to be overridden
68485         * top/maint.mk (upload_dest_dir_): Define with a default that
68486         preserves the status quo.
68487         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
68488         Reported by Peter Simons.
68490         maint.mk: prohibit inclusion of "hash.h" without_use
68491         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
68493 2010-02-10  Jim Meyering  <meyering@redhat.com>
68495         maint.mk: prohibit inclusion of "ignore-value.h" without_use
68496         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
68498 2010-02-09  Eric Blake  <ebb9@byu.net>
68499         and Bruno Haible  <bruno@clisp.org>
68501         obstack-printf-posix: ensure declaration
68502         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
68503         extracted from gl_FUNC_OBSTACK_PRINTF.
68504         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
68505         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
68506         Likewise.
68507         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
68508         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
68509         0.
68511 2010-02-08  Bruno Haible  <bruno@clisp.org>
68513         gnulib-tool: Fix typo in 2010-02-07 commit.
68514         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
68515         Reported by Eric Blake.
68517 2010-02-07  Bruno Haible  <bruno@clisp.org>
68519         gnulib-tool: Fix up caching patches.
68520         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
68521         option --no-cache. Use associative arrays when supported by the shell.
68522         (sed_comments): New variable.
68523         (modcache): Renamed from do_cache.
68524         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
68525         abbreviate unnecessarily.
68526         (have_associative): New variable.
68527         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
68528         way also for ksh and zsh.
68529         (func_init_sed_convert_to_cache_statements): New function, extracted
68530         from func_cache_lookup_module. Add support for associative arrays.
68531         Don't set the c_MODULE_cached variable here. Ignore all lines before
68532         the first field header. Remove only the final newline, not all trailing
68533         newlines. Support empty fields correctly. Limit the use of 'eval' to
68534         assignments.
68535         (func_get_description, func_get_status, func_get_notice,
68536         func_get_applicability, func_get_filelist, func_get_dependencies,
68537         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
68538         func_get_automake_snippet, func_get_include_directive,
68539         func_get_link_directive, func_get_license, func_get_maintainer):
68540         Update documentation. List the unoptimized code first. Add support for
68541         associative arrays. Limit the use of 'eval' to assignments.
68542         (func_get_applicability): Undo stylistic pessimisations.
68543         (func_get_automake_snippet, func_get_include_directive): Reduce code
68544         duplication.
68545         (func_modules_transitive_closure, func_modules_add_dummy,
68546         func_modules_notice, func_modules_to_filelist, func_add_file,
68547         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
68548         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
68549         func_create_testdir, func_create_megatestdir): Update documentation.
68551 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68553         * gnulib-tool (func_cache_lookup_module): Store the module name
68554         belonging to the cache variable; error out if two different
68555         module names map to the same cache variable name.
68557 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68559         gnulib-tool: Make caching optional.
68560         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
68561         Update matching short versions of --no-changelog.
68562         (func_usage): Update.
68563         (sed_extract_cache_prog): Renamed from ...
68564         (sed_extract_prog): ... this; revert to old extraction script.
68565         (func_get_description, func_get_status)
68566         (func_get_notice, func_get_applicability, func_get_filelist)
68567         (func_get_dependencies, func_get_autoconf_early_snippet)
68568         (func_get_autoconf_snippet, func_get_automake_snippet)
68569         (func_get_include_directive, func_get_link_directive)
68570         (func_get_license, func_get_maintainer): If $do_cache is false,
68571         use old, non-caching extraction scripts.
68572         Suggestion by Bruno Haible.
68574 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68576         gnulib-tool: cache module metainformation.
68577         * gnulib-tool (sed_extract_prog): Match newline before each
68578         header, and rewrite header to a shell variable suffix.
68579         (func_cache_var, func_cache_lookup_module): New functions,
68580         to turn a module name into a cache variable prefix, and to
68581         look up and cache module metainformation.
68582         (func_get_description, func_get_status)
68583         (func_get_notice, func_get_applicability, func_get_filelist)
68584         (func_get_dependencies, func_get_autoconf_early_snippet)
68585         (func_get_autoconf_snippet, func_get_automake_snippet)
68586         (func_get_include_directive, func_get_link_directive)
68587         (func_get_license, func_get_maintainer): Use
68588         func_cache_lookup_module.
68590 2010-02-07  Bruno Haible  <bruno@clisp.org>
68592         fnctl: Fix missing dependency.
68593         * modules/fcntl (Depends-on): Add getdtablesize.
68594         Reported by John W. Eaton <jwe@gnu.org>.
68596 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
68598         Argp: fix recognition of short alias options.
68600         * lib/argp-parse.c (convert_options): Fix improper use of
68601         `|' between character values.
68602         * tests/test-argp.c (group1_option): New alias option
68603         --read (-r).
68604         (group1_parser): Special handling for 'r'.
68605         (test15): New test case.
68606         (test_fun): Add test15.
68607         * tests/test-argp-2.sh: Update expected --help and --usage
68608         outputs.
68610 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
68612         * tests/test-argp.c: Fix indentation.
68614 2010-02-04  Eric Blake  <ebb9@byu.net>
68616         gettimeofday: expose type of second argument
68617         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
68618         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
68619         * tests/test-gettimeofday.c: Use it to silence warning.
68620         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
68621         the issue.
68623 2010-02-03  Jim Meyering  <meyering@redhat.com>
68625         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
68626         * lib/regcomp.c (TYPE_SIGNED): Define.
68627         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
68629         regcomp.c: avoid a new -Wshadow warning
68630         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
68632 2010-02-01  Jim Meyering  <meyering@redhat.com>
68634         removing useless parentheses in cpp #define directives
68635         For motivation, see commit c0221df4, "define STREQ(a,b)
68636         consistently, removing useless parentheses"
68637         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
68638         * lib/mountlist.c (MNT_IGNORE): Likewise.
68639         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
68641 2010-02-01  Eric Blake  <ebb9@byu.net>
68643         sys_time: use link-warning
68644         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
68645         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
68646         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
68647         * modules/sys_time (Depends-on): Add warn-on-use.
68648         (Makefile.am): Always build replacement.
68649         (configure.ac): Update substitutions.
68650         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
68651         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
68652         bother with SYS_TIME_H.
68653         * modules/gettimeofday (configure.ac): Declare indicator.
68654         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
68655         in use.
68657         closein-tests: silence compiler warning
68658         * tests/test-closein.c (main): Ignore fread result.
68659         * modules/closein-tests (Depends-on): Add ignore-value.
68661         tests: silence warning about system return
68662         * tests/test-areadlink-with-size.c (main): Ignore system result.
68663         * tests/test-areadlink.c (main): Likewise.
68664         * tests/test-areadlinkat-with-size.c (main): Likewise.
68665         * tests/test-areadlinkat.c (main): Likewise.
68666         * tests/test-canonicalize-lgpl.c (main): Likewise.
68667         * tests/test-canonicalize.c (main): Likewise.
68668         * tests/test-chown.c (main): Likewise.
68669         * tests/test-fchownat.c (main): Likewise.
68670         * tests/test-fdutimensat.c (main): Likewise.
68671         * tests/test-fstatat.c (main): Likewise.
68672         * tests/test-futimens.c (main): Likewise.
68673         * tests/test-lchown.c (main): Likewise.
68674         * tests/test-link.c (main): Likewise.
68675         * tests/test-linkat.c (main): Likewise.
68676         * tests/test-lstat.c (main): Likewise.
68677         * tests/test-mkdir.c (main): Likewise.
68678         * tests/test-mkdirat.c (main): Likewise.
68679         * tests/test-mkfifo.c (main): Likewise.
68680         * tests/test-mkfifoat.c (main): Likewise.
68681         * tests/test-mknod.c (main): Likewise.
68682         * tests/test-readlink.c (main): Likewise.
68683         * tests/test-remove.c (main): Likewise.
68684         * tests/test-rename.c (main): Likewise.
68685         * tests/test-renameat.c (main): Likewise.
68686         * tests/test-rmdir.c (main): Likewise.
68687         * tests/test-symlink.c (main): Likewise.
68688         * tests/test-symlinkat.c (main): Likewise.
68689         * tests/test-unlink.c (main): Likewise.
68690         * tests/test-unlinkat.c (main): Likewise.
68691         * tests/test-utimens.c (main): Likewise.
68692         * tests/test-utimensat.c (main): Likewise.
68693         * modules/areadlink-tests (Depends-on): Add ignore-value.
68694         * modules/areadlink-with-size-tests (Depends-on): Likewise.
68695         * modules/areadlinkat-tests (Depends-on): Likewise.
68696         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
68697         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
68698         * modules/canonicalize-tests (Depends-on): Likewise.
68699         * modules/chown-tests (Depends-on): Likewise.
68700         * modules/fdutimensat-tests (Depends-on): Likewise.
68701         * modules/futimens-tests (Depends-on): Likewise.
68702         * modules/lchown-tests (Depends-on): Likewise.
68703         * modules/link-tests (Depends-on): Likewise.
68704         * modules/linkat-tests (Depends-on): Likewise.
68705         * modules/lstat-tests (Depends-on): Likewise.
68706         * modules/mkdir-tests (Depends-on): Likewise.
68707         * modules/mkfifo-tests (Depends-on): Likewise.
68708         * modules/mkfifoat-tests (Depends-on): Likewise.
68709         * modules/mknod-tests (Depends-on): Likewise.
68710         * modules/openat-tests (Depends-on): Likewise.
68711         * modules/readlink-tests (Depends-on): Likewise.
68712         * modules/remove-tests (Depends-on): Likewise.
68713         * modules/rename-tests (Depends-on): Likewise.
68714         * modules/renameat-tests (Depends-on): Likewise.
68715         * modules/rmdir-tests (Depends-on): Likewise.
68716         * modules/symlink-tests (Depends-on): Likewise.
68717         * modules/symlinkat-tests (Depends-on): Likewise.
68718         * modules/unlink-tests (Depends-on): Likewise.
68719         * modules/utimens-tests (Depends-on): Likewise.
68720         * modules/utimensat-tests (Depends-on): Likewise.
68722 2010-01-31  Bruno Haible  <bruno@clisp.org>
68724         Perform the same test for many <math.h> functions.
68725         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
68726         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
68727         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
68728         of gl_MATHFUNC.
68729         * modules/acos (configure.ac): Likewise.
68730         * modules/asin (configure.ac): Likewise.
68731         * modules/atan (configure.ac): Likewise.
68732         * modules/atan2 (configure.ac): Likewise.
68733         * modules/cbrt (configure.ac): Likewise.
68734         * modules/copysign (configure.ac): Likewise.
68735         * modules/cos (configure.ac): Likewise.
68736         * modules/cosh (configure.ac): Likewise.
68737         * modules/erf (configure.ac): Likewise.
68738         * modules/erfc (configure.ac): Likewise.
68739         * modules/exp (configure.ac): Likewise.
68740         * modules/fmod (configure.ac): Likewise.
68741         * modules/hypot (configure.ac): Likewise.
68742         * modules/j0 (configure.ac): Likewise.
68743         * modules/j1 (configure.ac): Likewise.
68744         * modules/jn (configure.ac): Likewise.
68745         * modules/lgamma (configure.ac): Likewise.
68746         * modules/log (configure.ac): Likewise.
68747         * modules/log10 (configure.ac): Likewise.
68748         * modules/log1p (configure.ac): Likewise.
68749         * modules/pow (configure.ac): Likewise.
68750         * modules/remainder (configure.ac): Likewise.
68751         * modules/sin (configure.ac): Likewise.
68752         * modules/sinh (configure.ac): Likewise.
68753         * modules/tan (configure.ac): Likewise.
68754         * modules/tanh (configure.ac): Likewise.
68755         * modules/y0 (configure.ac): Likewise.
68756         * modules/y1 (configure.ac): Likewise.
68757         * modules/yn (configure.ac): Likewise.
68758         Suggested by Paolo Bonzini.
68760 2010-01-31  Bruno Haible  <bruno@clisp.org>
68762         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
68764 2010-01-31  Bruno Haible  <bruno@clisp.org>
68766         Work around getdelim() bug on FreeBSD 8.0.
68767         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
68768         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
68769         not work.
68770         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
68771         is 1.
68772         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
68773         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
68774         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
68775         a non-zero size.
68776         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
68778 2010-01-31  Bruno Haible  <bruno@clisp.org>
68780         Work around getline() bug on FreeBSD 8.0.
68781         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
68782         and a non-zero size.
68783         * tests/test-getline.c (main): Likewise.
68784         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
68785         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
68787 2010-01-28  Eric Blake  <ebb9@byu.net>
68789         regex: fix build failure
68790         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
68791         platforms.
68793 2010-01-28  Jim Meyering  <meyering@redhat.com>
68795         regex: do not ignore memory allocation failure
68796         * lib/regex_internal.c (create_cd_newstate): Detect
68797         re_node_set_init_copy failure.   Extracted from glibc commit
68798         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
68800         regex: sync more white-space changes from libc
68801         * lib/regex_internal.c: White-space only changes.
68802         * lib/regexec.c: Likewise.
68804         regex: add many uses of __attribute_warn_unused_result__
68805         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
68806         * lib/regexec.c: Likewise.
68807         Extracted from a messy glibc commit.
68809         regcomp.c: spelling and merge-artifact from glibc
68810         * lib/regcomp.c: Merge remainder of glibc's
68811         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
68813         regcomp.c: sync white-space changes from glibc
68814         * lib/regcomp.c: Merge to accommodate white space
68815         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
68817         regcomp.c: do not ignore internal return values
68818         * lib/regcomp.c: Do not ignore internal return values.
68819         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
68820         but without its white-space changes and spelling fixes.
68822         regex_internal.h: define __attribute_warn_unused_result__
68823         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
68825         maint: add a syntax-check rule to check for vulnerable Makefile.in
68826         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
68828 2010-01-27  Jim Meyering  <meyering@redhat.com>
68830         ncftpput-ftp: clean up spaces
68831         * build-aux/ncftpput-ftp: Make Copyright line consistent.
68832         Remove trailing blanks.
68834 2010-01-27  Simon Josefsson  <simon@josefsson.org>
68836         * build-aux/git-version-gen: Fix copyright statement.
68837         * build-aux/gnupload: Likewise.
68838         * tests/test-arcfour.c: Likewise.
68839         * tests/test-arctwo.c: Likewise.
68840         * tests/test-count-one-bits.c: Likewise.
68841         * tests/test-crc.c: Likewise.
68842         * tests/test-des.c: Likewise.
68843         * tests/test-gc-arcfour.c: Likewise.
68844         * tests/test-gc-arctwo.c: Likewise.
68845         * tests/test-gc-des.c: Likewise.
68846         * tests/test-gc-hmac-md5.c: Likewise.
68847         * tests/test-gc-hmac-sha1.c: Likewise.
68848         * tests/test-gc-md2.c: Likewise.
68849         * tests/test-gc-md4.c: Likewise.
68850         * tests/test-gc-md5.c: Likewise.
68851         * tests/test-gc-pbkdf2-sha1.c: Likewise.
68852         * tests/test-gc-rijndael.c: Likewise.
68853         * tests/test-gc-sha1.c: Likewise.
68854         * tests/test-gc.c: Likewise.
68855         * tests/test-gethostname.c: Likewise.
68856         * tests/test-gettimeofday.c: Likewise.
68857         * tests/test-hash.c: Likewise.
68858         * tests/test-hmac-md5.c: Likewise.
68859         * tests/test-hmac-sha1.c: Likewise.
68860         * tests/test-md2.c: Likewise.
68861         * tests/test-md4.c: Likewise.
68862         * tests/test-md5.c: Likewise.
68863         * tests/test-memchr.c: Likewise.
68864         * tests/test-memchr2.c: Likewise.
68865         * tests/test-memcmp.c: Likewise.
68866         * tests/test-memmem.c: Likewise.
68867         * tests/test-memrchr.c: Likewise.
68868         * tests/test-rawmemchr.c: Likewise.
68869         * tests/test-read-file.c: Likewise.
68870         * tests/test-rijndael.c: Likewise.
68871         * tests/test-sockets.c: Likewise.
68872         * tests/test-strchrnul.c: Likewise.
68873         * tests/test-strstr.c: Likewise.
68874         * tests/test-strtod.c: Likewise.
68875         * build-aux/ncftpput-ftp: Likewise.
68877 2010-01-26  Eric Blake  <ebb9@byu.net>
68879         ignore-value: update recommended header name
68880         * modules/ignore-value (Include): Only use <> for headers that
68881         exist in glibc.
68883 2010-01-26  Jim Meyering  <meyering@redhat.com>
68885         test-userspec.c: avoid compiler warnings
68886         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
68887         and "initialization discards qualifiers..." warnings.
68888         Put the first "uid" in its own scope, and make char* members "const".
68890 2010-01-25  Bruno Haible  <bruno@clisp.org>
68892         gnulib-tool: Make warning diagnostics consistent.
68893         * gnulib-tool (func_warning): New function.
68894         Use it everywhere where gnulib-tool produces output to stderr and it is
68895         not a fatal error.
68897 2010-01-25  Bruno Haible  <bruno@clisp.org>
68899         Fix test dependencies.
68900         * modules/xstrtol-tests (Depends-on): Add inttypes.
68901         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
68903 2010-01-25  Pádraig Brady  <P@draigBrady.com>
68905         syntax-check: detect incorrect boolean macro values in config.h
68906         * modules/maintainer-makefile (configure.ac): Parameterize the location
68907         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
68908         The logic is from Eric Blake and the location indicated by Jim Meyering.
68909         Note the more natural CONFIG_HEADER name is prohibited by automake
68910         for backwards compatibility reasons.
68911         * top/maint.mk (sc_Wundef_boolean): New rule.
68913 2010-01-25  Jim Meyering  <meyering@redhat.com>
68915         bootstrap: detect MacOS 10.6's shasum, too
68916         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
68917         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
68919 2010-01-23  Jim Meyering  <meyering@redhat.com>
68921         xstrtoll: new module
68922         * modules/xstrtoll: New file.
68923         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
68924         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
68925         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
68926         ./configure fails if you use this module and lack "long long".
68927         * modules/xstrtoll-tests: New module.
68928         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
68929         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
68930         new init.sh-based test framework.
68932 2010-01-24  Bruno Haible  <bruno@clisp.org>
68934         Tests for module 'yn'.
68935         * modules/yn-tests: New file.
68936         * tests/test-yn.c: New file.
68938         Tests for module 'y1'.
68939         * modules/y1-tests: New file.
68940         * tests/test-y1.c: New file.
68942         Tests for module 'y0'.
68943         * modules/y0-tests: New file.
68944         * tests/test-y0.c: New file.
68946         Tests for module 'tanh'.
68947         * modules/tanh-tests: New file.
68948         * tests/test-tanh.c: New file.
68950         Tests for module 'tan'.
68951         * modules/tan-tests: New file.
68952         * tests/test-tan.c: New file.
68954         Tests for module 'sqrt'.
68955         * modules/sqrt-tests: New file.
68956         * tests/test-sqrt.c: New file.
68958         Tests for module 'sinh'.
68959         * modules/sinh-tests: New file.
68960         * tests/test-sinh.c: New file.
68962         Tests for module 'sin'.
68963         * modules/sin-tests: New file.
68964         * tests/test-sin.c: New file.
68966         Tests for module 'rint'.
68967         * modules/rint-tests: New file.
68968         * tests/test-rint.c: New file.
68970         Tests for module 'remainder'.
68971         * modules/remainder-tests: New file.
68972         * tests/test-remainder.c: New file.
68974         Tests for module 'pow'.
68975         * modules/pow-tests: New file.
68976         * tests/test-pow.c: New file.
68978         Tests for module 'nextafter'.
68979         * modules/nextafter-tests: New file.
68980         * tests/test-nextafter.c: New file.
68982         Tests for module 'modf'.
68983         * modules/modf-tests: New file.
68984         * tests/test-modf.c: New file.
68986         Tests for module 'logb'.
68987         * modules/logb-tests: New file.
68988         * tests/test-logb.c: New file.
68990         Tests for module 'log1p'.
68991         * modules/log1p-tests: New file.
68992         * tests/test-log1p.c: New file.
68994         Tests for module 'log10'.
68995         * modules/log10-tests: New file.
68996         * tests/test-log10.c: New file.
68998         Tests for module 'log'.
68999         * modules/log-tests: New file.
69000         * tests/test-log.c: New file.
69002         Tests for module 'lgamma'.
69003         * modules/lgamma-tests: New file.
69004         * tests/test-lgamma.c: New file.
69006         Tests for module 'ldexp'.
69007         * modules/ldexp-tests: New file.
69008         * tests/test-ldexp.c: New file.
69010         Tests for module 'jn'.
69011         * modules/jn-tests: New file.
69012         * tests/test-jn.c: New file.
69014         Tests for module 'j1'.
69015         * modules/j1-tests: New file.
69016         * tests/test-j1.c: New file.
69018         Tests for module 'j0'.
69019         * modules/j0-tests: New file.
69020         * tests/test-j0.c: New file.
69022         Tests for module 'hypot'.
69023         * modules/hypot-tests: New file.
69024         * tests/test-hypot.c: New file.
69026         Tests for module 'fmod'.
69027         * modules/fmod-tests: New file.
69028         * tests/test-fmod.c: New file.
69030         Tests for module 'fabs'.
69031         * modules/fabs-tests: New file.
69032         * tests/test-fabs.c: New file.
69034         Tests for module 'exp'.
69035         * modules/exp-tests: New file.
69036         * tests/test-exp.c: New file.
69038         Tests for module 'erfc'.
69039         * modules/erfc-tests: New file.
69040         * tests/test-erfc.c: New file.
69042         Tests for module 'erf'.
69043         * modules/erf-tests: New file.
69044         * tests/test-erf.c: New file.
69046         Tests for module 'cosh'.
69047         * modules/cosh-tests: New file.
69048         * tests/test-cosh.c: New file.
69050         Tests for module 'cos'.
69051         * modules/cos-tests: New file.
69052         * tests/test-cos.c: New file.
69054         Tests for module 'copysign'.
69055         * modules/copysign-tests: New file.
69056         * tests/test-copysign.c: New file.
69058         Tests for module 'cbrt'.
69059         * modules/cbrt-tests: New file.
69060         * tests/test-cbrt.c: New file.
69062         Tests for module 'atan2'.
69063         * modules/atan2-tests: New file.
69064         * tests/test-atan2.c: New file.
69066         Tests for module 'atan'.
69067         * modules/atan-tests: New file.
69068         * tests/test-atan.c: New file.
69070         Tests for module 'asin'.
69071         * modules/asin-tests: New file.
69072         * tests/test-asin.c: New file.
69074         Tests for module 'acos'.
69075         * modules/acos-tests: New file.
69076         * tests/test-acos.c: New file.
69078 2010-01-24  Bruno Haible  <bruno@clisp.org>
69080         Fix tests for common <math.h> functions.
69081         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
69082         code snippet that references the function pointer, rather than merely
69083         calling the function. Substitute the FUNC_LIBM variable.
69084         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
69085         * modules/acos (configure.ac): Likewise.
69086         * modules/asin (configure.ac): Likewise.
69087         * modules/atan (configure.ac): Likewise.
69088         * modules/atan2 (configure.ac): Likewise.
69089         * modules/cbrt (configure.ac): Likewise.
69090         * modules/copysign (configure.ac): Likewise.
69091         * modules/cos (configure.ac): Likewise.
69092         * modules/cosh (configure.ac): Likewise.
69093         * modules/erf (configure.ac): Likewise.
69094         * modules/erfc (configure.ac): Likewise.
69095         * modules/exp (configure.ac): Likewise.
69096         * modules/fabs (configure.ac): Likewise.
69097         * modules/fmod (configure.ac): Likewise.
69098         * modules/hypot (configure.ac): Likewise.
69099         * modules/j0 (configure.ac): Likewise.
69100         * modules/j1 (configure.ac): Likewise.
69101         * modules/jn (configure.ac): Likewise.
69102         * modules/ldexp (configure.ac): Likewise.
69103         * modules/lgamma (configure.ac): Likewise.
69104         * modules/log (configure.ac): Likewise.
69105         * modules/log10 (configure.ac): Likewise.
69106         * modules/log1p (configure.ac): Likewise.
69107         * modules/logb (configure.ac): Likewise.
69108         * modules/modf (configure.ac): Likewise.
69109         * modules/nextafter (configure.ac): Likewise.
69110         * modules/pow (configure.ac): Likewise.
69111         * modules/remainder (configure.ac): Likewise.
69112         * modules/rint (configure.ac): Likewise.
69113         * modules/sin (configure.ac): Likewise.
69114         * modules/sinh (configure.ac): Likewise.
69115         * modules/tan (configure.ac): Likewise.
69116         * modules/tanh (configure.ac): Likewise.
69117         * modules/y0 (configure.ac): Likewise.
69118         * modules/y1 (configure.ac): Likewise.
69119         * modules/yn (configure.ac): Likewise.
69121 2010-01-24  Bruno Haible  <bruno@clisp.org>
69123         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
69124         * tests/test-acosl.c (x): New variable.
69125         (main): Store argument in x and fetch it from x.
69126         * tests/test-asinl.c (x): New variable.
69127         (main): Store argument in x and fetch it from x.
69128         * tests/test-atanl.c (x): New variable.
69129         (main): Store argument in x and fetch it from x.
69130         * tests/test-cosl.c (x): New variable.
69131         (main): Store argument in x and fetch it from x.
69132         * tests/test-expl.c (x): New variable.
69133         (main): Store argument in x and fetch it from x.
69134         * tests/test-logl.c (x): New variable.
69135         (main): Store argument in x and fetch it from x.
69136         * tests/test-sinl.c (x): New variable.
69137         (main): Store argument in x and fetch it from x.
69138         * tests/test-sqrtl.c (x): New variable.
69139         (main): Store argument in x and fetch it from x.
69140         * tests/test-tanl.c (x): New variable.
69141         (main): Store argument in x and fetch it from x.
69143 2010-01-24  Bruno Haible  <bruno@clisp.org>
69145         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
69146         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
69147         assignments to the initial TESTS_ENVIRONMENT.
69148         * doc/gnulib.texi (Unit test modules): Document it.
69149         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
69150         TESTS_ENVIRONMENT.
69151         * modules/btowc-tests (Makefile.am): Likewise.
69152         * modules/c-stack-tests (Makefile.am): Likewise.
69153         * modules/c-strcase-tests (Makefile.am): Likewise.
69154         * modules/copy-file-tests (Makefile.am): Likewise.
69155         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
69156         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
69157         * modules/mbrtowc-tests (Makefile.am): Likewise.
69158         * modules/mbscasecmp-tests (Makefile.am): Likewise.
69159         * modules/mbscasestr-tests (Makefile.am): Likewise.
69160         * modules/mbschr-tests (Makefile.am): Likewise.
69161         * modules/mbscspn-tests (Makefile.am): Likewise.
69162         * modules/mbsinit-tests (Makefile.am): Likewise.
69163         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
69164         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
69165         * modules/mbspbrk-tests (Makefile.am): Likewise.
69166         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
69167         * modules/mbsrchr-tests (Makefile.am): Likewise.
69168         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
69169         * modules/mbsspn-tests (Makefile.am): Likewise.
69170         * modules/mbsstr-tests (Makefile.am): Likewise.
69171         * modules/nl_langinfo-tests (Makefile.am): Likewise.
69172         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
69173         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
69174         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
69175         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
69176         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
69177         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
69178         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
69179         * modules/wcrtomb-tests (Makefile.am): Likewise.
69180         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
69181         * modules/wcsrtombs-tests (Makefile.am): Likewise.
69182         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
69183         assignments from TESTS_ENVIRONMENT.
69184         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
69185         augmentation.
69186         * modules/argp-version-etc-tests (Makefile.am): Likewise.
69187         * modules/atexit-tests (Makefile.am): Likewise.
69188         * modules/binary-io-tests (Makefile.am): Likewise.
69189         * modules/closein-tests (Makefile.am): Likewise.
69190         * modules/dprintf-posix-tests (Makefile.am): Likewise.
69191         * modules/exclude-tests (Makefile.am): Likewise.
69192         * modules/fflush-tests (Makefile.am): Likewise.
69193         * modules/fpending-tests (Makefile.am): Likewise.
69194         * modules/fprintf-posix-tests (Makefile.am): Likewise.
69195         * modules/freadahead-tests (Makefile.am): Likewise.
69196         * modules/freadptr-tests (Makefile.am): Likewise.
69197         * modules/freadseek-tests (Makefile.am): Likewise.
69198         * modules/fseek-tests (Makefile.am): Likewise.
69199         * modules/fseeko-tests (Makefile.am): Likewise.
69200         * modules/ftell-tests (Makefile.am): Likewise.
69201         * modules/ftello-tests (Makefile.am): Likewise.
69202         * modules/idpriv-drop-tests (Makefile.am): Likewise.
69203         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
69204         * modules/lseek-tests (Makefile.am): Likewise.
69205         * modules/parse-duration-tests (Makefile.am): Likewise.
69206         * modules/perror-tests (Makefile.am): Likewise.
69207         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
69208         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
69209         * modules/pipe-tests (Makefile.am): Likewise.
69210         * modules/pread-tests (Makefile.am): Likewise.
69211         * modules/printf-posix-tests (Makefile.am): Likewise.
69212         * modules/select-tests (Makefile.am): Likewise.
69213         * modules/sigpipe-tests (Makefile.am): Likewise.
69214         * modules/tsearch-tests (Makefile.am): Likewise.
69215         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
69216         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
69217         * modules/uniname/uniname-tests (Makefile.am): Likewise.
69218         * modules/uniwidth/width-tests (Makefile.am): Likewise.
69219         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
69220         * modules/version-etc-tests (Makefile.am): Likewise.
69221         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
69222         * modules/vprintf-posix-tests (Makefile.am): Likewise.
69223         * modules/xalloc-die-tests (Makefile.am): Likewise.
69224         * modules/xprintf-posix-tests (Makefile.am): Likewise.
69225         * modules/xstrtoimax-tests (Makefile.am): Likewise.
69226         * modules/xstrtol-tests (Makefile.am): Likewise.
69227         * modules/xstrtoumax-tests (Makefile.am): Likewise.
69228         * modules/yesno-tests (Makefile.am): Likewise.
69229         Suggested by Jim Meyering.
69231 2010-01-24  Bruno Haible  <bruno@clisp.org>
69233         More documentation.
69234         * doc/gnulib.texi (Writing modules): New chapter.
69235         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
69236         the new chapter.
69238 2010-01-24  Jim Meyering  <meyering@redhat.com>
69240         maint.mk: do not prepend "./" after filtering
69241         * top/maint.mk (_prepend_srcdir_prefix): New variable
69242         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
69243         "./" when $(srcdir) is ".".
69245         define STREQ(a,b) consistently, removing useless parentheses
69246         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
69247         since the only risk is that "a" or "b" contains an unparenthesized
69248         comma, but if either did that, STREQ would have 3 or more arguments.
69249         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
69250         * lib/fts.c (STREQ): Remove unnecessary parentheses.
69251         * lib/hash-triple.c (STREQ): Likewise.
69252         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
69253         * lib/getugroups.c (STREQ): Likewise.
69255 2010-01-23  Jim Meyering  <meyering@redhat.com>
69257         maint.mk: fix syntax-check in a non-srcdir build directory
69258         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
69259         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
69261 2010-01-22  Jim Meyering  <meyering@redhat.com>
69263         userspec: add unit tests
69264         * tests/test-userspec.c: New file.
69265         * modules/userspec-tests: Likewise.
69267 2010-01-21  Jim Meyering  <meyering@redhat.com>
69269         maint.mk: handle source file names containing "." robustly
69270         * top/maint.mk (_dot_escaped_srcdir): Define.
69271         (VC_LIST): Use it in LHS of sed substitution.
69273 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
69275         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
69276         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
69277         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
69278         from a non-srcdir build.
69280 2010-01-20  Eric Blake  <ebb9@byu.net>
69282         warn-on-use: use instead of link-warning
69283         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
69284         * modules/unistd (Depends-on, Makefile.am): Likewise.
69285         * modules/arpa_inet (Depends-on): Replace link-warning with
69286         warn-on-use.
69287         (Makefile.am): Update rules accordingly.
69288         * modules/ctype (Depends-on, Makefile.am): Likewise.
69289         * modules/dirent (Depends-on, Makefile.am): Likewise.
69290         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
69291         * modules/inttypes (Depends-on, Makefile.am): Likewise.
69292         * modules/langinfo (Depends-on, Makefile.am): Likewise.
69293         * modules/locale (Depends-on, Makefile.am): Likewise.
69294         * modules/math (Depends-on, Makefile.am): Likewise.
69295         * modules/search (Depends-on, Makefile.am): Likewise.
69296         * modules/signal (Depends-on, Makefile.am): Likewise.
69297         * modules/spawn (Depends-on, Makefile.am): Likewise.
69298         * modules/stdlib (Depends-on, Makefile.am): Likewise.
69299         * modules/string (Depends-on, Makefile.am): Likewise.
69300         * modules/strings (Depends-on, Makefile.am): Likewise.
69301         * modules/sys_file (Depends-on, Makefile.am): Likewise.
69302         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
69303         * modules/sys_select (Depends-on, Makefile.am): Likewise.
69304         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
69305         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
69306         * modules/sys_times (Depends-on, Makefile.am): Likewise.
69307         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
69308         * modules/wchar (Depends-on, Makefile.am): Likewise.
69309         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
69310         should be poisoned.
69311         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
69312         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
69313         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
69314         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
69315         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
69316         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
69317         * m4/math_h.m4 (gl_MATH_H): Likewise.
69318         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
69319         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
69320         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
69321         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
69322         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
69323         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
69324         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
69325         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
69326         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
69327         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
69328         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
69329         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
69330         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
69331         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
69332         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
69333         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
69334         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
69335         GL_LINK_WARNING.
69336         * lib/ctype.in.h: Likewise.
69337         * lib/dirent.in.h: Likewise.
69338         * lib/fcntl.in.h: Likewise.
69339         * lib/inttypes.in.h: Likewise.
69340         * lib/langinfo.in.h: Likewise.
69341         * lib/locale.in.h: Likewise.
69342         * lib/math.in.h: Likewise.
69343         * lib/search.in.h: Likewise.
69344         * lib/signal.in.h: Likewise.
69345         * lib/spawn.in.h: Likewise.
69346         * lib/stdio.in.h: Likewise.
69347         * lib/stdlib.in.h: Likewise.
69348         * lib/string.in.h: Likewise.
69349         * lib/strings.in.h: Likewise.
69350         * lib/sys_file.in.h: Likewise.
69351         * lib/sys_ioctl.in.h: Likewise.
69352         * lib/sys_select.in.h: Likewise.
69353         * lib/sys_socket.in.h: Likewise.
69354         * lib/sys_stat.in.h: Likewise.
69355         * lib/sys_times.in.h: Likewise.
69356         * lib/sys_utsname.in.h: Likewise.
69357         * lib/unistd.in.h: Likewise.
69358         * lib/wchar.in.h: Likewise.
69360 2010-01-20  Bruno Haible  <bruno@clisp.org>
69362         Avoid duplicate -lm.
69363         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
69364         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
69365         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
69366         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
69367         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
69368         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
69369         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
69370         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
69371         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
69372         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
69373         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
69374         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
69375         Reported by Paolo Bonzini.
69377 2010-01-19  Bruno Haible  <bruno@clisp.org>
69379         langinfo, nl_langinfo: Relicense under LGPLv2+.
69380         * modules/langinfo (License): Change to LGPLv2+.
69381         * modules/nl_langinfo (License): Likewise.
69382         Patch by David Lutterkort <lutter@redhat.com>.
69384 2010-01-19  Bruno Haible  <bruno@clisp.org>
69386         Avoid compilation error with cc on OSF/1 5.1.
69387         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
69388         statement, not before.
69389         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69391 2010-01-18  Bruno Haible  <bruno@clisp.org>
69393         Avoid a link error due to the __printf__ symbol.
69394         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
69395         and 2.6.x.
69396         (__format__, __printf__): Remove definitions.
69397         * lib/argp-fmtstream.h: Likewise.
69398         * lib/argp.h: Likewise.
69399         * lib/error.h: Likewise.
69400         * lib/vasnprintf.h: Likewise.
69401         * lib/xprintf.h: Likewise.
69402         * lib/xvasprintf.h: Likewise.
69403         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69405 2010-01-18  Bruno Haible  <bruno@clisp.org>
69407         Tests for module 'tanl'.
69408         * modules/tanl-tests: New file.
69409         * tests/test-tanl.c: New file.
69411         Tests for module 'sqrtl'.
69412         * modules/sqrtl-tests: New file.
69413         * tests/test-sqrtl.c: New file.
69415         Tests for module 'sinl'.
69416         * modules/sinl-tests: New file.
69417         * tests/test-sinl.c: New file.
69419         Tests for module 'logl'.
69420         * modules/logl-tests: New file.
69421         * tests/test-logl.c: New file.
69423         Tests for module 'expl'.
69424         * modules/expl-tests: New file.
69425         * tests/test-expl.c: New file.
69427         Tests for module 'cosl'.
69428         * modules/cosl-tests: New file.
69429         * tests/test-cosl.c: New file.
69431         Tests for module 'atanl'.
69432         * modules/atanl-tests: New file.
69433         * tests/test-atanl.c: New file.
69435         Tests for module 'asinl'.
69436         * modules/asinl-tests: New file.
69437         * tests/test-asinl.c: New file.
69439         Tests for module 'acosl'.
69440         * modules/acosl-tests: New file.
69441         * tests/test-acosl.c: New file.
69443         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
69444         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
69445         tanl): Use the standard gnulib idiom.
69446         * lib/cosl.c: Don't include trigl.c and sincosl.c.
69447         * lib/sinl.c: Likewise.
69448         * lib/tanl.c: Don't include trigl.c.
69449         (kernel_tanl): Make static.
69450         * lib/sincosl.c: Include trigl.h first.
69451         * lib/trigl.c: Likewise.
69452         * m4/acosl.m4: New file.
69453         * m4/asinl.m4: New file.
69454         * m4/atanl.m4: New file.
69455         * m4/cosl.m4: New file.
69456         * m4/expl.m4: New file.
69457         * m4/logl.m4: New file.
69458         * m4/sinl.m4: New file.
69459         * m4/sqrtl.m4: New file.
69460         * m4/tanl.m4: New file.
69461         * m4/mathl.m4: Remove file.
69462         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
69463         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
69464         Don't initialize GNULIB_MATHL.
69465         * modules/acosl: New file.
69466         * modules/asinl: New file.
69467         * modules/atanl: New file.
69468         * modules/cosl: New file.
69469         * modules/expl: New file.
69470         * modules/logl: New file.
69471         * modules/sinl: New file.
69472         * modules/sqrtl: New file.
69473         * modules/tanl: New file.
69474         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
69475         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
69476         substitute GNULIB_MATHL.
69477         * modules/mathl: Rewritten.
69478         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
69479         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
69480         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
69481         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
69482         * doc/posix-functions/expl.texi: Mention the 'expl' module.
69483         * doc/posix-functions/logl.texi: Mention the 'logl' module.
69484         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
69485         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
69486         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
69488 2010-01-18  Bruno Haible  <bruno@clisp.org>
69490         sqrt: Make gl_FUNC_SQRT requirable.
69491         * m4/sqrt.m4: New file.
69492         * modules/sqrt (Files): Add it.
69493         (configure.ac): Invoke gl_FUNC_SQRT.
69495 2010-01-18  Bruno Haible  <bruno@clisp.org>
69497         New modules for common <math.h> functions.
69498         * m4/mathfunc.m4: New file.
69499         * modules/acos: New file.
69500         * modules/asin: New file.
69501         * modules/atan: New file.
69502         * modules/atan2: New file.
69503         * modules/cbrt: New file.
69504         * modules/copysign: New file.
69505         * modules/cos: New file.
69506         * modules/cosh: New file.
69507         * modules/erf: New file.
69508         * modules/erfc: New file.
69509         * modules/exp: New file.
69510         * modules/fabs: New file.
69511         * modules/fmod: New file.
69512         * modules/hypot: New file.
69513         * modules/j0: New file.
69514         * modules/j1: New file.
69515         * modules/jn: New file.
69516         * modules/ldexp: New file.
69517         * modules/lgamma: New file.
69518         * modules/log: New file.
69519         * modules/log10: New file.
69520         * modules/log1p: New file.
69521         * modules/logb: New file.
69522         * modules/modf: New file.
69523         * modules/nextafter: New file.
69524         * modules/pow: New file.
69525         * modules/remainder: New file.
69526         * modules/rint: New file.
69527         * modules/sin: New file.
69528         * modules/sinh: New file.
69529         * modules/sqrt: New file.
69530         * modules/tan: New file.
69531         * modules/tanh: New file.
69532         * modules/y0: New file.
69533         * modules/y1: New file.
69534         * modules/yn: New file.
69535         * doc/posix-functions/acos.texi: Mention the 'acos' module.
69536         * doc/posix-functions/asin.texi: Mention the 'asin' module.
69537         * doc/posix-functions/atan.texi: Mention the 'atan' module.
69538         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
69539         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
69540         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
69541         * doc/posix-functions/cos.texi: Mention the 'cos' module.
69542         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
69543         * doc/posix-functions/erf.texi: Mention the 'erf' module.
69544         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
69545         * doc/posix-functions/exp.texi: Mention the 'exp' module.
69546         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
69547         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
69548         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
69549         * doc/posix-functions/j0.texi: Mention the 'j0' module.
69550         * doc/posix-functions/j1.texi: Mention the 'j1' module.
69551         * doc/posix-functions/jn.texi: Mention the 'jn' module.
69552         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
69553         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
69554         * doc/posix-functions/log.texi: Mention the 'log' module.
69555         * doc/posix-functions/log10.texi: Mention the 'log10' module.
69556         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
69557         * doc/posix-functions/logb.texi: Mention the 'logb' module.
69558         * doc/posix-functions/modf.texi: Mention the 'modf' module.
69559         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
69560         * doc/posix-functions/pow.texi: Mention the 'pow' module.
69561         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
69562         * doc/posix-functions/rint.texi: Mention the 'rint' module.
69563         * doc/posix-functions/sin.texi: Mention the 'sin' module.
69564         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
69565         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
69566         * doc/posix-functions/tan.texi: Mention the 'tan' module.
69567         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
69568         * doc/posix-functions/y0.texi: Mention the 'y0' module.
69569         * doc/posix-functions/y1.texi: Mention the 'y1' module.
69570         * doc/posix-functions/yn.texi: Mention the 'yn' module.
69572 2010-01-18  Jim Meyering  <meyering@redhat.com>
69574         ignore-value: relax license to LGPLv2+
69575         * modules/ignore-value (License): Relax to LGPLv2+.
69577         getdate: don't leak when TZ contains two or more '"'s
69578         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
69579         double quote in TZ after the first one.
69581         readtokens: do not leak internal token_lengths buffer
69582         * lib/readtokens.c (readtokens): Free the local, lengths,
69583         when the supplied "token_lengths" parameter is NULL.
69585 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69587         Fix a couple of missing LIBTHREAD link failures on AIX.
69588         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
69589         $(LIBTHREAD).
69590         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
69592         Link test-poll against INET_PTON_LIB.
69593         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
69594         for inet_pton on Solaris 10.
69596 2010-01-17  Bruno Haible  <bruno@clisp.org>
69598         unistdio/*-sprintf: Fix typo in module description.
69599         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
69600         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
69601         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
69602         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
69603         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
69604         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
69605         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
69606         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69608 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69610         gnulib-tool: fix filelist for AIX, HP-UX ksh.
69611         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
69612         variables in shell case patterns, for AIX and HP-UX ksh.
69614         Split large sed scripts, for HP-UX sed.
69615         * modules/stdio: Split sed scripts around 50 sed commands,
69616         to avoid HP-UX limit of 99 commands, in the near future.
69617         * modules/string: Likewise.
69618         * modules/unistd: Likewise.
69620         gnulib-tool: avoid writing in the current directory.
69621         * gnulib-tool (func_emit_lib_Makefile_am)
69622         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
69623         not in the current directory, so concurrent gnulib-tool
69624         instances do not interfere.
69626 2010-01-16  Jim Meyering  <meyering@redhat.com>
69628         doc: update users.txt
69629         * users.txt: Add grep.
69630         (diffutils, gzip): Update URLs.
69632 2010-01-12  Bruno Haible  <bruno@clisp.org>
69634         posix_spawn: Avoid test failure on Cygwin.
69635         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
69636         characters.
69637         Reported by Simon Josefsson.
69639 2010-01-12  Bruno Haible  <bruno@clisp.org>
69641         * tests/test-cond.c (main): When skipping the test, show the reason.
69643 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69645         * lib/striconv.c (str_cd_iconv): Avoid if before free.
69647 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69649         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
69650         VC_LIST_ALWAYS_EXCLUDE_REGEX.
69652 2010-01-12  Eric Blake  <ebb9@byu.net>
69654         build: guarantee AS_VAR_IF
69655         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
69656         (gl_AS_VAR_IF): Move...
69657         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
69658         Reported by Simon Josefsson.
69660 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69662         * lib/stdio.in.h: Fix typo.
69664 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69666         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
69667         libgpg-error.
69669 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69671         * tests/test-xalloc-die.sh: Use $EXEEXT.
69673 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69674             Bruno Haible  <bruno@clisp.org>
69676         getlogin, getlogin_r: Avoid test failure.
69677         * tests/test-getlogin.c: Include <stdio.h>.
69678         (main): Skip the test when the function fails because stdin is not a
69679         tty.
69680         * tests/test-getlogin_r.c: Include <stdio.h>.
69681         (main): Skip the test when the function fails because stdin is not a
69682         tty.
69684 2010-01-11  Eric Blake  <ebb9@byu.net>
69686         tests: avoid more large file warnings
69687         * tests/test-fflush.c: Avoid warning about ftell use.
69688         * tests/test-fseek.c: Avoid warning about fseek use.
69690 2010-01-10  Bruno Haible  <bruno@clisp.org>
69692         nproc: Work better on Linux when /proc and /sys are not mounted.
69693         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
69694         as lower bound when, on glibc/Linux systems,
69695         sysconf (_SC_NPROCESSORS_CONF) returns 1.
69696         Suggested by Pádraig Brady <P@draigbrady.com>.
69697         Reported by Dmitry V. Levin <ldv@altlinux.org>.
69699         nproc: Refactor.
69700         * lib/nproc.c (num_processors_via_affinity_mask): New function,
69701         extracted from num_processors.
69702         (num_processors): Call it.
69704 2010-01-11  Jim Meyering  <meyering@redhat.com>
69706         utimecmp: avoid new warning from upcoming gcc-4.5.0
69707         * lib/utimecmp.c (BILLION): Define using #define rather than an
69708         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
69710 2010-01-11  Eric Blake  <ebb9@byu.net>
69712         math: add portability warnings for classification macros
69713         * modules/math (Depends-on): Add warn-on-use.
69714         (Makefile.am): Provide new substitutions.
69715         * m4/math_h.m4 (gl_MATH_H): Require inline.
69716         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
69717         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
69718         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
69719         implement warnings.
69721         unistd: warn on use of environ without module
69722         * modules/unistd (Depends-on): Add warn-on-use.
69723         (Makefile.am): Provide new substitutions.
69724         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
69725         * lib/unistd.in.h (environ): Wrap with a warning helper function.
69727         stdio: warn on suspicious uses
69728         * modules/stdio (Depends-on): Add warn-on-use.
69729         (Makefile.am): Provide new substitutions.
69730         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
69731         fseeko.
69732         * lib/stdio.in.h (gets): Always warn on use.
69733         (fseek, ftell): Adjust when warnings are issued, and honor
69734         _GL_NO_LARGE_FILES as a way to silence the warning.
69735         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
69736         any warning about large file offsets.
69737         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
69738         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
69739         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
69740         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
69741         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
69742         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
69743         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
69744         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
69746         warn-on-use: new module
69747         * modules/warn-on-use: New file.
69748         * build-aux/warn-on-use.h: Likewise.
69749         * m4/warn-on-use.m4: Likewise.
69750         * MODULES.html.sh (Support for building): Mention it.
69752 2010-01-10  Bruno Haible  <bruno@clisp.org>
69754         Tests for module 'unistr/u32-strdup'.
69755         * modules/unistr/u32-strdup-tests: New file.
69756         * tests/unistr/test-u32-strdup.c: New file.
69758         Tests for module 'unistr/u16-strdup'.
69759         * modules/unistr/u16-strdup-tests: New file.
69760         * tests/unistr/test-u16-strdup.c: New file.
69762         Tests for module 'unistr/u8-strdup'.
69763         * modules/unistr/u8-strdup-tests: New file.
69764         * tests/unistr/test-u8-strdup.c: New file.
69765         * tests/unistr/test-strdup.h: New file.
69767         Tests for module 'unistr/u32-strncmp'.
69768         * modules/unistr/u32-strncmp-tests: New file.
69769         * tests/unistr/test-u32-strncmp.c: New file.
69771         Tests for module 'unistr/u16-strncmp'.
69772         * modules/unistr/u16-strncmp-tests: New file.
69773         * tests/unistr/test-u16-strncmp.c: New file.
69775         Tests for module 'unistr/u8-strncmp'.
69776         * modules/unistr/u8-strncmp-tests: New file.
69777         * tests/unistr/test-u8-strncmp.c: New file.
69778         * tests/unistr/test-strncmp.h: New file.
69780         Tests for module 'unistr/u32-strcoll'.
69781         * modules/unistr/u32-strcoll-tests: New file.
69782         * tests/unistr/test-u32-strcoll.c: New file.
69784         Tests for module 'unistr/u16-strcoll'.
69785         * modules/unistr/u16-strcoll-tests: New file.
69786         * tests/unistr/test-u16-strcoll.c: New file.
69788         Tests for module 'unistr/u8-strcoll'.
69789         * modules/unistr/u8-strcoll-tests: New file.
69790         * tests/unistr/test-u8-strcoll.c: New file.
69792         Tests for module 'unistr/u32-strcmp'.
69793         * modules/unistr/u32-strcmp-tests: New file.
69794         * tests/unistr/test-u32-strcmp.c: New file.
69795         * tests/unistr/test-u32-strcmp.h: New file.
69797         Tests for module 'unistr/u16-strcmp'.
69798         * modules/unistr/u16-strcmp-tests: New file.
69799         * tests/unistr/test-u16-strcmp.c: New file.
69800         * tests/unistr/test-u16-strcmp.h: New file.
69802         Tests for module 'unistr/u8-strcmp'.
69803         * modules/unistr/u8-strcmp-tests: New file.
69804         * tests/unistr/test-u8-strcmp.c: New file.
69805         * tests/unistr/test-u8-strcmp.h: New file.
69806         * tests/unistr/test-strcmp.h: New file.
69808         Tests for module 'unistr/u32-strncat'.
69809         * modules/unistr/u32-strncat-tests: New file.
69810         * tests/unistr/test-u32-strncat.c: New file.
69812         Tests for module 'unistr/u16-strncat'.
69813         * modules/unistr/u16-strncat-tests: New file.
69814         * tests/unistr/test-u16-strncat.c: New file.
69816         Tests for module 'unistr/u8-strncat'.
69817         * modules/unistr/u8-strncat-tests: New file.
69818         * tests/unistr/test-u8-strncat.c: New file.
69819         * tests/unistr/test-strncat.h: New file.
69821         Tests for module 'unistr/u32-strcat'.
69822         * modules/unistr/u32-strcat-tests: New file.
69823         * tests/unistr/test-u32-strcat.c: New file.
69825         Tests for module 'unistr/u16-strcat'.
69826         * modules/unistr/u16-strcat-tests: New file.
69827         * tests/unistr/test-u16-strcat.c: New file.
69829         Tests for module 'unistr/u8-strcat'.
69830         * modules/unistr/u8-strcat-tests: New file.
69831         * tests/unistr/test-u8-strcat.c: New file.
69832         * tests/unistr/test-strcat.h: New file.
69834         Tests for module 'unistr/u32-stpncpy'.
69835         * modules/unistr/u32-stpncpy-tests: New file.
69836         * tests/unistr/test-u32-stpncpy.c: New file.
69838         Tests for module 'unistr/u16-stpncpy'.
69839         * modules/unistr/u16-stpncpy-tests: New file.
69840         * tests/unistr/test-u16-stpncpy.c: New file.
69842         Tests for module 'unistr/u8-stpncpy'.
69843         * modules/unistr/u8-stpncpy-tests: New file.
69844         * tests/unistr/test-u8-stpncpy.c: New file.
69845         * tests/unistr/test-stpncpy.h: New file.
69847         Tests for module 'unistr/u32-strncpy'.
69848         * modules/unistr/u32-strncpy-tests: New file.
69849         * tests/unistr/test-u32-strncpy.c: New file.
69851         Tests for module 'unistr/u16-strncpy'.
69852         * modules/unistr/u16-strncpy-tests: New file.
69853         * tests/unistr/test-u16-strncpy.c: New file.
69855         Tests for module 'unistr/u8-strncpy'.
69856         * modules/unistr/u8-strncpy-tests: New file.
69857         * tests/unistr/test-u8-strncpy.c: New file.
69858         * tests/unistr/test-strncpy.h: New file.
69860         Tests for module 'unistr/u32-stpcpy'.
69861         * modules/unistr/u32-stpcpy-tests: New file.
69862         * tests/unistr/test-u32-stpcpy.c: New file.
69864         Tests for module 'unistr/u16-stpcpy'.
69865         * modules/unistr/u16-stpcpy-tests: New file.
69866         * tests/unistr/test-u16-stpcpy.c: New file.
69868         Tests for module 'unistr/u8-stpcpy'.
69869         * modules/unistr/u8-stpcpy-tests: New file.
69870         * tests/unistr/test-u8-stpcpy.c: New file.
69871         * tests/unistr/test-stpcpy.h: New file.
69873         Tests for module 'unistr/u32-strcpy'.
69874         * modules/unistr/u32-strcpy-tests: New file.
69875         * tests/unistr/test-u32-strcpy.c: New file.
69877         Tests for module 'unistr/u16-strcpy'.
69878         * modules/unistr/u16-strcpy-tests: New file.
69879         * tests/unistr/test-u16-strcpy.c: New file.
69881         Tests for module 'unistr/u8-strcpy'.
69882         * modules/unistr/u8-strcpy-tests: New file.
69883         * tests/unistr/test-u8-strcpy.c: New file.
69884         * tests/unistr/test-strcpy.h: New file.
69886         Tests for module 'unistr/u32-strnlen'.
69887         * modules/unistr/u32-strnlen-tests: New file.
69888         * tests/unistr/test-u32-strnlen.c: New file.
69890         Tests for module 'unistr/u16-strnlen'.
69891         * modules/unistr/u16-strnlen-tests: New file.
69892         * tests/unistr/test-u16-strnlen.c: New file.
69894         Tests for module 'unistr/u8-strnlen'.
69895         * modules/unistr/u8-strnlen-tests: New file.
69896         * tests/unistr/test-u8-strnlen.c: New file.
69897         * tests/unistr/test-strnlen.h: New file.
69899         Tests for module 'unistr/u32-strlen'.
69900         * modules/unistr/u32-strlen-tests: New file.
69901         * tests/unistr/test-u32-strlen.c: New file.
69903         Tests for module 'unistr/u16-strlen'.
69904         * modules/unistr/u16-strlen-tests: New file.
69905         * tests/unistr/test-u16-strlen.c: New file.
69907         Tests for module 'unistr/u8-strlen'.
69908         * modules/unistr/u8-strlen-tests: New file.
69909         * tests/unistr/test-u8-strlen.c: New file.
69911         Tests for module 'unistr/u32-prev'.
69912         * modules/unistr/u32-prev-tests: New file.
69913         * tests/unistr/test-u32-prev.c: New file.
69915         Tests for module 'unistr/u16-prev'.
69916         * modules/unistr/u16-prev-tests: New file.
69917         * tests/unistr/test-u16-prev.c: New file.
69919         Tests for module 'unistr/u8-prev'.
69920         * modules/unistr/u8-prev-tests: New file.
69921         * tests/unistr/test-u8-prev.c: New file.
69923         Tests for module 'unistr/u32-next'.
69924         * modules/unistr/u32-next-tests: New file.
69925         * tests/unistr/test-u32-next.c: New file.
69927         Tests for module 'unistr/u16-next'.
69928         * modules/unistr/u16-next-tests: New file.
69929         * tests/unistr/test-u16-next.c: New file.
69931         Tests for module 'unistr/u8-next'.
69932         * modules/unistr/u8-next-tests: New file.
69933         * tests/unistr/test-u8-next.c: New file.
69935         Tests for module 'unistr/u32-strmbtouc'.
69936         * modules/unistr/u32-strmbtouc-tests: New file.
69937         * tests/unistr/test-u32-strmbtouc.c: New file.
69939         Tests for module 'unistr/u16-strmbtouc'.
69940         * modules/unistr/u16-strmbtouc-tests: New file.
69941         * tests/unistr/test-u16-strmbtouc.c: New file.
69943         Tests for module 'unistr/u8-strmbtouc'.
69944         * modules/unistr/u8-strmbtouc-tests: New file.
69945         * tests/unistr/test-u8-strmbtouc.c: New file.
69947         Tests for module 'unistr/u32-strmblen'.
69948         * modules/unistr/u32-strmblen-tests: New file.
69949         * tests/unistr/test-u32-strmblen.c: New file.
69951         Tests for module 'unistr/u16-strmblen'.
69952         * modules/unistr/u16-strmblen-tests: New file.
69953         * tests/unistr/test-u16-strmblen.c: New file.
69955         Tests for module 'unistr/u8-strmblen'.
69956         * modules/unistr/u8-strmblen-tests: New file.
69957         * tests/unistr/test-u8-strmblen.c: New file.
69959         Tests for module 'unistr/u32-cpy-alloc'.
69960         * modules/unistr/u32-cpy-alloc-tests: New file.
69961         * tests/unistr/test-u32-cpy-alloc.c: New file.
69963         Tests for module 'unistr/u16-cpy-alloc'.
69964         * modules/unistr/u16-cpy-alloc-tests: New file.
69965         * tests/unistr/test-u16-cpy-alloc.c: New file.
69967         Tests for module 'unistr/u8-cpy-alloc'.
69968         * modules/unistr/u8-cpy-alloc-tests: New file.
69969         * tests/unistr/test-u8-cpy-alloc.c: New file.
69970         * tests/unistr/test-cpy-alloc.h: New file.
69972         Tests for module 'unistr/u32-mbsnlen'.
69973         * modules/unistr/u32-mbsnlen-tests: New file.
69974         * tests/unistr/test-u32-mbsnlen.c: New file.
69976         Tests for module 'unistr/u16-mbsnlen'.
69977         * modules/unistr/u16-mbsnlen-tests: New file.
69978         * tests/unistr/test-u16-mbsnlen.c: New file.
69980         Tests for module 'unistr/u8-mbsnlen'.
69981         * modules/unistr/u8-mbsnlen-tests: New file.
69982         * tests/unistr/test-u8-mbsnlen.c: New file.
69984         Tests for module 'unistr/u32-chr'.
69985         * modules/unistr/u32-chr-tests: New file.
69986         * tests/unistr/test-u32-chr.c: New file.
69988         Tests for module 'unistr/u16-chr'.
69989         * modules/unistr/u16-chr-tests: New file.
69990         * tests/unistr/test-u16-chr.c: New file.
69992         Tests for module 'unistr/u8-chr'.
69993         * modules/unistr/u8-chr-tests: New file.
69994         * tests/unistr/test-u8-chr.c: New file.
69995         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
69997         Tests for module 'unistr/u32-cmp2'.
69998         * modules/unistr/u32-cmp2-tests: New file.
69999         * tests/unistr/test-u32-cmp2.c: New file.
70001         Tests for module 'unistr/u16-cmp2'.
70002         * modules/unistr/u16-cmp2-tests: New file.
70003         * tests/unistr/test-u16-cmp2.c: New file.
70005         Tests for module 'unistr/u8-cmp2'.
70006         * modules/unistr/u8-cmp2-tests: New file.
70007         * tests/unistr/test-u8-cmp2.c: New file.
70008         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
70010         Tests for module 'unistr/u32-cmp'.
70011         * modules/unistr/u32-cmp-tests: New file.
70012         * tests/unistr/test-u32-cmp.c: New file.
70014         Tests for module 'unistr/u16-cmp'.
70015         * modules/unistr/u16-cmp-tests: New file.
70016         * tests/unistr/test-u16-cmp.c: New file.
70018         Tests for module 'unistr/u8-cmp'.
70019         * modules/unistr/u8-cmp-tests: New file.
70020         * tests/unistr/test-u8-cmp.c: New file.
70021         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
70023         Tests for module 'unistr/u32-set'.
70024         * modules/unistr/u32-set-tests: New file.
70025         * tests/unistr/test-u32-set.c: New file.
70027         Tests for module 'unistr/u16-set'.
70028         * modules/unistr/u16-set-tests: New file.
70029         * tests/unistr/test-u16-set.c: New file.
70031         Tests for module 'unistr/u8-set'.
70032         * modules/unistr/u8-set-tests: New file.
70033         * tests/unistr/test-u8-set.c: New file.
70034         * tests/unistr/test-set.h: New file.
70036         Tests for module 'unistr/u32-move'.
70037         * modules/unistr/u32-move-tests: New file.
70038         * tests/unistr/test-u32-move.c: New file.
70040         Tests for module 'unistr/u16-move'.
70041         * modules/unistr/u16-move-tests: New file.
70042         * tests/unistr/test-u16-move.c: New file.
70044         Tests for module 'unistr/u8-move'.
70045         * modules/unistr/u8-move-tests: New file.
70046         * tests/unistr/test-u8-move.c: New file.
70047         * tests/unistr/test-move.h: New file.
70049         Tests for module 'unistr/u32-cpy'.
70050         * modules/unistr/u32-cpy-tests: New file.
70051         * tests/unistr/test-u32-cpy.c: New file.
70053         Tests for module 'unistr/u16-cpy'.
70054         * modules/unistr/u16-cpy-tests: New file.
70055         * tests/unistr/test-u16-cpy.c: New file.
70057         Tests for module 'unistr/u8-cpy'.
70058         * modules/unistr/u8-cpy-tests: New file.
70059         * tests/unistr/test-u8-cpy.c: New file.
70060         * tests/unistr/test-cpy.h: New file.
70062 2010-01-09  Bruno Haible  <bruno@clisp.org>
70064         Tests for module 'unistr/u32-uctomb'.
70065         * modules/unistr/u32-uctomb-tests: New file.
70066         * tests/unistr/test-u32-uctomb.c: New file.
70068         Tests for module 'unistr/u16-uctomb'.
70069         * modules/unistr/u16-uctomb-tests: New file.
70070         * tests/unistr/test-u16-uctomb.c: New file.
70072         Tests for module 'unistr/u8-uctomb'.
70073         * modules/unistr/u8-uctomb-tests: New file.
70074         * tests/unistr/test-u8-uctomb.c: New file.
70076         Tests for module 'unistr/u32-mbtoucr'.
70077         * modules/unistr/u32-mbtoucr-tests: New file.
70078         * tests/unistr/test-u32-mbtoucr.c: New file.
70080         Tests for module 'unistr/u16-mbtoucr'.
70081         * modules/unistr/u16-mbtoucr-tests: New file.
70082         * tests/unistr/test-u16-mbtoucr.c: New file.
70084         Tests for module 'unistr/u8-mbtoucr'.
70085         * modules/unistr/u8-mbtoucr-tests: New file.
70086         * tests/unistr/test-u8-mbtoucr.c: New file.
70088         Tests for module 'unistr/u32-mbtouc'.
70089         * modules/unistr/u32-mbtouc-tests: New file.
70090         * tests/unistr/test-u32-mbtouc.c: New file.
70092         Tests for module 'unistr/u16-mbtouc'.
70093         * modules/unistr/u16-mbtouc-tests: New file.
70094         * tests/unistr/test-u16-mbtouc.c: New file.
70096         Tests for module 'unistr/u8-mbtouc'.
70097         * modules/unistr/u8-mbtouc-tests: New file.
70098         * tests/unistr/test-u8-mbtouc.c: New file.
70100         Tests for module 'unistr/u32-mbtouc-unsafe'.
70101         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
70102         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
70103         * tests/unistr/test-u32-mbtouc.h: New file.
70105         Tests for module 'unistr/u16-mbtouc-unsafe'.
70106         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
70107         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
70108         * tests/unistr/test-u16-mbtouc.h: New file.
70110         Tests for module 'unistr/u8-mbtouc-unsafe'.
70111         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
70112         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
70113         * tests/unistr/test-u8-mbtouc.h: New file.
70115         Tests for module 'unistr/u32-mblen'.
70116         * modules/unistr/u32-mblen-tests: New file.
70117         * tests/unistr/test-u32-mblen.c: New file.
70119         Tests for module 'unistr/u16-mblen'.
70120         * modules/unistr/u16-mblen-tests: New file.
70121         * tests/unistr/test-u16-mblen.c: New file.
70123         Tests for module 'unistr/u8-mblen'.
70124         * modules/unistr/u8-mblen-tests: New file.
70125         * tests/unistr/test-u8-mblen.c: New file.
70127         Tests for module 'unistr/u32-to-u16'.
70128         * modules/unistr/u32-to-u16-tests: New file.
70129         * tests/unistr/test-u32-to-u16.c: New file.
70131         Tests for module 'unistr/u32-to-u8'.
70132         * modules/unistr/u32-to-u8-tests: New file.
70133         * tests/unistr/test-u32-to-u8.c: New file.
70135         Tests for module 'unistr/u16-to-u32'.
70136         * modules/unistr/u16-to-u32-tests: New file.
70137         * tests/unistr/test-u16-to-u32.c: New file.
70139         Tests for module 'unistr/u16-to-u8'.
70140         * modules/unistr/u16-to-u8-tests: New file.
70141         * tests/unistr/test-u16-to-u8.c: New file.
70143         Tests for module 'unistr/u8-to-u32'.
70144         * modules/unistr/u8-to-u32-tests: New file.
70145         * tests/unistr/test-u8-to-u32.c: New file.
70147         Tests for module 'unistr/u8-to-u16'.
70148         * modules/unistr/u8-to-u16-tests: New file.
70149         * tests/unistr/test-u8-to-u16.c: New file.
70151         Tests for module 'unistr/u32-check'.
70152         * modules/unistr/u32-check-tests: New file.
70153         * tests/unistr/test-u32-check.c: New file.
70155         Tests for module 'unistr/u16-check'.
70156         * modules/unistr/u16-check-tests: New file.
70157         * tests/unistr/test-u16-check.c: New file.
70159         Tests for module 'unistr/u8-check'.
70160         * modules/unistr/u8-check-tests: New file.
70161         * tests/unistr/test-u8-check.c: New file.
70163         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
70164         (category_equals): New function.
70165         (main): Add more tests.
70166         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
70168         * tests/unictype/test-bidi_byname.c (main): Add more tests.
70170 2010-01-10  Bruno Haible  <bruno@clisp.org>
70172         unistr/u*-strcoll: Try harder to distinguish different strings.
70173         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
70174         compare s1 and s2 to see if they are different.
70176 2010-01-10  Bruno Haible  <bruno@clisp.org>
70178         unistr/u*-stpncpy: Fix the return value.
70179         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
70180         description of the return value consistent with stpncpy in glibc.
70181         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
70182         written non-NUL unit.
70184 2010-01-10  Bruno Haible  <bruno@clisp.org>
70186         unistr/u*-next: Add missing dependencies.
70187         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
70188         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
70189         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
70191 2010-01-10  Bruno Haible  <bruno@clisp.org>
70193         unistr/u8-mbsnlen: Fix return value for incomplete character.
70194         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
70195         u8_mblen.
70196         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
70197         Remove unistr/u8-mblen.
70198         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
70199         u16_mblen.
70200         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
70201         Remove unistr/u16-mblen.
70203 2010-01-10  Bruno Haible  <bruno@clisp.org>
70205         wchar: Fix compilation error when <wchar.h> is used from coreutils.
70206         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
70207         Reported by Brian Gough <bjg@gnu.org> and
70208         Chris Clayton <chris2553@googlemail.com> via
70209         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
70211 2010-01-09  Bruno Haible  <bruno@clisp.org>
70213         unistr/u16-to-u32: Reject invalid input.
70214         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
70215         u16_mbtouc.
70216         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
70217         Remove unistr/u16-mbtouc.
70219         unistr/u16-to-u8: Reject invalid input.
70220         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
70221         u16_mbtouc.
70222         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
70223         Remove unistr/u16-mbtouc.
70225         unistr/u8-to-u32: Reject invalid input.
70226         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
70227         u8_mbtouc.
70228         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
70229         Remove unistr/u8-mbtouc.
70231         unistr/u8-to-u16: Reject invalid input.
70232         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
70233         u8_mbtouc.
70234         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
70235         Remove unistr/u8-mbtouc.
70237 2010-01-09  Bruno Haible  <bruno@clisp.org>
70239         Tests for module 'getlogin'.
70240         * modules/getlogin-tests: New file.
70241         * tests/test-getlogin.c: New file.
70243         New module 'getlogin'.
70244         * lib/unistd.in.h (getlogin): New declaration.
70245         * lib/getlogin.c: New file.
70246         * m4/getlogin.m4: New file.
70247         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
70248         HAVE_GETLOGIN.
70249         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
70250         HAVE_GETLOGIN.
70251         * modules/getlogin: New file.
70252         * doc/posix-functions/getlogin.texi: Mention the new module.
70253         Reported by John W. Eaton <jwe@gnu.org>.
70255 2010-01-09  Bruno Haible  <bruno@clisp.org>
70257         getlogin_r: Support for native Windows.
70258         * lib/getlogin_r.c: Include <windows.h>
70259         (getlogin_r): Implement for native Windows.
70260         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
70261         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
70262         via John W. Eaton <jwe@gnu.org>.
70264 2010-01-09  Bruno Haible  <bruno@clisp.org>
70266         getlogin_r: Small fixes.
70267         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
70268         succeeds.
70269         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
70270         before testing whether getlogin_r is declared. No need to set
70271         HAVE_DECL_GETLOGIN_R to 1.
70272         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
70274 2010-01-09  Bruno Haible  <bruno@clisp.org>
70276         * lib/unistd.in.h (getlogin_r): Add comment.
70278 2010-01-09  Bruno Haible  <bruno@clisp.org>
70280         Tests for module 'getlogin_r'.
70281         * modules/getlogin_r-tests: New file.
70282         * tests/test-getlogin_r.c: New file.
70284 2010-01-09  Jim Meyering  <meyering@redhat.com>
70286         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
70287         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
70288         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
70290 2010-01-08  Simon Josefsson  <simon@josefsson.org>
70292         * lib/dup2.c (rpl_dup2): Improve comment.
70294 2010-01-08  Eric Blake  <ebb9@byu.net>
70296         maint.mk: allow packages to add makefile @@ exceptions
70297         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
70298         (sc_makefile_check): Rename...
70299         (sc_makefile_at_at_check): ...to this, and use hook.
70301         dup2: work around mingw bug
70302         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
70303         Reported by Simon Josefsson.
70305 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
70307         glob: Fix C++ compilation.
70308         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
70309         C++.
70311 2010-01-07  Bruno Haible  <bruno@clisp.org>
70313         Fix indentation of wctype.in.h, broken since 2007-01-06.
70314         * lib/wctype.in.h: Fix indentation of preprocessor directives.
70316 2010-01-07  Bruno Haible  <bruno@clisp.org>
70318         mbslen: Avoid collision with system function.
70319         * lib/string.in.h [MirBSD]: Include <wchar.h>.
70320         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
70321         * m4/mbslen.m4: New file.
70322         * modules/mbslen (Files): Add it.
70323         (configure.ac): Invoke gl_MBSLEN.
70324         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
70325         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
70326         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
70327         via Ian Beckwith <ianb@erislabs.net>.
70329 2010-01-07  Bruno Haible  <bruno@clisp.org>
70331         dirent: Document the last fix.
70332         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
70334 2010-01-07  Bruno Haible  <bruno@clisp.org>
70336         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
70337         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
70338         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
70339         va_list are defined.
70340         * doc/posix-headers/stdio.texi: Document the bug of missing types.
70341         Reported by Eric Blake.
70343 2010-01-07  Bruno Haible  <bruno@clisp.org>
70345         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
70346         * modules/xlist (Depends-on): Add 'list',
70347         * modules/xoset (Depends-on): Add 'oset'.
70348         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70350 2010-01-07  Bruno Haible  <bruno@clisp.org>
70352         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
70353         * doc/posix-functions/strncasecmp.texi: Likewise.
70355 2010-01-07  Bruno Haible  <bruno@clisp.org>
70357         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
70359 2010-01-07  John W. Eaton  <jwe@octave.org>
70361         wctype: allow C++ use
70362         * lib/wctype.in.h: Add extern "C" block for C++.
70364 2010-01-06  Eric Blake  <ebb9@byu.net>
70366         maint.mk: detect incorrect GFDL usage
70367         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
70369 2010-01-06  Jim Meyering  <meyering@redhat.com>
70370         and Eric Blake  <ebb9@byu.net>
70372         maint.mk: ignore multi-line copyright in NEWS
70373         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
70375 2010-01-06  Eric Blake  <ebb9@byu.net>
70377         select: add missing dependency
70378         * modules/select-tests (Depends-on): Move sockets dependency...
70379         * modules/select (Depends-on): ...here.
70380         Reported by Ian Beckwith.
70382         doc: regenerate INSTALL
70383         * doc/INSTALL: Reflect recent autoconf update.
70384         * doc/INSTALL.ISO: Likewise.
70385         * doc/INSTALL.UTF-8: Likewise.
70387         pread: fix compilation on glibc
70388         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
70389         Reported by Ralf Wildenhues.
70391         dirent: fix test failure
70392         * lib/dirent.in.h (includes): Guarantee ino_t.
70393         Reported by Ralf Wildenhues.
70395 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
70397         linkat, renameat: avoid bad free
70398         * lib/at-func2.c (at_func2): Fix typo.
70399         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
70401 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70403         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
70404         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
70405         to avoid failure of symlink test later.
70407 2010-01-06  Eric Blake  <ebb9@byu.net>
70409         stdio, unistd: guarantee ssize_t
70410         * lib/unistd.in.h (includes): Ensure that types required by POSIX
70411         2008 are exposed when needed.
70412         * lib/stdio.in.h (includes): Likewise.
70413         Reported by Ralf Wildenhues.
70415 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
70417         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
70418         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
70419         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
70421 2010-01-06  Jim Meyering  <meyering@redhat.com>
70423         readtokens: this module *does* require xalloc.h
70424         It uses only functions that were omitted by the old syntax-check rule.
70425         * lib/readtokens.c: Include "xalloc.h" once again.
70426         * modules/readtokens (Depends-on): Add xalloc.
70427         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
70429 2010-01-05  Eric Blake  <ebb9@byu.net>
70431         maint: support 'make announcement' from a VPATH build
70432         * top/maint.mk (announcement): Look for correct NEWS file.
70434 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
70436         utimens (fdutimens): ignore a negative FD, per contract
70437         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
70438         when we have a valid file descriptor.  Otherwise, using a brand
70439         new glibc (with just-patched futimens that now fails with EBADF)
70440         would cause this function to fail with ENOSYS.
70441         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
70442         See also http://bugzilla.redhat.com/552320.
70444 2010-01-05  Eric Blake  <ebb9@byu.net>
70446         strcase: document what it provides
70447         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
70448         gnulib module.
70449         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
70450         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
70452 2010-01-05  Jim Meyering  <meyering@redhat.com>
70454         maint: remove useless inclusions of "xalloc.h"
70455         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
70456         * lib/readtokens.c: Likewise.
70457         * lib/same.c: Likewise.
70458         * modules/getloadavg (Depends-on): Remove xalloc.
70459         * modules/readtokens: Likewise.
70460         * modules/same: Likewise.
70462         maint.mk: include 4 more function names in alloca.h-checking regexp
70463         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
70464         regexp.  Before, we would give a false-positive (saying alloca.h
70465         is included unnecessarily) when the only uses involved omitted symbols.
70467         xalloc.h: use consistent formatting
70468         * lib/xalloc.h: Move declarations to start in the first column.
70470 2010-01-05  Eric Blake  <ebb9@byu.net>
70472         mkdir: avoid xalloc
70473         * lib/mkdir.c (includes): Drop unused header.
70474         Reported by John W. Eaton.
70476 2010-01-04  Jim Meyering  <meyering@redhat.com>
70478         nl_langinfo: avoid configure-time syntax error
70479         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
70480         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
70481         the empty string.  Don't let that provoke a shell syntax error.
70483         regcomp, regexec, fnmatch: avoid array bounds read error
70484         * lib/regcomp.c (build_equiv_class): From glibc:
70485         Use only the low 24 bits of a findidx return value as an index
70486         into the weights array.  Patch by Ulrich Drepper:
70487         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
70488         * lib/regexec.c (check_node_accept_bytes): Likewise.
70489         * lib/fnmatch_loop.c (FCT): Likewise.
70491         regcomp: skip collseq lookup when there are no rules
70492         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
70493         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
70495         regcomp: recognize ill-formed { } expressions
70496         * lib/regcomp.c (parse_dup_op): From glibc:
70497         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
70499         regcomp: fix typo in comment
70500         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
70501         s/satisfy/satisfies/.
70503         regcomp: sync from glibc: remove dead store
70504         * lib/regcomp.c (duplicate_node_closure): Remove useless
70505         search_duplicated_node call and dead store.
70507         regcomp: sync from glibc; always use nl_langinfo
70508         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
70509         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
70510         * modules/regex (Depends-on): Add nl_langinfo.
70512 2010-01-04  Eric Blake  <ebb9@byu.net>
70514         fdopendir: fix configure test
70515         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
70517 2010-01-01  Bruno Haible  <bruno@clisp.org>
70519         wchar: Remove unused configure check.
70520         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
70522 2010-01-01  Eric Blake  <ebb9@byu.net>
70524         headers: make check of system header explicit
70525         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
70526         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
70527         ourselves.
70528         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
70529         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
70530         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
70531         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
70532         internals.
70533         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
70534         missing.
70535         Suggested by Bruno Haible.
70537 2010-01-01  Jim Meyering  <meyering@redhat.com>
70539         ChangeLog: tweak to eliminate unnecessary copyright line
70540         * ChangeLog: Remove a copyright line that was mistakenly updated
70541         by today's update-copyright run.  Reported by Eric Blake.
70543         test-update-copyright: don't let envvar setting cause test failure
70544         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
70546 2010-01-01  Bruno Haible  <bruno@clisp.org>
70548         localename: Avoid gcc warning.
70549         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
70550         function if it is not used.
70552 2010-01-01  Jim Meyering  <meyering@redhat.com>
70554         update nearly all FSF copyright year lists to include 2010
70555         Use the same procedure as for 2009, outlined in
70556         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
70558         version-etc: set COPYRIGHT_YEAR to 2010
70559         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
70561 2009-12-31  Eric Blake  <ebb9@byu.net>
70563         doc: correct availability of cygwin 1.5.x getopt
70564         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
70565         variables.
70566         * doc/posix-functions/opterr.texi (opterr): Likewise.
70567         * doc/posix-functions/optind.texi (optind): Likewise.
70568         * doc/posix-functions/optopt.texi (optopt): Likewise.
70569         * doc/posix-functions/tzname.texi (tzname): Likewise.
70571         openat: update maintainer
70572         * modules/openat (Maintainer): Add myself.
70574         utimens: avoid shadowing warning
70575         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
70576         buffers into one, to avoid shadowing, as well as avoiding a
70577         redundant stat.
70578         Reported by Jim Meyering.
70580         test-dup2: avoid compiler warning
70581         * tests/test-dup2.c (is_inheritable): Only define if used.
70583 2010-01-01  Bruno Haible  <bruno@clisp.org>
70585         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
70586         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
70587         defined, use wctomb instead of wcrtomb.
70589 2010-01-01  Bruno Haible  <bruno@clisp.org>
70591         iconv: Reject native Solaris iconv.
70592         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
70593         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
70595 2009-12-31  Bruno Haible  <bruno@clisp.org>
70597         * tests/test-signal.c (main): Remove test of 'SIG'.
70599 2009-12-31  Bruno Haible  <bruno@clisp.org>
70601         spawn: Fix incomplete fix.
70602         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
70603         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
70604         warnings for GNULIB_POSIXCHECK again.
70605         Reported by Eric Blake.
70607 2009-12-31  Bruno Haible  <bruno@clisp.org>
70609         Avoid namespace pollution on glibc systems.
70610         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
70611         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
70612         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
70613         glibc systems.
70615 2009-12-31  Bruno Haible  <bruno@clisp.org>
70617         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
70618         (gl_REPLACE_WCHAR_H): Turn into a no-op.
70619         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
70620         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
70621         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
70622         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
70623         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
70625 2009-12-31  Bruno Haible  <bruno@clisp.org>
70627         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
70628         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
70629         afterwards.
70631 2009-12-31  Bruno Haible  <bruno@clisp.org>
70633         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
70634         SYS_UTSNAME_H.
70636 2009-12-31  Bruno Haible  <bruno@clisp.org>
70638         spawn: Fix misapplied patch.
70639         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
70640         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
70641         warnings for GNULIB_POSIXCHECK.
70643 2009-12-31  Bruno Haible  <bruno@clisp.org>
70645         times: Update after sys_times changed.
70646         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
70647         * modules/times (Files): Add it.
70648         (configure.ac): Invoke gl_FUNC_TIMES.
70650 2009-12-31  Bruno Haible  <bruno@clisp.org>
70652         Use AC_C_INLINE where necessary.
70653         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
70654         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
70655         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
70656         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
70657         * m4/mbfile.m4 (gl_MBFILE): Likewise.
70658         * m4/mbiter.m4 (gl_MBITER): Likewise.
70659         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
70660         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
70661         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
70662         * modules/u64 (configure.ac): Likewise.
70664 2009-12-31  Bruno Haible  <bruno@clisp.org>
70666         Use AC_C_INLINE instead of module 'inline' where possible.
70667         * modules/inline (Description): Clarify purpose.
70668         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
70669         * modules/count-one-bits (Depends-on): Remove inline.
70670         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
70671         * modules/openat (Depends-on): Remove inline.
70672         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
70673         instead of depending on module 'inline'.
70674         * modules/filevercmp (Depends-on, configure.ac): Likewise.
70675         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
70676         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
70677         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
70678         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
70679         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
70680         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
70681         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
70682         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
70683         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
70684         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
70685         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
70686         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
70687         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
70688         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
70689         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
70690         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
70691         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
70692         Likewise.
70693         * modules/unictype/property-ascii-hex-digit (Depends-on,
70694         configure.ac): Likewise.
70695         * modules/unictype/property-bidi-arabic-digit (Depends-on,
70696         configure.ac): Likewise.
70697         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
70698         configure.ac): Likewise.
70699         * modules/unictype/property-bidi-block-separator (Depends-on,
70700         configure.ac): Likewise.
70701         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
70702         configure.ac): Likewise.
70703         * modules/unictype/property-bidi-common-separator (Depends-on,
70704         configure.ac): Likewise.
70705         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
70706         Likewise.
70707         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
70708         configure.ac): Likewise.
70709         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
70710         configure.ac): Likewise.
70711         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
70712         configure.ac): Likewise.
70713         * modules/unictype/property-bidi-european-digit (Depends-on,
70714         configure.ac): Likewise.
70715         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
70716         configure.ac): Likewise.
70717         * modules/unictype/property-bidi-left-to-right (Depends-on,
70718         configure.ac): Likewise.
70719         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
70720         configure.ac): Likewise.
70721         * modules/unictype/property-bidi-other-neutral (Depends-on,
70722         configure.ac): Likewise.
70723         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
70724         Likewise.
70725         * modules/unictype/property-bidi-segment-separator (Depends-on,
70726         configure.ac): Likewise.
70727         * modules/unictype/property-bidi-whitespace (Depends-on,
70728         configure.ac): Likewise.
70729         * modules/unictype/property-combining (Depends-on, configure.ac):
70730         Likewise.
70731         * modules/unictype/property-composite (Depends-on, configure.ac):
70732         Likewise.
70733         * modules/unictype/property-currency-symbol (Depends-on,
70734         configure.ac): Likewise.
70735         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
70736         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
70737         Likewise.
70738         * modules/unictype/property-default-ignorable-code-point (Depends-on,
70739         configure.ac): Likewise.
70740         * modules/unictype/property-deprecated (Depends-on, configure.ac):
70741         Likewise.
70742         * modules/unictype/property-diacritic (Depends-on, configure.ac):
70743         Likewise.
70744         * modules/unictype/property-extender (Depends-on, configure.ac):
70745         Likewise.
70746         * modules/unictype/property-format-control (Depends-on, configure.ac):
70747         Likewise.
70748         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
70749         Likewise.
70750         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
70751         Likewise.
70752         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
70753         Likewise.
70754         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
70755         Likewise.
70756         * modules/unictype/property-hyphen (Depends-on, configure.ac):
70757         Likewise.
70758         * modules/unictype/property-id-continue (Depends-on, configure.ac):
70759         Likewise.
70760         * modules/unictype/property-id-start (Depends-on, configure.ac):
70761         Likewise.
70762         * modules/unictype/property-ideographic (Depends-on, configure.ac):
70763         Likewise.
70764         * modules/unictype/property-ids-binary-operator (Depends-on,
70765         configure.ac): Likewise.
70766         * modules/unictype/property-ids-trinary-operator (Depends-on,
70767         configure.ac): Likewise.
70768         * modules/unictype/property-ignorable-control (Depends-on,
70769         configure.ac): Likewise.
70770         * modules/unictype/property-iso-control (Depends-on, configure.ac):
70771         Likewise.
70772         * modules/unictype/property-join-control (Depends-on, configure.ac):
70773         Likewise.
70774         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
70775         Likewise.
70776         * modules/unictype/property-line-separator (Depends-on, configure.ac):
70777         Likewise.
70778         * modules/unictype/property-logical-order-exception (Depends-on,
70779         configure.ac): Likewise.
70780         * modules/unictype/property-lowercase (Depends-on, configure.ac):
70781         Likewise.
70782         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
70783         * modules/unictype/property-non-break (Depends-on, configure.ac):
70784         Likewise.
70785         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
70786         Likewise.
70787         * modules/unictype/property-numeric (Depends-on, configure.ac):
70788         Likewise.
70789         * modules/unictype/property-other-alphabetic (Depends-on,
70790         configure.ac): Likewise.
70791         * modules/unictype/property-other-default-ignorable-code-point
70792         (Depends-on, configure.ac): Likewise.
70793         * modules/unictype/property-other-grapheme-extend (Depends-on,
70794         configure.ac): Likewise.
70795         * modules/unictype/property-other-id-continue (Depends-on,
70796         configure.ac): Likewise.
70797         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
70798         Likewise.
70799         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
70800         Likewise.
70801         * modules/unictype/property-other-math (Depends-on, configure.ac):
70802         Likewise.
70803         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
70804         Likewise.
70805         * modules/unictype/property-paired-punctuation (Depends-on,
70806         configure.ac): Likewise.
70807         * modules/unictype/property-paragraph-separator (Depends-on,
70808         configure.ac): Likewise.
70809         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
70810         Likewise.
70811         * modules/unictype/property-pattern-white-space (Depends-on,
70812         configure.ac): Likewise.
70813         * modules/unictype/property-private-use (Depends-on, configure.ac):
70814         Likewise.
70815         * modules/unictype/property-punctuation (Depends-on, configure.ac):
70816         Likewise.
70817         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
70818         Likewise.
70819         * modules/unictype/property-radical (Depends-on, configure.ac):
70820         Likewise.
70821         * modules/unictype/property-sentence-terminal (Depends-on,
70822         configure.ac): Likewise.
70823         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
70824         Likewise.
70825         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
70826         * modules/unictype/property-terminal-punctuation (Depends-on,
70827         configure.ac): Likewise.
70828         * modules/unictype/property-titlecase (Depends-on, configure.ac):
70829         Likewise.
70830         * modules/unictype/property-unassigned-code-value (Depends-on,
70831         configure.ac): Likewise.
70832         * modules/unictype/property-unified-ideograph (Depends-on,
70833         configure.ac): Likewise.
70834         * modules/unictype/property-uppercase (Depends-on, configure.ac):
70835         Likewise.
70836         * modules/unictype/property-variation-selector (Depends-on,
70837         configure.ac): Likewise.
70838         * modules/unictype/property-white-space (Depends-on, configure.ac):
70839         Likewise.
70840         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
70841         Likewise.
70842         * modules/unictype/property-xid-start (Depends-on, configure.ac):
70843         Likewise.
70844         * modules/unictype/property-zero-width (Depends-on, configure.ac):
70845         Likewise.
70846         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
70847         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
70848         Likewise.
70850 2009-12-31  Bruno Haible  <bruno@clisp.org>
70852         Remove unnecessary AC_C_INLINE invocation.
70853         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
70854         since 2009-08-21.
70856 2009-12-31  Jim Meyering  <meyering@redhat.com>
70858         maint.mk: don't require explicit gpg_key_ID in cfg.mk
70859         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
70860         With this change, we can all remove the gpg_key_ID = ... definition
70861         from our respective cfg.mk files.
70863         maint.mk: create announcement template in ~/, not in /tmp
70864         * top/maint.mk (emit_upload_commands): Adjust.
70865         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
70866         Remove temporary file, .ci-msg.
70868 2009-12-31  Eric Blake  <ebb9@byu.net>
70870         link-warning: always build headers with link warnings
70871         * modules/arpa_inet (Makefile.am): Always build replacement
70872         header.
70873         * modules/ctype (Makefile.am): Likewise.
70874         * modules/dirent (Makefile.am): Likewise.
70875         * modules/inttypes (Makefile.am): Likewise.
70876         * modules/langinfo (Makefile.am): Likewise.
70877         * modules/locale (Makefile.am): Likewise.
70878         * modules/spawn (Makefile.am): Likewise.
70879         * modules/sys_file (Makefile.am): Likewise.
70880         * modules/sys_ioctl (Makefile.am): Likewise.
70881         * modules/sys_select (Makefile.am): Likewise.
70882         * modules/sys_socket (Makefile.am): Likewise.
70883         * modules/sys_times (Makefile.am): Likewise.
70884         * modules/sys_utsname (Makefile.am): Likewise.
70885         * modules/sys_wait (Makefile.am): Likewise.
70886         * modules/wchar (Makefile.am): Likewise.
70887         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
70888         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
70889         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
70890         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
70891         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
70892         Likewise.
70893         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
70894         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
70895         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
70896         Likewise.
70897         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
70898         Likewise.
70899         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
70900         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
70901         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
70902         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
70903         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
70904         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
70905         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
70906         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
70907         (gl_WCHAR_H_DEFAULTS): Likewise.
70909 2009-12-31  Eric Blake  <ebb9@byu.net>
70911         signal, spawn: use link warnings
70912         * lib/signal.in.h (sigset_t): Make unconditional.
70913         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
70914         (sigpending, sigprocmask, sigaction): Add link warnings.
70915         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
70916         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
70917         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
70918         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
70919         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
70920         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
70921         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
70922         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
70923         (posix_spawn_file_actions_destroy)
70924         (posix_spawn_file_actions_addopen)
70925         (posix_spawn_file_actions_addclose)
70926         (posix_spawn_file_actions_adddup2): Likewise.
70927         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
70928         * tests/test-signal.c (main): Enhance test.
70930         spawn: improve wrapper support
70931         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
70932         (gl_SPAWN_H_DEFAULTS): New defaults.
70933         * modules/spawn (Makefile.am): Substitute them.
70934         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
70935         Only declare if missing or broken.
70937         sys_times, sys_utsname: use include_next
70938         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
70939         header.
70940         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
70941         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
70942         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
70943         * modules/sys_times (Depends-on): Add include_next.
70944         (Makefile.am): Substitute additional values.
70945         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
70946         * lib/sys_times.in.h (includes): Include native header, if
70947         available.
70948         * lib/sys_utsname.in.h (includes): Likewise.
70949         * tests/test-sys_times.c (main): Enhance test.
70951         fdutimensat: revert prior patch
70952         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
70953         utimens.h.
70954         Reported by Bruno Haible.
70956 2009-12-30  Eric Blake  <ebb9@byu.net>
70958         sys_wait: drop link-warning dependency
70959         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
70960         link-warning efforts.
70961         * lib/sys_wait.in.h: Likewise.
70963         fdutimensat: remove bogus dependency
70964         * modules/fdutimensat (Depends-on): Drop inline.
70966         unistd: fix typo
70967         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
70969 2009-12-30  Bruno Haible  <bruno@clisp.org>
70971         Fix compilation error with Solaris cc.
70972         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
70973         * lib/unicase/u16-is-invariant.c: Likewise.
70974         * lib/unicase/u32-is-invariant.c: Likewise.
70975         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
70977 2009-12-30  Bruno Haible  <bruno@clisp.org>
70979         Fix test crash.
70980         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
70981         locales.
70982         Reported by Simon Josefsson <simon@josefsson.org>.
70984 2009-12-30  Bruno Haible  <bruno@clisp.org>
70986         Fix compilation error on most platforms.
70987         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
70988         Reported by Simon Josefsson <simon@josefsson.org>
70989         and Nelson H. F. Beebe <beebe@math.utah.edu>.
70991 2009-12-30  Eric Blake  <ebb9@byu.net>
70993         futimens, utimensat: work around ntfs-3g bug
70994         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
70995         a ctime bug is present, and expand workaround to cover ntfs-3g.
70996         * lib/utimens.c (fdutimens, lutimens): Likewise.
70997         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
70998         (validate_timespec): Adjust return value.
70999         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
71000         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
71001         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
71003 2009-12-29  Eric Blake  <ebb9@byu.net>
71005         link-warning: make usage consistent
71006         * modules/ctype (Depends-on): Add link-warning.
71007         (Makefile.am): Update rules accordingly.
71008         * modules/langinfo (Depends-on, Makefile.am): Likewise.
71009         * modules/locale (Depends-on, Makefile.am): Likewise.
71010         * modules/sys_file (Makefile.am): Likewise.
71011         * modules/getopt-posix (Makefile.am): Delete unused link warning
71012         efforts.
71013         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
71014         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
71015         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
71016         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
71018         stdio: remove unused variables
71019         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
71020         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
71021         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
71023         tests: test more substitute headers
71024         * modules/ctype-tests: New file.
71025         * modules/dirent-tests: Likewise.
71026         * modules/spawn-tests: Likewise.
71027         * modules/sys_file-tests: Likewise.
71028         * modules/sys_ioctl-tests: Likewise.
71029         * modules/sys_wait-tests: Likewise.
71030         * tests/test-ctype.c: Likewise.
71031         * tests/test-dirent.c: Likewise.
71032         * tests/test-spawn.c: Likewise.
71033         * tests/test-sys_file.c: Likewise.
71034         * tests/test-sys_ioctl.c: Likewise.
71035         * tests/test-sys_wait.c: Likewise.
71036         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
71037         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
71038         whether or not flock is in use.
71040         tests: remove License section from module
71041         * modules/arpa_inet-tests: Remove unneeded section.
71042         * modules/byteswap-tests: Likewise.
71043         * modules/ceilf-tests: Likewise.
71044         * modules/ceill-tests: Likewise.
71045         * modules/crypto/des-tests: Likewise.
71046         * modules/crypto/gc-arcfour-tests: Likewise.
71047         * modules/crypto/gc-arctwo-tests: Likewise.
71048         * modules/crypto/gc-des-tests: Likewise.
71049         * modules/crypto/gc-hmac-md5-tests: Likewise.
71050         * modules/crypto/gc-hmac-sha1-tests: Likewise.
71051         * modules/crypto/gc-md2-tests: Likewise.
71052         * modules/crypto/gc-md4-tests: Likewise.
71053         * modules/crypto/gc-md5-tests: Likewise.
71054         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
71055         * modules/crypto/gc-rijndael-tests: Likewise.
71056         * modules/crypto/gc-sha1-tests: Likewise.
71057         * modules/crypto/gc-tests: Likewise.
71058         * modules/crypto/md2-tests: Likewise.
71059         * modules/crypto/md4-tests: Likewise.
71060         * modules/fcntl-h-tests: Likewise.
71061         * modules/floorf-tests: Likewise.
71062         * modules/floorl-tests: Likewise.
71063         * modules/frexp-nolibm-tests: Likewise.
71064         * modules/frexp-tests: Likewise.
71065         * modules/frexpl-nolibm-tests: Likewise.
71066         * modules/frexpl-tests: Likewise.
71067         * modules/getaddrinfo-tests: Likewise.
71068         * modules/inttypes-tests: Likewise.
71069         * modules/isfinite-tests: Likewise.
71070         * modules/isinf-tests: Likewise.
71071         * modules/ldexpl-tests: Likewise.
71072         * modules/locale-tests: Likewise.
71073         * modules/math-tests: Likewise.
71074         * modules/netdb-tests: Likewise.
71075         * modules/netinet_in-tests: Likewise.
71076         * modules/printf-frexp-tests: Likewise.
71077         * modules/printf-frexpl-tests: Likewise.
71078         * modules/priv-set-tests: Likewise.
71079         * modules/random_r-tests: Likewise.
71080         * modules/round-tests: Likewise.
71081         * modules/roundf-tests: Likewise.
71082         * modules/roundl-tests: Likewise.
71083         * modules/search-tests: Likewise.
71084         * modules/select-tests: Likewise.
71085         * modules/signal-tests: Likewise.
71086         * modules/stdbool-tests: Likewise.
71087         * modules/stddef-tests: Likewise.
71088         * modules/stdint-tests: Likewise.
71089         * modules/stdio-tests: Likewise.
71090         * modules/stdlib-tests: Likewise.
71091         * modules/string-tests: Likewise.
71092         * modules/strings-tests: Likewise.
71093         * modules/sys_select-tests: Likewise.
71094         * modules/sys_socket-tests: Likewise.
71095         * modules/sys_stat-tests: Likewise.
71096         * modules/sys_time-tests: Likewise.
71097         * modules/sys_utsname-tests: Likewise.
71098         * modules/sysexits-tests: Likewise.
71099         * modules/time-tests: Likewise.
71100         * modules/trunc-tests: Likewise.
71101         * modules/truncf-tests: Likewise.
71102         * modules/truncl-tests: Likewise.
71103         * modules/tsearch-tests: Likewise.
71104         * modules/unistd-tests: Likewise.
71105         * modules/wchar-tests: Likewise.
71106         * modules/wctype-tests: Likewise.
71108         tests: fix license on several tests
71109         * tests/test-des.c: Update to GPLv3+.
71110         * tests/test-flock.c: Likewise.
71111         * tests/test-fsync.c: Likewise.
71112         * tests/test-futimens.h: Likewise.
71113         * tests/test-gc-arcfour.c: Likewise.
71114         * tests/test-gc-arctwo.c: Likewise.
71115         * tests/test-gc-des.c: Likewise.
71116         * tests/test-gc-hmac-md5.c: Likewise.
71117         * tests/test-gc-hmac-sha1.c: Likewise.
71118         * tests/test-gc-md2.c: Likewise.
71119         * tests/test-gc-md4.c: Likewise.
71120         * tests/test-gc-md5.c: Likewise.
71121         * tests/test-gc-pbkdf2-sha1.c: Likewise.
71122         * tests/test-gc-rijndael.c: Likewise.
71123         * tests/test-gc-sha1.c: Likewise.
71124         * tests/test-gc.c: Likewise.
71125         * tests/test-getcwd.c: Likewise.
71126         * tests/test-link.c: Likewise.
71127         * tests/test-link.h: Likewise.
71128         * tests/test-lutimens.h: Likewise.
71129         * tests/test-md2.c: Likewise.
71130         * tests/test-md4.c: Likewise.
71131         * tests/test-mkdir.h: Likewise.
71132         * tests/test-rename.c: Likewise.
71133         * tests/test-rename.h: Likewise.
71134         * tests/test-safe-alloc.c: Likewise.
71135         * tests/test-utimens-common.h: Likewise.
71136         * tests/test-utimens.h: Likewise.
71138         maint: sync license texts
71139         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
71140         * doc/gpl-3.0.texi: Revert copyright year update.
71141         * doc/lgpl-3.0.texi: Likewise.
71143 2009-12-29  Jim Meyering  <meyering@redhat.com>
71145         update nearly all FSF copyright year lists to include 2009
71146         The files named by the following are exempted:
71147             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
71148               test -f "$dst" && { echo "$dst"; continue; }
71149               test -d "$dst" || continue
71150               echo "$dst"/$(basename "$src")
71151             done > exempt
71152             git ls-files tests/unictype >> exempt
71153         In the remaining files, convert to all-interval notation if
71154         - there is already at least one year interval like 2000-2003
71155         - the file is maintained by me
71156         - the file is in lib/uni*/, where that style already prevails
71157         Otherwise, use update-copyright's default.
71159 2009-12-29  Simon Josefsson  <simon@josefsson.org>
71160         and Eric Blake  <ebb9@byu.net>
71162         tests: don't require debug system() to pass
71163         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
71164         * tests/test-rmdir.h (test_rmdir_func): Likewise.
71165         * tests/test-unlink.h (test_unlink_func): Likewise.
71166         * tests/test-fstatat.c (main): ...into callers.
71167         * tests/test-lstat.c (main): Likewise.
71168         * tests/test-rmdir.c (main): Likewise.
71169         * tests/test-unlink.c (main): Likewise.
71170         * tests/test-unlinkat.c (main): Likewise.
71171         * tests/test-areadlink-with-size.c (main): Don't require a
71172         debug-only system call to pass, aiding cross-testing to mingw.
71173         * tests/test-areadlink.c (main): Likewise.
71174         * tests/test-areadlinkat-with-size.c (main): Likewise.
71175         * tests/test-areadlinkat.c (main): Likewise.
71176         * tests/test-canonicalize-lgpl.c (main): Likewise.
71177         * tests/test-canonicalize.c (main): Likewise.
71178         * tests/test-chown.c (main): Likewise.
71179         * tests/test-fchownat.c (main): Likewise.
71180         * tests/test-lchown.c (main): Likewise.
71181         * tests/test-fdutimensat.c (main): Likewise.
71182         * tests/test-futimens.c (main): Likewise.
71183         * tests/test-link.c (main): Likewise.
71184         * tests/test-linkat.c (main): Likewise.
71185         * tests/test-mkdir.c (main): Likewise.
71186         * tests/test-mkdirat.c (main): Likewise.
71187         * tests/test-mkfifo.c (main): Likewise.
71188         * tests/test-mkfifoat.c (main): Likewise.
71189         * tests/test-mknod.c (main): Likewise.
71190         * tests/test-readlink.c (main): Likewise.
71191         * tests/test-remove.c (main): Likewise.
71192         * tests/test-rename.c (main): Likewise.
71193         * tests/test-renameat.c (main): Likewise.
71194         * tests/test-symlink.c (main): Likewise.
71195         * tests/test-symlinkat.c (main): Likewise.
71196         * tests/test-utimens.c (main): Likewise.
71197         * tests/test-utimensat.c (main): Likewise.
71199 2009-12-29  Simon Josefsson  <simon@josefsson.org>
71201         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
71202         on $(UNUSED_PARAMETER_H) to avoid build failure.
71204 2009-12-28  Jim Meyering  <meyering@redhat.com>
71206         update-copyright: you may specify a max. line length other than 72
71207         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
71209         maint: use consistent FSF copyright line syntax
71210         * lib/posixtm.c: Add missing comma in FSF copyright line.
71211         * lib/posixtm.h: Likewise.
71212         * lib/getugroups.c: Add missing ", Inc.".
71214         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
71215         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
71216         FSF copyright line.  Remove trailing blanks.
71218 2009-12-28  Eric Blake  <ebb9@byu.net>
71220         test-dup2: reduce dependencies
71221         * modules/cloexec (Configure.ac): Set witness.
71222         * modules/dup2-tests (Depends-on): Drop cloexec.
71223         * tests/test-dup2.c (main): Skip portion of test if cloexec module
71224         not present.
71225         Suggested by Bruno Haible.
71227 2009-12-26  Bruno Haible  <bruno@clisp.org>
71229         Remove an unneeded dependency.
71230         * modules/fseterr (Depends-on): Remove dup2.
71232 2009-12-26  Eric Blake  <ebb9@byu.net>
71234         tests: use macros.h in more places
71235         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
71236         (ASSERT_STREAM): Provide default of stderr.
71237         * tests/test-dirent-safer.c: Include macros.h, using alternate
71238         stream for assertions.
71239         * tests/test-dup-safer.c: Likewise.
71240         * tests/test-freopen-safer.c: Likewise.
71241         * tests/test-getopt.c: Likewise.
71242         * tests/test-openat-safer.c: Likewise.
71243         * tests/test-pipe.c: Likewise.
71244         * tests/test-popen-safer.c: Likewise.
71245         * modules/dirent-safer-tests (Files): Include macros.h.
71246         * modules/unistd-safer-tests (Files): Likewise.
71247         * modules/freopen-safer-tests (Files): Likewise.
71248         * modules/getopt-posix-tests (Files): Likewise.
71249         * modules/openat-safer-tests (Files): Likewise.
71250         * modules/pipe-tests (Files): Likewise.
71252 2009-12-26  Bruno Haible  <bruno@clisp.org>
71254         javacomp-script: Portability fix.
71255         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
71256         that it also works on Solaris.
71258 2009-12-26  Bruno Haible  <bruno@clisp.org>
71260         localename: Fix storage allocation of gl_locale_name_thread's result.
71261         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
71262         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
71263         all platforms that have 'uselocale'.
71264         (gl_locale_name_thread_unsafe): New function, extracted from
71265         gl_locale_name_thread.
71266         (gl_locale_name_thread): Call struniq on all platforms that have
71267         'uselocale'.
71268         * tests/test-localename.c (test_locale_name_thread): Check that the
71269         resulting strings are permanently allocated.
71270         * modules/localename-tests (Depends-on): Add strdup.
71272 2009-12-26  Bruno Haible  <bruno@clisp.org>
71274         * tests/test-localename.c (categories): Fill in the strings.
71276 2009-12-26  Jim Meyering  <meyering@redhat.com>
71278         isdir: complete the removal of m4/isdir.m4
71279         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
71281         isdir: clean up, since at least grep still uses it
71282         * lib/isdir.c: Include "isdir.h".
71283         (S_ISDIR): Remove now-unneeded definition.
71284         * modules/isdir (Files): Add lib/isdir.h.
71285         * lib/isdir.h: New file, with declaration.
71286         * m4/isdir.m4: Remove file -- unneeded.
71288 2009-12-25  Bruno Haible  <bruno@clisp.org>
71290         selinux-h: Make generated .h files standalone.
71291         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
71292         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
71293         * lib/se-selinux.in.h: Likewise.
71294         * modules/selinux-h (Depends-on): Add unused-parameter.
71295         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
71296         selinux/selinux.h and selinux/context.h.
71297         Suggested by Eric Blake.
71299 2009-12-25  Bruno Haible  <bruno@clisp.org>
71301         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
71302         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
71303         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
71304         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
71305         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
71307 2009-12-24  Bruno Haible  <bruno@clisp.org>
71309         openat: Fix warning.
71310         * lib/openat-proc.c: Include <unistd.h>.
71312 2009-12-24  Bruno Haible  <bruno@clisp.org>
71314         New module 'unused-parameter'.
71315         * build-aux/unused-parameter.h: New file, extracted from earlier
71316         gnulib-common.m4.
71317         * modules/unused-parameter: New file.
71318         * lib/unistr.h: Include unused-parameter.h.
71319         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
71320         _GL_UNUSED.
71321         * modules/unistr/base (Depends-on): Add unused-parameter.
71323 2009-12-24  Bruno Haible  <bruno@clisp.org>
71325         Add missing dependencies to 'extensions' module.
71326         * m4/extensions.m4: Add comment.
71327         * modules/accept4 (Depends-on): Add extensions.
71328         * modules/dup3 (Depends-on): Likewise.
71329         * modules/fcntl (Depends-on): Likewise.
71330         * modules/futimens (Depends-on): Likewise.
71331         * modules/mknod (Depends-on): Likewise.
71332         * modules/pipe2 (Depends-on): Likewise.
71333         * modules/stat-time (Depends-on): Likewise.
71334         * modules/strcasestr-simple (Depends-on): Likewise.
71335         * modules/strsignal (Depends-on): Likewise.
71336         * modules/utimensat (Depends-on): Likewise.
71337         * modules/localcharset (Depends-on): Likewise. Needed because of
71338         gl_FCNTL_O_FLAGS.
71339         * modules/wcrtomb (Depends-on): Likewise. Needed because of
71340         AC_TYPE_MBSTATE_T.
71341         * modules/wcsnrtombs (Depends-on): Likewise.
71342         * modules/wcsrtombs (Depends-on): Likewise.
71344 2009-12-24  Bruno Haible  <bruno@clisp.org>
71346         binary-io: Avoid gcc warning due to SET_BINARY.
71347         * lib/binary-io.h (SET_BINARY): Cast the result to void.
71348         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
71350 2009-12-24  Bruno Haible  <bruno@clisp.org>
71352         Avoid future namespace pollution on glibc systems.
71353         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
71354         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
71355         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
71356         glibc systems.
71358 2009-12-24  Bruno Haible  <bruno@clisp.org>
71360         Refactor common macros used in tests.
71361         * tests/macros.h: New file.
71362         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
71363         and/or <stdlib.h>, if appropriate.
71364         (ASSERT, SIZEOF): Remove macros.
71365         * tests/test-areadlink-with-size.c: Likewise.
71366         * tests/test-areadlinkat.c: Likewise.
71367         * tests/test-areadlinkat-with-size.c: Likewise.
71368         * tests/test-argmatch.c: Likewise.
71369         * tests/test-argv-iter.c: Likewise.
71370         * tests/test-array-mergesort.c: Likewise.
71371         * tests/test-array_list.c: Likewise.
71372         * tests/test-array_oset.c: Likewise.
71373         * tests/test-avltree_list.c: Likewise.
71374         * tests/test-avltree_oset.c: Likewise.
71375         * tests/test-avltreehash_list.c: Likewise.
71376         * tests/test-base64.c: Likewise.
71377         * tests/test-binary-io.c: Likewise.
71378         * tests/test-bitrotate.c: Likewise.
71379         * tests/test-btowc.c: Likewise.
71380         * tests/test-byteswap.c: Likewise.
71381         * tests/test-c-ctype.c: Likewise.
71382         * tests/test-c-stack.c: Likewise.
71383         * tests/test-c-strcasecmp.c: Likewise.
71384         * tests/test-c-strcasestr.c: Likewise.
71385         * tests/test-c-strncasecmp.c: Likewise.
71386         * tests/test-c-strstr.c: Likewise.
71387         * tests/test-canonicalize-lgpl.c: Likewise.
71388         * tests/test-canonicalize.c: Likewise.
71389         * tests/test-carray_list.c: Likewise.
71390         * tests/test-ceilf1.c: Likewise.
71391         * tests/test-ceilf2.c: Likewise.
71392         * tests/test-ceill.c: Likewise.
71393         * tests/test-chown.c: Likewise.
71394         * tests/test-cloexec.c: Likewise.
71395         * tests/test-copy-acl.c: Likewise.
71396         * tests/test-copy-file.c: Likewise.
71397         * tests/test-count-one-bits.c: Likewise.
71398         * tests/test-dprintf-posix.c: Likewise.
71399         * tests/test-dup2.c: Likewise.
71400         * tests/test-dup3.c: Likewise.
71401         * tests/test-duplocale.c: Likewise.
71402         * tests/test-fbufmode.c: Likewise.
71403         * tests/test-fchdir.c: Likewise.
71404         * tests/test-fchownat.c: Likewise.
71405         * tests/test-fcntl-safer.c: Likewise.
71406         * tests/test-fcntl.c: Likewise.
71407         * tests/test-fdopendir.c: Likewise.
71408         * tests/test-fdutimensat.c: Likewise.
71409         * tests/test-fflush2.c: Likewise.
71410         * tests/test-file-has-acl.c: Likewise.
71411         * tests/test-filevercmp.c: Likewise.
71412         * tests/test-flock.c: Likewise.
71413         * tests/test-floorf1.c: Likewise.
71414         * tests/test-floorf2.c: Likewise.
71415         * tests/test-floorl.c: Likewise.
71416         * tests/test-fnmatch.c: Likewise.
71417         * tests/test-fopen.h: Likewise.
71418         * tests/test-fpending.c: Likewise.
71419         * tests/test-fprintf-posix.c: Likewise.
71420         * tests/test-fpurge.c: Likewise.
71421         * tests/test-freadable.c: Likewise.
71422         * tests/test-freadahead.c: Likewise.
71423         * tests/test-freading.c: Likewise.
71424         * tests/test-freadptr.c: Likewise.
71425         * tests/test-freadptr2.c: Likewise.
71426         * tests/test-freadseek.c: Likewise.
71427         * tests/test-freopen.c: Likewise.
71428         * tests/test-frexp.c: Likewise.
71429         * tests/test-frexpl.c: Likewise.
71430         * tests/test-fseek.c: Likewise.
71431         * tests/test-fseeko.c: Likewise.
71432         * tests/test-fstatat.c: Likewise.
71433         * tests/test-fstrcmp.c: Likewise.
71434         * tests/test-fsync.c: Likewise.
71435         * tests/test-ftell.c: Likewise.
71436         * tests/test-ftello.c: Likewise.
71437         * tests/test-func.c: Likewise.
71438         * tests/test-futimens.c: Likewise.
71439         * tests/test-fwritable.c: Likewise.
71440         * tests/test-fwriting.c: Likewise.
71441         * tests/test-getcwd.c: Likewise.
71442         * tests/test-getdate.c: Likewise.
71443         * tests/test-getdelim.c: Likewise.
71444         * tests/test-getdtablesize.c: Likewise.
71445         * tests/test-getgroups.c: Likewise.
71446         * tests/test-getline.c: Likewise.
71447         * tests/test-getndelim2.c: Likewise.
71448         * tests/test-glob.c: Likewise.
71449         * tests/test-hash.c: Likewise.
71450         * tests/test-i-ring.c: Likewise.
71451         * tests/test-iconv-utf.c: Likewise.
71452         * tests/test-iconv.c: Likewise.
71453         * tests/test-idpriv-drop.c: Likewise.
71454         * tests/test-idpriv-droptemp.c: Likewise.
71455         * tests/test-inet_ntop.c: Likewise.
71456         * tests/test-inet_pton.c: Likewise.
71457         * tests/test-isblank.c: Likewise.
71458         * tests/test-isfinite.c: Likewise.
71459         * tests/test-isinf.c: Likewise.
71460         * tests/test-isnan.c: Likewise.
71461         * tests/test-isnand.h: Likewise.
71462         * tests/test-isnanf.h: Likewise.
71463         * tests/test-isnanl.h: Likewise.
71464         * tests/test-lchown.c: Likewise.
71465         * tests/test-ldexpl.c: Likewise.
71466         * tests/test-link.c: Likewise.
71467         * tests/test-linkat.c: Likewise.
71468         * tests/test-linked_list.c: Likewise.
71469         * tests/test-linkedhash_list.c: Likewise.
71470         * tests/test-localename.c: Likewise.
71471         * tests/test-lseek.c: Likewise.
71472         * tests/test-lstat.c: Likewise.
71473         * tests/test-mbmemcasecmp.c: Likewise.
71474         * tests/test-mbmemcasecoll.c: Likewise.
71475         * tests/test-mbrtowc.c: Likewise.
71476         * tests/test-mbscasecmp.c: Likewise.
71477         * tests/test-mbscasestr1.c: Likewise.
71478         * tests/test-mbscasestr2.c: Likewise.
71479         * tests/test-mbscasestr3.c: Likewise.
71480         * tests/test-mbscasestr4.c: Likewise.
71481         * tests/test-mbschr.c: Likewise.
71482         * tests/test-mbscspn.c: Likewise.
71483         * tests/test-mbsinit.c: Likewise.
71484         * tests/test-mbsncasecmp.c: Likewise.
71485         * tests/test-mbsnrtowcs.c: Likewise.
71486         * tests/test-mbspbrk.c: Likewise.
71487         * tests/test-mbspcasecmp.c: Likewise.
71488         * tests/test-mbsrchr.c: Likewise.
71489         * tests/test-mbsrtowcs.c: Likewise.
71490         * tests/test-mbsspn.c: Likewise.
71491         * tests/test-mbsstr1.c: Likewise.
71492         * tests/test-mbsstr2.c: Likewise.
71493         * tests/test-mbsstr3.c: Likewise.
71494         * tests/test-memchr.c: Likewise.
71495         * tests/test-memchr2.c: Likewise.
71496         * tests/test-memcmp.c: Likewise.
71497         * tests/test-memmem.c: Likewise.
71498         * tests/test-memrchr.c: Likewise.
71499         * tests/test-mkdir.c: Likewise.
71500         * tests/test-mkdirat.c: Likewise.
71501         * tests/test-mkfifo.c: Likewise.
71502         * tests/test-mkfifoat.c: Likewise.
71503         * tests/test-mknod.c: Likewise.
71504         * tests/test-nanosleep.c: Likewise.
71505         * tests/test-nl_langinfo.c: Likewise.
71506         * tests/test-obstack-printf.c: Likewise.
71507         * tests/test-open.c: Likewise.
71508         * tests/test-openat.c: Likewise.
71509         * tests/test-pipe-filter-gi1.c: Likewise.
71510         * tests/test-pipe-filter-gi2-main.c: Likewise.
71511         * tests/test-pipe-filter-ii1.c: Likewise.
71512         * tests/test-pipe-filter-ii2-main.c: Likewise.
71513         * tests/test-pipe2.c: Likewise.
71514         * tests/test-popen.h: Likewise.
71515         * tests/test-posixtm.c: Likewise.
71516         * tests/test-pread.c: Likewise.
71517         * tests/test-printf-frexp.c: Likewise.
71518         * tests/test-printf-frexpl.c: Likewise.
71519         * tests/test-printf-posix.c: Likewise.
71520         * tests/test-priv-set.c: Likewise.
71521         * tests/test-quotearg.c: Likewise.
71522         * tests/test-random_r.c: Likewise.
71523         * tests/test-rawmemchr.c: Likewise.
71524         * tests/test-rbtree_list.c: Likewise.
71525         * tests/test-rbtree_oset.c: Likewise.
71526         * tests/test-rbtreehash_list.c: Likewise.
71527         * tests/test-readlink.c: Likewise.
71528         * tests/test-remove.c: Likewise.
71529         * tests/test-rename.c: Likewise.
71530         * tests/test-renameat.c: Likewise.
71531         * tests/test-rmdir.c: Likewise.
71532         * tests/test-round1.c: Likewise.
71533         * tests/test-roundf1.c: Likewise.
71534         * tests/test-roundl.c: Likewise.
71535         * tests/test-safe-alloc.c: Likewise.
71536         * tests/test-sameacls.c: Likewise.
71537         * tests/test-set-mode-acl.c: Likewise.
71538         * tests/test-setenv.c: Likewise.
71539         * tests/test-sigaction.c: Likewise.
71540         * tests/test-signbit.c: Likewise.
71541         * tests/test-sleep.c: Likewise.
71542         * tests/test-snprintf-posix.c: Likewise.
71543         * tests/test-snprintf.c: Likewise.
71544         * tests/test-sprintf-posix.c: Likewise.
71545         * tests/test-stat-time.c: Likewise.
71546         * tests/test-stat.c: Likewise.
71547         * tests/test-strcasestr.c: Likewise.
71548         * tests/test-strchrnul.c: Likewise.
71549         * tests/test-strerror.c: Likewise.
71550         * tests/test-striconv.c: Likewise.
71551         * tests/test-striconveh.c: Likewise.
71552         * tests/test-striconveha.c: Likewise.
71553         * tests/test-strsignal.c: Likewise.
71554         * tests/test-strstr.c: Likewise.
71555         * tests/test-strtod.c: Likewise.
71556         * tests/test-strverscmp.c: Likewise.
71557         * tests/test-symlink.c: Likewise.
71558         * tests/test-symlinkat.c: Likewise.
71559         * tests/test-trunc1.c: Likewise.
71560         * tests/test-trunc2.c: Likewise.
71561         * tests/test-truncf1.c: Likewise.
71562         * tests/test-truncf2.c: Likewise.
71563         * tests/test-truncl.c: Likewise.
71564         * tests/test-uname.c: Likewise.
71565         * tests/test-unlink.c: Likewise.
71566         * tests/test-unlinkat.c: Likewise.
71567         * tests/test-unsetenv.c: Likewise.
71568         * tests/test-usleep.c: Likewise.
71569         * tests/test-utimens.c: Likewise.
71570         * tests/test-utimensat.c: Likewise.
71571         * tests/test-vasnprintf-posix.c: Likewise.
71572         * tests/test-vasnprintf-posix2.c: Likewise.
71573         * tests/test-vasnprintf.c: Likewise.
71574         * tests/test-vasprintf-posix.c: Likewise.
71575         * tests/test-vasprintf.c: Likewise.
71576         * tests/test-vdprintf-posix.c: Likewise.
71577         * tests/test-vfprintf-posix.c: Likewise.
71578         * tests/test-vprintf-posix.c: Likewise.
71579         * tests/test-vsnprintf-posix.c: Likewise.
71580         * tests/test-vsnprintf.c: Likewise.
71581         * tests/test-vsprintf-posix.c: Likewise.
71582         * tests/test-wcrtomb.c: Likewise.
71583         * tests/test-wcsnrtombs.c: Likewise.
71584         * tests/test-wcsrtombs.c: Likewise.
71585         * tests/test-wctype.c: Likewise.
71586         * tests/test-wcwidth.c: Likewise.
71587         * tests/test-xfprintf-posix.c: Likewise.
71588         * tests/test-xmemdup0.c: Likewise.
71589         * tests/test-xprintf-posix.c: Likewise.
71590         * tests/test-xvasprintf.c: Likewise.
71591         * tests/unicase/test-locale-language.c: Likewise.
71592         * tests/unicase/test-mapping-part1.h: Likewise.
71593         * tests/unicase/test-predicate-part1.h: Likewise.
71594         * tests/unicase/test-u8-casecmp.c: Likewise.
71595         * tests/unicase/test-u8-casecoll.c: Likewise.
71596         * tests/unicase/test-u8-casefold.c: Likewise.
71597         * tests/unicase/test-u8-is-cased.c: Likewise.
71598         * tests/unicase/test-u8-is-casefolded.c: Likewise.
71599         * tests/unicase/test-u8-is-lowercase.c: Likewise.
71600         * tests/unicase/test-u8-is-titlecase.c: Likewise.
71601         * tests/unicase/test-u8-is-uppercase.c: Likewise.
71602         * tests/unicase/test-u8-tolower.c: Likewise.
71603         * tests/unicase/test-u8-totitle.c: Likewise.
71604         * tests/unicase/test-u8-toupper.c: Likewise.
71605         * tests/unicase/test-u16-casecmp.c: Likewise.
71606         * tests/unicase/test-u16-casecoll.c: Likewise.
71607         * tests/unicase/test-u16-casefold.c: Likewise.
71608         * tests/unicase/test-u16-is-cased.c: Likewise.
71609         * tests/unicase/test-u16-is-casefolded.c: Likewise.
71610         * tests/unicase/test-u16-is-lowercase.c: Likewise.
71611         * tests/unicase/test-u16-is-titlecase.c: Likewise.
71612         * tests/unicase/test-u16-is-uppercase.c: Likewise.
71613         * tests/unicase/test-u16-tolower.c: Likewise.
71614         * tests/unicase/test-u16-totitle.c: Likewise.
71615         * tests/unicase/test-u16-toupper.c: Likewise.
71616         * tests/unicase/test-u32-casecmp.c: Likewise.
71617         * tests/unicase/test-u32-casecoll.c: Likewise.
71618         * tests/unicase/test-u32-casefold.c: Likewise.
71619         * tests/unicase/test-u32-is-cased.c: Likewise.
71620         * tests/unicase/test-u32-is-casefolded.c: Likewise.
71621         * tests/unicase/test-u32-is-lowercase.c: Likewise.
71622         * tests/unicase/test-u32-is-titlecase.c: Likewise.
71623         * tests/unicase/test-u32-is-uppercase.c: Likewise.
71624         * tests/unicase/test-u32-tolower.c: Likewise.
71625         * tests/unicase/test-u32-totitle.c: Likewise.
71626         * tests/unicase/test-u32-toupper.c: Likewise.
71627         * tests/unicase/test-ulc-casecmp.c: Likewise.
71628         * tests/unicase/test-ulc-casecoll.c: Likewise.
71629         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
71630         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
71631         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
71632         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
71633         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
71634         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
71635         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
71636         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
71637         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
71638         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
71639         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
71640         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
71641         * tests/unictype/test-bidi_byname.c: Likewise.
71642         * tests/unictype/test-bidi_name.c: Likewise.
71643         * tests/unictype/test-bidi_of.c: Likewise.
71644         * tests/unictype/test-bidi_test.c: Likewise.
71645         * tests/unictype/test-block_list.c: Likewise.
71646         * tests/unictype/test-block_of.c: Likewise.
71647         * tests/unictype/test-block_test.c: Likewise.
71648         * tests/unictype/test-categ_and.c: Likewise.
71649         * tests/unictype/test-categ_and_not.c: Likewise.
71650         * tests/unictype/test-categ_byname.c: Likewise.
71651         * tests/unictype/test-categ_name.c: Likewise.
71652         * tests/unictype/test-categ_none.c: Likewise.
71653         * tests/unictype/test-categ_of.c: Likewise.
71654         * tests/unictype/test-categ_or.c: Likewise.
71655         * tests/unictype/test-categ_test_withtable.c: Likewise.
71656         * tests/unictype/test-combining.c: Likewise.
71657         * tests/unictype/test-decdigit.c: Likewise.
71658         * tests/unictype/test-digit.c: Likewise.
71659         * tests/unictype/test-mirror.c: Likewise.
71660         * tests/unictype/test-numeric.c: Likewise.
71661         * tests/unictype/test-pr_byname.c: Likewise.
71662         * tests/unictype/test-pr_test.c: Likewise.
71663         * tests/unictype/test-predicate-part1.h: Likewise.
71664         * tests/unictype/test-scripts.c: Likewise.
71665         * tests/unictype/test-sy_c_ident.c: Likewise.
71666         * tests/unictype/test-sy_java_ident.c: Likewise.
71667         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
71668         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
71669         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
71670         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
71671         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
71672         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
71673         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
71674         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
71675         * tests/uninorm/test-canonical-decomposition.c: Likewise.
71676         * tests/uninorm/test-compat-decomposition.c: Likewise.
71677         * tests/uninorm/test-composition.c: Likewise.
71678         * tests/uninorm/test-decomposing-form.c: Likewise.
71679         * tests/uninorm/test-decomposition.c: Likewise.
71680         * tests/uninorm/test-u8-nfc.c: Likewise.
71681         * tests/uninorm/test-u8-nfd.c: Likewise.
71682         * tests/uninorm/test-u8-nfkc.c: Likewise.
71683         * tests/uninorm/test-u8-nfkd.c: Likewise.
71684         * tests/uninorm/test-u8-normcmp.c: Likewise.
71685         * tests/uninorm/test-u8-normcoll.c: Likewise.
71686         * tests/uninorm/test-u16-nfc.c: Likewise.
71687         * tests/uninorm/test-u16-nfd.c: Likewise.
71688         * tests/uninorm/test-u16-nfkc.c: Likewise.
71689         * tests/uninorm/test-u16-nfkd.c: Likewise.
71690         * tests/uninorm/test-u16-normcmp.c: Likewise.
71691         * tests/uninorm/test-u16-normcoll.c: Likewise.
71692         * tests/uninorm/test-u32-nfc.c: Likewise.
71693         * tests/uninorm/test-u32-nfd.c: Likewise.
71694         * tests/uninorm/test-u32-nfkc.c: Likewise.
71695         * tests/uninorm/test-u32-nfkd.c: Likewise.
71696         * tests/uninorm/test-u32-normalize-big.c: Likewise.
71697         * tests/uninorm/test-u32-normcmp.c: Likewise.
71698         * tests/uninorm/test-u32-normcoll.c: Likewise.
71699         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
71700         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
71701         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
71702         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
71703         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
71704         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
71705         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
71706         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
71707         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
71708         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
71709         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
71710         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
71711         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
71712         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
71713         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
71714         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
71715         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
71716         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
71717         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
71718         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
71719         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
71720         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
71721         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
71722         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
71723         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
71724         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
71725         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
71726         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
71727         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
71728         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
71729         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
71730         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
71731         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
71732         * tests/uniwidth/test-u8-strwidth.c: Likewise.
71733         * tests/uniwidth/test-u8-width.c: Likewise.
71734         * tests/uniwidth/test-u16-strwidth.c: Likewise.
71735         * tests/uniwidth/test-u16-width.c: Likewise.
71736         * tests/uniwidth/test-u32-strwidth.c: Likewise.
71737         * tests/uniwidth/test-u32-width.c: Likewise.
71738         * tests/uniwidth/test-uc_width.c: Likewise.
71739         * tests/uniwidth/test-uc_width2.c: Likewise.
71740         * modules/acl-tests (Files): Add tests/macros.h.
71741         * modules/areadlink-tests (Files): Likewise.
71742         * modules/areadlink-with-size-tests (Files): Likewise.
71743         * modules/areadlinkat-tests (Files): Likewise.
71744         * modules/areadlinkat-with-size-tests (Files): Likewise.
71745         * modules/argmatch-tests (Files): Likewise.
71746         * modules/argv-iter-tests (Files): Likewise.
71747         * modules/array-list-tests (Files): Likewise.
71748         * modules/array-mergesort-tests (Files): Likewise.
71749         * modules/array-oset-tests (Files): Likewise.
71750         * modules/avltree-list-tests (Files): Likewise.
71751         * modules/avltree-oset-tests (Files): Likewise.
71752         * modules/avltreehash-list-tests (Files): Likewise.
71753         * modules/base64-tests (Files): Likewise.
71754         * modules/binary-io-tests (Files): Likewise.
71755         * modules/bitrotate-tests (Files): Likewise.
71756         * modules/btowc-tests (Files): Likewise.
71757         * modules/byteswap-tests (Files): Likewise.
71758         * modules/c-ctype-tests (Files): Likewise.
71759         * modules/c-stack-tests (Files): Likewise.
71760         * modules/c-strcase-tests (Files): Likewise.
71761         * modules/c-strcasestr-tests (Files): Likewise.
71762         * modules/c-strstr-tests (Files): Likewise.
71763         * modules/canonicalize-lgpl-tests (Files): Likewise.
71764         * modules/canonicalize-tests (Files): Likewise.
71765         * modules/carray-list-tests (Files): Likewise.
71766         * modules/ceilf-tests (Files): Likewise.
71767         * modules/ceill-tests (Files): Likewise.
71768         * modules/chown-tests (Files): Likewise.
71769         * modules/cloexec-tests (Files): Likewise.
71770         * modules/copy-file-tests (Files): Likewise.
71771         * modules/count-one-bits-tests (Files): Likewise.
71772         * modules/dprintf-posix-tests (Files): Likewise.
71773         * modules/dup2-tests (Files): Likewise.
71774         * modules/dup3-tests (Files): Likewise.
71775         * modules/duplocale-tests (Files): Likewise.
71776         * modules/fbufmode-tests (Files): Likewise.
71777         * modules/fchdir-tests (Files): Likewise.
71778         * modules/fcntl-safer-tests (Files): Likewise.
71779         * modules/fcntl-tests (Files): Likewise.
71780         * modules/fdopendir-tests (Files): Likewise.
71781         * modules/fdutimensat-tests (Files): Likewise.
71782         * modules/fflush-tests (Files): Likewise.
71783         * modules/filevercmp-tests (Files): Likewise.
71784         * modules/flock-tests (Files): Likewise.
71785         * modules/floorf-tests (Files): Likewise.
71786         * modules/floorl-tests (Files): Likewise.
71787         * modules/fnmatch-tests (Files): Likewise.
71788         * modules/fopen-safer-tests (Files): Likewise.
71789         * modules/fopen-tests (Files): Likewise.
71790         * modules/fpending-tests (Files): Likewise.
71791         * modules/fprintf-posix-tests (Files): Likewise.
71792         * modules/fpurge-tests (Files): Likewise.
71793         * modules/freadable-tests (Files): Likewise.
71794         * modules/freadahead-tests (Files): Likewise.
71795         * modules/freading-tests (Files): Likewise.
71796         * modules/freadptr-tests (Files): Likewise.
71797         * modules/freadseek-tests (Files): Likewise.
71798         * modules/freopen-tests (Files): Likewise.
71799         * modules/frexp-nolibm-tests (Files): Likewise.
71800         * modules/frexp-tests (Files): Likewise.
71801         * modules/frexpl-nolibm-tests (Files): Likewise.
71802         * modules/frexpl-tests (Files): Likewise.
71803         * modules/fseek-tests (Files): Likewise.
71804         * modules/fseeko-tests (Files): Likewise.
71805         * modules/fstrcmp-tests (Files): Likewise.
71806         * modules/fsync-tests (Files): Likewise.
71807         * modules/ftell-tests (Files): Likewise.
71808         * modules/ftello-tests (Files): Likewise.
71809         * modules/func-tests (Files): Likewise.
71810         * modules/futimens-tests (Files): Likewise.
71811         * modules/fwritable-tests (Files): Likewise.
71812         * modules/fwriting-tests (Files): Likewise.
71813         * modules/getcwd-tests (Files): Likewise.
71814         * modules/getdate-tests (Files): Likewise.
71815         * modules/getdelim-tests (Files): Likewise.
71816         * modules/getdtablesize-tests (Files): Likewise.
71817         * modules/getgroups-tests (Files): Likewise.
71818         * modules/getline-tests (Files): Likewise.
71819         * modules/getndelim2-tests (Files): Likewise.
71820         * modules/glob-tests (Files): Likewise.
71821         * modules/hash-tests (Files): Likewise.
71822         * modules/i-ring-tests (Files): Likewise.
71823         * modules/iconv-tests (Files): Likewise.
71824         * modules/iconv_open-utf-tests (Files): Likewise.
71825         * modules/idpriv-drop-tests (Files): Likewise.
71826         * modules/idpriv-droptemp-tests (Files): Likewise.
71827         * modules/inet_ntop-tests (Files): Likewise.
71828         * modules/inet_pton-tests (Files): Likewise.
71829         * modules/isblank-tests (Files): Likewise.
71830         * modules/isfinite-tests (Files): Likewise.
71831         * modules/isinf-tests (Files): Likewise.
71832         * modules/isnan-tests (Files): Likewise.
71833         * modules/isnand-nolibm-tests (Files): Likewise.
71834         * modules/isnand-tests (Files): Likewise.
71835         * modules/isnanf-nolibm-tests (Files): Likewise.
71836         * modules/isnanf-tests (Files): Likewise.
71837         * modules/isnanl-nolibm-tests (Files): Likewise.
71838         * modules/isnanl-tests (Files): Likewise.
71839         * modules/lchown-tests (Files): Likewise.
71840         * modules/ldexpl-tests (Files): Likewise.
71841         * modules/link-tests (Files): Likewise.
71842         * modules/linkat-tests (Files): Likewise.
71843         * modules/linked-list-tests (Files): Likewise.
71844         * modules/linkedhash-list-tests (Files): Likewise.
71845         * modules/localename-tests (Files): Likewise.
71846         * modules/lseek-tests (Files): Likewise.
71847         * modules/lstat-tests (Files): Likewise.
71848         * modules/mbmemcasecmp-tests (Files): Likewise.
71849         * modules/mbmemcasecoll-tests (Files): Likewise.
71850         * modules/mbrtowc-tests (Files): Likewise.
71851         * modules/mbscasecmp-tests (Files): Likewise.
71852         * modules/mbscasestr-tests (Files): Likewise.
71853         * modules/mbschr-tests (Files): Likewise.
71854         * modules/mbscspn-tests (Files): Likewise.
71855         * modules/mbsinit-tests (Files): Likewise.
71856         * modules/mbsncasecmp-tests (Files): Likewise.
71857         * modules/mbsnrtowcs-tests (Files): Likewise.
71858         * modules/mbspbrk-tests (Files): Likewise.
71859         * modules/mbspcasecmp-tests (Files): Likewise.
71860         * modules/mbsrchr-tests (Files): Likewise.
71861         * modules/mbsrtowcs-tests (Files): Likewise.
71862         * modules/mbsspn-tests (Files): Likewise.
71863         * modules/mbsstr-tests (Files): Likewise.
71864         * modules/memchr-tests (Files): Likewise.
71865         * modules/memchr2-tests (Files): Likewise.
71866         * modules/memcmp-tests (Files): Likewise.
71867         * modules/memmem-tests (Files): Likewise.
71868         * modules/memrchr-tests (Files): Likewise.
71869         * modules/mkdir-tests (Files): Likewise.
71870         * modules/mkfifo-tests (Files): Likewise.
71871         * modules/mkfifoat-tests (Files): Likewise.
71872         * modules/mknod-tests (Files): Likewise.
71873         * modules/nanosleep-tests (Files): Likewise.
71874         * modules/nl_langinfo-tests (Files): Likewise.
71875         * modules/obstack-printf-tests (Files): Likewise.
71876         * modules/open-tests (Files): Likewise.
71877         * modules/openat-tests (Files): Likewise.
71878         * modules/pipe-filter-gi-tests (Files): Likewise.
71879         * modules/pipe-filter-ii-tests (Files): Likewise.
71880         * modules/pipe2-tests (Files): Likewise.
71881         * modules/popen-safer-tests (Files): Likewise.
71882         * modules/popen-tests (Files): Likewise.
71883         * modules/posixtm-tests (Files): Likewise.
71884         * modules/pread-tests (Files): Likewise.
71885         * modules/printf-frexp-tests (Files): Likewise.
71886         * modules/printf-frexpl-tests (Files): Likewise.
71887         * modules/printf-posix-tests (Files): Likewise.
71888         * modules/priv-set-tests (Files): Likewise.
71889         * modules/quotearg-tests (Files): Likewise.
71890         * modules/random_r-tests (Files): Likewise.
71891         * modules/rawmemchr-tests (Files): Likewise.
71892         * modules/rbtree-list-tests (Files): Likewise.
71893         * modules/rbtree-oset-tests (Files): Likewise.
71894         * modules/rbtreehash-list-tests (Files): Likewise.
71895         * modules/readlink-tests (Files): Likewise.
71896         * modules/remove-tests (Files): Likewise.
71897         * modules/rename-tests (Files): Likewise.
71898         * modules/renameat-tests (Files): Likewise.
71899         * modules/rmdir-tests (Files): Likewise.
71900         * modules/round-tests (Files): Likewise.
71901         * modules/roundf-tests (Files): Likewise.
71902         * modules/roundl-tests (Files): Likewise.
71903         * modules/safe-alloc-tests (Files): Likewise.
71904         * modules/setenv-tests (Files): Likewise.
71905         * modules/sigaction-tests (Files): Likewise.
71906         * modules/signbit-tests (Files): Likewise.
71907         * modules/sleep-tests (Files): Likewise.
71908         * modules/snprintf-posix-tests (Files): Likewise.
71909         * modules/snprintf-tests (Files): Likewise.
71910         * modules/sprintf-posix-tests (Files): Likewise.
71911         * modules/stat-tests (Files): Likewise.
71912         * modules/stat-time-tests (Files): Likewise.
71913         * modules/strcasestr-tests (Files): Likewise.
71914         * modules/strchrnul-tests (Files): Likewise.
71915         * modules/strerror-tests (Files): Likewise.
71916         * modules/striconv-tests (Files): Likewise.
71917         * modules/striconveh-tests (Files): Likewise.
71918         * modules/striconveha-tests (Files): Likewise.
71919         * modules/strsignal-tests (Files): Likewise.
71920         * modules/strstr-tests (Files): Likewise.
71921         * modules/strtod-tests (Files): Likewise.
71922         * modules/strverscmp-tests (Files): Likewise.
71923         * modules/symlink-tests (Files): Likewise.
71924         * modules/symlinkat-tests (Files): Likewise.
71925         * modules/trunc-tests (Files): Likewise.
71926         * modules/truncf-tests (Files): Likewise.
71927         * modules/truncl-tests (Files): Likewise.
71928         * modules/uname-tests (Files): Likewise.
71929         * modules/unicase/cased-tests (Files): Likewise.
71930         * modules/unicase/ignorable-tests (Files): Likewise.
71931         * modules/unicase/locale-language-tests (Files): Likewise.
71932         * modules/unicase/tolower-tests (Files): Likewise.
71933         * modules/unicase/totitle-tests (Files): Likewise.
71934         * modules/unicase/toupper-tests (Files): Likewise.
71935         * modules/unicase/u8-casecmp-tests (Files): Likewise.
71936         * modules/unicase/u8-casecoll-tests (Files): Likewise.
71937         * modules/unicase/u8-casefold-tests (Files): Likewise.
71938         * modules/unicase/u8-is-cased-tests (Files): Likewise.
71939         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
71940         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
71941         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
71942         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
71943         * modules/unicase/u8-tolower-tests (Files): Likewise.
71944         * modules/unicase/u8-totitle-tests (Files): Likewise.
71945         * modules/unicase/u8-toupper-tests (Files): Likewise.
71946         * modules/unicase/u16-casecmp-tests (Files): Likewise.
71947         * modules/unicase/u16-casecoll-tests (Files): Likewise.
71948         * modules/unicase/u16-casefold-tests (Files): Likewise.
71949         * modules/unicase/u16-is-cased-tests (Files): Likewise.
71950         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
71951         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
71952         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
71953         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
71954         * modules/unicase/u16-tolower-tests (Files): Likewise.
71955         * modules/unicase/u16-totitle-tests (Files): Likewise.
71956         * modules/unicase/u16-toupper-tests (Files): Likewise.
71957         * modules/unicase/u32-casecmp-tests (Files): Likewise.
71958         * modules/unicase/u32-casecoll-tests (Files): Likewise.
71959         * modules/unicase/u32-casefold-tests (Files): Likewise.
71960         * modules/unicase/u32-is-cased-tests (Files): Likewise.
71961         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
71962         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
71963         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
71964         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
71965         * modules/unicase/u32-tolower-tests (Files): Likewise.
71966         * modules/unicase/u32-totitle-tests (Files): Likewise.
71967         * modules/unicase/u32-toupper-tests (Files): Likewise.
71968         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
71969         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
71970         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
71971         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
71972         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
71973         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
71974         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
71975         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
71976         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
71977         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
71978         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
71979         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
71980         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
71981         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
71982         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
71983         * modules/unictype/bidicategory-name-tests (Files): Likewise.
71984         * modules/unictype/bidicategory-of-tests (Files): Likewise.
71985         * modules/unictype/bidicategory-test-tests (Files): Likewise.
71986         * modules/unictype/block-list-tests (Files): Likewise.
71987         * modules/unictype/block-of-tests (Files): Likewise.
71988         * modules/unictype/block-test-tests (Files): Likewise.
71989         * modules/unictype/category-C-tests (Files): Likewise.
71990         * modules/unictype/category-Cc-tests (Files): Likewise.
71991         * modules/unictype/category-Cf-tests (Files): Likewise.
71992         * modules/unictype/category-Cn-tests (Files): Likewise.
71993         * modules/unictype/category-Co-tests (Files): Likewise.
71994         * modules/unictype/category-Cs-tests (Files): Likewise.
71995         * modules/unictype/category-L-tests (Files): Likewise.
71996         * modules/unictype/category-Ll-tests (Files): Likewise.
71997         * modules/unictype/category-Lm-tests (Files): Likewise.
71998         * modules/unictype/category-Lo-tests (Files): Likewise.
71999         * modules/unictype/category-Lt-tests (Files): Likewise.
72000         * modules/unictype/category-Lu-tests (Files): Likewise.
72001         * modules/unictype/category-M-tests (Files): Likewise.
72002         * modules/unictype/category-Mc-tests (Files): Likewise.
72003         * modules/unictype/category-Me-tests (Files): Likewise.
72004         * modules/unictype/category-Mn-tests (Files): Likewise.
72005         * modules/unictype/category-N-tests (Files): Likewise.
72006         * modules/unictype/category-Nd-tests (Files): Likewise.
72007         * modules/unictype/category-Nl-tests (Files): Likewise.
72008         * modules/unictype/category-No-tests (Files): Likewise.
72009         * modules/unictype/category-P-tests (Files): Likewise.
72010         * modules/unictype/category-Pc-tests (Files): Likewise.
72011         * modules/unictype/category-Pd-tests (Files): Likewise.
72012         * modules/unictype/category-Pe-tests (Files): Likewise.
72013         * modules/unictype/category-Pf-tests (Files): Likewise.
72014         * modules/unictype/category-Pi-tests (Files): Likewise.
72015         * modules/unictype/category-Po-tests (Files): Likewise.
72016         * modules/unictype/category-Ps-tests (Files): Likewise.
72017         * modules/unictype/category-S-tests (Files): Likewise.
72018         * modules/unictype/category-Sc-tests (Files): Likewise.
72019         * modules/unictype/category-Sk-tests (Files): Likewise.
72020         * modules/unictype/category-Sm-tests (Files): Likewise.
72021         * modules/unictype/category-So-tests (Files): Likewise.
72022         * modules/unictype/category-Z-tests (Files): Likewise.
72023         * modules/unictype/category-Zl-tests (Files): Likewise.
72024         * modules/unictype/category-Zp-tests (Files): Likewise.
72025         * modules/unictype/category-Zs-tests (Files): Likewise.
72026         * modules/unictype/category-and-not-tests (Files): Likewise.
72027         * modules/unictype/category-and-tests (Files): Likewise.
72028         * modules/unictype/category-byname-tests (Files): Likewise.
72029         * modules/unictype/category-name-tests (Files): Likewise.
72030         * modules/unictype/category-none-tests (Files): Likewise.
72031         * modules/unictype/category-of-tests (Files): Likewise.
72032         * modules/unictype/category-or-tests (Files): Likewise.
72033         * modules/unictype/category-test-withtable-tests (Files): Likewise.
72034         * modules/unictype/combining-class-tests (Files): Likewise.
72035         * modules/unictype/ctype-alnum-tests (Files): Likewise.
72036         * modules/unictype/ctype-alpha-tests (Files): Likewise.
72037         * modules/unictype/ctype-blank-tests (Files): Likewise.
72038         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
72039         * modules/unictype/ctype-digit-tests (Files): Likewise.
72040         * modules/unictype/ctype-graph-tests (Files): Likewise.
72041         * modules/unictype/ctype-lower-tests (Files): Likewise.
72042         * modules/unictype/ctype-print-tests (Files): Likewise.
72043         * modules/unictype/ctype-punct-tests (Files): Likewise.
72044         * modules/unictype/ctype-space-tests (Files): Likewise.
72045         * modules/unictype/ctype-upper-tests (Files): Likewise.
72046         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
72047         * modules/unictype/decimal-digit-tests (Files): Likewise.
72048         * modules/unictype/digit-tests (Files): Likewise.
72049         * modules/unictype/mirror-tests (Files): Likewise.
72050         * modules/unictype/numeric-tests (Files): Likewise.
72051         * modules/unictype/property-alphabetic-tests (Files): Likewise.
72052         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
72053         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
72054         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
72055         Likewise.
72056         * modules/unictype/property-bidi-block-separator-tests (Files):
72057         Likewise.
72058         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
72059         Likewise.
72060         * modules/unictype/property-bidi-common-separator-tests (Files):
72061         Likewise.
72062         * modules/unictype/property-bidi-control-tests (Files): Likewise.
72063         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
72064         Likewise.
72065         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
72066         Likewise.
72067         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
72068         Likewise.
72069         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
72070         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
72071         Likewise.
72072         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
72073         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
72074         Likewise.
72075         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
72076         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
72077         * modules/unictype/property-bidi-segment-separator-tests (Files):
72078         Likewise.
72079         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
72080         * modules/unictype/property-byname-tests (Files): Likewise.
72081         * modules/unictype/property-combining-tests (Files): Likewise.
72082         * modules/unictype/property-composite-tests (Files): Likewise.
72083         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
72084         * modules/unictype/property-dash-tests (Files): Likewise.
72085         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
72086         * modules/unictype/property-default-ignorable-code-point-tests (Files):
72087         Likewise.
72088         * modules/unictype/property-deprecated-tests (Files): Likewise.
72089         * modules/unictype/property-diacritic-tests (Files): Likewise.
72090         * modules/unictype/property-extender-tests (Files): Likewise.
72091         * modules/unictype/property-format-control-tests (Files): Likewise.
72092         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
72093         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
72094         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
72095         * modules/unictype/property-hex-digit-tests (Files): Likewise.
72096         * modules/unictype/property-hyphen-tests (Files): Likewise.
72097         * modules/unictype/property-id-continue-tests (Files): Likewise.
72098         * modules/unictype/property-id-start-tests (Files): Likewise.
72099         * modules/unictype/property-ideographic-tests (Files): Likewise.
72100         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
72101         * modules/unictype/property-ids-trinary-operator-tests (Files):
72102         Likewise.
72103         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
72104         * modules/unictype/property-iso-control-tests (Files): Likewise.
72105         * modules/unictype/property-join-control-tests (Files): Likewise.
72106         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
72107         * modules/unictype/property-line-separator-tests (Files): Likewise.
72108         * modules/unictype/property-logical-order-exception-tests (Files):
72109         Likewise.
72110         * modules/unictype/property-lowercase-tests (Files): Likewise.
72111         * modules/unictype/property-math-tests (Files): Likewise.
72112         * modules/unictype/property-non-break-tests (Files): Likewise.
72113         * modules/unictype/property-not-a-character-tests (Files): Likewise.
72114         * modules/unictype/property-numeric-tests (Files): Likewise.
72115         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
72116         * modules/unictype/property-other-default-ignorable-code-point-tests
72117         (Files): Likewise.
72118         * modules/unictype/property-other-grapheme-extend-tests (Files):
72119         Likewise.
72120         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
72121         * modules/unictype/property-other-id-start-tests (Files): Likewise.
72122         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
72123         * modules/unictype/property-other-math-tests (Files): Likewise.
72124         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
72125         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
72126         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
72127         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
72128         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
72129         * modules/unictype/property-private-use-tests (Files): Likewise.
72130         * modules/unictype/property-punctuation-tests (Files): Likewise.
72131         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
72132         * modules/unictype/property-radical-tests (Files): Likewise.
72133         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
72134         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
72135         * modules/unictype/property-space-tests (Files): Likewise.
72136         * modules/unictype/property-terminal-punctuation-tests (Files):
72137         Likewise.
72138         * modules/unictype/property-test-tests (Files): Likewise.
72139         * modules/unictype/property-titlecase-tests (Files): Likewise.
72140         * modules/unictype/property-unassigned-code-value-tests (Files):
72141         Likewise.
72142         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
72143         * modules/unictype/property-uppercase-tests (Files): Likewise.
72144         * modules/unictype/property-variation-selector-tests (Files): Likewise.
72145         * modules/unictype/property-white-space-tests (Files): Likewise.
72146         * modules/unictype/property-xid-continue-tests (Files): Likewise.
72147         * modules/unictype/property-xid-start-tests (Files): Likewise.
72148         * modules/unictype/property-zero-width-tests (Files): Likewise.
72149         * modules/unictype/scripts-tests (Files): Likewise.
72150         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
72151         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
72152         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
72153         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
72154         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
72155         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
72156         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
72157         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
72158         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
72159         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
72160         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
72161         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
72162         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
72163         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
72164         * modules/uninorm/composition-tests (Files): Likewise.
72165         * modules/uninorm/decomposing-form-tests (Files): Likewise.
72166         * modules/uninorm/decomposition-tests (Files): Likewise.
72167         * modules/uninorm/filter-tests (Files): Likewise.
72168         * modules/uninorm/nfc-tests (Files): Likewise.
72169         * modules/uninorm/nfd-tests (Files): Likewise.
72170         * modules/uninorm/nfkc-tests (Files): Likewise.
72171         * modules/uninorm/nfkd-tests (Files): Likewise.
72172         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
72173         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
72174         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
72175         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
72176         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
72177         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
72178         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
72179         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
72180         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
72181         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
72182         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
72183         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
72184         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
72185         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
72186         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
72187         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
72188         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
72189         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
72190         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
72191         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
72192         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
72193         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
72194         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
72195         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
72196         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
72197         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
72198         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
72199         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
72200         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
72201         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
72202         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
72203         * modules/uniwidth/u8-width-tests (Files): Likewise.
72204         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
72205         * modules/uniwidth/u16-width-tests (Files): Likewise.
72206         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
72207         * modules/uniwidth/u32-width-tests (Files): Likewise.
72208         * modules/uniwidth/width-tests (Files): Likewise.
72209         * modules/unlink-tests (Files): Likewise.
72210         * modules/unsetenv-tests (Files): Likewise.
72211         * modules/usleep-tests (Files): Likewise.
72212         * modules/utimens-tests (Files): Likewise.
72213         * modules/utimensat-tests (Files): Likewise.
72214         * modules/vasnprintf-posix-tests (Files): Likewise.
72215         * modules/vasnprintf-tests (Files): Likewise.
72216         * modules/vasprintf-posix-tests (Files): Likewise.
72217         * modules/vasprintf-tests (Files): Likewise.
72218         * modules/vdprintf-posix-tests (Files): Likewise.
72219         * modules/vfprintf-posix-tests (Files): Likewise.
72220         * modules/vprintf-posix-tests (Files): Likewise.
72221         * modules/vsnprintf-posix-tests (Files): Likewise.
72222         * modules/vsnprintf-tests (Files): Likewise.
72223         * modules/vsprintf-posix-tests (Files): Likewise.
72224         * modules/wcrtomb-tests (Files): Likewise.
72225         * modules/wcsnrtombs-tests (Files): Likewise.
72226         * modules/wcsrtombs-tests (Files): Likewise.
72227         * modules/wctype-tests (Files): Likewise.
72228         * modules/wcwidth-tests (Files): Likewise.
72229         * modules/xmemdup0-tests (Files): Likewise.
72230         * modules/xprintf-posix-tests (Files): Likewise.
72231         * modules/xvasprintf-tests (Files): Likewise.
72233 2009-12-24  Eric Blake  <ebb9@byu.net>
72235         test-nanosleep: fix typo
72236         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
72237         patch.
72238         Reported by Bruno Haible.
72240 2009-12-24  Bruno Haible  <bruno@clisp.org>
72242         Reduce namespace pollution on glibc systems.
72243         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
72244         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
72245         systems.
72246         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
72247         <getopt.h> on glibc systems.
72248         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
72249         systems.
72250         * lib/fcntl.c: Include <unistd.h> here instead.
72252 2009-12-24  Bruno Haible  <bruno@clisp.org>
72254         * lib/stdlib.in.h (includes): Fix typo in today's commit.
72256 2009-12-24  Eric Blake  <ebb9@byu.net>
72258         tests: add signature checks
72259         * tests/signature.h (SIGNATURE_CHECK): New file.
72260         * modules/atexit-tests (Files): Use it.
72261         * modules/btowc-tests (Files): Likewise.
72262         * modules/canonicalize-lgpl-tests (Files): Likewise.
72263         * modules/ceilf-tests (Files): Likewise.
72264         * modules/ceill-tests (Files): Likewise.
72265         * modules/chown-tests (Files): Likewise.
72266         * modules/dprintf-posix-tests (Files): Likewise.
72267         * modules/dup2-tests (Files): Likewise.
72268         * modules/dup3-tests (Files): Likewise.
72269         * modules/duplocale-tests (Files): Likewise.
72270         * modules/fchdir-tests (Files): Likewise.
72271         * modules/fcntl-tests (Files): Likewise.
72272         * modules/fdopendir-tests (Files): Likewise.
72273         * modules/fflush-tests (Files): Likewise.
72274         * modules/flock-tests (Files): Likewise.
72275         * modules/floorf-tests (Files): Likewise.
72276         * modules/floorl-tests (Files): Likewise.
72277         * modules/fnmatch-tests (Files): Likewise.
72278         * modules/fopen-tests (Files): Likewise.
72279         * modules/fprintf-posix-tests (Files): Likewise.
72280         * modules/freopen-tests (Files): Likewise.
72281         * modules/frexp-nolibm-tests (Files): Likewise.
72282         * modules/frexp-tests (Files): Likewise.
72283         * modules/frexpl-nolibm-tests (Files): Likewise.
72284         * modules/frexpl-tests (Files): Likewise.
72285         * modules/fseek-tests (Files): Likewise.
72286         * modules/fseeko-tests (Files): Likewise.
72287         * modules/fsync-tests (Files): Likewise.
72288         * modules/ftell-tests (Files): Likewise.
72289         * modules/ftello-tests (Files): Likewise.
72290         * modules/futimens-tests (Files): Likewise.
72291         * modules/getaddrinfo-tests (Files): Likewise.
72292         * modules/getcwd-tests (Files): Likewise.
72293         * modules/getdelim-tests (Files): Likewise.
72294         * modules/getdtablesize-tests (Files): Likewise.
72295         * modules/getgroups-tests (Files): Likewise.
72296         * modules/gethostname-tests (Files): Likewise.
72297         * modules/getline-tests (Files): Likewise.
72298         * modules/getopt-posix-tests (Files): Likewise.
72299         * modules/gettimeofday-tests (Files): Likewise.
72300         * modules/glob-tests (Files): Likewise.
72301         * modules/iconv-tests (Files): Likewise.
72302         * modules/inet_ntop-tests (Files): Likewise.
72303         * modules/inet_pton-tests (Files): Likewise.
72304         * modules/isblank-tests (Files): Likewise.
72305         * modules/lchown-tests (Files): Likewise.
72306         * modules/ldexpl-tests (Files): Likewise.
72307         * modules/link-tests (Files): Likewise.
72308         * modules/linkat-tests (Files): Likewise.
72309         * modules/lseek-tests (Files): Likewise.
72310         * modules/lstat-tests (Files): Likewise.
72311         * modules/mbrtowc-tests (Files): Likewise.
72312         * modules/mbsinit-tests (Files): Likewise.
72313         * modules/mbsnrtowcs-tests (Files): Likewise.
72314         * modules/mbsrtowcs-tests (Files): Likewise.
72315         * modules/memchr-tests (Files): Likewise.
72316         * modules/memcmp-tests (Files): Likewise.
72317         * modules/memmem-tests (Files): Likewise.
72318         * modules/memrchr-tests (Files): Likewise.
72319         * modules/mkdir-tests (Files): Likewise.
72320         * modules/mkfifo-tests (Files): Likewise.
72321         * modules/mkfifoat-tests (Files): Likewise.
72322         * modules/mknod-tests (Files): Likewise.
72323         * modules/nanosleep-tests (Files): Likewise.
72324         * modules/nl_langinfo-tests (Files): Likewise.
72325         * modules/obstack-printf-tests (Files): Likewise.
72326         * modules/open-tests (Files): Likewise.
72327         * modules/openat-tests (Files): Likewise.
72328         * modules/perror-tests (Files): Likewise.
72329         * modules/pipe2-tests (Files): Likewise.
72330         * modules/poll-tests (Files): Likewise.
72331         * modules/popen-tests (Files): Likewise.
72332         * modules/posix_spawn-tests (Files): Likewise.
72333         * modules/posix_spawnp-tests (Files): Likewise.
72334         * modules/pread-tests (Files): Likewise.
72335         * modules/printf-posix-tests (Files): Likewise.
72336         * modules/pty-tests (Files): Likewise.
72337         * modules/random_r-tests (Files): Likewise.
72338         * modules/rawmemchr-tests (Files): Likewise.
72339         * modules/readlink-tests (Files): Likewise.
72340         * modules/remove-tests (Files): Likewise.
72341         * modules/rename-tests (Files): Likewise.
72342         * modules/renameat-tests (Files): Likewise.
72343         * modules/rmdir-tests (Files): Likewise.
72344         * modules/round-tests (Files): Likewise.
72345         * modules/roundf-tests (Files): Likewise.
72346         * modules/roundl-tests (Files): Likewise.
72347         * modules/select-tests (Files): Likewise.
72348         * modules/setenv-tests (Files): Likewise.
72349         * modules/sigaction-tests (Files): Likewise.
72350         * modules/sleep-tests (Files): Likewise.
72351         * modules/snprintf-posix-tests (Files): Likewise.
72352         * modules/snprintf-tests (Files): Likewise.
72353         * modules/sprintf-posix-tests (Files): Likewise.
72354         * modules/stat-tests (Files): Likewise.
72355         * modules/strcasestr-tests (Files): Likewise.
72356         * modules/strchrnul-tests (Files): Likewise.
72357         * modules/strerror-tests (Files): Likewise.
72358         * modules/strsignal-tests (Files): Likewise.
72359         * modules/strstr-tests (Files): Likewise.
72360         * modules/strtod-tests (Files): Likewise.
72361         * modules/strverscmp-tests (Files): Likewise.
72362         * modules/symlink-tests (Files): Likewise.
72363         * modules/symlinkat-tests (Files): Likewise.
72364         * modules/times-tests (Files): Likewise.
72365         * modules/trunc-tests (Files): Likewise.
72366         * modules/truncf-tests (Files): Likewise.
72367         * modules/truncl-tests (Files): Likewise.
72368         * modules/tsearch-tests (Files): Likewise.
72369         * modules/uname-tests (Files): Likewise.
72370         * modules/unlink-tests (Files): Likewise.
72371         * modules/unsetenv-tests (Files): Likewise.
72372         * modules/usleep-tests (Files): Likewise.
72373         * modules/utimensat-tests (Files): Likewise.
72374         * modules/vasprintf-tests (Files): Likewise.
72375         * modules/vdprintf-posix-tests (Files): Likewise.
72376         * modules/vfprintf-posix-tests (Files): Likewise.
72377         * modules/vprintf-posix-tests (Files): Likewise.
72378         * modules/vsnprintf-posix-tests (Files): Likewise.
72379         * modules/vsnprintf-tests (Files): Likewise.
72380         * modules/vsprintf-posix-tests (Files): Likewise.
72381         * modules/wcrtomb-tests (Files): Likewise.
72382         * modules/wcsnrtombs-tests (Files): Likewise.
72383         * modules/wcsrtombs-tests (Files): Likewise.
72384         * modules/wcwidth-tests (Files): Likewise.
72385         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
72386         * tests/test-isinf.c (isinf): Likewise.
72387         * tests/test-isnan.c (isnan): Likewise.
72388         * tests/test-signbit.c (signbit): Likewise.
72389         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
72390         declaration, either as macro or with correct signature.
72391         (select): Ensure function under test is declared with correct
72392         signature in correct header.
72393         * tests/test-atexit.c (atexit): Likewise.
72394         * tests/test-btowc.c (btowc): Likewise.
72395         * tests/test-canonicalize-lgpl.c (realpath)
72396         (canonicalize_file_name): Likewise.
72397         * tests/test-ceilf1.c (ceilf): Likewise.
72398         * tests/test-ceill.c (ceill): Likewise.
72399         * tests/test-chown.c (chown): Likewise.
72400         * tests/test-dprintf-posix.c (dprintf): Likewise.
72401         * tests/test-dup2.c (dup2): Likewise.
72402         * tests/test-dup3.c (dup3): Likewise.
72403         * tests/test-duplocale.c (duplocale): Likewise.
72404         * tests/test-fchdir.c (fchdir): Likewise.
72405         * tests/test-fchownat.c (fchownat): Likewise.
72406         * tests/test-fcntl.c (fcntl): Likewise.
72407         * tests/test-fdopendir.c (fdopendir): Likewise.
72408         * tests/test-fflush.c (fflush): Likewise.
72409         * tests/test-flock.c (flock): Likewise.
72410         * tests/test-floorf1.c (floorf): Likewise.
72411         * tests/test-floorl.c (floorl): Likewise.
72412         * tests/test-fnmatch.c (fnmatch): Likewise.
72413         * tests/test-fopen.c (fopen): Likewise.
72414         * tests/test-fprintf-posix.c (fprintf): Likewise.
72415         * tests/test-freopen.c (freopen): Likewise.
72416         * tests/test-frexp.c (frexp): Likewise.
72417         * tests/test-frexpl.c (frexpl): Likewise.
72418         * tests/test-fseek.c (fseek): Likewise.
72419         * tests/test-fseeko.c (fseeko): Likewise.
72420         * tests/test-fstatat.c (fstatat): Likewise.
72421         * tests/test-fsync.c (fsync): Likewise.
72422         * tests/test-ftell.c (ftell): Likewise.
72423         * tests/test-ftello.c (ftello): Likewise.
72424         * tests/test-futimens.c (futimens): Likewise.
72425         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
72426         (gai_strerror): Likewise.
72427         * tests/test-getcwd.c (getcwd): Likewise.
72428         * tests/test-getdelim.c (getdelim): Likewise.
72429         * tests/test-getdtablesize.c (getdtablesize): Likewise.
72430         * tests/test-getgroups.c (getgroups): Likewise.
72431         * tests/test-gethostname.c (gethostname): Likewise.
72432         * tests/test-getline.c (getline): Likewise.
72433         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
72434         Likewise.
72435         * tests/test-gettimeofday.c (gettimeofday): Likewise.
72436         * tests/test-glob.c (glob, globfree): Likewise.
72437         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
72438         * tests/test-inet_ntop.c (inet_ntop): Likewise.
72439         * tests/test-inet_pton.c (inet_pton): Likewise.
72440         * tests/test-isblank.c (isblank): Likewise.
72441         * tests/test-lchown.c (lchown): Likewise.
72442         * tests/test-ldexpl.c (ldexpl): Likewise.
72443         * tests/test-link.c (link): Likewise.
72444         * tests/test-linkat.c (linkat): Likewise.
72445         * tests/test-lseek.c (lseek): Likewise.
72446         * tests/test-lstat.c (lstat): Likewise.
72447         * tests/test-mbrtowc.c (mbrtowc): Likewise.
72448         * tests/test-mbsinit.c (mbsinit): Likewise.
72449         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
72450         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
72451         * tests/test-memchr.c (memchr): Likewise.
72452         * tests/test-memcmp.c (memcmp): Likewise.
72453         * tests/test-memmem.c (memmem): Likewise.
72454         * tests/test-memrchr.c (memrchr): Likewise.
72455         * tests/test-mkdir.c (mkdir): Likewise.
72456         * tests/test-mkdirat.c (mkdirat): Likewise.
72457         * tests/test-mkfifo.c (mkfifo): Likewise.
72458         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
72459         * tests/test-mknod.c (mknod): Likewise.
72460         * tests/test-nanosleep.c (nanosleep): Likewise.
72461         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
72462         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
72463         Likewise.
72464         * tests/test-open.c (open): Likewise.
72465         * tests/test-openat.c (openat): Likewise.
72466         * tests/test-perror.c (perror): Likewise.
72467         * tests/test-pipe2.c (pipe2): Likewise.
72468         * tests/test-poll.c (poll): Likewise.
72469         * tests/test-popen.c (popen, pclose): Likewise.
72470         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
72471         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
72472         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
72473         (posix_spawn_file_actions_destroy)
72474         (posix_spawn_file_actions_addclose)
72475         (posix_spawn_file_actions_addopen)
72476         (posix_spawn_file_actions_adddup2): Likewise.
72477         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
72478         * tests/test-pread.c (pread): Likewise.
72479         * tests/test-printf-posix.c (printf): Likewise.
72480         * tests/test-pty.c (openpty, forkpty): Likewise.
72481         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
72482         (random_r): Likewise.
72483         * tests/test-rawmemchr.c (rawmemchr): Likewise.
72484         * tests/test-readlink.c (readlink): Likewise.
72485         * tests/test-remove.c (remove): Likewise.
72486         * tests/test-rename.c (rename): Likewise.
72487         * tests/test-renameat.c (renameat): Likewise.
72488         * tests/test-rmdir.c (rmdir): Likewise.
72489         * tests/test-round1.c (round): Likewise.
72490         * tests/test-roundf1.c (roundf): Likewise.
72491         * tests/test-roundl.c (roundl): Likewise.
72492         * tests/test-setenv.c (setenv): Likewise.
72493         * tests/test-sigaction.c (sigaction): Likewise.
72494         * tests/test-sleep.c (sleep): Likewise.
72495         * tests/test-snprintf.c (snprintf): Likewise.
72496         * tests/test-sprintf-posix.c (sprintf): Likewise.
72497         * tests/test-stat.c (stat): Likewise.
72498         * tests/test-stpncpy.c (stpncpy): Likewise.
72499         * tests/test-strcasestr.c (strcasestr): Likewise.
72500         * tests/test-strchrnul.c (strchrnul): Likewise.
72501         * tests/test-strerror.c (strerror): Likewise.
72502         * tests/test-strsignal.c (strsignal): Likewise.
72503         * tests/test-strstr.c (strstr): Likewise.
72504         * tests/test-strtod.c (strtod): Likewise.
72505         * tests/test-strverscmp.c (strverscmp): Likewise.
72506         * tests/test-symlink.c (symlink): Likewise.
72507         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
72508         * tests/test-times.c (times): Likewise.
72509         * tests/test-trunc1.c (trunc): Likewise.
72510         * tests/test-truncf1.c (truncf): Likewise.
72511         * tests/test-truncl.c (truncl): Likewise.
72512         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
72513         Likewise.
72514         * tests/test-uname.c (uname): Likewise.
72515         * tests/test-unlink.c (unlink): Likewise.
72516         * tests/test-unlinkat.c (unlinkat): Likewise.
72517         * tests/test-unsetenv.c (unsetenv): Likewise.
72518         * tests/test-usleep.c (usleep): Likewise.
72519         * tests/test-utimensat.c (utimensat): Likewise.
72520         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
72521         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
72522         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
72523         * tests/test-vprintf-posix.c (vprintf): Likewise.
72524         * tests/test-vsnprintf.c (vsnprintf): Likewise.
72525         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
72526         * tests/test-wcrtomb.c (wcrtomb): Likewise.
72527         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
72528         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
72529         * tests/test-wcwidth.c (wcwidth): Likewise.
72531         build: pull in conditional headers during GNULIB_POSIXCHECK
72532         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
72533         definitions from any conditionally-included headers.
72534         * lib/stdlib.in.h (includes): Likewise.
72535         * lib/unistd.in.h (includes): Likewise.
72537 2009-12-24  Bruno Haible  <bruno@clisp.org>
72539         * tests/test-argv-iter.c: Include header file being tested immediately
72540         after config.h.
72541         * tests/test-base64.c: Likewise.
72542         * tests/test-flock.c: Likewise.
72543         * tests/test-fsync.c: Likewise.
72544         * tests/test-getdate.c: Likewise.
72545         * tests/test-getndelim2.c: Likewise.
72546         * tests/test-isfinite.c: Likewise.
72547         * tests/test-isinf.c: Likewise.
72548         * tests/test-strerror.c: Likewise.
72549         * tests/test-strsignal.c: Likewise.
72551 2009-12-23  Eric Blake  <ebb9@byu.net>
72553         unistd: work around cygwin bug
72554         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
72555         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
72556         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
72558 2009-12-23  Bruno Haible  <bruno@clisp.org>
72560         localename: More tests.
72561         * tests/test-localename.c (SIZEOF): New macro.
72562         (categories): New variable.
72563         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
72564         test_locale_name_default): Add test w.r.t. thread locale.
72565         (test_locale_name_thread): New function.
72566         (main): Invoke it.
72568         localename: Make aware of thread locale.
72569         * lib/localename.h (gl_locale_name_thread): New declaration.
72570         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
72571         behaviour with respect to thread locale.
72572         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
72573         <langinfo.h>, glthread/lock.h.
72574         (SIZE_BITS): New macro.
72575         (string_hash): New function.
72576         (struct hash_node): New type.
72577         (HASH_TABLE_SIZE): New macro.
72578         (struniq_hash_table, struniq_lock): New variables.
72579         (struniq): New function.
72580         (gl_locale_name_thread): New function.
72581         (gl_locale_name): Invoke it.
72582         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
72583         * modules/localename (Depends-on): Add lock.
72584         Reported by Mike Gran <spk121@yahoo.com>.
72586 2009-12-23  Eric Blake  <ebb9@byu.net>
72588         va-args: new module
72589         * modules/va-args: New file.
72590         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
72591         * MODULES.html.sh (Core language properties): Mention it.
72593         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
72594         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
72595         named alias for __attribute__((__unused__)).
72596         * lib/chown.c: Update client.
72597         * lib/fchmodat.c: Likewise.
72598         * lib/fts.c: Likewise.
72599         * lib/getdate.y: Likewise.
72600         * lib/getgroups.c: Likewise.
72601         * lib/getopt.c: Likewise.
72602         * lib/getugroups.c: Likewise.
72603         * lib/mkdir.c: Likewise.
72604         * lib/mkfifo.c: Likewise.
72605         * lib/mkfifoat.c: Likewise.
72606         * lib/mknod.c: Likewise.
72607         * lib/mknodat.c: Likewise.
72608         * lib/readlink.c: Likewise.
72609         * lib/se-context.in.h: Likewise.
72610         * lib/se-selinux.in.h: Likewise.
72611         * lib/sockets.c: Likewise.
72612         * lib/symlink.c: Likewise.
72613         * lib/symlinkat.c: Likewise.
72614         * lib/unicodeio.c: Likewise.
72615         * lib/unistr.h: Likewise.
72616         * tests/test-areadlink.c: Likewise.
72617         * tests/test-areadlinkat.c: Likewise.
72618         * tests/test-filenamecat.c: Likewise.
72619         * tests/test-fseeko.c: Likewise.
72620         * tests/test-ftello.c: Likewise.
72621         * tests/test-getdate.c: Likewise.
72622         * tests/test-getgroups.c: Likewise.
72623         * tests/test-gethostname.c: Likewise.
72624         * tests/test-quotearg.c: Likewise.
72625         * tests/test-version-etc.c: Likewise.
72626         * tests/test-xalloc-die.c: Likewise.
72627         * tests/test-xfprintf-posix.c: Likewise.
72628         * tests/test-xprintf-posix.c: Likewise.
72629         * tests/test-xvasprintf.c: Likewise.
72631         tests: avoid compiler warnings
72632         * tests/test-fcntl.c (main): Delete unused parameters.
72633         * tests/test-freopen-safer.c (main): Likewise.
72634         * tests/test-xalloc-die.c (main): Mark unused parameters.
72635         * tests/test-fseeko.c (main): Likewise.
72636         * tests/test-ftello.c (main): Likewise.
72637         * tests/test-nanosleep.c (main): Avoid declaration warning.
72638         * tests/test-sleep.c (main): Likewise.
72639         * tests/test-unsetenv.c (main): Silence warning about string
72640         literal.
72641         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
72643 2009-12-23  Bruno Haible  <bruno@clisp.org>
72645         * tests/test-localename.c (test_locale_name): New function, extracted
72646         from main. Also test mixed situations.
72647         (test_locale_name_posix, test_locale_name_environ,
72648         test_locale_name_default): New functions.
72649         (main): Invoke them all.
72650         * modules/localename-tests (configure.ac): Test for newlocale.
72652 2009-12-23  Bruno Haible  <bruno@clisp.org>
72654         unistd: Ensure getcwd gets declared before being overridden.
72655         * lib/unistd.in.h: Conditionally include <io.h>.
72657 2009-12-22  Bruno Haible  <bruno@clisp.org>
72659         wchar: Diagnose broken combination of glibc and gcc versions and flags.
72660         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
72661         (gl_WCHAR_H): Invoke it.
72662         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
72663         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
72664         Reported by Karl Berry <karl@freefriends.org>.
72666 2009-12-22  Eric Blake  <ebb9@byu.net>
72668         math, unistd: avoid redundant includes
72669         * lib/math.in.h (isnan): No need to re-include <math.h>.
72670         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
72672         getsubopt: work around cygwin bug
72673         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
72674         avoid conflicting with system getsubopt.
72675         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
72676         bug.
72678         getopt: synchronize from glibc
72679         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
72680         parameter order.  Adjust all callers.
72681         (_getopt_internal_r, main): Adjust quoting in error messages.
72682         Drop considerations for outdated POSIX 1003.2 error message.
72683         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
72684         callers.
72685         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
72687         test-getopt: test stderr behavior
72688         * modules/getopt-posix-tests (Depends-on): Add dup2.
72689         * tests/test-getopt.c (ASSERT): Avoid stderr.
72690         (main): Move stderr to a temporary file.
72691         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
72692         Instead, add parameter to inform caller if output occurred.
72693         (test_getopt): Adjust all existing tests to expect silence, and
72694         add new tests of leading ":".
72695         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
72696         glibc shortcomings with leading "-:" or "+:" in optstring.
72697         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
72698         Likewise.
72699         * doc/posix-functions/getopt.texi (getopt): Likewise.
72701         test-getopt: enhance test
72702         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
72703         supports optind=0.
72704         * tests/test-getopt.c (OPTIND_MIN): Move...
72705         * tests/test-getopt.h (OPTIND_MIN): ...here.
72706         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
72707         Require that optind=0 works, since modern BSD supports it in
72708         addition to optreset, and since coreutils expects it.
72709         (test_getopt_long_only): New test.
72710         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
72711         glibc shortcomings with 'W;', and enforcement of optind=0.
72712         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
72713         Likewise.
72715 2009-12-21  Bruno Haible  <bruno@clisp.org>
72717         localename: Improvements for MacOS X and Cygwin.
72718         * lib/localename.h (gl_locale_name_environ): New declaration.
72719         * lib/localename.c (gl_locale_name_environ): New function, extracted from
72720         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
72721         (gl_locale_name_posix): Invoke it.
72722         (gl_locale_name_default): Add comments. Use Windows native API also on
72723         Cygwin.
72725 2009-12-21  Bruno Haible  <bruno@clisp.org>
72727         Update list of Win32 locale ids.
72728         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
72729         (LANG_SAMI): Renamed from LANG_SAAMI.
72730         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
72731         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
72732         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
72733         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
72734         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
72735         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
72736         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
72737         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
72738         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
72739         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
72740         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
72741         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
72742         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
72743         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
72744         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
72745         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
72746         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
72747         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
72748         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
72749         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
72750         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
72751         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
72752         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
72753         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
72754         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
72755         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
72756         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
72757         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
72758         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
72759         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
72760         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
72761         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
72762         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
72763         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
72764         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
72765         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
72766         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
72767         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
72768         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
72769         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
72770         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
72771         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
72772         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
72773         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
72774         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
72775         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
72776         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
72777         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
72778         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
72779         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
72780         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
72781         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
72782         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
72783         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
72784         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
72785         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
72786         Add more languages and countries for Sami, Sorbian. Add more countries
72787         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
72788         for Pashto. Change country for Syriac, Tswana.
72790 2009-12-21  Eric Blake  <ebb9@byu.net>
72792         test-utimens: avoid spurious failure
72793         * tests/test-chown.h (nap): Factor...
72794         * tests/nap.h: ...into new file.
72795         * tests/test-lchown.h (nap): Avoid duplication.
72796         * tests/test-utimens-common.h (nap): Use shared implementation,
72797         necessary on file systems with 1-second resolution.
72798         * modules/chown-tests (Files): Include new file.
72799         * modules/fdutimensat-tests (Files): Likewise.
72800         * modules/futimens-tests (Files): Likewise.
72801         * modules/lchown-tests (Files): Likewise.
72802         * modules/openat-tests (Files): Likewise.
72803         * modules/utimens-tests (Files): Likewise.
72804         * modules/utimensat-tests (Files): Likewise.
72806 2009-12-19  Eric Blake  <ebb9@byu.net>
72808         futimens, utimensat: work around Linux bug
72809         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
72810         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
72811         * lib/utimensat.c (rpl_utimensat): Work around it.
72812         * lib/futimens.c (rpl_futimens): Adjust comment.
72814         utimens: work around Linux ctime bug
72815         * lib/utimens.c (detect_ctime_bug): New helper function.
72816         (update_timespec): Differentiate between workaround needed for
72817         this bug vs. what is needed for systems that lack utimensat.
72818         (fdutimens, lutimens): Work around bug.
72820         utimens: check for ctime update
72821         * tests/test-utimens-common.h (check_ctime): Define.
72822         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
72823         * tests/test-futimens.h (test_futimens): Likewise.
72824         * tests/test-lutimens.h (test_lutimens): Likewise.
72825         * doc/posix-functions/futimens.texi (futimens): Document the bug.
72826         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
72828 2009-12-19  Bruno Haible  <bruno@clisp.org>
72830         dprintf-posix: Check against memory leak fixed on 2009-12-15.
72831         * tests/test-dprintf-posix2.sh: New file.
72832         * tests/test-dprintf-posix2.c: New file.
72833         * modules/dprintf-posix-tests (Files): Add them.
72834         (configure.ac): Check for getrlimit and setrlimit.
72835         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
72837 2009-12-19  Bruno Haible  <bruno@clisp.org>
72839         fprintf-posix: Check against memory leak fixed on 2009-12-15.
72840         * tests/test-fprintf-posix3.sh: New file.
72841         * tests/test-fprintf-posix3.c: New file.
72842         * modules/fprintf-posix-tests (Files): Add them.
72843         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
72845 2009-12-19  Eric Blake  <ebb9@byu.net>
72847         dirfd: fix prototype
72848         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
72849         * lib/dirfd.c (dirfd): Likewise.
72851         canonicalize: reduce memory usage
72852         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
72853         allocation to size.
72854         Reported by Solar Designer <solar@openwall.com>.
72856 2009-12-19  Bruno Haible  <bruno@clisp.org>
72858         New module attribute 'Applicability'.
72859         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
72860         * gnulib-tool: New option --extract-applicability.
72861         (func_usage): Document it.
72862         (sed_extract_prog): Recognize it.
72863         (func_get_applicability): New function.
72864         (func_import): Generalize handling of 'link-warning' module.
72865         * modules/link-warning (Applicability): New section.
72866         * modules/arg-nonnull (Applicability): New section.
72867         Repoted by Simon Josefsson <simon@josefsson.org>.
72869 2009-12-19  Bruno Haible  <bruno@clisp.org>
72871         fflush: tweak
72872         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
72873         * lib/fseeko.c (rpl_fseeko): Likewise.
72875 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
72877         * lib/gl_list.h: Fix typo in comment.
72879 2009-12-16  Eric Blake  <ebb9@byu.net>
72881         fcntl: use to simplify other modules
72882         * modules/cloexec (Depends-on): Add fcntl.
72883         * modules/fchdir (Depends-on): Likewise.
72884         * modules/fd-safer-flag (Depends-on): Likewise.
72885         * modules/unistd-safer (Depends-on): Likewise.
72886         * modules/dup3 (configure.ac): Set module indicator.
72887         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
72888         missing.
72889         * lib/fchdir.c (_gl_register_dup): Fix comment.
72890         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
72891         * lib/dup-safer.c (dup_safer): Likewise.
72892         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
72893         * lib/dup3.c (dup3): Likewise.
72894         * tests/test-fchdir.c (main): Enhance test.
72895         Fixes a dup_cloexec bug reported by Ondřej Vašík.
72897         fcntl: port portions of fcntl to mingw
72898         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
72899         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
72900         replacement for mingw.
72901         * modules/fcntl (Description): Update.
72902         (Depends-on): Add dup2.
72903         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
72904         * modules/fcntl-h (Makefile.am): Substitute it.
72905         * lib/fcntl.in.h (fcntl): Update declaration.
72906         (F_DUPFD, F_GETFD): New macros, when needed.
72907         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
72908         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
72909         * tests/test-fcntl.c (check_flags, main): Enhance test for items
72910         we now guarantee.
72912         fcntl: work around cygwin bug in F_DUPFD
72913         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
72914         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
72915         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
72916         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
72917         * doc/posix-functions/fcntl.texi (fcntl): Document it.
72919         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
72920         * modules/fcntl (Files): List new files.
72921         (configure.ac): Run a test.
72922         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
72923         * lib/fcntl.c (rpl_fcntl): Likewise.
72924         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
72925         (gl_FCNTL_H): Always replace fcntl.h.
72926         * modules/fcntl-h (Makefile.am): Substitute witnesses.
72927         * lib/fcntl.in.h (fcntl): Declare replacement.
72928         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
72929         needed, plus a witness.
72930         * doc/posix-functions/fcntl.texi (fcntl): Document this.
72931         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
72932         * tests/test-fcntl.c: New file.
72933         * modules/fcntl-tests: Likewise.
72935         binary-io: avoid potential compilation warning
72936         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
72937         directives.
72939         fflush: avoid compilation error on NetBSD
72940         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
72941         between off_t and fpos_t, since the latter is sometimes a struct.
72942         * lib/fseeko.c (rpl_fseeko): Likewise.
72943         Reported by Alexander Nasonov <alnsn@yandex.ru>.
72945 2009-12-15  Eric Blake  <ebb9@byu.net>
72947         fcntl-h, stdio, sys_ioctl: fix declarations
72948         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
72949         function must not take arguments.
72950         * lib/sys_ioctl.in.h (ioctl): Likewise.
72951         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
72952         (open): Add a link warning.
72954 2009-12-15  Jim Meyering  <meyering@redhat.com>
72956         areadlink, areadlink-with-size: relax license to LGPLv2+
72957         * modules/areadlink (License): Relax to LGPLv2+.
72958         * modules/areadlink-with-size (License): Likewise.
72960 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
72961             Bruno Haible  <bruno@clisp.org>
72963         *printf: Fix memory leak.
72964         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
72965         * lib/vfprintf.c (vfprintf): Likewise.
72966         * lib/dprintf.c (dprintf): Likewise.
72967         * lib/vdprintf.c (vdprintf): Likewise.
72969 2009-12-14  Eric Blake  <ebb9@byu.net>
72971         accept4: adjust module dependencies
72972         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
72974         utimens: one more try at avoiding compiler warning
72975         * lib/utimens.c (lutimens): Lower scope of result.
72977 2009-12-13  Bruno Haible  <bruno@clisp.org>
72979         Move the malloc checking from module 'list' to new module 'xlist'.
72980         * modules/xlist: New file.
72981         * lib/gl_xlist.h: New file.
72982         * lib/gl_xlist.c: New file.
72983         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
72984         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
72985         gl_list_add_last, gl_list_add_before, gl_list_add_after,
72986         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
72987         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
72988         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
72989         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
72990         gl_sortedlist_nx_add): New declarations.
72991         (struct gl_list_implementation): Rename and change methods accordingly.
72992         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
72993         (gl_list_nx_create): Renamed from gl_list_create.
72994         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
72995         (gl_list_nx_set_at): Renamed from gl_list_set_at.
72996         (gl_list_nx_add_first): Renamed from gl_list_add_first.
72997         (gl_list_nx_add_last): Renamed from gl_list_add_last.
72998         (gl_list_nx_add_before): Renamed from gl_list_add_before.
72999         (gl_list_nx_add_after): Renamed from gl_list_add_after.
73000         (gl_list_nx_add_at): Renamed from gl_list_add_at.
73001         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
73002         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
73003         gl_list_create_empty.
73004         (gl_list_nx_create): Renamed from gl_list_create.
73005         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
73006         (gl_list_nx_set_at): Renamed from gl_list_set_at.
73007         (gl_list_nx_add_first): Renamed from gl_list_add_first.
73008         (gl_list_nx_add_last): Renamed from gl_list_add_last.
73009         (gl_list_nx_add_before): Renamed from gl_list_add_before.
73010         (gl_list_nx_add_after): Renamed from gl_list_add_after.
73011         (gl_list_nx_add_at): Renamed from gl_list_add_at.
73012         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
73013         * lib/gl_array_list.c: Don't include xalloc.h.
73014         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
73015         NULL upon out-of-memory.
73016         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
73017         out-of-memory.
73018         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
73019         Change return type to 'int'.
73020         (gl_array_nx_set_at): Renamed from gl_array_set_at.
73021         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
73022         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
73023         upon out-of-memory.
73024         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
73025         upon out-of-memory.
73026         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
73027         upon out-of-memory.
73028         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
73029         upon out-of-memory.
73030         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
73031         out-of-memory.
73032         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
73033         Update.
73034         (gl_array_list_implementation): Update.
73035         * lib/gl_carray_list.c: Don't include xalloc.h.
73036         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
73037         Return NULL upon out-of-memory.
73038         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
73039         out-of-memory.
73040         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
73041         Change return type to 'int'.
73042         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
73043         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
73044         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
73045         upon out-of-memory.
73046         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
73047         upon out-of-memory.
73048         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
73049         out-of-memory.
73050         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
73051         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
73052         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
73053         Update.
73054         (gl_carray_list_implementation): Update.
73055         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
73056         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
73057         gl_linked_create_empty. Return NULL upon out-of-memory.
73058         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
73059         out-of-memory.
73060         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
73061         Change return type to 'int'. Return -1 upon out-of-memory.
73062         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
73063         out-of-memory.
73064         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
73065         upon out-of-memory.
73066         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
73067         upon out-of-memory.
73068         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
73069         NULL upon out-of-memory.
73070         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
73071         upon out-of-memory.
73072         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
73073         out-of-memory.
73074         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
73075         Update.
73076         * lib/gl_linked_list.c: Don't include xalloc.h.
73077         (gl_linked_list_implementation): Update.
73078         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
73079         (add_to_bucket): Change return type to 'int'.
73080         (gl_linkedhash_list_implementation): Update.
73081         * lib/gl_anytree_list1.h (free_subtree): New function.
73082         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
73083         gl_tree_create_empty. Return NULL upon out-of-memory.
73084         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
73085         Change return type to 'int'. Return -1 upon out-of-memory.
73086         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
73087         out-of-memory.
73088         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
73089         (gl_tree_remove_node): New function, moved here from
73090         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
73091         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
73092         Update.
73093         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
73094         malloc, not xmalloc. Return NULL upon out-of-memory.
73095         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
73096         out-of-memory.
73097         (gl_tree_remove_node_from_tree): New function, extracted from
73098         gl_tree_remove_node.
73099         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
73100         upon out-of-memory.
73101         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
73102         out-of-memory.
73103         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
73104         upon out-of-memory.
73105         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
73106         upon out-of-memory.
73107         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
73108         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
73109         not xmalloc. Return NULL upon out-of-memory.
73110         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
73111         out-of-memory.
73112         (gl_tree_remove_node_from_tree): New function, extracted from
73113         gl_tree_remove_node.
73114         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
73115         upon out-of-memory.
73116         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
73117         out-of-memory.
73118         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
73119         upon out-of-memory.
73120         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
73121         upon out-of-memory.
73122         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
73123         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
73124         gl_anytree_list1.h before gl_anyavltree_list2.h.
73125         (gl_avltree_list_implementation): Update.
73126         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
73127         gl_anytree_list1.h before gl_anyavltree_list2.h.
73128         (gl_rbtree_list_implementation): Update.
73129         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
73130         Change return type to 'int'. Return -1 upon out-of-memory. Use
73131         __builtin_expect.
73132         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
73133         (gl_avltreehash_list_implementation): Update.
73134         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
73135         (gl_rbtreehash_list_implementation): Update.
73136         * modules/array-list (Depends-on): Remove xalloc.
73137         * modules/carray-list (Depends-on): Likewise.
73138         * modules/linked-list (Depends-on): Likewise.
73139         * modules/linkedhash-list (Depends-on): Likewise.
73140         * modules/avltree-list (Depends-on): Likewise.
73141         * modules/rbtree-list (Depends-on): Likewise.
73142         * modules/avltreehash-list (Depends-on): Likewise.
73143         * modules/rbtreehash-list (Depends-on): Likewise.
73145         * modules/xsublist: New file.
73146         * lib/gl_xsublist.h: New file.
73147         * lib/gl_xsublist.c: New file.
73148         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
73149         (gl_sublist_nx_create): New declaration.
73150         * lib/gl_sublist.c: Don't include xalloc.h.
73151         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
73152         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
73153         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
73154         Change return type to 'int'. Return -1 upon out-of-memory.
73155         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
73156         upon out-of-memory.
73157         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
73158         NULL upon out-of-memory.
73159         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
73160         upon out-of-memory.
73161         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
73162         NULL upon out-of-memory.
73163         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
73164         NULL upon out-of-memory.
73165         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
73166         upon out-of-memory.
73167         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
73168         (gl_sublist_list_implementation): Update.
73169         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
73170         upon out-of-memory.
73171         * modules/sublist (Depends-on): Remove xalloc.
73173         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
73174         * tests/test-carray_list.c: Likewise.
73175         * tests/test-linked_list.c: Likewise.
73176         * tests/test-linkedhash_list.c: Likewise.
73177         * tests/test-avltree_list.c: Likewise.
73178         * tests/test-rbtree_list.c: Likewise.
73179         * tests/test-avltreehash_list.c: Likewise.
73180         * tests/test-rbtreehash_list.c: Likewise.
73181         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
73182         * modules/carray-list-tests (Makefile.am): Likewise.
73183         * modules/linked-list-tests (Makefile.am): Likewise.
73184         * modules/linkedhash-list-tests (Makefile.am): Likewise.
73185         * modules/avltree-list-tests (Makefile.am): Likewise.
73186         * modules/rbtree-list-tests (Makefile.am): Likewise.
73187         * modules/avltreehash-list-tests (Makefile.am): Likewise.
73188         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
73190         * NEWS: Mention the changes.
73192         * lib/clean-temp.c: Include gl_xlist.h.
73193         * modules/clean-temp (Depends-on): Add xlist.
73195         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
73196         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
73198         * tests/test-array_oset.c: Include gl_xlist.h.
73199         * modules/array-oset-tests (Depends-on): Add xlist.
73201         Reported by José E. Marchesi <jemarch@gnu.org>.
73203 2009-12-13  Bruno Haible  <bruno@clisp.org>
73205         Move the malloc checking from module 'oset' to new module 'xoset'.
73206         * modules/xoset: New file.
73207         * lib/gl_xoset.h: New file.
73208         * lib/gl_xoset.c: New file.
73209         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
73210         declarations.
73211         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
73212         (struct gl_oset_implementation): Rename and change methods accordingly.
73213         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
73214         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
73215         'int'. Mark as __warn_unused_result__.
73216         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
73217         gl_oset_create_empty.
73218         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
73219         'int'.
73220         * lib/gl_array_oset.c: Don't include xalloc.h.
73221         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
73222         malloc, not xmalloc.
73223         (grow): Change return type to 'int'. Don't call xalloc_die.
73224         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
73225         to 'int'.
73226         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
73227         'int'.
73228         (gl_array_oset_implementation): Update.
73229         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
73230         gl_tree_create_empty.
73231         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
73232         'int'.
73233         * lib/gl_avltree_oset.c: Don't include xalloc.h.
73234         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
73235         xmalloc.
73236         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
73237         not xmalloc.
73238         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
73239         xmalloc.
73240         (gl_avltree_oset_implementation): Update.
73241         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
73242         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
73243         xmalloc.
73244         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
73245         not xmalloc.
73246         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
73247         xmalloc.
73248         (gl_rbtree_oset_implementation): Update.
73249         * modules/array-oset (Depends-on): Remove xalloc.
73250         * modules/avltree-oset (Depends-on): Likewise.
73251         * modules/rbtree-oset (Depends-on): Likewise.
73252         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
73253         * tests/test-avltree_oset.c: Likewise.
73254         * tests/test-rbtree_oset.c: Likewise.
73255         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
73256         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
73257         * modules/rbtree-oset-tests (Makefile.am): Likewise.
73258         * NEWS: Mention the change.
73260 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
73262         maint.mk: allow a project to override release-prep commands
73263         * top/maint.mk (alpha, beta, stable): Move release-preparatory
73264         commands into a new rule.
73265         (release-prep): New rule.
73266         (release-prep-hook): New overridable variable.
73268 2009-12-13  Bruno Haible  <bruno@clisp.org>
73270         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
73272 2009-12-13  Jim Meyering  <meyering@redhat.com>
73274         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
73275         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
73277 2009-12-12  Bruno Haible  <bruno@clisp.org>
73279         duplocale: Tweak.
73280         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
73282 2009-12-12  Karl Berry  <karl@gnu.org>
73284         * config/srclist.txt (strtoll.c): tab changes, no more sync.
73286 2009-12-12  Bruno Haible  <bruno@clisp.org>
73288         * m4/po.m4: Undo incorrect untabification.
73290 2009-12-12  Bruno Haible  <bruno@clisp.org>
73292         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
73293         * modules/c-strtod (Depends-on): Add locale.
73294         * modules/c-strtold (Depends-on): Likewise.
73296 2009-12-12  Bruno Haible  <bruno@clisp.org>
73298         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
73300 2009-12-11  Eric Blake  <ebb9@byu.net>
73302         setenv: relax requirement in light of POSIX ruling
73303         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
73304         not NULL.
73305         * tests/test-setenv.c (main): Relax test.
73306         * tests/test-unsetenv.c (main): Likewise.
73307         * doc/posix-functions/setenv.texi (setenv): Document this.
73308         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
73310 2009-12-11  Bruno Haible  <bruno@clisp.org>
73312         New module 'fd-safer-flag'.
73313         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
73314         * lib/dup-safer.c (dup_safer_flag): Remove function.
73315         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
73316         * lib/fd-safer.c (fd_safer_flag): Remove function.
73317         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
73318         * modules/cloexec (configure.ac): Drop indicator macro.
73319         * modules/fd-safer-flag: New file.
73320         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
73321         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
73322         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
73324 2009-12-11  Bruno Haible  <bruno@clisp.org>
73326         Tests for module 'nl_langinfo'.
73327         * modules/nl_langinfo-tests: New file.
73328         * tests/test-nl_langinfo.sh: New file.
73329         * tests/test-nl_langinfo.c: New file.
73331         New module 'nl_langinfo'.
73332         * lib/nl_langinfo.c: New file.
73333         * m4/nl_langinfo.m4: New file.
73334         * modules/nl_langinfo: New file.
73335         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
73337 2009-12-11  Bruno Haible  <bruno@clisp.org>
73339         Tests for module 'langinfo'.
73340         * modules/langinfo-tests: New file.
73341         * tests/test-langinfo.c: New file.
73343         New module 'langinfo'.
73344         * lib/langinfo.in.h: New file.
73345         * m4/langinfo_h.m4: New file.
73346         * modules/langinfo: New file.
73347         * doc/posix-headers/langinfo.texi: Mention the new module.
73349 2009-12-11  Bruno Haible  <bruno@clisp.org>
73351         * lib/config.charset: Untabify.
73353 2009-12-11  Bruno Haible  <bruno@clisp.org>
73355         * modules/unistd-safer (configure.ac): Drop indicator macro.
73357 2009-12-11  Bruno Haible  <bruno@clisp.org>
73359         Move pipe2-safer code to its own file.
73360         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
73361         * lib/pipe-safer.c (pipe2_safer): Remove function.
73362         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
73363         (Makefile.am): Add it to lib_SOURCES.
73365 2009-12-10  Bruno Haible  <bruno@clisp.org>
73367         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
73369 2009-12-10  Bruno Haible  <bruno@clisp.org>
73371         Declare which arguments expect non-NULL values, for GCC and clang.
73372         * build-aux/arg-nonnull.h: New file.
73373         * modules/arg-nonnull: New file.
73374         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
73375         (inet_ntop, inet_pton): Use it.
73376         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
73377         (closedir, dirfd, opendir, scandir, alphasort): Use it.
73378         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
73379         (open, openat): Use it.
73380         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
73381         (fnmatch): Use it.
73382         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
73383         (getopt, getopt_long, getopt_long_only): Use it.
73384         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
73385         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
73386         Use it.
73387         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
73388         (iconv_open): Use it.
73389         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
73390         (strtoimax, strtoumax): Use it.
73391         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
73392         (duplocale): Use it.
73393         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
73394         (frexp, frexpl): Use it.
73395         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
73396         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
73397         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
73398         (tsearch, tfind, tdelete, twalk): Use it.
73399         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
73400         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
73401         sigpending): Use it.
73402         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
73403         (posix_spawn, posix_spawnp, posix_spawnattr_init,
73404         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
73405         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
73406         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
73407         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
73408         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
73409         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
73410         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
73411         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
73412         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
73413         Use it.
73414         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
73415         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
73416         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
73417         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
73418         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
73419         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
73420         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
73421         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
73422         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
73423         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
73424         strtoull, unsetenv): Use it.
73425         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
73426         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
73427         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
73428         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
73429         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
73430         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
73431         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
73432         (strcasecmp, strncasecmp): Use it.
73433         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
73434         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
73435         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
73436         rpl_setsockopt): Use it.
73437         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
73438         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
73439         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
73440         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
73441         (gettimeofday): Use it.
73442         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
73443         (times): Use it.
73444         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
73445         (uname): Use it.
73446         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
73447         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
73448         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
73449         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
73450         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
73451         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
73452         unlinkat, write): Use it.
73453         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
73454         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
73455         * lib/argv-iter.h: Include arg-nonnull.h.
73456         (_ATTRIBUTE_NONNULL_): Remove macro.
73457         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
73458         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
73459         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
73460         optimization.
73461         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
73462         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
73463         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
73464         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
73465         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
73466         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
73467         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
73468         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
73469         * modules/arpa_inet (Depends-on): Add arg-nonnull.
73470         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
73471         * modules/dirent (Depends-on): Add arg-nonnull.
73472         (Makefile.am): Insert arg-nonnull.h into dirent.h.
73473         * modules/fcntl-h (Depends-on): Add arg-nonnull.
73474         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
73475         * modules/fnmatch (Depends-on): Add arg-nonnull.
73476         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
73477         * modules/getopt-posix (Depends-on): Add arg-nonnull.
73478         (Makefile.am): Insert arg-nonnull.h into getopt.h.
73479         * modules/glob (Depends-on): Add arg-nonnull.
73480         (Makefile.am): Insert arg-nonnull.h into glob.h.
73481         * modules/iconv_open (Depends-on): Add arg-nonnull.
73482         (Makefile.am): Insert arg-nonnull.h into iconv.h.
73483         * modules/inttypes (Depends-on): Add arg-nonnull.
73484         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
73485         * modules/locale (Depends-on): Add arg-nonnull.
73486         (Makefile.am): Insert arg-nonnull.h into locale.h.
73487         * modules/math (Depends-on): Add arg-nonnull.
73488         (Makefile.am): Insert arg-nonnull.h into math.h.
73489         * modules/netdb (Depends-on): Add arg-nonnull.
73490         (Makefile.am): Insert arg-nonnull.h into netdb.h.
73491         * modules/search (Depends-on): Add arg-nonnull.
73492         (Makefile.am): Insert arg-nonnull.h into search.h.
73493         * modules/signal (Depends-on): Add arg-nonnull.
73494         (Makefile.am): Insert arg-nonnull.h into signal.h.
73495         * modules/spawn (Depends-on): Add arg-nonnull.
73496         (Makefile.am): Insert arg-nonnull.h into spawn.h.
73497         * modules/stdio (Depends-on): Add arg-nonnull.
73498         (Makefile.am): Insert arg-nonnull.h into stdio.h.
73499         * modules/stdlib (Depends-on): Add arg-nonnull.
73500         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
73501         * modules/string (Depends-on): Add arg-nonnull.
73502         (Makefile.am): Insert arg-nonnull.h into string.h.
73503         * modules/strings (Depends-on): Add arg-nonnull.
73504         (Makefile.am): Insert arg-nonnull.h into strings.h.
73505         * modules/sys_socket (Depends-on): Add arg-nonnull.
73506         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
73507         * modules/sys_stat (Depends-on): Add arg-nonnull.
73508         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
73509         * modules/sys_time (Depends-on): Add arg-nonnull.
73510         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
73511         * modules/sys_times (Depends-on): Add arg-nonnull.
73512         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
73513         * modules/sys_utsname (Depends-on): Add arg-nonnull.
73514         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
73515         * modules/time (Depends-on): Add arg-nonnull.
73516         (Makefile.am): Insert arg-nonnull.h into time.h.
73517         * modules/unistd (Depends-on): Add arg-nonnull.
73518         (Makefile.am): Insert arg-nonnull.h into unistd.h.
73519         * modules/wchar (Depends-on): Add arg-nonnull.
73520         (Makefile.am): Insert arg-nonnull.h into wchar.h.
73521         * modules/argv-iter (Depends-on): Add arg-nonnull.
73522         * tests/test-canonicalize.c (null_ptr): New function.
73523         (main): Use it.
73524         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
73525         (main): Use it.
73526         * tests/test-memmem.c (null_ptr): New function.
73527         (main): Use it.
73528         Reported by Jim Meyering.
73530 2009-12-10  Bruno Haible  <bruno@clisp.org>
73532         Use spaces for indentation, not tabs.
73533         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
73534         * m4/*.m4: Untabify.
73535         * build-aux/*.h: Untabify.
73536         * tests/**/*.[hc]: Untabify.
73537         * README: New section "Indent with spaces, not TABs", based on
73538         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
73539         * NEWS: Mention the change.
73541 2009-12-10  Bruno Haible  <bruno@clisp.org>
73543         pty test: Fix link error.
73544         * modules/pty-tests (Makefile.am): Add the default LDADD value to
73545         test_pty_LDADD.
73547 2009-12-07  Simon Josefsson  <simon@josefsson.org>
73549         * modules/pty: New file.
73550         * modules/pty-tests: New file.
73551         * m4/pty.m4: New file.
73552         * tests/test-pty.c: New file.
73553         * doc/glibc-headers/pty.texi: Modified.
73554         * doc/glibc-functions/forkpty.texi: Modified.
73555         * doc/glibc-functions/openpty.texi: Modified.
73557 2009-12-10  Bruno Haible  <bruno@clisp.org>
73559         Avoid syntax error in C++ mode.
73560         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
73562 2009-12-10  Bruno Haible  <bruno@clisp.org>
73564         Use sed with option -e.
73565         * gnulib-tool (func_version, func_emit_copyright_notice,
73566         func_emit_initmacro_end, func_import, func_create_testdir): Pass
73567         option -e to sed.
73568         * modules/link-warning (Makefile.am): Likewise.
73570 2009-12-10  Jim Meyering  <meyering@redhat.com>
73572         mgetgroups: do not write bytes beyond end of malloc'd buffer
73573         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
73574         username, we call getgroups with a one-element-shorter buffer,
73575         but still told it the length was original, max_n_groups.
73577 2009-12-09  Eric Blake  <ebb9@byu.net>
73579         cloexec: relax license
73580         * modules/cloexec (Maintainer): Add myself.
73581         (License): Use LGPL, not GPL.
73583         link-warning: optimize generation
73584         * modules/link-warning (Makefile.am): Reduce process usage.
73586 2009-12-09  Bruno Haible  <bruno@clisp.org>
73588         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
73589         workaround was added on 2009-11-17.
73591 2009-12-09  Jim Meyering  <meyering@redhat.com>
73592             Bruno Haible  <bruno@clisp.org>
73594         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
73595         * modules/link-warning (Makefile.am): Make the comment-removing sed
73596         command more robust in the face of bootstrap-prepended comment lines.
73598 2009-12-09  Bruno Haible  <bruno@clisp.org>
73600         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
73601         most one group.
73603 2009-12-09  Simon Josefsson  <simon@josefsson.org>
73604             Bruno Haible  <bruno@clisp.org>
73606         * build-aux/link-warning.h: Add copyright notice.
73607         * modules/link-warning (Makefile.am): Generate link-warning.h from
73608         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
73609         * NEWS: Mention change in link-warning module.
73610         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
73611         * modules/dirent (Makefile.am): Add dependency to dirent.h.
73612         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
73613         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
73614         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
73615         * modules/math (Makefile.am): Add dependency to math.h.
73616         * modules/search (Makefile.am): Add dependency to search.h.
73617         * modules/signal (Makefile.am): Add dependency to signal.h.
73618         * modules/spawn (Makefile.am): Add dependency to spawn.h.
73619         * modules/stdio (Makefile.am): Add dependency to stdio.h.
73620         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
73621         * modules/string (Makefile.am): Add dependency to string.h.
73622         * modules/strings (Makefile.am): Add dependency to strings.h.
73623         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
73624         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
73625         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
73626         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
73627         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
73628         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
73629         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
73630         * modules/unistd (Makefile.am): Add dependency to unistd.h.
73631         * modules/wchar (Makefile.am): Add dependency to wchar.h.
73633 2009-12-09  Bruno Haible  <bruno@clisp.org>
73635         fchdir: Optimize away rpl_fstat when possible.
73636         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
73637         REPLACE_OPEN_DIRECTORY.
73638         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
73640 2009-12-09  Bruno Haible  <bruno@clisp.org>
73642         * lib/fchdir.c: Update comment.
73644 2009-12-09  Bruno Haible  <bruno@clisp.org>
73646         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
73648 2009-12-08  Eric Blake  <ebb9@byu.net>
73650         fchdir: avoid memory leak on re-registration.
73651         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
73653 2009-12-08  Jim Meyering  <meyering@redhat.com>
73655         init.sh: avoid Solaris 10 /bin/sh portability problem
73656         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
73657         sourced script:
73658           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
73659           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
73660           bar
73661         tests/init.sh relied on that, accepting a --set-path=DIR argument,
73662         and two tests used that idiom.
73663         * tests/init.sh: Update suggested usage comments.
73664         (path_prepend_): New function, to be used in place
73665         of the --src-path=DIR option.
73666         (setup_): Move PATH-prepending code into path_prepend_.
73667         * tests/test-pread.sh: Adapt to new usage.
73668         * tests/test-xalloc-die.sh: Likewise.
73670 2009-12-08  Simon Josefsson  <simon@josefsson.org>
73672         * doc/gnulib.texi (Glibc pty.h): Add.
73673         * doc/glibc-functions/forkpty.texi: Add.
73674         * doc/glibc-functions/openpty.texi: Add.
73675         Suggested by Bruno Haible.
73677 2009-12-08  Eric Blake  <ebb9@byu.net>
73679         fchdir: fix logic bugs
73680         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
73681         * tests/test-fchdir.c (main): Enhance test.
73682         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
73683         is in use.
73685         dup2: fix logic bugs
73686         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
73687         REPLACE_DUP2 to decide when rpl_dup2 is needed.
73688         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
73689         exists.
73690         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
73692 2009-12-07  Eric Blake  <ebb9@byu.net>
73694         unlink: fix m4 detection
73695         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
73697         unistd-safer: add unit test
73698         * modules/unistd-safer-tests: New file.
73699         * tests/test-dup-safer.c: Likewise.
73700         * tests/test-cloexec.c (setmode): Avoid compiler warning.
73701         * tests/test-dup2.c (setmode): Likewise.
73702         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
73704         cloexec: preserve text vs. binary across dup_cloexec
73705         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
73706         mode.
73707         * modules/dup2-tests (Depends-on): Add binary-io.
73708         * modules/cloexec-tests (Depends-on): Likewise.
73709         * tests/test-dup2.c (setmode, is_mode): New helpers.
73710         (main): Add tests that translation mode is preserved.
73711         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
73712         Reported by Bruno Haible.
73714         mgetgroups: reduce duplicate listings
73715         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
73716         resulting array.
73717         * tests/test-chown.h (test_chown): Simplify client.
73718         * tests/test-lchown.h (test_lchown): Likewise.
73720 2009-12-06  Bruno Haible  <bruno@clisp.org>
73722         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
73723         value.
73725 2009-12-06  Bruno Haible  <bruno@clisp.org>
73727         * lib/progname.c: Include stdio.h, stdlib.h.
73728         (set_program_name): Reject a NULL argument.
73730 2009-12-05  Eric Blake  <ebb9@byu.net>
73732         pipe2-safer: new module
73733         * modules/pipe2-safer: New file.
73734         * lib/unistd-safer.h (pipe2_safer): New prototype.
73735         * lib/unistd--.h (pipe2): New wrapper.
73736         * lib/pipe-safer.c (pipe2_safer): New function.
73737         * modules/pipe (Depends-on): Add pipe2-safer.
73738         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
73740         stdlib-safer: preserve cloexec flag for mkostemp[s]
73741         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
73742         fd_safer_flag.
73744         unistd-safer: allow preservation of cloexec status via flag
73745         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
73746         prototypes.
73747         * lib/dup-safer.c (dup_safer_flag): New function.
73748         * lib/fd-safer.c (fd_safer_flag): Likewise.
73749         * modules/cloexec (configure.ac): Set witness.
73751         test-dup2: enhance test
73752         * modules/dup2-tests (Depends-on): Add cloexec.
73753         * tests/test-dup2.c (main): Enhance test.
73755         cloexec: add dup_cloexec
73756         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
73757         header and comments.
73758         * lib/cloexec.c (set_cloexec_flag): Add comments.
73759         (dup_cloexec): New function, with mingw implementation borrowed
73760         from...
73761         * lib/w32spawn.h (dup_noinherit): ...here.
73762         * modules/execute (Depends-on): Add cloexec.
73763         * modules/pipe (Depends-on): Likewise.
73764         * modules/cloexec (Depends-on): Add dup2.
73765         * modules/cloexec-tests (Files): New file.
73766         * tests/test-cloexec.c: Likewise.
73768         test-xalloc-die: fix test for mingw
73769         * modules/xalloc-die-tests (Files): Add tests/init.sh.
73770         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
73771         directory and .exe suffix off argv[0] output.
73773         test-fseeko: fix test for mingw
73774         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
73775         than undefining fseek, so test will pass on mingw.
73777 2009-12-05  Bruno Haible  <bruno@clisp.org>
73779         * lib/progname.h (set_program_name): Clarify specification.
73780         * lib/progname.c (set_program_name): Likewise.
73781         Reported by Jim Meyering.
73783 2009-12-05  Jim Meyering  <meyering@redhat.com>
73785         maint.mk: backslash-escape parens in default regexp
73786         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
73787         backslash-escape the literal parentheses.
73789         maint.mk: news-date-check: use grep -E
73790         * top/maint.mk (today): Define a Make variable, not a...
73791         (news-date-check): ...shell variable.
73792         (news-date-regexp): Use the Make variable.
73793         Use grep's -E option.  Change the failing diagnostic to mention
73794         the variable, $(news-date-regexp).
73796 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
73798         maintainer-makefile: allow customization of NEWS entry format
73799         * top/maint.mk (news-date-regexp): New overridable variable.
73800         (news-date-check): Use it.
73802 2009-12-04  Eric Blake  <ebb9@byu.net>
73804         mgetgroups: add xgetgroups, and avoid ENOSYS failures
73805         * lib/mgetgroups.h (xgetgroups): New prototype.
73806         * lib/mgetgroups.c (xgetgroups): New wrapper.
73807         (mgetgroups): Handle ENOSYS.
73808         * modules/mgetgroups (Depends-on): Add realloc.
73809         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
73811         mgetgroups: avoid argument promotion issues with -1
73812         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
73813         for invalid gid_t.
73814         * tests/test-chown.h (getegid, test_chown): Likewise.
73815         * tests/test-lchown.h (getegid, test_lchown): Likewise.
73817 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
73819         exclude: Fix header file problems.
73820         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
73822 2009-12-01  Jim Meyering  <meyering@redhat.com>
73824         fts: fts_open: do not let an empty string cause immediate failure
73825         This is required in support of GNU rm, for which the command
73826         "rm A '' B" must process and remove both A and B, in spite of
73827         the empty string argument.
73828         * lib/fts.c (fts_open): Do not let the presence of an empty string
73829         cause fts_open to fail immediately.  Most fts-using tools must be
73830         able to process all arguments, in order, and can be expected to
73831         diagnose such arguments themselves.
73833 2009-11-30  Eric Blake  <ebb9@byu.net>
73835         utimens: fix compilation error
73836         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
73837         Declare variable at right scope.
73839 2009-11-29  Jim Meyering  <meyering@redhat.com>
73841         bootstrap: handle perl-5.11's changed --version output
73842         * build-aux/bootstrap (get_version): Handle perl separately,
73843         since perl-5.11's --version output is different.
73845 2009-11-28  Jim Meyering  <meyering@redhat.com>
73847         userspec: depend on the inttostr module, too
73848         * modules/userspec (Depends-on): Add inttostr.
73850         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
73851         * lib/userspec.c (parse_with_separator): Do not accept a user ID
73852         number of MAXUID when it evaluates to (uid_t) -1.
73853         Likewise for group ID.  Reported by Matt McCutchen in
73854         <http://savannah.gnu.org/bugs/?28113>
73856         userspec: reformat to use spaces, not TABs
73857         * lib/userspec.c: Expand TABs to spaces.
73858         Add Emacs' "indent-tabs-mode: nil" hint.
73860 2009-11-27  Eric Blake  <ebb9@byu.net>
73862         getopt-gnu: flush out another BSD bug
73863         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
73864         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
73865         flush out BSD bug.
73866         * tests/test-getopt.h (test_getopt): End lists with NULL.
73867         * tests/test-getopt_long.h (test_getopt_long): Likewise.
73868         (test_getopt_long_posix): Enhance test.
73869         * modules/getopt-posix-tests (Depends-on): Add stdbool.
73870         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
73871         getopt-gnu.
73872         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
73873         Likewise.
73875 2009-11-27  Simon Josefsson  <simon@josefsson.org>
73877         * modules/idpriv-droptemp-tests (Notice): Fix text.
73879 2009-11-27  Jim Meyering  <meyering@redhat.com>
73881         test-xalloc-die: avoid spurious failure due to libtool argv difference
73882         In a libtool-enabled project, this test would fail due to a difference
73883         in the emitted program name, e.g.,
73884         -test-xalloc-die: memory exhausted
73885         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
73886         Use program to avoid that.
73887         * modules/xalloc-die-tests (Depends-on): Add progname.
73888         * tests/test-xalloc-die.c: Include progname.h".
73889         (program_name): Remove decl.
73890         (main): Call set_program_name.
73891         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
73893 2009-11-26  Richard Jones  <rjones@redhat.com>
73895         w32sock: leave win32 error in place.
73896         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
73898 2009-11-26  Eric Blake  <ebb9@byu.net>
73900         init.sh: suggest to use skip_ and fail_ functions in comments
73901         * tests/init.sh: Add a sentence.
73903 2009-11-25  Bruno Haible  <bruno@clisp.org>
73905         init.sh: add documentation in comments
73906         * tests/init.sh: Add some developer and user documentation.
73908 2009-11-26  Jim Meyering  <meyering@redhat.com>
73910         init.sh: accommodate even those who specify bogus srcdir manually
73911         * tests/init.sh: Normally, srcdir is guaranteed by automake and
73912         configure-time tests to be sanitized, so that there is no need to
73913         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
73914         (with no double quotes) suffices.  However, since tests may be
73915         invoked manually, and since you may explicitly set srcdir to the
73916         name of a directory containing spaces, do quote its uses here.
73917         * tests/test-pread.sh: Likewise.
73918         Suggested by Bruno Haible.
73920         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
73921         * tests/test-pread.sh: Write no data into the pipe, because
73922         test-pread actually reads none.  This avoids a diagnostic,
73923         "bash: echo: write error: Broken pipe", that arises in the unusual
73924         event something is ignoring SIGPIPE, and might be interpreted
73925         as some sort of failure.  Reported by Bruno Haible.
73927 2009-11-25  Jim Meyering  <meyering@redhat.com>
73929         test-pread: cover failure with ESPIPE and EINVAL
73930         * tests/test-pread.c (main): Test for failure, too.
73931         * tests/test-pread.sh: Invoke with stdin on a pipe.
73932         Suggested by Eric Blake.
73934         pread: improvement and fix
73935         * modules/pread (Depends-on): Depend on lseek, for portability to
73936         e.g., mingw.  Suggested by Eric Blake.
73937         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
73939         unistd.in.h: correct declaration of pread
73940         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
73941         Reported by Richard W.M. Jones.
73943         test-pread.sh: distribute the test script
73944         * modules/pread-tests (Files): Include test-pread.sh.
73946         test-pread.sh: clean up
73947         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
73948         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
73949         That is unnecessary, since it's always ".".
73950         Suggestion from Eric Blake.
73952         test-pread.sh: make executable
73953         * tests/test-pread.sh: Set executable bit.
73954         Reported by Eric Blake.
73956         correct typo in test-pread.sh
73957         * tests/test-pread.sh: Add #! line.
73959         test pread
73960         * tests/test-pread.c: New file.
73961         * tests/test-pread.sh: Likewise.
73962         * modules/pread-tests: Likewise.
73964         pread: new module
73965         * modules/pread: New file.
73966         * lib/unistd.in.h (pread): Define/declare.
73967         * lib/pread.c (pread): New file.
73968         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
73969         * modules/unistd (Makefile.am): Substitute witnesses.
73970         * doc/posix-functions/pread.texi (pread): Update.
73971         * MODULES.html.sh: Add pread.
73973 2009-11-25  Jim Meyering  <meyering@redhat.com>
73975         tests/init.sh: new file to be used via most *.sh tests
73976         * tests/init.sh: New file.
73978 2009-11-25  Eric Blake  <ebb9@byu.net>
73980         utimens: work around older Linux failure with symlinks
73981         * lib/utimens.c (lutimensat_works_really): New variable.
73982         (fdutimens, lutimens): Use it to manage kernels that support
73983         nanosecond times on files, but not on symlinks.
73984         Reported by Ondřej Vašík.
73986         utimes: fix configure grammar
73987         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
73989 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
73991         regex: Fix fastmap for multibyte character ranges.
73992         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
73993         characters when a multibyte character range is included.
73995 2009-11-22  Andy Wingo  <wingo@pobox.com>
73997         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
73998         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
74000 2009-11-24  Bruno Haible  <bruno@clisp.org>
74002         doc: Most *_l functions exist in MacOS X 10.5.
74003         * doc/posix-functions/duplocale.texi: Update platforms list.
74004         * doc/posix-functions/freelocale.texi: Likewise.
74005         * doc/posix-functions/newlocale.texi: Likewise.
74006         * doc/posix-functions/uselocale.texi: Likewise.
74007         * doc/posix-functions/isalnum_l.texi: Likewise.
74008         * doc/posix-functions/isalpha_l.texi: Likewise.
74009         * doc/posix-functions/isblank_l.texi: Likewise.
74010         * doc/posix-functions/iscntrl_l.texi: Likewise.
74011         * doc/posix-functions/isdigit_l.texi: Likewise.
74012         * doc/posix-functions/isgraph_l.texi: Likewise.
74013         * doc/posix-functions/islower_l.texi: Likewise.
74014         * doc/posix-functions/isprint_l.texi: Likewise.
74015         * doc/posix-functions/ispunct_l.texi: Likewise.
74016         * doc/posix-functions/isspace_l.texi: Likewise.
74017         * doc/posix-functions/isupper_l.texi: Likewise.
74018         * doc/posix-functions/iswalnum_l.texi: Likewise.
74019         * doc/posix-functions/iswalpha_l.texi: Likewise.
74020         * doc/posix-functions/iswblank_l.texi: Likewise.
74021         * doc/posix-functions/iswcntrl_l.texi: Likewise.
74022         * doc/posix-functions/iswctype_l.texi: Likewise.
74023         * doc/posix-functions/iswdigit_l.texi: Likewise.
74024         * doc/posix-functions/iswgraph_l.texi: Likewise.
74025         * doc/posix-functions/iswlower_l.texi: Likewise.
74026         * doc/posix-functions/iswprint_l.texi: Likewise.
74027         * doc/posix-functions/iswpunct_l.texi: Likewise.
74028         * doc/posix-functions/iswspace_l.texi: Likewise.
74029         * doc/posix-functions/iswupper_l.texi: Likewise.
74030         * doc/posix-functions/iswxdigit_l.texi: Likewise.
74031         * doc/posix-functions/isxdigit_l.texi: Likewise.
74032         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
74033         * doc/posix-functions/strcasecmp_l.texi: Likewise.
74034         * doc/posix-functions/strcoll_l.texi: Likewise.
74035         * doc/posix-functions/strfmon_l.texi: Likewise.
74036         * doc/posix-functions/strftime_l.texi: Likewise.
74037         * doc/posix-functions/strncasecmp_l.texi: Likewise.
74038         * doc/posix-functions/strxfrm_l.texi: Likewise.
74039         * doc/posix-functions/tolower_l.texi: Likewise.
74040         * doc/posix-functions/toupper_l.texi: Likewise.
74041         * doc/posix-functions/towctrans_l.texi: Likewise.
74042         * doc/posix-functions/towlower_l.texi: Likewise.
74043         * doc/posix-functions/towupper_l.texi: Likewise.
74044         * doc/posix-functions/wcscoll_l.texi: Likewise.
74045         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
74046         * doc/posix-functions/wctrans_l.texi: Likewise.
74047         * doc/posix-functions/wctype_l.texi: Likewise.
74048         * doc/glibc-functions/strptime_l.texi: Likewise.
74049         * doc/glibc-functions/strtod_l.texi: Likewise.
74050         * doc/glibc-functions/strtof_l.texi: Likewise.
74051         * doc/glibc-functions/strtol_l.texi: Likewise.
74052         * doc/glibc-functions/strtold_l.texi: Likewise.
74053         * doc/glibc-functions/strtoll_l.texi: Likewise.
74054         * doc/glibc-functions/strtoul_l.texi: Likewise.
74055         * doc/glibc-functions/strtoull_l.texi: Likewise.
74056         * doc/glibc-functions/wcsftime_l.texi: Likewise.
74057         * doc/glibc-functions/wcstod_l.texi: Likewise.
74058         * doc/glibc-functions/wcstof_l.texi: Likewise.
74059         * doc/glibc-functions/wcstol_l.texi: Likewise.
74060         * doc/glibc-functions/wcstold_l.texi: Likewise.
74061         * doc/glibc-functions/wcstoll_l.texi: Likewise.
74062         * doc/glibc-functions/wcstoul_l.texi: Likewise.
74063         * doc/glibc-functions/wcstoull_l.texi: Likewise.
74065 2009-11-24  Bruno Haible  <bruno@clisp.org>
74067         duplocale: Fix logic bug.
74068         * lib/duplocale.c: Don't include <langinfo.h>.
74069         (_NL_LOCALE_NAME): Remove macro.
74070         (rpl_duplocale): Use setlocale instead of nl_langinfo.
74071         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
74073 2009-11-23  Jim Meyering  <meyering@redhat.com>
74075         test-update-copyright: don't hard-code /usr/bin/perl
74076         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
74077         perl to print the current year.  Gilles Espinasse reported that
74078         the replaced use of perl was hard-coded as /usr/bin/perl.
74080 2009-11-23  Bruno Haible  <bruno@clisp.org>
74082         duplocale: Add support for glibc 2.3.x.
74083         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
74085 2009-11-22  Bruno Haible  <bruno@clisp.org>
74087         vasnprintf: Tiny optimization.
74088         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
74089         MacOS X.
74091 2009-11-22  Bruno Haible  <bruno@clisp.org>
74093         Tests for module 'duplocale'.
74094         * modules/duplocale-tests: New file.
74095         * tests/test-duplocale.c: New file.
74097         New module 'duplocale'.
74098         * m4/duplocale.m4: New file.
74099         * lib/locale.in.h (duplocale): New declaration.
74100         * lib/duplocale.c: New file.
74101         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
74102         gl_LOCALE_H_DEFAULTS): New macros.
74103         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
74104         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
74105         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
74106         REPLACE_DUPLOCALE.
74107         * modules/duplocale: New file.
74108         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
74110 2009-11-22  Bruno Haible  <bruno@clisp.org>
74112         * modules/locale-tests (configure.ac): Test for newlocale function.
74113         * tests/test-locale.c: When the system has extended locale functions,
74114         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
74116         locale: Make locale_t available when possible.
74117         * lib/locale.in.h: Include <xlocale.h> when it exists.
74118         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
74119         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
74120         * modules/locale (Depends-on): Add extensions.
74121         (Makefile.am): Also substitute HAVE_XLOCALE_H.
74122         * doc/posix-headers/locale.texi: Document the problem with locale_t.
74124 2009-11-22  Bruno Haible  <bruno@clisp.org>
74126         Add comments.
74127         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
74128         invocation.
74129         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
74130         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
74131         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
74133 2009-11-22  Bruno Haible  <bruno@clisp.org>
74135         error: account for the possibility of freopen (stdout).
74136         * lib/error.c: Include <unistd.h>.
74137         (flush_stdout): New function, extracted from error and error_at_line.
74138         Determine stdout's fd dynamically.
74139         (error, error_at_line): Invoke flush_stdout.
74140         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
74141         * modules/error (Depends-on): Add unistd.
74143 2009-11-22  Bruno Haible  <bruno@clisp.org>
74145         diffseq: Add comment.
74146         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
74148 2009-11-22  Jim Meyering  <meyering@redhat.com>
74150         c-stack: avoid defining an unused static function
74151         * lib/c-stack.c (find_stack_direction): Do not define this function
74152         when it will not be used.
74154         diffseq: avoid spurious gcc warnings
74155         * lib/diffseq.h (IF_LINT2): Define.
74156         (compareseq): Use it to initialize two members of "part".
74157         This avoids two used-uninitialized warnings.
74159 2009-11-21  Jim Meyering  <meyering@redhat.com>
74161         c-stack: avoid "ignoring return value of `write'" warning
74162         * lib/c-stack.c: Include "ignore-value.h".
74163         (die): Explicitly ignore each write return value.
74164         * modules/c-stack (Depends-on): Add ignore-value.
74166 2009-11-21  Bruno Haible  <bruno@clisp.org>
74168         diffseq: reduce scope of variable 'best'.
74169         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
74170         variable, earlier used for two different purposes.
74172 2009-11-21  Jim Meyering  <meyering@redhat.com>
74174         diffseq: remove useless assignment to "best"
74175         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
74176         assignment.  At that point "best" is already guaranteed to be zero.
74178 2009-11-20  Eric Blake  <ebb9@byu.net>
74180         build: mention ftp redirector in release announcements
74181         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
74182         values that used to come from cfg.mk; mention FTP redirect URL.
74183         * build-aux/announce-gen: Mention the mirror list.
74184         Suggested by Karl Berry.
74186         nanosleep: improve port to mingw
74187         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
74188         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
74189         LIB_NANOSLEEP, but only when needed.
74190         * modules/select (Link): Document LIBSOCKET.
74191         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
74192         enough.
74194         nanosleep: work around cygwin bug
74195         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
74196         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
74197         bug.
74198         (getnow): Delete, not needed.
74199         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
74200         LIB_CLOCK_GETTIME.
74201         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
74202         clock-time, gettime.
74203         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
74204         bug.
74205         * modules/nanosleep-tests: New test.
74206         * tests/test-nanosleep.c: New file.
74208         sleep: work around cygwin bug
74209         * lib/sleep.c (rpl_sleep): Work around the bug.
74210         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
74211         (gl_PREREQ_SLEEP): Delete unused macro.
74212         * modules/sleep (Depends-on): Add verify.
74213         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
74214         * modules/unistd (Makefile.am): Substitute witness.
74215         * lib/unistd.in.h (sleep): Update prototype.
74216         * doc/posix-functions/sleep.texi (sleep): Document the bug.
74217         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
74218         * modules/sleep-tests (Depends-on): Check for alarm.
74220 2009-11-20  Jim Meyering  <meyering@redhat.com>
74222         maint.mk: improve sc_prohibit_magic_number_exit
74223         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
74224         so it does not match uses like System.exit(1).
74225         Add comments showing how to correct all offenders.
74227 2009-11-19  Eric Blake  <ebb9@byu.net>
74229         xalloc-die-tests: add missing library
74230         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
74232         test-xvasprintf: silence compiler warnings
74233         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
74234         empty string from gcc.
74236 2009-11-19  Jim Meyering  <meyering@redhat.com>
74238         xfreopen: new module, from coreutils
74239         * modules/xfreopen: New module.
74240         * lib/xfreopen.c: New file.
74241         * lib/xfreopen.h: New file.
74242         * MODULES.html.sh (File stream based Input/Output"): Add it.
74244 2009-11-19  Eric Blake  <ebb9@byu.net>
74246         manywarnings: depend on warnings
74247         * modules/manywarnings (Depends-on): Add warnings.
74249         build: avoid compiler warnings
74250         * lib/select.c (rpl_select): Delete unused variable.
74251         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
74253 2009-11-18  Eric Blake  <ebb9@byu.net>
74255         tests: avoid false negative with --with-packager
74256         * tests/test-version-etc.sh: Discard packager information.
74257         * tests/test-argp-version-etc-1.sh: Likewise.
74258         Reported by Mike Frysinger.
74260         utimens: fix regression on Solaris
74261         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
74262         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
74263         can only change fd timestamps via futimesat.  Instead, use an
74264         additional witness macro to avoid BSD bug.
74265         Reported by Jim Meyering.
74267 2009-11-17  Eric Blake  <ebb9@byu.net>
74269         usleep: use it to simplify tests
74270         * modules/stat-time-tests (Depends-on): Add usleep.
74271         (configure.ac): Drop usleep check.
74272         * modules/chown-tests (Depends-on, configure.ac): Likewise.
74273         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
74274         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
74275         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
74276         * modules/openat-tests (Depends-on, configure.ac): Likewise.
74277         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
74278         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
74279         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
74280         Likewise.
74281         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
74282         * tests/test-lchown.h (nap): Likewise.
74283         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
74284         * tests/test-stat-time.c (nap): Likewise.
74285         * tests/test-utimens-common.h (nap): Update comments.
74287         usleep: new module
74288         * modules/usleep: New file.
74289         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
74290         * lib/usleep.c (usleep): Likewise.
74291         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
74292         * modules/unistd (Makefile.am): Substitute witnesses.
74293         * lib/unistd.in.h (usleep): Add declaration.
74294         * doc/pastposix-functions/usleep.texi (usleep): Document this.
74295         * MODULES.html.sh (Date and time): Likewise.
74296         * modules/usleep-tests (Depends-on): New test.
74297         * tests/test-usleep.c: New file.
74299         chown: work around OpenBSD bug
74300         * lib/chown.c (rpl_chown): Work around the bug.
74301         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
74302         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
74303         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
74304         * modules/chown (Depends-on): Add stdbool.
74305         * modules/lchown (Depends-on): Likewise.
74306         * doc/posix-functions/chown.texi (chown): Document the bug.
74307         * doc/posix-functions/lchown.texi (lchown): Likewise.
74308         * tests/test-lchown.h (test_chown): Relax test.
74310         mkstemp: avoid conflict with C++ keyword template
74311         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
74312         * lib/mkostemp.c (mkostemp): Likewise.
74313         * lib/mkostemps.c (mkostemps): Likewise.
74314         * lib/mkstemp.c (mkstemp): Likewise.
74315         * lib/mkstemps.c (mkstemps): Likewise.
74317         xalloc-die-tests: optimize
74318         * tests/test-xalloc-die.sh: Reduce number of processes.
74320 2009-11-17  Simon Josefsson  <simon@josefsson.org>
74322         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
74323         patch from ludo@gnu.org (Ludovic Courtès).
74325 2009-11-17  Jim Meyering  <meyering@redhat.com>
74327         version-etc: use proper license string
74328         * modules/version-etc (License): Use LGPL, not LGPLv3+.
74329         * modules/version-etc-fsf: Likewise.
74331 2009-11-17  Simon Josefsson  <simon@josefsson.org>
74333         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
74334         printed to stdout.  Deal with EOL differences.
74336 2009-11-17  Eric Blake  <ebb9@byu.net>
74338         unsetenv: work around Solaris bug
74339         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
74340         * lib/unsetenv.c (rpl_unsetenv): Work around it.
74341         Reported by Jim Meyering.
74343         vasnprintf: avoid compiler warnings
74344         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
74345         variables.
74346         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
74348 2009-11-17  Simon Josefsson  <simon@josefsson.org>
74350         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
74351         settings since xalloc-die is no longer the self test,
74352         xalloc-die.sh is.
74354 2009-11-17  Jim Meyering  <meyering@redhat.com>
74356         test-xalloc-die.sh: make the code agree with the commit log
74357         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
74358         at the end, just in case you happen to have a test-xalloc-die
74359         program in some other PATH directory.
74361         test-xalloc-die.sh: fix a portability bug
74362         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
74363         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
74364         Otherwise, argv[0] (as often seen in diagnostics) would be too
74365         system-dependent, sometimes with, and sometimes without the leading "./".
74367         version-etc-fsf: relax license to LGPLv3+
74368         * modules/version-etc-fsf (License): Relax license.
74370 2009-11-16  Eric Blake  <ebb9@byu.net>
74372         xalloc-die-tests: avoid printing null pointer
74373         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
74374         shell script.
74375         * tests/test-xalloc-die.c (program_name): Declare.
74376         * tests/test-xalloc-die.sh (tmpfiles): New file.
74378         setenv, unsetenv: work around various bugs
74379         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
74380         (setenv) [HAVE_SETENV]: Work around bugs.
74381         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
74382         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
74383         for bugs.
74384         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
74385         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
74386         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
74387         * modules/stdlib (Makefile.am): Update substitutions.
74388         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
74389         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
74390         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
74391         * modules/setenv-tests: New test.
74392         * modules/unsetenv-tests: Likewise.
74393         * tests/test-setenv.c: New file.
74394         * tests/test-unsetenv.c: Likewise.
74396 2009-11-16  Jim Meyering  <meyering@redhat.com>
74398         version-etc: relax license to LGPLv3+
74399         * modules/version-etc (License): Relax license.
74401         better AC_REQUIRE expanded-before-required-warning avoidance
74402         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
74403         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
74404         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
74405         which is no longer needed.
74407 2009-11-16  Eric Blake  <ebb9@byu.net>
74409         test-freading: clean up temporary file
74410         * tests/test-freading.c (main): Remove file on success, and use
74411         ASSERT more liberally.
74412         Reported by Jim Meyering.
74414 2009-11-16  Jim Meyering  <meyering@redhat.com>
74416         avoid new AC_REQUIRE expanded-before-required warnings
74417         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
74418         merely using it.
74419         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
74420         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
74422 2009-11-15  Simon Josefsson  <simon@josefsson.org>
74424         * tests/test-xalloc-die.c: New file.
74425         * modules/xalloc-die-tests: New file.
74426         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
74427         XFAIL_TESTS so it can be appended by modules.
74429 2009-11-15  Simon Josefsson  <simon@josefsson.org>
74431         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
74432         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
74434 2009-11-14  Eric Blake  <ebb9@byu.net>
74436         fnmatch: avoid compiler warning
74437         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
74438         to silence compiler warning about mismatch signedness in ?:.
74439         Reported by Robert Millan.
74441         intprops: add double-inclusion guard
74442         * lib/intprops.h: Allow idempotent includes.
74443         Suggested by Bruce Korb.
74445         openat: detect Solaris fchownat bug
74446         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
74447         penalizing glibc chownat when only lchownat is broken.
74448         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
74449         trailing slash bugs.
74450         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
74451         * modules/openat-tests (Files): Include more files.
74452         (Depends-on): Add mgetgroups, sleep, stat-time.
74453         (configure.ac): Add additional checks.
74454         (Makefile.am): Build new test.
74455         * tests/test-fchownat.c: New file.
74457         lchown: detect Solaris and FreeBSD bug
74458         * lib/lchown.c (rpl_lchown): Work around bug.
74459         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
74460         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
74461         * modules/unistd (Makefile.am): Populate it.
74462         * lib/unistd.in.h (lchown): Update declaration.
74463         * doc/posix-functions/lchown.texi (lchown): Document the bug.
74464         * modules/lchown-tests: New file.
74465         * tests/test-lchown.h (test_lchown): Likewise.
74466         * tests/test-lchown.c (main): Likewise.
74468         chown: detect Solaris and FreeBSD bug
74469         * lib/chown.c (rpl_chown): Work around bug.
74470         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
74471         (gl_PREREQ_CHOWN): Delete.
74472         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
74473         * modules/unistd (Makefile.am): Populate it.
74474         * lib/unistd.in.h (chown): Update declaration.
74475         * lib/lchown.c (chown): Update client.
74476         * modules/lchown (Depends-on): Add lstat.
74477         * doc/posix-functions/chown.texi (chown): Document the bug.
74478         * doc/posix-functions/getgroups.texi (getgroups): Document
74479         getgroups pitfall.
74480         * modules/chown-tests: New file.
74481         * tests/test-chown.h (test_chown): Likewise.
74482         * tests/test-chown.c (main): Likewise.
74484 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
74486         gnulib-tool: correctly detect absence of m4 directories
74487         * gnulib-tool: Avoid extra newline on data passed to wc -l.
74489 2009-11-14  Jim Meyering  <meyering@redhat.com>
74491         maint.mk: Prohibit inclusion of "xalloc.h" without use.
74492         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
74494 2009-11-14  John W. Eaton  <jwe@gnu.org>
74496         strftime.h: wrap function declaration in extern "C" block
74497         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
74499 2009-11-13  Eric Blake  <ebb9@byu.net>
74501         getgroups: avoid compiler warning
74502         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
74504         getgroups: work around FreeBSD bug
74505         * lib/getgroups.c (rpl_getgroups): Work around the bug.
74506         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
74507         * doc/posix-functions/getgroups.texi (getgroups): Document it.
74508         * tests/test-getgroups.c (main): Fix buffer overrun.
74510         getgroups: avoid compilation failure
74511         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
74512         * modules/getgroups (Depends-on): Add stdint.
74514 2009-11-13  Jim Meyering  <meyering@redhat.com>
74516         test-getgroups: avoid compilation failure
74517         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
74519 2009-11-13  Eric Blake  <ebb9@byu.net>
74521         mgetgroups: new module, taken from coreutils
74522         * modules/mgetgroups: New file.
74523         * lib/mgetgroups.h: Likewise.
74524         * lib/mgetgroups.c (mgetgroups): Likewise.
74525         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
74526         * MODULES.html.sh (Users and groups): Mention it.
74528         getgroups: don't expose GETGROUPS_T to user
74529         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
74530         an element at a time if GETGROUPS_T is wrong size.
74531         * lib/getugroups.h (getugroups): Change signature.
74532         * lib/unistd.in.h (getgroups): Likewise.
74533         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
74534         signature needs fixing.
74535         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
74536         AC_TYPE_GETGROUPS.
74537         * modules/group-member (Depends-on): Add getgroups.
74538         * lib/group-member.c (group_info, get_group_info): Use gid_t.
74539         (group_member): Rely on getgroups replacement.
74540         * lib/getugroups.c (getugroups): Use gid_t.
74541         * tests/test-getgroups.c (main): Likewise.
74542         * NEWS: Mention the signature change.
74543         * doc/posix-functions/getgroups.texi (getgroups): Mention the
74544         problem with signature.
74545         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
74546         GETGROUPS_T is still useful for setgroups.
74548         getgroups, getugroups: provide stubs for mingw
74549         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
74550         * lib/getugroups.c (getugroups): Likewise.
74551         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
74552         function.  Modernize replacement scheme.
74553         (gl_PREREQ_GETGROUPS): Delete.
74554         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
74555         * modules/getgroups (configure.ac): Declare witness.
74556         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
74557         * modules/unistd (Depends-on): Substitute witness.
74558         * lib/unistd.in.h (getgroups): Declare replacement.
74560         getgroups: avoid calling exit
74561         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
74562         drop xalloc.
74563         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
74564         dependencies.
74565         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
74566         exiting, in the rare case of malloc failure.
74568         getgroups: fix logic error
74569         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
74570         has more than 20 groups.
74571         * modules/getgroups-tests: New test.
74572         * tests/test-getgroups.c: New file.
74574 2009-11-13  Simon Josefsson  <simon@josefsson.org>
74576         * tests/test-base64.c: Improve.
74578 2009-11-13  Simon Josefsson  <simon@josefsson.org>
74580         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
74581         Blake <ebb9@byu.net>.
74583 2009-11-13  Simon Josefsson  <simon@josefsson.org>
74585         * tests/test-xvasprintf.c: Add %s%s related checks.
74587 2009-11-12  Eric Blake  <ebb9@byu.net>
74589         version-etc: match standards.texi style
74590         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
74591         and use <> only for URLs.
74593 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
74595         fts: do not fail on a submount during traversal
74596         * lib/fts.c (fts_build): Read the stat info again after opening
74597         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
74598         Original report at http://bugzilla.redhat.com/501848.
74600 2009-11-12  Jim Meyering  <meyering@redhat.com>
74602         bootstrap: sync from coreutils
74603         * build-aux/bootstrap (bootstrap_epilogue): New function.
74604         Use git_modules_config in one more place.  This make bootstrap's
74605         --gnulib-srcdir option more useful for testing.
74607         bootstrap: generalize autoheader check
74608         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
74609         AC_CONFIG_HEADERS.
74611 2009-11-11  Eric Blake  <ebb9@byu.net>
74613         mkfifoat: use new modules for Solaris and BSD bugs
74614         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
74615         * lib/mkfifoat.c (mknodat): Split...
74616         * lib/mknodat.c (mknodat): ...into new file.
74617         * modules/mkfifoat (Files): Ship new file.
74618         (Depends-on): Add mkfifo, mknod.
74619         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
74620         (Depends-on): Add symlink.
74621         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
74622         redundant with test_mkfifo.h.
74623         (do_mkfifoat, do_mknodat): New helpers.
74625         mknod: new module
74626         * modules/mknod: New file.
74627         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
74628         * lib/mknod.c (mknod): Likewise.
74629         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
74630         defaults.
74631         * modules/sys_stat (Makefile.am): Substitute them.
74632         * lib/sys_stat.in.h (mknod): Declare replacement.
74633         * MODULES.html.sh (Support for systems lacking POSIX:2008):
74634         Document it.
74635         * doc/posix-functions/mknod.texi (mknod): Likewise.
74636         * modules/mknod-tests: New test.
74637         * tests/test-mknod.c: Likewise.
74639         mkfifo: new module
74640         * modules/mkfifo: New file.
74641         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
74642         * lib/mkfifo.c (mkfifo): Likewise.
74643         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
74644         defaults.
74645         * modules/sys_stat (Makefile.am): Substitute them.
74646         * lib/sys_stat.in.h (mkfifo): Declare replacement.
74647         * MODULES.html.sh (Support for systems lacking POSIX:2008):
74648         Document it.
74649         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
74650         * modules/mkfifo-tests: New test.
74651         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
74652         from test-mkfifoat.c.
74653         * tests/test-mkfifo.c: New file.
74655         readlink: detect FreeBSD bug
74656         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
74657         slash on symlink.
74658         * doc/posix-functions/readlink.texi (readlink): Document the bug.
74659         * tests/test-readlink.h (test_readlink): Enhance test.
74661         symlink: detect FreeBSD bug
74662         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
74663         slash on symlink.
74664         * doc/posix-functions/symlink.texi (symlink): Document the bug.
74665         * tests/test-symlink.h (test_symlink): Enhance test.
74667 2009-11-10  Eric Blake  <ebb9@byu.net>
74669         link: detect FreeBSD bug
74670         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
74671         symlink.
74672         * doc/posix-functions/link.texi (link): Document the bug.
74673         * tests/test-link.h (test_link): Enhance test.
74674         * tests/test-linkat.c (main): Update caller.
74676         unlink, remove: detect FreeBSD bug
74677         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
74678         slash on symlink.
74679         * doc/posix-functions/unlink.texi (unlink): Document the bug.
74680         * doc/posix-functions/remove.texi (remove): Likewise.
74681         * tests/test-unlink.h (test_unlink): Enhance test.
74682         * tests/test-remove.c (main): Likewise.
74684 2009-11-09  Eric Blake  <ebb9@byu.net>
74686         rename: detect FreeBSD bug
74687         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
74688         slash on symlink.
74689         * modules/renameat-tests (Depends-on): Add filenamecat.
74690         * tests/test-rename.h (test_rename): Allow one more errno.
74691         * tests/test-renameat.c (main): Likewise.
74692         * doc/posix-functions/rename.texi (rename): Document the bug.
74694         open: detect FreeBSD bug
74695         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
74696         symlink.
74697         * doc/posix-functions/open.texi (open): Document the bug.
74698         * doc/posix-functions/utimes.texi (utimes): Likewise.
74699         * tests/test-open.h (test_open): Add parameters, and test symlink
74700         handling.
74701         * tests/test-open.c (main): Adjust caller.
74702         * tests/test-fcntl-safer.c (main): Likewise.
74703         * modules/open-tests (Depends-on): Add stdbool, symlink.
74704         * modules/fcntl-safer-tests (Depends-on): Likewise.
74705         * tests/test-openat.c (main): Add test-open tests.
74707         stat: detect FreeBSD bug
74708         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
74709         symlink.
74710         * doc/posix-functions/stat.texi (stat): Document the bug.
74711         * tests/test-stat.h (test_stat_func): Add argument.
74712         * tests/test-stat.c (main): Adjust caller.
74713         * tests/test-fstatat.c (main): Likewise.
74714         * modules/stat-tests (Depends-on): Add stdbool, symlink.
74715         Reported by Jim Meyering.
74717 2009-11-09  James Youngman  <jay@gnu.org>
74719         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
74720         * lib/strftime.c: Correct placement of #include "ignore-value.h".
74722 2009-11-08  Jim Meyering  <meyering@redhat.com>
74724         utimens: remove invalid futimesat call
74725         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
74726         It used the file descriptor of the target file as the DIR_FD
74727         parameter and NULL as the file name.  That caused failure with
74728         errno == EFAULT on FreeBSD-8.0-rc2
74730 2009-11-07  Eric Blake  <ebb9@byu.net>
74732         fflush, freadseek: use fseeko, not fseek
74733         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
74734         (clear_ungetc_buffer): Avoid potential problems on large files.
74735         * lib/freadseek.c (freadseek): Likewise.
74736         * modules/freadseek (Depends-on): Add fseeko.
74737         * modules/fseek (configure.ac): Set a witness.
74738         * tests/test-fflush.c (main): Use fseeko.
74739         * tests/test-fpurge.c (fseek): Disable link warning.
74740         * tests/test-freadable.c (fseek): Likewise.
74741         * tests/test-freading.c (fseek): Likewise.
74742         * tests/test-fseeko.c (fseek): Likewise.
74743         * tests/test-ftell.c (fseek): Likewise.
74744         * tests/test-ftello.c (fseek): Likewise.
74745         * tests/test-fwritable.c (fseek): Likewise.
74746         * tests/test-fwriting.c (fseek): Likewise.
74748 2009-11-06  Simon Josefsson  <simon@josefsson.org>
74750         * modules/memchr (Depends-on): Drop getpagesize dependency.
74752 2009-11-06  Simon Josefsson  <simon@josefsson.org>
74754         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
74755         Reported by Ludovic Courtès.
74756         * build-aux/pmccabe2html: Improve example usage.
74757         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
74759 2009-11-06  Jim Meyering  <meyering@redhat.com>
74761         do-release-commit-and-tag: New module.
74762         Automate the release-commit and tag process.
74763         * build-aux/do-release-commit-and-tag: New script, from coreutils.
74764         * modules/do-release-commit-and-tag: New file.
74765         * MODULES.html.sh (Support for maintaining and releasing): Add it.
74767 2009-11-06  Simon Josefsson  <simon@josefsson.org>
74769         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
74770         because test-select.c uses inet_pton.
74772 2009-11-06  Simon Josefsson  <simon@josefsson.org>
74774         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
74775         GETADDRINFO_LIB.  Bump serial number.
74776         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
74777         Suggested by Eric Blake <ebb9@byu.net>.
74779 2009-11-05  Eric Blake  <ebb9@byu.net>
74781         strtod: detect darwin bug
74782         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
74783         Reported by Leo Davis.
74785         freopen-safer: new module
74786         * modules/freopen-safer: New module.
74787         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
74788         * lib/freopen-safer.c (freopen_safer): New file.
74789         * lib/stdio-safer.h (freopen_safer): New declaration.
74790         * lib/stdio--.h (freopen): New override.
74791         * MODULES.html.sh (File stream based Input/Output): Mention it.
74792         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
74793         freopen-safer module.
74794         * doc/posix-functions/stderr.texi (stderr): Likewise.
74795         * doc/posix-functions/stdin.texi (stdin): Likewise.
74796         * doc/posix-functions/stdout.texi (stdout): Likewise.
74797         * modules/freopen-safer-tests: New test.
74798         * tests/test-reopen-safer.c: New file.
74800 2009-11-05  Jim Meyering  <meyering@redhat.com>
74802         maint.mk: Prohibit inclusion of "close-stream.h" without use.
74803         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
74805 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74807         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
74809 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74811         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
74813 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74815         Fix link error.
74816         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
74817         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
74819 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74821         * tests/test-func.c: Also test value of __func__.
74823 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74825         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
74826         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
74828 2009-11-05  Bruno Haible  <bruno@clisp.org>
74830         Fix link error.
74831         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
74832         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
74833         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
74835 2009-11-05  Bruno Haible  <bruno@clisp.org>
74837         Tests for module 'inet_pton'.
74838         * modules/inet_pton-tests: New file.
74839         * tests/test-inet_pton.c: New file.
74841 2009-11-05  Bruno Haible  <bruno@clisp.org>
74843         Tests for module 'inet_ntop'.
74844         * modules/inet_ntop-tests: New file.
74845         * tests/test-inet_ntop.c: New file.
74847 2009-11-04  Eric Blake  <ebb9@byu.net>
74849         stdlib-safer: wrap all mkstemp variants
74850         * modules/mkostemp (configure.ac): Set witness.
74851         * modules/mkostemps (configure.ac): Likewise.
74852         * modules/mkstemps (configure.ac): Likewise.
74853         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
74854         (mkstemps_safer): Wrap more functions.
74855         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
74856         wrapping.
74857         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
74858         (mkstemps_safer): Implement the wrappers.
74860         mkstemps, mkostemps: new modules
74861         * modules/mkostemps: New module.
74862         * modules/mkstemps: Likewise.
74863         * lib/mkostemps.c (mkostemps): New file.
74864         * lib/mkstemps.c (mkstemps): Likewise.
74865         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
74866         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
74867         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
74868         * modules/stdlib (Makefile.am): Substitute them.
74869         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
74870         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
74871         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
74872         * doc/gnulib.texi (Glibc stdlib.h): Include them.
74873         * MODULES.html.sh (File system functions): Mention them.
74875         tempname: resync from glibc
74876         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
74877         same values for __GT_FILE as glibc.  Abort even when assertions
74878         are disabled.
74879         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
74880         match its value otherwise.  Allow idempotent inclusion.
74881         * lib/mkdtemp.c (mkdtemp): Adjust caller.
74882         * lib/mkostemp.c (mkostemp): Likewise.
74883         * lib/mkstemp.c (mkstemp): Likewise.
74884         * lib/tmpfile.c (tmpfile): Likewise.
74885         * NEWS: Document this.
74887         utimens: fix use of futimens on older Linux
74888         * lib/utimens.c (fdutimens): Use updated, rather than original,
74889         timespec to avoid bug in older Linux kernel.
74890         Reported by Simon Josefsson.
74892 2009-11-04  Bruno Haible  <bruno@clisp.org>
74894         Make num_processors more flexible and consistent.
74895         * lib/nproc.h (enum nproc_query): New type.
74896         (num_processors): Add a 'query' argument.
74897         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
74898         (num_processors): Add a 'query' argument. Test the value of the
74899         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
74900         mingw, count the number of CPUs available for the current process.
74901         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
74902         Check for sched_getaffinity and sched_getaffinity_np.
74903         * modules/nproc (Depends-on): Add c-ctype, extensions.
74904         * NEWS: Mention the change.
74906 2009-11-03  Bruno Haible  <bruno@clisp.org>
74908         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
74910 2009-11-03  Jim Meyering  <meyering@redhat.com>
74912         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
74913         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
74914         if it is defined.
74916 2009-11-02  Eric Blake  <ebb9@byu.net>
74918         mktime, timegm: share common declaration
74919         * lib/mktime-internal.h: New file.
74920         * lib/mktime.c: Use it rather than open-coding a declaration.
74921         * lib/timegm.c: Likewise.
74922         * modules/mktime (Files): Ship it.
74923         * modules/timegm (Files): Likewise.
74924         Suggested by Bruno Haible.
74926         test-update-copyright: update test to match script changes
74927         * tests/test-update-copyright.sh: Avoid hard-coding perl
74928         location.  Don't update *.bak created by earlier runs.
74930 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
74931             Simon Josefsson  <simon@josefsson.org>
74932             Bruno Haible  <bruno@clisp.org>
74934         Fix link error on Solaris 8.
74935         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
74936         also in libnsl. Define also INET_PTON_LIB.
74937         * modules/inet_pton (Link): New section.
74939 2009-11-02  Simon Josefsson  <simon@josefsson.org>
74940             Bruno Haible  <bruno@clisp.org>
74942         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
74943         * modules/inet_ntop (Link): New section.
74944         Reported by Boyan Kasarov <bkasarov@gmail.com>.
74946 2009-11-02  Eric Blake  <ebb9@byu.net>
74948         maint: avoid compiler warnings in m4 macros
74949         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
74950         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
74952 2009-11-02  Simon Josefsson  <simon@josefsson.org>
74954         * m4/pmccabe2html.m4: Remove file.
74955         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
74956         function.  Change maintainer.
74957         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
74958         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
74959         Courtès).
74961 2009-10-31  Eric Blake  <ebb9@byu.net>
74963         fseeko: fix m4 regression
74964         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
74965         regression from 2009-10-27.
74966         Reported by Ralf Wildenhues.
74968 2009-10-31  Jim Meyering  <meyering@redhat.com>
74970         inttostr: aesthetics and improved (compile-time) safety
74971         Define inttype_is_signed rather than inttype_is_unsigned,
74972         since the sole use is via "#if inttype_is_signed".
74973         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
74974         inttype_is_unsigned.
74975         * lib/offtostr.c (inttype_is_signed): Likewise.
74976         * lib/uinttostr.c (inttype_is_signed): Likewise.
74977         * lib/umaxtostr.c (inttype_is_signed): Likewise.
74978         * lib/inttostr.c (inttostr): Use verify to cross-check the
74979         inttype_is_signed value and the signedness of the actual type.
74980         * modules/inttostr (Depends-on): Add verify.
74982 2009-10-30  Eric Blake  <ebb9@byu.net>
74984         build: avoid compiler warnings
74985         * lib/fchmodat.c (lchmod): Mark unused variables.
74986         * lib/getopt.c (_getopt_initialize): Likewise.
74987         * lib/mktime.c (__mktime_internal): Provide prototype.
74988         * lib/inttostr.c (inttostr): Avoid compiler warning even with
74989         older gcc that do not understand #pragma GCC diagnostic.
74990         * lib/uinttostr.c (inttype_is_unsigned): Define.
74991         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
74993 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
74995         stat: fix compilation on AIX
74996         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
74997         only see struct stat64.
74999 2009-10-30  Eric Blake  <ebb9@byu.net>
75001         exclude: make more robust
75002         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
75003         rather than masking a coding bug.
75004         Suggested by Bruno Haible.
75006 2009-10-30  Jim Meyering  <meyering@redhat.com>
75008         perl scripts: remove #!/usr/bin/perl in favor of more portable...
75009         Rather than putting #!/usr/bin/perl on the first line,
75010         start with a variant of what's recommended by "man perlrun" that
75011         invokes the first "perl" program from your shell's search path.
75012         * build-aux/gitlog-to-changelog: Replace #!... as above.
75013         Add a "Local Variables" perl mode setting.
75014         Prompted by a patch from Ludovic Courtès.
75015         Improved by Eric Blake.
75016         * build-aux/useless-if-before-free: Likewise.
75017         * build-aux/announce-gen: Likewise.
75018         * build-aux/update-copyright: Likewise.
75020 2009-10-29  Eric Blake  <ebb9@byu.net>
75022         filenamecat-lgpl: adjust clients
75023         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
75024         filenamecat.
75025         * modules/renameat (Depends-on): Likewise.
75027         filenamecat: split into filenamecat-lgpl
75028         * modules/filenamecat-lgpl: New module.
75029         * modules/filenamecat (Files): Move library-safe files into
75030         filenamecat-lgpl.
75031         (Depends-on): Add filenamecat-lgpl.
75032         (configure.ac): Declare witness.
75033         * lib/filenamecat.h (file_name_concat): Only declare when using
75034         GPL module.
75035         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
75036         Move...
75037         * lib/filenamecat-lgpl.c: ...into new file.
75038         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
75039         (gl_FILE_NAME_CONCAT): Use it.
75040         * MODULES.html.sh (File system functions): Mention new module.
75042         argp: avoid memory leak
75043         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
75044         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
75045         base_name, since the latter malloc()s and can call exit().
75046         Leak introduced 2006-07-03.
75048         dirname-lgpl: adjust clients that don't need full dirname
75049         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
75050         * modules/filenamecat (Depends-on): Likewise.
75051         * modules/linkat (Depends-on): Likewise.
75052         * modules/mkancesdirs (Depends-on): Likewise.
75053         * modules/mkdir (Depends-on): Likewise.
75054         * modules/openat (Depends-on): Likewise.
75055         * modules/savewd (Depends-on): Likewise.
75056         * modules/rename (Depends-on): Likewise.
75057         (License): Relax license.
75058         * modules/mkdir-tests (Depends-on): Drop progname.
75059         (Makefile.am): Delete unneeded LDADD.
75060         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
75062         dirname: split into dirname-lgpl
75063         * modules/dirname-lgpl: New module.
75064         * modules/dirname (Files): Move library-safe files into
75065         dirname-lgpl.
75066         (Depends-on): Add dirname-lgpl.
75067         (configure.ac): Declare witness.
75068         * modules/double-slash-root (License): Relax license.
75069         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
75070         module.
75071         * lib/dirname.c (dir_len, mdir_name): Move...
75072         * lib/dirname-lgpl.c: ...into new file.
75073         * lib/basename.c (last_component, base_len): Move...
75074         * lib/basename-lgpl.c: ...into new file.
75075         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
75076         (gl_DIRNAME): Use it.
75077         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
75078         Mention new module.
75079         * modules/dirname-tests (Depends-on): Add progname.
75080         * tests/test-dirname.c (program_name): Delete.
75082         mkdir: make safe for libraries
75083         * modules/mkdir (Depends-on): Drop xalloc.
75084         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
75085         exit.
75087         tests: avoid some compiler warnings
75088         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
75089         literals.
75090         * tests/test-memchr.c (main): Avoid type mismatch.
75091         * tests/test-arpa_inet.c (main): Avoid unused parameters.
75092         * tests/test-base64.c (main): Likewise.
75093         * tests/test-getdelim.c (main): Likewise.
75094         * tests/test-gethostname.c (main): Likewise.
75095         * tests/test-getline.c (main): Likewise.
75096         * tests/test-netinet_in.c (main): Likewise.
75097         * tests/test-select.c (open_server_socket, main): Likewise.
75098         * tests/test-select-stdin.c (main): Likewise.
75099         * tests/test-sockets.c (main): Likewise.
75100         * tests/test-strsignal.c (main): Likewise.
75101         * tests/test-sys_select.c (main): Likewise.
75102         * tests/test-sys_socket.c (main): Likewise.
75103         * tests/test-u64.c (main): Likewise.
75104         * tests/test-xfprintf-posix.c (main): Likewise.
75105         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
75107         sockets: avoid compiler warning
75108         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
75110         maint: detect usage(1) and other suspicious exits
75111         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
75113 2009-10-29  Jim Meyering  <meyering@redhat.com>
75115         timespec: long-to-int truncation could make timespec_cmp malfunction
75116         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
75117         a multiple of 2^32 nanoseconds as no difference.
75119 2009-10-28  Jim Meyering  <meyering@redhat.com>
75121         fprintftime: wrap macro code argument in "do {...} while(0)"
75122         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
75123         cpy macro must be a statement that can be followed by a semicolon.
75124         Now that the else clause contains a comment and is hence longer
75125         than one line, I require curly braces.  That in turn requires
75126         that we wrap this code block in the standard do...while(0).
75128         fprintftime: remove stray semicolon from previous change
75129         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
75131         fprintftime: avoid a warning about ignored fwrite return value
75132         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
75133         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
75134         that is unsafe.
75135         * modules/fprintftime (Depends-on): Add ignore-value.
75137         exclude: avoid an unwarranted warning
75138         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
75140 2009-10-27  Eric Blake  <ebb9@byu.net>
75142         fseek: avoid compilation failure when fflush is replaced
75143         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
75144         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
75145         module is in use.
75146         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
75147         module is not in use; since REPLACE_FSEEK worked otherwise.
75148         (GNULIB_FTELLO): Likewise for ftell.
75149         Reported by Ian Beckwith and others.
75151 2009-10-27  Bruno Haible  <bruno@clisp.org>
75153         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
75154         Reported by Jim Meyering.
75156 2009-10-27  Jim Meyering  <jim@meyering.net>
75157             Bruno Haible  <bruno@clisp.org>
75159         Avoid warning despite dropping the return value of fwrite.
75160         * lib/unicodeio.c: Include ignore-value.h.
75161         (fwrite_success_callback): Explicitly ignore fwrite's return value.
75162         * modules/unicodeio (Depends-on): Add ignore-value.
75164 2009-10-26  Eric Blake  <ebb9@byu.net>
75166         areadlinkat: fix fallback path
75167         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
75168         pointer and zero.
75170 2009-10-22  Pádraig Brady  <P@draigBrady.com>
75172         Use a better IO block size for modern systems
75173         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
75174         * lib/md2.c: Likewise.
75175         * lib/md4.c: Likewise.
75176         * lib/md5.c: Likewise.
75177         * lib/sha1.c: Likewise.
75178         * lib/sha256.c: Likewise.
75179         * lib/sha512.c: Likewise.
75181 2009-10-22  Eric Blake  <ebb9@byu.net>
75183         tests: avoid several compiler warnings
75184         * tests/test-getcwd.c (main): Avoid buffer underflow.
75185         * tests/test-getdate.c (main): String literals are not safe with
75186         putenv, so use setenv.  Declare unused argument.
75187         * modules/getdate-tests (Depends-on): Add setenv.
75188         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
75189         problems with string literals in char *.
75190         * tests/test-hash.c (main): Avoid shadowing declaration.
75191         (insert_new): Treat string literals as char const *.
75192         * tests/test-getopt.h (test_getopt): Likewise.
75193         (getopt_loop): Alter types to minimize casting elsewhere.
75194         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
75195         (test_getopt_long_posix): Likewise.
75196         (do_getopt_long): Add wrapper to minimize casting.
75197         * tests/test-atexit.c (clear_temp_file): Use void.
75198         * tests/test-areadlink-with-size.c (main): Declare unused
75199         arguments.
75200         * tests/test-areadlink.c (main): Likewise.
75201         * tests/test-areadlinkat-with-size.c (main): Likewise.
75202         * tests/test-areadlinkat.c (main): Likewise.
75203         * tests/test-canonicalize-lgpl.c (main): Likewise.
75204         * tests/test-canonicalize.c (main): Likewise.
75205         * tests/test-dirent-safer.c (main): Likewise.
75206         * tests/test-dirname.c (main): Likewise.
75207         * tests/test-dup2.c (main): Likewise.
75208         * tests/test-fchdir.c (main): Likewise.
75209         * tests/test-fcntl-h.c (main): Likewise.
75210         * tests/test-fcntl-safer.c (main): Likewise.
75211         * tests/test-fdopendir.c (main): Likewise.
75212         * tests/test-fdutimensat.c (main): Likewise.
75213         * tests/test-fflush.c (main): Likewise.
75214         * tests/test-filenamecat.c (main): Likewise.
75215         * tests/test-filevercmp.c (main): Likewise.
75216         * tests/test-fopen-safer.c (main): Likewise.
75217         * tests/test-fopen.c (main): Likewise.
75218         * tests/test-fpending.c (main): Likewise.
75219         * tests/test-fpurge.c (main): Likewise.
75220         * tests/test-freading.c (main): Likewise.
75221         * tests/test-fstatat.c (main): Likewise.
75222         * tests/test-fsync.c (main): Likewise.
75223         * tests/test-futimens.c (main): Likewise.
75224         * tests/test-getndelim2.c (main): Likewise.
75225         * tests/test-gettimeofday.c (main): Likewise.
75226         * tests/test-getopt.c (main): Likewise.
75227         * tests/test-i-ring.c (main): Likewise.
75228         * tests/test-inttypes.c (main): Likewise.
75229         * tests/test-link.c (main): Likewise.
75230         * tests/test-lstat.c (main): Likewise.
75231         * tests/test-math.c (main): Likewise.
75232         * tests/test-md5.c (main): Likewise.
75233         * tests/test-memchr2.c (main): Likewise.
75234         * tests/test-memrchr.c (main): Likewise.
75235         * tests/test-mkdir.c (main): Likewise.
75236         * tests/test-mkdirat.c (main): Likewise.
75237         * tests/test-mkfifoat.c (main): Likewise.
75238         * tests/test-open.c (main): Likewise.
75239         * tests/test-openat-safer.c (main): Likewise.
75240         * tests/test-openat.c (main): Likewise.
75241         * tests/test-quotearg.c (main): Likewise.
75242         * tests/test-rawmemchr.c (main): Likewise.
75243         * tests/test-readlink.c (main): Likewise.
75244         * tests/test-remove.c (main): Likewise.
75245         * tests/test-rename.c (main): Likewise.
75246         * tests/test-renameat.c (main): Likewise.
75247         * tests/test-rmdir.c (main): Likewise.
75248         * tests/test-sha1.c (main): Likewise.
75249         * tests/test-signal.c (main): Likewise.
75250         * tests/test-sigaction.c (main): Likewise.
75251         * tests/test-stat.c (main): Likewise.
75252         * tests/test-stat-time.c (main): Likewise.
75253         * tests/test-stddef.c (main): Likewise.
75254         * tests/test-stdint.c (main): Likewise.
75255         * tests/test-stdio.c (main): Likewise.
75256         * tests/test-stdlib.c (main): Likewise.
75257         * tests/test-strchrnul.c (main): Likewise.
75258         * tests/test-strerror.c (main): Likewise.
75259         * tests/test-string.c (main): Likewise.
75260         * tests/test-strtod.c (main): Likewise.
75261         * tests/test-strverscmp.c (main): Likewise.
75262         * tests/test-symlink.c (main): Likewise.
75263         * tests/test-symlinkat.c (main): Likewise.
75264         * tests/test-sys_stat.c (main): Likewise.
75265         * tests/test-sys_time.c (main): Likewise.
75266         * tests/test-time.c (main): Likewise.
75267         * tests/test-unistd.c (main): Likewise.
75268         * tests/test-unlink.c (main): Likewise.
75269         * tests/test-unlinkat.c (main): Likewise.
75270         * tests/test-utimens.c (main): Likewise.
75271         * tests/test-utimensat.c (main): Likewise.
75272         * tests/test-version-etc.c (main): Likewise.
75273         * tests/test-wchar.c (main): Likewise.
75274         * tests/test-wctype.c (main): Likewise.
75275         * tests/test-xprintf-posix.c (main): Likewise.
75276         * tests/test-posixtm.c (main): Likewise.
75277         (STREQ): Delete unused macro.
75278         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
75279         shadowed variables.
75280         * tests/test-memchr.c (main): Likewise.
75282 2009-10-21  Eric Blake  <ebb9@byu.net>
75284         areadlinkat: avoid failure on older glibc
75285         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
75286         rather than mis-comparing 0 against FUNC_RESULT of char*.
75288 2009-10-21  Bruno Haible  <bruno@clisp.org>
75290         * modules/stpncpy (License): Relicense under LGPLv2+.
75291         Reported by David Lutterkort <lutter@redhat.com>.
75293 2009-10-20  Eric Blake  <ebb9@byu.net>
75295         utimensat: work around Solaris 9 bug
75296         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
75297         has trailing slash bugs.
75298         * tests/test-lutimens.h (test_lutimens): Enhance test.
75299         * tests/test-utimens.h (test_utimens): Likewise.
75300         * doc/posix-functions/utime.texi (utime): Enhance documentation.
75301         * doc/posix-functions/utimes.texi (utimes): Likewise.
75302         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
75303         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
75304         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
75305         * doc/posix-functions/futimens.texi (futimens): Likewise.
75307         fdutimensat: new module
75308         * modules/fdutimensat: New file.
75309         * lib/fdutimensat.c (fdutimensat): Likewise.
75310         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
75311         * MODULES.html.sh (File system functions): Mention module.
75312         * modules/fdutimensat-tests: New test.
75313         * tests/test-fdutimensat.c: Likewise.
75315         doc: regenerate INSTALL
75316         * doc/INSTALL: Reflect recent autoconf update.
75317         * doc/INSTALL.ISO: Likewise.
75318         * doc/INSTALL.UTF-8: Likewise.
75320 2009-10-20  Pádraig Brady  <P@draigBrady.com>
75322         acl: warn if ACL support is not detected
75323         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
75325 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
75327         * lib/nproc.h: Add extern "C" block for C++.
75329 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
75330             Bruno Haible  <bruno@clisp.org>
75332         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
75333         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
75334         * doc/posix-functions/isalpha.texi: Likewise.
75335         * doc/posix-functions/isblank.texi: Likewise.
75336         * doc/posix-functions/iscntrl.texi: Likewise.
75337         * doc/posix-functions/isdigit.texi: Likewise.
75338         * doc/posix-functions/isgraph.texi: Likewise.
75339         * doc/posix-functions/islower.texi: Likewise.
75340         * doc/posix-functions/isprint.texi: Likewise.
75341         * doc/posix-functions/ispunct.texi: Likewise.
75342         * doc/posix-functions/isspace.texi: Likewise.
75343         * doc/posix-functions/isupper.texi: Likewise.
75344         * doc/posix-functions/isxdigit.texi: Likewise.
75346 2009-10-18  Bruno Haible  <bruno@clisp.org>
75348         Tests for module 'isblank'.
75349         * modules/isblank-tests: New file.
75350         * tests/test-isblank.c: New file.
75352         New module 'isblank'.
75353         * lib/isblank.c: New file.
75354         * m4/isblank.m4: New file.
75355         * modules/isblank: New file.
75356         * doc/posix-functions/isblank.texi: Mention the new module.
75358 2009-10-18  Bruno Haible  <bruno@clisp.org>
75360         New module 'ctype'.
75361         * lib/ctype.in.h: New file.
75362         * m4/ctype.m4: New file.
75363         * modules/ctype: New file.
75364         * doc/posix-headers/ctype.texi: Mention the new module.
75366 2009-10-18  Jim Meyering  <meyering@redhat.com>
75368         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
75369         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
75370         right after its initialization, rather than farther down.
75371         Keeping these in close proximity makes it easier to ensure
75372         that each such variable is initialized.  E.g.,
75374             LIB_CLOCK_GETTIME=
75375             AC_SUBST([LIB_CLOCK_GETTIME])
75377         This change also increments these serial numbers.
75378         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
75379         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
75380         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75382 2009-10-18  Bruno Haible  <bruno@clisp.org>
75384         Don't let environment variables perturb build.
75385         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
75386         (gl_PREREQ_GETHRXTIME): ... not here.
75388 2009-10-18  Bruno Haible  <bruno@clisp.org>
75390         Avoid symlink attack in localcharset module.
75391         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
75392         (O_NOFOLLOW): Define fallback.
75393         (get_charset_aliases): Don't open the file if it is a symbolic link.
75394         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
75395         gl_FCNTL_H.
75396         (gl_FCNTL_H): Require it.
75397         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
75398         * modules/localcharset (Files): Add m4/fcntl_h.m4.
75399         Reported by Fergal Glynn <fglynn@veracode.com>.
75401 2009-10-18  Bruno Haible  <bruno@clisp.org>
75403         Implement nproc for mingw.
75404         * lib/nproc.c: Include <windows.h>
75405         (num_processors): On native Windows platforms, try GetSystemInfo.
75407 2009-10-18  Bruno Haible  <bruno@clisp.org>
75409         Implement nproc for IRIX.
75410         * lib/nproc.c: Include <sys/sysmp.h>.
75411         (num_processors): On IRIX systems, try sysmp.
75412         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
75414 2009-10-18  Bruno Haible  <bruno@clisp.org>
75416         Implement nproc for HP-UX.
75417         * lib/nproc.c: Include <sys/pstat.h>
75418         (num_processors): On HP-UX systems, try pstat_getdynamic.
75419         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
75420         pstat_getdynamic.
75422 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
75423             Bruno Haible  <bruno@clisp.org>
75425         Implement nproc for NetBSD, OpenBSD.
75426         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
75427         (ARRAY_SIZE): New macro.
75428         (num_processors): On BSD systems, try sysctl of HW_NCPU.
75429         * m4/nproc.m4: New file.
75430         * modules/nproc (Files): Add m4/nproc.m4.
75431         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
75432         (Makefile.am): Instead, augment lib_SOURCES.
75434 2009-10-18  Bruno Haible  <bruno@clisp.org>
75436         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
75437         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
75438         sys/param.h.
75440 2009-10-16  Eric Blake  <ebb9@byu.net>
75442         utimensat: new module
75443         * modules/utimensat: New file.
75444         * lib/utimensat.c (utimensat): Likewise.
75445         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
75446         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
75447         so we can work around Linux bugs.
75448         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
75449         * modules/sys_stat (Makefile.am): Substitute them.
75450         * lib/sys_stat.in.h (utimensat): Declare it.
75451         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75452         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
75453         * modules/utimensat-tests: New test.
75454         * tests/test-utimensat.c: Likewise.
75456         utimens: let lutimens work on non-symlinks
75457         * lib/utimens.c (lutimens): Fall back to utimens rather than
75458         failing with ENOSYS, when file is not a symlink.
75459         (utimens): Reduce redirection.
75460         * tests/test-lutimens.h (test_lutimens): Update test to cover
75461         non-symlinks.
75462         * tests/test-utimens.h (test_utimens): Update test to cover
75463         symlinks.
75464         * tests/test-utimens.c (main): Update caller.
75466         utimens: cache whether utimensat syscall works
75467         * lib/utimens.c (utimensat_works_really): New cache variable.
75468         (fdutimens, lutimens): Use it to avoid failing syscall.
75470         test-stat-time, test-utimens: improve portability
75471         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
75472         ext4 on alpha, and for cygwin.
75473         * tests/test-utimens-common.h: New file.
75474         (nap): Factor delays into single function.
75475         * tests/test-lutimens.h (test_lutimens): Use new header.
75476         * tests/test-futimens.h (test_futimens): Likewise.
75477         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
75478         timestamps to occur from same machine, as was done previously for
75479         test_utimens.
75480         * modules/utimens-tests (Files): Ship new file.
75481         * modules/futimens-tests (Files): Likewise.
75482         Reported in part by Jim Meyering.
75484         sys_stat: sort replacement declarations
75485         * lib/sys_stat.in.h: Sort declarations.
75486         * lib/futimens.c (futimens): Fix typo.
75488 2009-10-15  Jim Meyering  <meyering@redhat.com>
75490         don't let environment settings perturb build
75491         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
75492         could cause a configure-time and/or build-time malfunction.
75493         Typically, a configure-time function-in-library test is performed
75494         via code like this:
75496           LIB_VAR=
75497           AC_SUBST([LIB_VAR])
75498           prefix_saved_LIBS=$LIBS
75499             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
75500                        [test "$ac_cv_search_FUNC" = "none required" ||
75501                         LIB_VAR=$ac_cv_search_FUNC])
75502           LIBS=$prefix_saved_LIBS
75504         However, in each of the files affected by this change, the LIB_VAR=
75505         initialization was omitted.  Thus, when set in the environment, its
75506         value would propagate into generated Makefiles when FUNC is not found
75507         in LIB_NAME.
75508         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
75509         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
75510         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75512 2009-10-14  Eric Blake  <ebb9@byu.net>
75514         fchdir: avoid infinite recursion in mingw
75515         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
75516         recursing.
75518         test-stat-time: port to mingw
75519         * tests/test-stat-time.c (force_unlink): Return a value.
75520         (test_ctime) [W32]: Fix compilation error.
75521         (nap): Don't call usleep with too large an argument.  Use
75522         force_unlink.
75523         * doc/pastposix-functions/usleep.texi (usleep): Document the
75524         portability issue.
75526 2009-10-13  Jim Meyering  <meyering@redhat.com>
75528         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
75529         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
75530         * modules/pipe-filter-ii: Likewise.
75531         * modules/sys_socket-tests: Likewise.
75532         * modules/tsearch-tests: Likewise.
75533         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
75534         (check): Depend on it.
75536 2009-10-12  Eric Blake  <ebb9@byu.net>
75538         utimens-tests: port to NFS file systems
75539         * tests/test-utimens.h (test_utimens): Refactor utimecmp
75540         comparisons to avoid spurious failures from timestamp drift
75541         between NFS machines.
75543 2009-10-12  Eric Blake  <ebb9@byu.net>
75545         stat-time-tests: minor cleanups
75546         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
75547         * tests/test-stat-time.c (nap): Separate assignment from call.
75548         Suggested by Paolo Bonzini and Bruno Haible.
75550         sys_stat: guarantee struct timespec
75551         * lib/sys_stat.in.h (includes): Always include <time.h>
75552         * modules/sys_stat (Depends-on): Add time.
75553         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
75554         mode_t permission values.
75555         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
75556         get at subsecond timestamps.
75558 2009-10-10  Eric Blake  <ebb9@byu.net>
75560         futimens: new module
75561         * modules/futimens: New file.
75562         * lib/futimens.c (futimens): Likewise.
75563         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
75564         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
75565         we can work around Linux bugs.
75566         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
75567         * modules/sys_stat (Makefile.am): Substitute them.
75568         * lib/sys_stat.in.h (futimens): Declare it.
75569         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75570         * doc/posix-functions/futimens.texi (futimens): Likewise.
75571         * modules/futimens-tests: New test.
75572         * tests/test-futimens.c: Likewise.
75574         utimens: introduce fdutimens
75575         * lib/utimens.h (fdutimens): New prototype.
75576         * lib/utimens.c (gl_futimens): Move guts...
75577         (fdutimens): ...to new interface.
75578         * tests/test-utimens.c (do_fdutimens): Use it.
75580         utimens: add UTIME_NOW and UTIME_OMIT support
75581         * lib/utimens.c (validate_timespec, update_timespec): New helper
75582         functions.
75583         (gl_futimens, lutimens): Use them.
75584         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
75585         stdbool, sys_stat.
75586         (Link): Mention resulting library dependency.
75587         * modules/utimecmp (Link): Likewise.
75588         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
75589         (Makefile.am): Pick up library dependency.
75590         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
75591         definition.
75592         * tests/test-sys_stat.c: Test the definitions.
75593         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
75594         * NEWS: Document library dependency.
75596         utimecmp: support symlink timestamps
75597         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
75598         hashing when possible.  Use pathconf when available.
75599         (SYSCALL_RESOLUTION): Recognize tighter resolution.
75600         * modules/utimecmp (Depends-on): Add lstat.
75602         utimens: add lutimens interface
75603         * lib/utimens.c (lutimens): New function.
75604         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
75605         * lib/utimens.h (lutimens): Declare new interface.
75606         * tests/test-utimens.c (main): Enhance test.
75607         * tests/test-lutimens.h (test_lutimens): New file.
75608         * modules/utimens-tests (Files): Distribute it.
75609         (Depends-on): Add symlink.
75610         (configure.ac): Check for usleep.
75612         utimens: validate futimens usage
75613         * lib/utimens.c (gl_futimens): Require valid fd up front, using
75614         fewer syscalls on failure later on.  Avoid compiler warning on
75615         mingw.
75616         * modules/utimens (Depends-on): Add dup2.
75618         utimens: add test
75619         * modules/utimens-tests: New test.
75620         * tests/test-utimens.h: New file.
75621         * tests/test-futimens.h: Likewise.
75622         * tests/test-utimens.c: Likewise.
75624         doc: mention timestamp portability issues
75625         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
75626         instead.
75627         * doc/posix-functions/utime.texi (utime): Likewise.
75628         * doc/posix-functions/utimes.texi (utimes): Likewise.
75629         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
75630         instead.
75631         * doc/posix-functions/futimens.texi (futimens): Mention utimens
75632         module.
75633         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
75634         Mention weakness with symlink timestamps.
75635         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
75636         to utimensat/futimens instead.
75637         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
75639         test-dup2: enhance test
75640         * tests/test-dup2.c (main): Also check AT_FDCWD.
75642         test-stat-time: avoid more spurious failures
75643         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
75644         xfs; and avoid race if the two timestamps cross quantization edge.
75646         relocatable: prefer 'file system' over 'filesystem'
75647         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
75648         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
75649         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
75650         * doc/relocatable.texi (Enabling Relocatability): Likewise.
75651         * lib/relocatable.c (compute_curr_prefix): Likewise.
75653 2009-10-10  Jim Meyering  <meyering@redhat.com>
75655         stat-time-tests: check for the usleep function
75656         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
75658 2009-10-10  Bruno Haible  <bruno@clisp.org>
75660         * modules/xnanosleep: Put the Link section after the Include section.
75662 2009-10-09  Eric Blake  <ebb9@byu.net>
75664         dup2: work around FreeBSD 6.1 bug
75665         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
75666         * doc/posix-functions/dup2.texi (dup2): Document it.
75667         Reported by Nelson H. F. Beebe and Jim Meyering.
75669         test-stat-time: port to buggy NFS clients
75670         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
75671         (test_ctime): Also skip test if mtime and ctime are skewed.
75673         maint: prefer 'file system' over 'filesystem'
75674         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
75675         * doc/posix-functions/lstat.texi (lstat): Likewise.
75676         * lib/file-has-acl.c (file_has_acl): Likewise.
75677         * lib/fwriteerror.c [TEST]: Likewise.
75678         * tests/test-areadlink.h (test_areadlink): Likewise.
75679         * tests/test-areadlinkat-with-size.c (main): Likewise.
75680         * tests/test-areadlinkat.c (main): Likewise.
75681         * tests/test-canonicalize-lgpl.c (main): Likewise.
75682         * tests/test-canonicalize.c (main): Likewise.
75683         * tests/test-fstatat.c (main): Likewise.
75684         * tests/test-linkat.c (main): Likewise.
75685         * tests/test-lstat.h (test_lstat_func): Likewise.
75686         * tests/test-mkdir.h (test_mkdir): Likewise.
75687         * tests/test-readlink.h (test_readlink): Likewise.
75688         * tests/test-remove.c (main): Likewise.
75689         * tests/test-rename.h (test_rename): Likewise.
75690         * tests/test-renameat.c (main): Likewise.
75691         * tests/test-rmdir.h (test_rmdir_func): Likewise.
75692         * tests/test-symlink.h (test_symlink): Likewise.
75693         * tests/test-symlinkat.c (main): Likewise.
75694         * tests/test-unlink.h (test_unlink_func): Likewise.
75695         * tests/test-unlinkat.c (main): Likewise.
75697         maint: make realtime library usage explicit
75698         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
75699         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
75700         * modules/settime (Link): Likewise.
75701         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
75703         test-stat-time: speed up execution
75704         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
75705         warning on mingw.
75706         (nap): New helper function.
75707         (prepare_test): Use it to reduce sleep time.
75708         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
75709         execution.
75710         * modules/stat-time-tests (configure.ac): Check for usleep.
75712 2009-10-09  Jim Meyering  <meyering@redhat.com>
75714         selinux-h: always use getfilecon wrappers
75715         * lib/getfilecon.c: New file.
75716         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
75717         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
75718         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
75719         (fgetfilecon): Provide a stub.
75720         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
75721         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
75722         file unconditionally.
75723         When <selinux/selinux.h> is found, arrange to use wrappers.
75724         * modules/selinux-h (Files): Add getfilecon.c.
75725         (Makefile.am): Substitute include-next-related bits
75726         into the now-always-generated selinux/selinux.h file.
75727         * doc/glibc-functions/lgetfilecon.texi: New file.
75728         * doc/glibc-functions/fgetfilecon.texi: New file.
75729         * doc/glibc-functions/getfilecon.texi: New file.
75730         * doc/glibc-functions/getfilecon-desc.texi: New file.
75731         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
75732         which to pull in the new files.
75733         * MODULES.html.sh (Misc): Add selinux-h.
75735 2009-10-08  Jim Meyering  <meyering@redhat.com>
75737         unistd: fix comment typo
75738         * lib/unistd.in.h (euidaccess): Fix a comment typo.
75740 2009-10-08  Eric Blake  <ebb9@byu.net>
75742         areadlink: use SIZE_MAX consistently
75743         * modules/areadlink (Depends-on): Add stdint.
75744         * modules/areadlink-with-size (Depends-on): Likewise.
75745         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
75746         gives NULL; drop sys/types, since unistd gives size_t; and add
75747         stdint for SIZE_MAX.
75748         (SIZE_MAX): Rely on headers.
75749         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
75750         and add stdint.
75751         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
75752         (SIZE_MAX): Likewise.
75753         (INITIAL_BUF_SIZE): Turn into enum.
75754         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
75756 2009-10-08  Jim Meyering  <meyering@redhat.com>
75758         areadlinkat: avoid compilation failure
75759         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
75760         Fix typo in comment.
75762 2009-10-07  Eric Blake  <ebb9@byu.net>
75764         areadlinkat-with-size: new module
75765         * modules/areadlinkat-with-size: New module.
75766         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
75767         * lib/areadlink.h (areadlinkat): Declare it.
75768         * MODULES.html.sh (File system functions): Mention it.
75769         * modules/areadlinkat-with-size-tests: New test.
75770         * tests/test-areadlinkat-with-size.c: New file.
75772         xreadlinkat: new module
75773         * modules/xreadlinkat: New module.
75774         * lib/xreadlinkat.c (xreadlinkat): New file.
75775         * lib/xreadlink.h (xreadlinkat): Declare it.
75776         * MODULES.html.sh (File system functions): Mention it.
75778         areadlinkat: new module
75779         * lib/at-func.c (FUNC_FAIL): New define.
75780         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
75781         * modules/areadlinkat: New module.
75782         * lib/linkat.c (areadlinkat): Move...
75783         * lib/areadlinkat.c (areadlinkat): ...to new file.
75784         * lib/areadlink.h (areadlinkat): Declare it.
75785         * modules/linkat (Depends-on): Add areadlinkat.
75786         * MODULES.html.sh (File system functions): Mention it.
75787         * modules/areadlinkat-tests: New test.
75788         * tests/test-areadlinkat.c: New file.
75790         areadlink, areadlink-with-size: add tests
75791         * modules/areadlink-tests: New test.
75792         * modules/areadlink-with-size-tests: Likewise.
75793         * tests/test-areadlink.h: New file.
75794         * tests/test-areadlink.c: Likewise.
75795         * tests/test-areadlink-with-size.c: Likewise.
75797         maint: minor cleanups
75798         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
75799         _UNUSED_PARAMETER_ instead.
75800         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
75801         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
75802         * modules/linkat-tests (Files): Distribute test-link.h.
75804         openat, utimens: whitespace cleanup
75805         * lib/openat.c: Prefer space throughout, rather than mix of 8
75806         spaces vs. tabs.
75807         * lib/at-func.c: Likewise.
75808         * lib/utimens.c: Likewise.
75810         openat: avoid using wrong fd
75811         * lib/openat.c (openat_permissive): Reject user's fd if saving the
75812         working directory chooses same fd.
75813         * lib/at-func.c (AT_FUNC_NAME): Likewise.
75815         mkdir, mkdirat: fix cygwin 1.5.x bug
75816         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
75817         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
75818         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
75819         bug.
75820         (gl_PREREQ_MKDIR): Delete unused macro.
75821         * modules/mkdir (Files): Track file rename.
75822         (configure.ac): Update macro name.
75823         * modules/openat (Depends-on): Add mkdir.
75824         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
75826         mkdir, mkdirat: add tests
75827         * modules/mkdir-tests: New test.
75828         * tests/test-mkdir.h: New file.
75829         * tests/test-mkdir.c: Likewise.
75830         * tests/test-mkdirat.c: Likewise.
75831         * modules/openat-tests (Files): Add new files.
75832         (Makefile.am): Run new test.
75834 2009-10-06  Eric Blake  <ebb9@byu.net>
75836         doc: tweak *at function documentation
75837         * doc/posix-functions/faccessat.texi (faccessat): Mention
75838         known issue with replacement.
75839         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
75840         * doc/posix-functions/linkat.texi (linkat): Likewise.
75841         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
75842         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
75843         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
75844         * doc/posix-functions/renameat.texi (renameat): Likewise.
75845         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
75847         openat: fix GNU/Hurd bug in unlinkat
75848         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
75849         broken.
75850         * doc/posix-functions/unlink.texi (unlink): Document this.
75851         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
75853         fdopendir: fix GNU/Hurd bug
75854         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
75855         allowing non-directory fds.
75856         * lib/fdopendir.c (rpl_fdopendir): Work around it.
75857         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
75858         * modules/dirent (Makefile.am): Substitute it.
75859         * lib/dirent.in.h (fdopendir): Declare replacement.
75860         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
75861         * tests/test-fdopendir.c (main): Test something other than
75862         /dev/null, since on Hurd that behaves like a directory.
75864         test-symlink: port to GNU/Hurd
75865         * tests/test-symlink.h (test_symlink): Relax expected errno.
75867         doc: tweak more cygwin information
75868         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
75869         now compatible with glibc.
75870         * doc/posix-functions/getopt.texi (getopt): Likewise.
75872         getopt-gnu: add another test
75873         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
75874         guarantee behavior relied on by m4.
75875         * tests/test-getopt.c (main): Use it.
75876         * modules/getopt-posix-tests (Depends-on): Add setenv.
75877         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
75879         getopt: fix compilation on darwin
75880         * lib/getopt.in.h (includes): Leave breadcrumbs during system
75881         include.
75882         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
75883         Reported by Ludovic Courtès.
75885 2009-10-06  Bruno Haible  <bruno@clisp.org>
75887         * modules/size_max (Description): Discourage its use.
75888         Reported by Simon Josefsson.
75890 2009-10-06  Jim Meyering  <meyering@redhat.com>
75892         linkat: avoid compilation failure
75893         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
75895 2009-10-05  Eric Blake  <ebb9@byu.net>
75897         linkat: support Linux 2.6.17
75898         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
75899         linkat on Linux, but allow cache variable override.
75900         * lib/linkat.c (rpl_linkat): Define override.
75901         * modules/linkat (Depends-on): Add symlinkat.
75902         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
75903         * modules/unistd (Makefile.am): Substitute it.
75904         * lib/unistd.in.h (linkat): Declare replacement.
75905         Reported by Pádraig Brady.
75907         quotearg: port test to systems with C.UTF-8 locale
75908         * tests/test-quotearg.c (struct result_strings): Add another
75909         member, differentiating between C.ASCII and C.UTF-8 handling.
75910         (compare_strings): Add parameter.
75911         (main): Adjust all callers.
75913         getopt: avoid clash with FreeBSD _getopt_internal
75914         * lib/getopt.in.h (_getopt_internal): Override the name.
75915         * lib/getopt_int.h (includes): Pick up any overrides.
75916         Reported by Reuben Thomas.
75918         hash: allow C89 compilation
75919         * lib/hash.c (check_tuning): Move declaration before statement.
75920         Reported by Reuben Thomas.
75922 2009-10-05  Karl Berry  <karl@gnu.org>
75924         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
75926 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
75927             Bruno Haible  <bruno@clisp.org>
75929         * lib/uname.c (uname): Use a table-driven algorithm to compute
75930         Windows NT versions.
75932 2009-10-04  Bruno Haible  <bruno@clisp.org>
75934         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
75935         program_invocation_short_name.
75936         * modules/progname (configure.ac): Test for presence of
75937         program_invocation_short_name.
75938         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
75940 2009-10-04  Bruno Haible  <bruno@clisp.org>
75942         * lib/progname.c (set_program_name): Fix comment.
75943         Reported by Jim Meyering.
75945 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
75946             Bruno Haible  <bruno@clisp.org>
75948         * lib/uname.c: Include <string.h>.
75949         (uname): Do only one call to GetVersionEx in the common case.
75951 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
75952             Bruno Haible  <bruno@clisp.org>
75954         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
75955         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
75956         (uname): Add support for Windows CE and various non-x86 CPU types.
75958 2009-10-03  Bruno Haible  <bruno@clisp.org>
75960         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
75961         invocation to tests/configure.ac.
75962         Reported by Ian Beckwith <ianb@erislabs.net>.
75964 2009-10-02  Eric Blake  <ebb9@byu.net>
75966         fchdir: avoid compiler warning
75967         * lib/fchdir.c (canonicalize_file_name)
75968         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
75970         test-open: support mingw errno values
75971         * tests/test-open.h (test_open): Relax test.
75972         * tests/test-fopen.h (test_fopen): Likewise.
75973         * tests/test-openat-safer.c (main): Likewise.
75975         open: fix opening directory on mingw
75976         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
75978         test-open: on GNU/Hurd, /dev/null is a directory
75979         * tests/test-fopen.h (main): Rename...
75980         (test_fopen): ...to this.  Use a guaranteed non-directory when
75981         confirming open behavior on trailing slash.
75982         * tests/test-openat-safer.c (main): Likewise.
75983         * tests/test-open.h (main): Likewise....
75984         (test_open): ...to this.
75985         * tests/test-fopen.c (main): Adjust caller.
75986         * tests/test-fopen-safer.c (main): Likewise.
75987         * tests/test-open.c (main): Likewise.
75988         * tests/test-fcntl-safer.c (main): Likewise.
75989         Reported by Samuel Thibault.
75991         rename, fchdir: don't ignore chdir failure
75992         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
75993         * lib/rename.c (rpl_rename) [W32]: Likewise.
75994         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
75995         an empty destination directory if source cannot be renamed,
75996         although there is still possibility for failure.
75997         * doc/posix-functions/rename.texi (rename): Document the race.
75998         Reported by Jim Meyering.
76000         maint: cleanup whitespace in recent commits
76001         * lib/rename.c (rpl_rename): Remove tabs.
76002         * tests/test-link.h (test_link): Likewise.
76003         * lib/fchdir.c (get_name): Likewise.
76004         Reported by Jim Meyering.
76006 2009-10-02  Ben Pfaff  <blp@gnu.org>
76008         relocatable-prog-wrapper: Add missing dependency on
76009         double-slash-root.
76010         * modules/relocatable-prog-wrapper: Add dependency.
76011         Reported by Ian Beckwith <ianb@erislabs.net>.
76013 2009-10-02  Eric Blake  <ebb9@byu.net>
76015         renameat: fix Solaris bugs
76016         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
76017         needed fixing.
76018         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
76019         * modules/stdio (Makefile.am): Substitute it.
76020         * lib/stdio.in.h (renameat): Declare replacement.
76021         * lib/renameat.c (rpl_renameat): Implement fix.
76023         renameat: new module
76024         * modules/renameat: New file.
76025         * lib/renameat.c (renameat): Likewise.
76026         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
76027         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
76028         * modules/stdio (Makefile.am): Substitute them.
76029         * lib/stdio.in.h (renameat): Declare it.
76030         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
76031         * doc/posix-functions/renameat.texi (renameat): Likewise.
76032         * modules/renameat-tests: New test.
76033         * tests/test-renameat.c: Likewise.
76035         rename: fix mingw bugs
76036         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
76037         directory overwrite bugs.
76039         rename: fix another cygwin 1.5 bug
76040         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
76041         checks.
76042         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
76043         unnecessary cygwin workarounds.  Also work around bug with moving
76044         full directory onto an empty one.
76045         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
76047         rename-dest-slash: merge into rename module
76048         * modules/rename-dest-slash (Status): Mark obsolete.
76049         (Depends-on): Add rename.
76050         (Files): Let rename do it all.
76051         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
76052         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
76053         * m4/rename-dest-slash.m4: ...so this file can be deleted.
76054         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
76055         * lib/rename.c (rpl_rename): Update comments.
76057         rename: fix cygwin 1.5.x bugs
76058         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
76059         * lib/rename.c (rpl_rename): Work around them.
76060         * modules/rename (Depends-on): Add same-inode.
76062         rename: fix Solaris 10 bug
76063         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
76064         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
76065         was the only bug.
76067         rename: fix Solaris 9 bug
76068         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
76069         on non-directory.  Avoid calling exit.
76070         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
76071         strdup.
76072         * modules/rename-tests (Depends-on): Drop lstat.
76073         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
76074         (gl_PREREQ_RENAME): Delete unused macro.
76076         rename-dest-slash: fix NetBSD bug
76077         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
76078         links.
76079         * modules/rename-dest-slash (Depends-on): Add same-inode.
76081         rename-tests: new test, exposes several platform bugs
76082         * modules/rename-tests: New file.
76083         * tests/test-rename.h: Likewise.
76084         * tests/test-rename.c: Likewise.
76085         * doc/posix-functions/rename.texi (rename): Improve documentation,
76086         including bugs that will eventually be fixed in gnulib.
76088 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
76090         * lib/uname.c: Include <stdlib.h>
76091         (uname): Assume version info is available.
76093 2009-10-02  Jim Meyering  <meyering@redhat.com>
76095         gnu-web-doc-update: correct --help output
76096         * build-aux/gnu-web-doc-update: Make --help output relevant.
76098         gnu-web-doc-update: add standard options
76099         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
76101         gnu-web-doc-update: New module.
76102         Use this script to automatically update the on-line web documentation
76103         for your GNU project at http://www.gnu.org/software/$pkg/manual/
76104         * modules/gnu-web-doc-update: New file, from coreutils.
76105         * build-aux/gnu-web-doc-update: New script.
76107 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
76109         link: LoadLibrary is not needed.
76110         * lib/link.c: Use GetModuleHandle.
76112 2009-10-01  Eric Blake  <ebb9@byu.net>
76114         getopt: bump serial number
76115         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
76116         change.
76118         tests: tighten link, rmdir, and remove tests
76119         * tests/test-link.h (includes): No need to use <config.h> here.
76120         Clean up if directory hard link was created, otherwise test for
76121         trailing '.'.
76122         * tests/test-linkat.c (main): Simplify.
76123         * tests/test-remove.c (main): Enhance test for trailing '.'.
76124         * tests/test-rmdir.h (test_rmdir_func): Likewise.
76126 2009-10-01  Jim Meyering  <meyering@redhat.com>
76128         maint.mk: requiring "make major" was annoying, for a "minor" release.
76129         What is intended is "stable", to contrast with alpha and beta,
76130         so require "make stable", not "make major".
76131         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
76132         (get_tool_versions): Likewise.
76133         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
76135 2009-09-30  Ben Pfaff  <blp@gnu.org>
76137         Fix broken build of replacement for Windows tmpfile().
76138         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
76139         flags argument added along with the 'mkostemp' module.
76141 2009-09-28  Bruno Haible  <bruno@clisp.org>
76143         Avoid identifier clash with POSIX function 'remove' defined as a macro.
76144         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
76145         to 'remove_elt'.
76146         (gl_list_remove): Update.
76147         * lib/gl_list.c (gl_list_remove): Update.
76148         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
76149         to 'remove_elt'.
76150         (gl_oset_remove): Update.
76151         * lib/gl_list.c (gl_oset_remove): Update.
76152         Reported by Eric Blake.
76154 2009-09-28  Eric Blake  <ebb9@byu.net>
76156         doc: mention yet more cygwin 1.7 status
76157         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
76158         cygwin.
76159         * doc/glibc-functions/execvpe.texi (execvpe): New file.
76160         * doc/gnulib.texi (Glibc unistd.h): Mention it.
76162         argp: fix test failure
76163         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
76164         that are not upper-case.  Pass correct range to tolower.
76166 2009-09-27  Jim Meyering  <meyering@redhat.com>
76168         test-yesno: work around sparc-dash here-document infelicity
76169         Without this change, the literal \177 byte in a here document
76170         would make dash 0.5.5.1-3 access uninitialized memory.
76171         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
76172         Instead, use a marker, "@", and filter through tr to create the desired
76173         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
76175 2009-09-27  Bruno Haible  <bruno@clisp.org>
76177         Disable untested support for new flavours of ACLs on AIX.
76178         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
76179         progress.
76180         * lib/set-mode-acl.c (qset_acl): Likewise.
76182 2008-12-07  Bruno Haible  <bruno@clisp.org>
76184         Add support for new flavours of ACLs on AIX. (Untested.)
76185         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
76186         (file_has_acl): Add support for newer AIX.
76187         * lib/set-mode-acl.c (qset_acl): Likewise.
76188         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
76189         Rainer Tammer <tammer@tammer.net>.
76191 2009-09-26  Eric Blake  <ebb9@byu.net>
76193         argp: fix compilation of getopt
76194         * lib/getopt.in.h (includes): Use different guard than glibc.
76195         Reported by Sergey Poznyakoff.
76197         doc: mention more cygwin 1.7 status
76198         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
76199         bug.
76200         * doc/posix-functions/execl.texi (execl): Likewise.
76201         * doc/posix-functions/execle.texi (execle): Likewise.
76202         * doc/posix-functions/execlp.texi (execlp): Likewise.
76203         * doc/posix-functions/execv.texi (execv): Likewise.
76204         * doc/posix-functions/execve.texi (execve): Likewise.
76205         * doc/posix-functions/execvp.texi (execvp): Likewise.
76206         * doc/glibc-functions/canonicalize_file_name.texi
76207         (canonicalize_file_name): Cygwin 1.7 now provides this.
76208         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
76209         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
76210         on AT_SYMLINK_NOFOLLOW.
76212 2009-09-24  Eric Blake  <ebb9@byu.net>
76214         test-linkat: make test more robust
76215         * tests/test-linkat.c (main): Avoid collision with EEXIST.
76217         getopt: fix inclusion guards for cygwin
76218         * modules/getopt-posix (Depends-on): Add include-next.
76219         (Makefile.am): Substitute more items in replacement header.
76220         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
76221         <getopt.h>.
76222         * lib/getopt.in.h (includes): Use split inclusion guard, and
76223         prefer <getopt.h> over include <unistd.h> when one is present.
76224         (option): Also override name of 'struct option'.
76226         same-inode: revert prior change; it is not yet ready
76227         * NEWS: Undo mention of this change.
76228         * lib/same-inode.h (same-inode.h): Undo tri-state change.
76229         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
76230         * lib/cycle-check.c (cycle_check): Likewise.
76231         * lib/same.c (same_name): Likewise.
76232         * lib/at-func2.c (at_func2): Likewise.
76234 2009-09-23  Eric Blake  <ebb9@byu.net>
76236         linkat: new module
76237         * modules/linkat: New file.
76238         * lib/at-func2.c (at_func2): Likewise.
76239         * lib/linkat.c (linkat): Likewise.
76240         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
76241         * lib/openat-priv.h (at_func2): Add declaration.
76242         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
76243         * modules/unistd (Makefile.am): Substitute them.
76244         * lib/unistd.in.h (linkat): Declare it.
76245         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
76246         * doc/posix-functions/linkat.texi (linkat): Likewise.
76247         * doc/posix-functions/link.texi (link): Tweak wording.
76248         * tests/test-link.c (main): Move guts...
76249         * tests/test-link.h (test_link): ...into new file.
76250         * modules/linkat-tests: New test.
76251         * tests/test-linkat.c: Likewise.
76252         * modules/link-tests (Files): Ship new file.
76253         (Depends-on): Add stdbool.
76255         dirname: add library-safe mdir_name
76256         * lib/dirname.h (mdir_name): New prototype.
76257         * lib/dirname.c (dir_name): Move guts...
76258         (mdir_name): ...to new function that avoids xalloc_die.
76260         fchdir: another mingw fix
76261         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
76262         * lib/fchdir.c (get_name): New helper method; skips canonicalize
76263         on mingw (where it has not yet been ported), and make it optional
76264         elsewhere.
76265         (_gl_register_fd): Use it.
76267         same-inode: make SAME_INODE tri-state, to port to mingw
76268         * NEWS: Mention this change.
76269         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
76270         st_ino always being 0.
76271         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
76272         * lib/cycle-check.c (cycle_check): Likewise.
76273         * lib/same.c (same_name): Likewise.
76275         lstat: avoid mingw compilation error
76276         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
76277         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
76278         lstat ourselves.
76279         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
76280         was adequate.
76281         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
76282         the checks for lstat.
76283         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
76285         link: fix test failure on Solaris 9
76286         * lib/link.c (rpl_link): Don't assume link will catch bogus
76287         trailing slash on source.
76289         test-symlinkat: enhance test
76290         * tests/test-readlink.c (main): Move guts...
76291         * tests/test-readlink.h (test_readlink): ...into new file.
76292         * tests/test-symlink.c (main): Move guts...
76293         * tests/test-symlink.h (test_symlink): ...into new file.
76294         * tests/test-symlinkat.c (main): Use new files for further
76295         coverage.
76296         (do_symlink, do_readlink): New helper functions.
76297         * modules/symlink-tests (Files): Ship new file.
76298         (Depends-on): Add stdbool.
76299         * modules/readlink-tests (Files): Ship new file.
76300         (Depends-on): Add stdbool.
76301         * modules/symlinkat-tests (Files): Use new files.
76303 2009-09-23  Eric Blake  <ebb9@byu.net>
76305         readlink: document portability issue with symlink length
76306         * doc/posix-functions/lstat.texi (lstat): Mention that some file
76307         systems have bogus st_size on symlinks, and mention the
76308         areadlink-with-size module.
76309         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
76310         * doc/posix-functions/readlink.texi (readlink): Mention the
76311         areadlink module, and ERANGE failure.
76312         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
76313         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
76315         readlink: fix Solaris 9 bug with trailing slash
76316         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
76317         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
76318         * doc/posix-functions/readlink.texi (readlink): Document this.
76319         * modules/readlink-tests: New test.
76320         * tests/test-readlink.c: Likewise.
76322         readlink: fix cygwin 1.5.x bug with return type
76323         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
76324         * lib/unistd.in.h (readlink): Use ssize_t.
76325         * lib/readlink.c (readlink): Likewise.
76326         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
76327         * modules/unistd (Makefile.am): Substitute it.
76328         * lib/unistd.in.h (readlink): Declare replacement.
76329         * doc/posix-functions/readlink.texi (readlink): Document this.
76331         symlink: use throughout gnulib
76332         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
76333         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
76334         symlink is not used.
76335         * modules/symlinkat (Depends-on): Add symlink.
76336         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
76337         * modules/canonicalize-tests (Depends-on): Likewise.
76338         * modules/lstat-tests (Depends-on): Likewise.
76339         * modules/openat-tests (Depends-on): Likewise.
76340         * modules/remove-tests (Depends-on): Likewise.
76341         * modules/rmdir-tests (Depends-on): Likewise.
76342         * modules/unlink-tests (Depends-on): Likewise.
76343         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
76344         * tests/test-canonicalize.c (symlink): Likewise.
76345         * tests/test-fstatat.c (symlink): Likewise.
76346         * tests/test-lstat.c (symlink): Likewise.
76347         * tests/test-remove.c (symlink): Likewise.
76348         * tests/test-rmdir.c (symlink): Likewise.
76349         * tests/test-unlink.c (symlink): Likewise.
76350         * tests/test-unlinkat.c (symlink): Likewise.
76352         symlink: new module, for Solaris 9 bug
76353         * modules/symlink: New file.
76354         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
76355         * lib/symlink.c: Likewise.
76356         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
76357         * modules/unistd (Makefile.am): Substitute them.
76358         * lib/unistd.in.h (symlink): Declare replacement.
76359         * MODULES.html.sh (File system functions): Mention it.
76360         * doc/posix-functions/symlink.texi (symlink): Likewise.
76361         * modules/symlink-tests: New test.
76362         * tests/test-symlink.c: Likewise.
76364 2009-09-23  Bruno Haible  <bruno@clisp.org>
76366         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
76367         when needed.
76368         Test case: gnulib-tool --import --with-tests atexit inttypes.
76369         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
76371 2009-09-23  Bruno Haible  <bruno@clisp.org>
76373         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
76374         subcommand, not in a subshell.
76376 2009-09-22  Eric Blake  <ebb9@byu.net>
76378         unistd: sort replacement declarations
76379         * lib/unistd.in.h: Sort declarations.
76381         open, openat: minor optimization
76382         * lib/open.c (open): If open succeeded, len is non-zero.
76383         * lib/openat.c (rpl_openat): Likewise.
76385         link-follow: ensure correct result
76386         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
76387         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
76388         distinguish between possible failures.
76390 2009-09-21  Eric Blake  <ebb9@byu.net>
76392         fts: avoid compiler warning
76393         * lib/fts.c (dirent_inode_sort_may_be_useful)
76394         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
76396 2009-09-19  Bruno Haible  <bruno@clisp.org>
76398         * lib/progreloc.c (canonicalize_file_name): New declaration.
76400 2009-09-19  Eric Blake  <ebb9@byu.net>
76402         link: fix quoting
76403         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
76405         openat: fix openat bugs on Solaris 9
76406         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
76407         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
76408         * modules/openat (Depends-on): Add open.
76409         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
76410         * modules/fcntl-h (Makefile.am): Substitute it.
76411         * lib/fcntl.in.h (openat): Declare replacement.
76412         * doc/posix-functions/openat.texi (openat): Document this.
76414         openat: move fstatat and unlinkat into correct files
76415         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
76416         compiled.
76417         * lib/openat.c (fstatat, unlinkat): Move...
76418         * lib/fstatat.c (fstatat): ...into correct files.
76419         * lib/unlinkat.c (unlinkat): Likewise.
76421         openat: fix unlinkat bugs on Solaris 9
76422         * lib/unlinkat.c (unlinkat): New file.
76423         * modules/openat (Depends-on): Add unlink.
76424         (Files): Distribute it.
76425         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
76426         trailing slash behavior is broken.
76427         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
76428         * modules/unistd (Makefile.am): Substitute it.
76429         * lib/unistd.in.h (unlinkat): Declare replacement.
76430         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
76432         openat: fix fstatat bugs on Solaris 9
76433         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
76434         stat.
76435         * doc/posix-functions/fstatat.texi (fstatat): Document this.
76437         test-unlinkat: enhance test, to expose Solaris 9 bug
76438         * tests/test-unlink.c (main): Factor guts...
76439         * tests/test-unlink.h (test_rmdir_func): ...into new file.
76440         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
76441         * tests/test-rmdir.c (main): Adjust caller.
76442         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
76443         (unlinker): New helper function.
76444         (rmdirat): Enhance check.
76445         * modules/rmdir-tests (Depends-on): Add stdbool.
76446         * modules/unlink-tests (Depends-on): Likewise.
76447         (Files): Add test-unlink.h.
76448         * modules/openat-tests (Files): Likewise.
76449         (Depends-on): Add unlinkdir.
76451         test-fstatat: new test, to expose Solaris 9 bugs
76452         * tests/test-stat.c (main): Factor guts...
76453         * tests/test-stat.h (test_stat_func): ...into new file.
76454         * tests/test-lstat.c (main): Factor guts...
76455         * tests/test-lstat.h (test_lstat_func): ...into new file.
76456         * tests/test-fstatat.c: New file.
76457         * modules/stat-tests (Files): Add test-stat.h.
76458         * modules/lstat-tests (Files): Add test-lstat.h.
76459         (Depends-on): Add stdbool.
76460         * modules/openat-tests (Depends-on): Add pathmax.
76461         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
76462         (Makefile.am): Run new test.
76464         remove: new module, for mingw and Solaris 9 bugs
76465         * modules/remove: New file.
76466         * lib/remove.c: Likewise.
76467         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
76468         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
76469         * modules/stdio (Makefile.am): Use them.
76470         * lib/stdio.in.h (remove): Declare replacement.
76471         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
76472         * doc/posix-functions/remove.texi (remove): Likewise.
76473         * modules/remove-tests: New test.
76474         * tests/test-remove.c: Likewise.
76476         unlink: new module, for Solaris 9 bug
76477         * modules/unlink: New file.
76478         * lib/unlink.c: Likewise.
76479         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
76480         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
76481         * modules/unistd (Makefile.am): Use them.
76482         * lib/unistd.in.h (stat): Declare replacement.
76483         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
76484         * doc/posix-functions/unlink.texi (unlink): Likewise.
76485         * modules/unlink-tests: New test.
76486         * tests/test-unlink.c: Likewise.
76488         lstat: fix Solaris 9 bug
76489         * lib/lstat.c (lstat): Also check for trailing slash on
76490         non-symlink, non-directories.  Use stat module to simplify logic.
76491         * doc/posix-functions/lstat.texi (lstat): Document it.
76492         * modules/lstat-tests (Depends-on): Add errno, same-inode.
76493         (configure.ac): Check for symlink.
76494         * tests/test-lstat.c (main): Add more tests.
76496         stat: add as dependency to other modules
76497         * modules/chown (Depends-on): Add stat.
76498         * modules/euidaccess (Depends-on): Likewise.
76499         * modules/fchdir (Depends-on): Likewise.
76500         * modules/isdir (Depends-on): Likewise.
76501         * modules/link (Depends-on): Likewise.
76502         * modules/lstat (Depends-on): Likewise.
76503         * modules/mkdir-p (Depends-on): Likewise.
76504         * modules/modechange (Depends-on): Likewise.
76505         * modules/open (Depends-on): Likewise.
76506         * modules/readlink (Depends-on): Likewise.
76507         * modules/same (Depends-on): Likewise.
76509         stat: fix Solaris 9 bug
76510         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
76511         slash.
76512         * lib/stat.c (rpl_stat): Work around it.
76513         * doc/posix-functions/stat.texi (stat): Update documentation.
76515         stat: new module, for mingw bug
76516         * modules/stat: New file.
76517         * lib/stat.c: Likewise.
76518         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
76519         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
76520         * modules/sys_stat (Makefile.am): Use them.
76521         * lib/sys_stat.in.h (stat): Declare replacement.
76522         * lib/openat.c (fstatat): Deal with lstat and stat being function
76523         macros.
76524         * modules/openat (Depends-on): Add inline.
76525         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
76526         * doc/posix-functions/stat.texi (stat): Likewise.
76527         * modules/stat-tests: New test.
76528         * tests/test-stat.c: Likewise.
76530 2009-09-19  Jim Meyering  <meyering@redhat.com>
76532         syntax-check: detect unnecessary inclusion of canonicalize.h
76533         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
76535 2009-09-19  Eric Blake  <ebb9@byu.net>
76537         canonicalize-lgpl: adjust clients to use correct header
76538         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
76539         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
76540         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
76541         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
76542         * lib/progreloc.c (includes): Likewise.
76544 2009-09-19  Jim Meyering  <meyering@redhat.com>
76546         test-posixtm.c: correct a comment
76547         * tests/test-posixtm.c: Correct first-line comment.
76548         Spotted by Eric Blake.
76550 2009-09-16  Jim Meyering  <meyering@redhat.com>
76552         posixtm-tests: make T const-correct; add a test case
76553         * tests/test-posixtm.c (T): Declare const.
76554         Add a test for -(2^31+1).
76555         Remove useless can-succeed-only-in-2002 test.
76557         posixtm-tests: adjust the sole failing test
76558         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
76559         expected output matches what mktime now produces.  Cross-checked via
76560         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
76562         posixtm: move #ifdef'd tests into a new module
76563         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
76564         * tests/test-posixtm.c: ... this new file.
76565         * modules/posixtm-tests: New module.
76567 2009-09-19  Eric Blake  <ebb9@byu.net>
76569         openat: simplify use of at-func.c
76570         * lib/at-func.c (includes): Include prerequisites here, to
76571         simplify requirements on client files.
76572         * lib/openat-priv.h: Add double-inclusion guard.
76573         * lib/faccessat.c (includes): Simplify.
76574         * lib/fchmodat.c (includes): Likewise.
76575         * lib/fchownat.c (includes): Likewise.
76576         * lib/mkdirat.c (includes): Likewise.
76577         * lib/mkfifoat.c (includes): Likewise.
76578         * lib/symlinkat.c (includes): Likewise.
76580         openat: allow return of fd 0
76581         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
76582         * modules/save-cwd (Depends-on): Replace fcntl-safer with
76583         unistd-safer.
76584         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
76585         <fcntl.h>; this module does not leak fds.
76586         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
76587         must be allowed to return 0, leaving openat_safer to add the
76588         safety.
76589         (openat_permissive): Avoid writing to just-opened fd 2 if
76590         restoring the current directory fails.
76591         * lib/openat-die.c (openat_restore_fail): Add comment.
76592         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
76593         (save_cwd): Guarantee safe fd, but without use of open_safer.
76594         * tests/test-openat.c: New test.
76595         * modules/openat-tests (Files, Makefile.am): Distribute and build
76596         new file.
76598         relocatable-prog-wrapper: fix build
76599         * modules/relocatable-prog-wrapper (Files): Update name of
76600         canonicalize m4 file, broken on 2009-09-17.
76601         Reported by emad hajjar <aleppos@hotmail.com>.
76603 2009-09-19  Bruno Haible  <bruno@clisp.org>
76605         * lib/safe-alloc.h: Use the standard header with GPL copyright.
76606         * lib/safe-alloc.c: Likewise.
76607         Reported by Ian Beckwith <ianb@erislabs.net>.
76609 2009-09-18  Bruno Haible  <bruno@clisp.org>
76611         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
76612         Reported by <erobles@sensacd.com.mx>.
76614 2009-09-17  Eric Blake  <ebb9@byu.net>
76616         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
76617         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
76618         slashes when checking if last component is missing.
76619         * tests/test-canonicalize.c (main): Test this.
76621         canonicalize, canonicalize-lgpl: honor // if distinct from /
76622         * modules/canonicalize (Files): Add double-slash-root.m4.
76623         * modules/canonicalize-lgpl (Files): Likewise.
76624         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
76625         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
76626         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
76627         fallback definition.
76628         (canonicalize_filename_mode): Use it to protect //.
76629         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
76630         (__realpath): Likewise.
76631         * tests/test-canonicalize.c (main): Test this.
76632         * tests/test-canonicalize-lgpl.c (main): Likewise.
76633         * modules/canonicalize-tests (Depends-on): Add same-inode.
76634         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
76636         canonicalize-lgpl: fix glibc bug with trailing slash
76637         * m4/canonicalize-lgpl.m4: Move contents...
76638         * m4/canonicalize.m4: ...here.
76639         (gl_CANONICALIZE_LGPL): Factor realpath check...
76640         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
76641         glibc 2.3.5 bug, fixed 2005-04-27.
76642         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
76643         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
76644         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
76645         * modules/canonicalize-lgpl (Files): Manage file rename.
76646         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
76647         * modules/stdlib (Makefile.am): Substitute witness.
76648         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
76649         is needed.
76650         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
76651         replacement is required.
76652         * lib/canonicalize.c (canonicalize_file_name): Likewise.
76653         * doc/glibc-functions/canonicalize_file_name.texi
76654         (canonicalize_file_name): Document this.
76655         * doc/posix-functions/realpath.texi (realpath): Likewise.
76657         canonicalize-lgpl: reject non-directory with trailing slash
76658         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
76659         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
76660         catches failures in glibc 2.3.5.
76661         * tests/test-canonicalize.c (main): Likewise.
76663         canonicalize-lgpl: use native realpath if it works
76664         * lib/canonicalize-lgpl.c (realpath): Guard with
76665         FUNC_REALPATH_WORKS.
76666         * lib/stdlib.in.h (realpath): Make declaration optional based on
76667         HAVE_REALPATH.
76668         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
76669         native realpath works.
76670         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
76671         * modules/stdlib (Makefile.am): Substitute witness.
76673         canonicalize, canonicalize-lgpl: use <stdlib.h>
76674         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
76675         (Include): Mention <stdlib.h>.
76676         (configure.ac): Mention functions we provide.
76677         * modules/canonicalize (configure.ac): Likewise.
76678         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
76679         realpath if canonicalize_file_name is missing.
76680         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
76681         * modules/stdlib (Makefile.am): Substitute witnesses.
76682         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
76683         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
76684         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
76685         * NEWS: Document this.
76686         * doc/glibc-functions/canonicalize_file_name.texi
76687         (canonicalize_file_name): Likewise.
76688         * doc/posix-functions/realpath.texi (realpath): Likewise.
76689         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
76691         test-canonicalize: consolidate into single C program
76692         * tests/test-canonicalize.sh: Delete; move setup into...
76693         * tests/test-canonicalize.c (main): ...the program, making it
76694         easier to run in debugger.  Add some tests.
76695         * modules/canonicalize-tests (Files): Remove unused file.
76696         (Depends-on): Add progname.
76697         (configure.ac, Makefile.am): Simplify.
76699         test-canonicalize-lgpl: consolidate into single C program
76700         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
76701         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
76702         easier to run in debugger.  Add some tests.
76703         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
76704         (configure.ac, Makefile.am): Simplify.
76706         canonicalize: avoid resolvepath
76707         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
76708         unnecessary checks.
76709         * lib/canonicalize.c (includes): Simplify.
76710         (canonicalize_file_name): Drop resolvepath implementation.
76711         * modules/canonicalize (Depends-on): Drop filenamecat.
76713         canonicalize: don't lose errno
76714         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
76715         over calls to free.
76717         canonicalize: simplify errno handling
76718         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
76719         assignment.
76721         canonicalize, canonicalize-lgpl: update module dependencies
76722         * modules/canonicalize (Depends-on): Add extensions, lstat,
76723         pathmax, stdlib.
76724         (Files): Drop pathmax.h.
76725         (configure.ac): Adjust macro name.
76726         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
76727         lstat, stdlib, sys_stat.
76728         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
76729         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
76730         extensions.
76731         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
76732         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
76733         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
76734         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
76735         declaration, if available.
76736         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
76737         we can rely on the readlink module.
76738         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
76739         (includes): Use <unistd.h> unconditionally.
76741 2009-09-17  Eric Blake  <ebb9@byu.net>
76743         maint: make Include sections of modules consistent
76744         * modules/alloca: Use only header name; no need to list #include.
76745         * modules/alloca-opt: Likewise.
76746         * modules/arpa_inet: Likewise.
76747         * modules/canon-host: Likewise.
76748         * modules/configmake: Likewise.
76749         * modules/dirent: Likewise.
76750         * modules/eealloc: Likewise.
76751         * modules/environ: Likewise.
76752         * modules/fchdir: Likewise.
76753         * modules/fcntl: Likewise.
76754         * modules/fcntl-h: Likewise.
76755         * modules/gethrxtime: Likewise.
76756         * modules/gettime: Likewise.
76757         * modules/ignore-value: Likewise.
76758         * modules/inet_ntop: Likewise.
76759         * modules/inet_pton: Likewise.
76760         * modules/inttypes: Likewise.
76761         * modules/isnand-nolibm: Likewise.
76762         * modules/isnanf-nolibm: Likewise.
76763         * modules/mbchar: Likewise.
76764         * modules/mbfile: Likewise.
76765         * modules/mbiter: Likewise.
76766         * modules/mbuiter: Likewise.
76767         * modules/netdb: Likewise.
76768         * modules/netinet_in: Likewise.
76769         * modules/nproc: Likewise.
76770         * modules/pagealign_alloc: Likewise.
76771         * modules/poll: Likewise.
76772         * modules/printf-frexp: Likewise.
76773         * modules/pthread: Likewise.
76774         * modules/putenv: Likewise.
76775         * modules/random_r: Likewise.
76776         * modules/relocatable-prog: Likewise.
76777         * modules/search: Likewise.
76778         * modules/select: Likewise.
76779         * modules/selinux-h: Likewise.
76780         * modules/settime: Likewise.
76781         * modules/signal: Likewise.
76782         * modules/size_max: Likewise.
76783         * modules/socklen: Likewise.
76784         * modules/ssize_t: Likewise.
76785         * modules/stdarg: Likewise.
76786         * modules/stdbool: Likewise.
76787         * modules/stddef: Likewise.
76788         * modules/stdint: Likewise.
76789         * modules/stdio: Likewise.
76790         * modules/stdlib: Likewise.
76791         * modules/string: Likewise.
76792         * modules/strings: Likewise.
76793         * modules/sys_file: Likewise.
76794         * modules/sys_ioctl: Likewise.
76795         * modules/sys_select: Likewise.
76796         * modules/sys_socket: Likewise.
76797         * modules/sys_stat: Likewise.
76798         * modules/sys_time: Likewise.
76799         * modules/sys_times: Likewise.
76800         * modules/sys_utsname: Likewise.
76801         * modules/sys_wait: Likewise.
76802         * modules/sysexits: Likewise.
76803         * modules/time: Likewise.
76804         * modules/times: Likewise.
76805         * modules/tmpfile: Likewise.
76806         * modules/trim: Likewise.
76807         * modules/unistd: Likewise.
76808         * modules/wchar: Likewise.
76809         * modules/wctype: Likewise.
76811 2009-09-17  Bruno Haible  <bruno@clisp.org>
76813         Make getdate.y compile on QNX and NetBSD 5 / i386.
76814         * m4/getdate.m4 (gl_GETDATE): Conditionally define
76815         TIME_T_FITS_IN_LONG_INT.
76816         * lib/getdate.y (long_time_t): New type.
76817         (relative_time): Change type of 'seconds' field to long_time_t.
76818         (get_date): Update types of local variables. Check against overflow
76819         during conversion from long_time_t to time_t.
76820         Reported by Matt Kraai <kraai@ftbfs.org>
76821         and Hasso Tepper <hasso@netbsd.org>.
76823 2009-09-17  Bruno Haible  <bruno@clisp.org>
76825         * modules/COPYING: Update copyright years.
76826         * modules/README: Likeiwse.
76827         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
76828         Reported by Ian Beckwith <ianb@erislabs.net>.
76830 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
76832         * users.txt: Update references for gnuit package.
76834 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
76836         * m4/getdelim.m4: Fix typo in copyright line.
76838 2009-09-17  Bruno Haible  <bruno@clisp.org>
76840         * lib/atoll.c: Use the standard header with GPL copyright.
76841         * lib/argz.in.h: Likewise.
76842         * lib/glob.c: Likewise.
76843         * lib/glob-libc.h: Likewise.
76844         * lib/random_r.c: Likewise.
76845         * lib/siglist.h: Likewise.
76846         * lib/strsignal.c: Likewise.
76847         Reported by Ian Beckwith <ianb@erislabs.net>.
76849 2009-09-17  Eric Blake  <ebb9@byu.net>
76851         rmdir: ensure correct dependency order
76852         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
76854 2009-09-17  Bruno Haible  <bruno@clisp.org>
76856         Disable assertion that fails on NetBSD 5 / i386.
76857         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
76858         Reported by Sam Steingold <sds@gnu.org>
76859         and Hasso Tepper <hasso@netbsd.org>.
76861 2009-09-16  Eric Blake  <ebb9@byu.net>
76863         unlinkdir: port to mingw
76864         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
76865         on which no one can unlink a directory.
76867         stdlib: sort witness names
76868         * modules/stdlib (Makefile.am): Sort replacements.
76869         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
76870         * lib/stdlib.in.h: Likewise.
76872         parse-duration-tests: avoid link failure
76873         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
76874         LIBINTL.
76875         Reported by Tom G. Christensen.
76877         openat-tests: ensure unlinkat behaves like rmdir
76878         * tests/test-rmdir.c (main): Factor guts...
76879         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
76880         * modules/rmdir-tests (Files): Ship new file.
76881         * modules/openat-tests: New test.
76882         * tests/test-unlinkat.c: Likewise.
76884         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
76885         * modules/rmdir-errno (Status, Notice): Now obsolete.
76887         rmdir: work around cygwin 1.5.x and mingw bugs
76888         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
76889         * lib/rmdir.c (rmdir): Work around it.
76890         * modules/rmdir (Status, Notice): No longer obsolete.
76891         (Files): Add dos.m4.
76892         (Depends-on): Add unistd.
76893         (configure.ac): Set witnesses.
76894         (License): Relax to LGPLv2+.
76895         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
76896         * modules/unistd (Makefile.am): Substitute witnesses.
76897         * lib/unistd.in.h (rmdir): Declare replacement.
76898         * doc/posix-functions/rmdir.texi (rmdir): Document this.
76899         * modules/rmdir-tests: New tests.
76900         * tests/test-rmdir.c: Likewise.
76902 2009-09-15  Eric Blake  <ebb9@byu.net>
76904         fchdir: improve use of replacement functions
76905         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
76906         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
76907         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
76908         REPLACE_CLOSEDIR.
76909         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
76910         * modules/sys_stat (Makefile.am): Substitute correct witness.
76911         * modules/dirent (Makefile.am): Likewise.
76912         * modules/unistd (Makefile.am): Likewise.
76913         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
76914         * lib/unistd.in.h (dup): Likewise.
76915         * lib/sys_stat.in.h (fstat): Likewise.
76917         maint: ignore gnulib-tool temp files
76918         * .gitignore: Ignore files created during gnulib-tool --test.
76920 2009-09-13  Jim Meyering  <meyering@redhat.com>
76922         posixtm: don't reject a time that specify "60" as the number of seconds
76923         * lib/posixtm.c (posixtime): The code to reject invalid dates
76924         would also reject a time specified with the .60 suffix.
76925         But POSIX allows that, in order to accommodate leap seconds.
76926         So don't reject it.
76927         (main): Adjust tests accordingly.
76928         * modules/posixtm (Depends-on): Add stpcpy.
76930 2009-09-11  Jim Meyering  <meyering@redhat.com>
76932         announce-gen: include [$release_type] in emitted Subject:
76933         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
76934         e.g., [stable] in the emitted Subject: line.
76936 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76938         Remove obsolete macros from several modules.
76939         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
76940         obsolete Autoconf macros with their modern counterparts.
76941         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
76942         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
76943         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
76944         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
76945         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
76946         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
76947         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
76948         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
76949         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
76950         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
76951         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
76952         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
76953         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
76954         * m4/sockets.m4 (gl_SOCKETS): Likewise.
76955         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
76956         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
76957         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
76958         * m4/time_r.m4 (gl_TIME_R): Likewise.
76959         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
76960         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
76961         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
76963         Fix copyright header in build-aux scripts.
76964         * build-aux/git-version-gen: Fix copyright header to match GPLv3
76965         recommendation.
76966         * build-aux/ncftpput-ftp: Likewise.
76967         * build-aux/update-copyright: Likewise.
76969 2009-09-09  Eric Blake  <ebb9@byu.net>
76971         test-link: allow Linux choice of errno
76972         * tests/test-link.c (main): Relax test for alternate error.
76974         strndup: fix improper m4 caching
76975         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
76976         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
76977         (gl_PREREQ_STRNDUP): Delete.
76978         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
76979         * modules/string (Makefile.am): Substitute it.
76980         * lib/string.in.h (strndup): Modernize prototype.
76982         getcwd: port to mingw
76983         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
76984         different from the POSIX assumptions made throughout the getcwd
76985         module; fortunately, the mingw getcwd does not need replacement.
76986         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
76987         * modules/getcwd-tests: New test.
76988         * tests/test-getcwd.c: Likewise.
76990         link: fix platform bugs
76991         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
76992         * lib/link.c (link): Work around them.  Fix related mingw bug.
76993         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
76994         * modules/unistd (Makefile.am): Substitute it.
76995         * lib/unistd.in.h (link): Declare replacement.
76996         * doc/posix-functions/link.texi (link): Document this.
76997         * modules/link (Depends-on): Add strdup-posix, sys_stat.
76999         test-link: consolidate into single C program, test more cases
77000         * tests/test-link.sh: Delete.
77001         * tests/test-link.c: Test more error conditions.  Exposes bugs on
77002         at least Cygwin and Solaris.
77003         * modules/link-tests (Files): Remove unused file.
77004         (Depends-on): Add errno, sys_stat.
77005         (Makefile.am): Simplify.
77007 2009-09-08  Bruno Haible  <bruno@clisp.org>
77009         Work around towlower, towupper bug on mingw.
77010         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
77011         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
77012         * doc/posix-functions/towlower.texi: Mention the mingw bug.
77013         * doc/posix-functions/towupper.texi: Likewise.
77014         Reported by Eric Blake.
77016 2009-09-08  Jim Meyering  <meyering@redhat.com>
77018         build: don't try to run autoheader if we don't use it
77019         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
77020         is not used in configure.ac.
77022 2009-09-08  Eric Blake  <ebb9@byu.net>
77024         euidaccess: fix compilation error
77025         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
77027         rawmemchr: relax license
77028         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
77029         okay.
77030         Reported by Jim Meyering.
77032         mkfifoat: new module
77033         * modules/mkfifoat: New file.
77034         * lib/mkfifoat.c: Likewise.
77035         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
77036         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
77037         * modules/sys_stat (Makefile.am): Use them.
77038         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
77039         * MODULES.html.sh (File system functions): Mention module.
77040         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
77041         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
77042         * modules/mkfifoat-tests: New test.
77043         * tests/test-mkfifoat.c: Likewise.
77045         strchrnul: relax license
77046         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
77047         okay.
77048         Reported by Jim Meyering.
77050 2009-09-08  Eric Blake  <ebb9@byu.net>
77052         fstatat: fix compilation on Solaris
77053         * lib/fstatat.c (includes): Add fcntl.h.
77054         Reported by Pádraig Brady.
77056 2009-09-07  Eric Blake  <ebb9@byu.net>
77058         rename: modernize replacement
77059         * modules/rename (Depends-on): Add stdio.
77060         (configure.ac): Declare witness.
77061         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
77062         stdio take care of replacement.
77063         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
77064         * modules/stdio (Makefile.am): Substitute them.
77065         * lib/stdio.in.h (rename): Declare replacement.
77066         * lib/rename.c (includes): Allow cross-compilation to non-windows
77067         machines.
77068         * doc/posix-functions/rename.texi (rename): Improve
77069         documentation.
77071         stdio: sort witness names
77072         * modules/stdio (Makefile.am): Sort replacements.
77073         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
77074         * lib/stdio.in.h: Likewise.
77076         getcwd: minor cleanups
77077         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
77078         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
77080         openat: provide more convenience names
77081         * modules/faccessat (configure.ac): Add C witness.
77082         * lib/unistd.in.h (readlinkat): Fix typo.
77083         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
77084         convenience wrappers.
77085         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
77086         wrappers in syntax checks.
77088 2009-09-06  Eric Blake  <ebb9@byu.net>
77090         doc: fix comments in recent patches
77091         * lib/faccessat.c: Mention correct function.
77092         * lib/fchmodat.c: Likewise.
77093         * lib/fchownat.c: Likewise.
77094         * lib/symlinkat.c: Likewise.
77095         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
77096         constants.
77098         faccessat, symlinkat: continue cleanup of previous patch
77099         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
77100         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
77101         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
77102         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
77103         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
77104         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
77105         set.
77107 2009-09-06  Bruno Haible  <bruno@clisp.org>
77109         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
77110         (fstatat): Declare if GNULIB_FSTATAT is set.
77111         (mkdirat): Declare if GNULIB_MKDIRAT is set.
77112         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
77113         (unlinkat): Declare if GNULIB_UNLINKAT is set.
77114         * modules/fcntl-h (Files): Remove m4/openat.m4.
77115         * modules/sys_stat (Files): Remove m4/openat.m4.
77116         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
77117         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
77118         * modules/unistd (Files): Remove m4/openat.m4.
77119         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
77120         GNULIB_OPENAT.
77121         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
77122         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
77123         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
77124         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
77125         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
77126         gl_OPENAT_DEFAULTS.
77127         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
77128         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
77129         Don't require gl_OPENAT_DEFAULTS.
77130         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
77131         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
77132         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
77133         (gl_OPENAT_DEFAULTS): Remove macro.
77135 2009-09-06  Bruno Haible  <bruno@clisp.org>
77137         * modules/openat (configure.ac): Remove unneeded witness.
77139 2009-09-06  Bruno Haible  <bruno@clisp.org>
77141         Set errno to ENOSYS when a function is entirely unsupported.
77142         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
77143         EOPNOTSUPP.
77144         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
77145         * modules/chown (Depends-on): Remove errno.
77147 2009-09-06  Bruno Haible  <bruno@clisp.org>
77149         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
77151 2009-09-06  Bruno Haible  <bruno@clisp.org>
77153         * lib/sys_stat.in.h: Fix preprocessor command indentation.
77155 2009-09-06  Ben Pfaff  <blp@gnu.org>
77156             Bruno Haible  <bruno@clisp.org>
77158         Work around a glibc bug in strtok_r.
77159         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
77160         Undefine if UNDEFINE_STRTOK_R is set.
77161         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
77162         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
77163         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
77164         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
77165         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
77166         UNDEFINE_STRTOK_R.
77167         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
77169 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
77171         exclude: minor fix
77172         * lib/exclude.c: Include wctype.h
77174 2009-09-06  Akim Demaille  <demaille@gostai.com>
77176         bootstrap: improve error message
77177         * build-aux/bootstrap (find_tool): Upon failure, report the list
77178         of candidates.
77179         Honor the initial value of the envvar.
77181 2009-09-05  Eric Blake  <ebb9@byu.net>
77183         symlinkat: new module
77184         * modules/symlinkat: New file.
77185         * lib/symlinkat.c: Likewise.
77186         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
77187         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
77188         * modules/unistd (Makefile.am): Use them.
77189         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
77190         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
77191         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
77192         * MODULES.html.sh (File system functions): Mention module.
77193         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
77194         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
77195         * modules/symlinkat-tests: New test.
77196         * tests/test-symlinkat.c: Likewise.
77198         test-openat-safer: add more checks
77199         * tests/test-openat-safer.c (main): Check more code paths.
77201 2009-09-05  Jim Meyering  <meyering@redhat.com>
77203         syntax-check: detect unnecessary inclusion of openat.h
77204         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
77206 2009-09-05  Bruno Haible  <bruno@clisp.org>
77208         Support towlower, towupper.
77209         * doc/posix-functions/towlower.texi: Mention module wctype.
77210         * doc/posix-functions/towupper.texi: Likewise.
77211         * lib/wctype.in.h (towlower, towupper): New functions.
77212         * tests/test-wctype.c: Include stdio.h, stdlib.h.
77213         (ASSERT): New macro.
77214         (e): New variable.
77215         (main): Test also towlower, towupper. Test WEOF argument.
77216         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
77218 2009-09-05  Bruno Haible  <bruno@clisp.org>
77220         Fix conversion behaviour when the input is invalid.
77221         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
77222         mark occurring in first pass of indirect conversion.
77223         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
77224         input.
77225         Found by clang's static analyzer.
77227 2009-09-05  Bruno Haible  <bruno@clisp.org>
77229         * tests/test-striconveh.c (main): Test indirect conversion on platforms
77230         where direct conversion is possible.
77232 2009-09-04  Eric Blake  <ebb9@byu.net>
77234         openat: fail with ENOENT on empty name
77235         * lib/openat-proc.c (openat_proc_name): Special-case the empty
77236         buffer.
77238         link-follow: fix logic bug in prior patch
77239         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
77240         reversed sense of yes and no in prior patch.  Avoid confusing
77241         compilation failure with desired semantics.
77243         link-follow: accommodate mingw and cross-compilation
77244         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
77245         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
77246         cross-compilation results to -1, to make linkat easier to
77247         implement when cross-compiling.  Trivially support mingw.
77248         * modules/link-follow (configure.ac): Call new name.
77249         * NEWS: Mention this.
77251 2009-09-03  Eric Blake  <ebb9@byu.net>
77253         faccessat: compile replacement
77254         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
77255         needed.
77257         fts: fix compilation error
77258         * lib/fts.c (includes): Re-add "openat.h", for
77259         openat_needs_fchdir.
77261         faccessat: new module
77262         * modules/faccessat: New file.
77263         * lib/faccessat.c: Likewise.
77264         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
77265         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
77266         * modules/unistd (Makefile.am): Use it.
77267         * lib/unistd.in.h (faccessat): Declare it.
77268         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
77269         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
77270         * MODULES.html.sh (File system functions): Mention it.
77271         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
77272         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
77274         euidaccess: prefer POSIX over non-standard implementation
77275         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
77276         * lib/euidaccess.c (euidaccess): Use it if available.
77278         openat: make template easier to use
77279         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
77280         AT_FUNC_F2 to be undefined.
77281         (VALIDATE_FLAG): New macro; use it to reject bad flags.
77282         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
77283         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
77284         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
77285         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
77286         Likewise.
77287         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
77288         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
77289         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
77290         Likewise.
77292         openat: declare in POSIX headers
77293         * NEWS: Mention this.
77294         * modules/openat (configure.ac): Declare witnesses.
77295         (Depends-on): Add fcntl-h, sys_stat, unistd.
77296         (Include): Mention correct headers.
77297         * modules/fcntl-h (Depends-on): Add link-warning.
77298         (Files): Add openat.m4.
77299         (Makefile.am): Substitute witnesses.
77300         * modules/sys_stat (Files, Makefile.am): Likewise.
77301         * modules/unistd (Files, Makefile.am): Likewise.
77302         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
77303         (gl_OPENAT_DEFAULTS): New macro.
77304         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
77305         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
77306         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
77307         (SYS_STAT_H): Remove unused variable.
77308         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
77309         * lib/fcntl--.h (includes): Remove unneeded header.
77310         * lib/openat-safer.c (includes): Likewise.
77311         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
77312         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
77313         appropriate headers.
77314         (__OPENAT_PREFIX): Delete.
77315         * lib/fcntl.in.h (openat): Provide declaration.
77316         (AT_FDCWD): Fix Solaris bug.
77317         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
77318         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
77319         * lib/fchmodat.c (includes):  Adjust to find declaration.
77320         * lib/fchownat.c (includes): Likewise.
77321         * lib/mkdirat.c (includes): Likewise.
77322         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
77323         still visible.
77325 2009-09-02  Eric Blake  <ebb9@byu.net>
77327         errno: use consistently
77328         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
77329         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
77330         * lib/canonicalize.c (ELOOP): Likewise.
77331         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
77332         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
77333         * lib/lchown.c (EOPNOTSUPP): Likewise.
77334         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
77335         * lib/savewd.c (ESTALE): Likewise.
77336         * lib/settime.c (ENOSYS): Likewise.
77337         * lib/utimens.c (ENOSYS): Likewise.
77338         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
77339         * lib/chdir-safer.c (ELOOP): Likewise.
77340         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
77341         * modules/c-stack (Depends-on): Add errno.
77342         * modules/canonicalize (Depends-on): Likewise.
77343         * modules/chdir-safer (Depends-on): Likewise.
77344         * modules/fdopendir (Depends-on): Likewise.
77345         * modules/inet_ntop (Depends-on): Likewise.
77346         * modules/inet_pton (Depends-on): Likewise.
77347         * modules/lchown (Depends-on): Likewise.
77348         * modules/openat (Depends-on): Likewise.
77349         * modules/savewd (Depends-on): Likewise.
77350         * modules/settime (Depends-on): Likewise.
77351         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
77353         fts: avoid leaking fds
77354         * modules/fts (Depends-on): Add cloexec.
77355         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
77356         flag.
77358         fts: make directory fds more robust
77359         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
77360         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
77362         backupfile, chdir-long, fts, savedir: make safer
77363         * lib/backupfile.c (includes): Use "dirent--.h", since
77364         numbered_backup can write to stderr during readdir.
77365         * lib/savedir.c (includes): Likewise.
77366         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
77367         emulation can write to stderr on failure.
77368         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
77369         * lib/getcwd.c: Document why opendir_safer is unused.
77370         * lib/glob.c: Likewise.
77371         * lib/scandir.c: Likewise.
77372         * lib/openat-proc.c: Likewise, for open_safer.
77373         * modules/backupfile (Depends-on): Add dirent-safer.
77374         * modules/savedir (Depends-on): Likewise.
77375         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
77376         * modules/chdir-long (Depends-on): Add openat-safer.
77378         openat-safer: new module
77379         * modules/openat-safer: New file.
77380         * lib/openat-safer.c: Likewise.
77381         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
77382         * lib/fcntl-safer.h (openat_safer): Declare.
77383         * lib/fcntl--.h (openat): Override.
77384         * MODULES.html.sh (File descriptor based I/O): Mention it.
77385         * lib/openat.h: Add double-inclusion guards.
77386         * lib/openat.c (includes): Only include "fcntl-safer.h", not
77387         "fcntl--.h", so we can implement openat.
77388         * modules/openat-safer-tests: New test.
77389         * tests/test-openat-safer.c: New file.
77391         dirent-safer: new module
77392         * modules/dirent-safer: New file.
77393         * lib/dirent--.h: Likewise.
77394         * lib/dirent-safer.h: Likewise.
77395         * lib/opendir-safer.c: Likewise.
77396         * m4/dirent-safer.m4: Likewise.
77397         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
77398         * modules/dirent-safer-tests: New test.
77399         * tests/test-dirent-safer.c: New file.
77400         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
77402         fdopendir: optimize on mingw
77403         * lib/unistd.in.h (_gl_directory_name): New prototype.
77404         * lib/fchdir.c (_gl_directory_name): Implement it.
77405         (fchdir): Use it to simplify implementation.
77406         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
77407         fchdir, when available, to avoid calling [f]chdir().
77409         fdopendir: split into its own module
77410         * lib/openat.c (fdopendir): Move...
77411         * lib/fdopendir.c: ...into new file.
77412         * modules/fdopendir: New module.
77413         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
77414         * modules/openat (Depends-on): Add fdopendir.
77415         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
77416         fdopendir here.
77417         * modules/savedir (Depends-on): Only need fdopendir, not full
77418         openat.
77419         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
77420         * lib/openat.h (fdopendir): Drop prototype.
77421         * lib/dirent.in.h (fdopendir): Provide prototype.
77422         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
77423         * modules/dirent (Makefile.am): Substitute them.
77424         * MODULES.html.sh (File system functions): Mention it.
77425         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
77426         * modules/fdopendir-tests: New file.
77427         * tests/test-fdopendir.c: Likewise.
77429         fchdir: use more consistent macro convention
77430         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
77431         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
77432         REPLACE_FCHDIR, rather than relying on config.h macros.
77433         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
77434         inside a single make-time REPLACE_FCHDIR block, rather than using
77435         the config.h FCHDIR_REPLACEMENT.
77436         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
77437         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
77438         Manage fstat replacement.
77439         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
77440         REPLACE_FCHDIR.
77441         * modules/sys_stat (Files): Add m4/unistd_h.m4.
77442         (Makefile.am): Substitute REPLACE_FCHDIR.
77443         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
77444         FCHDIR_REPLACEMENT.
77445         * lib/dup-safer.c (dup_safer): Likewise.
77446         * lib/dup2.c (rpl_dup2): Likewise.
77447         * lib/dup3.c (rpl_dup3): Likewise.
77448         * lib/open.c (rpl_open): Likewise.
77450         fchdir: simplify error handling, and support dup3
77451         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
77452         stdbool, malloc-posix, realloc-posix.
77453         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
77454         (ensure_dirs_slot): Return false on allocation failure.
77455         (rpl_dup2): Delete.
77456         (_gl_register_dup): New function.
77457         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
77458         (_gl_register_fd): Close fd on allocation failure.
77459         * lib/fcntl.in.h (_gl_register_fd): Update signature.
77460         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
77461         prototype.
77462         (rpl_dup2_fchdir): Delete prototype.
77463         * lib/open.c (open): Update caller.
77464         * lib/dup2.c (dup2): Track fchdir metadata.
77465         * lib/dup3.c (dup3): Likewise.
77466         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
77467         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
77469 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77471         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
77472         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
77473         don't pass arguments to AC_OUTPUT.
77475 2009-09-02  Bruno Haible  <bruno@clisp.org>
77477         * modules/mkdtemp (License): Relicense under LGPLv2+.
77478         Reported by Paolo Bonzini.
77480 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77482         Replace uses of obsolete autoconf macros in Jim's modules.
77483         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
77484         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
77485         can evoke a warning from autoconf when run with -Wobsolete
77486         enabled.  They were declared obsolete for good reasons (see
77487         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
77488         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
77489         should not continue using the deprecated macros.
77490         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
77491         obsolete Autoconf macros with modern counterparts.
77492         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
77493         * m4/dos.m4 (gl_AC_DOS): Likewise.
77494         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
77495         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
77496         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
77497         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
77498         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
77499         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
77500         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
77501         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
77502         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
77503         Likewise.
77504         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
77505         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
77506         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
77507         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
77508         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
77509         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
77511 2009-09-01  Eric Blake  <ebb9@byu.net>
77513         fchdir: fix off-by-one bug in previous patch
77514         * lib/fchdir.c (rpl_fstat): Use correct bounds.
77515         (_gl_unregister_fd): Delete useless if.
77517 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
77519         maint.mk: sort the list of syntax-check rules
77520         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
77521         easier to get a sense of progress when the rules are run sequentially
77522         and take a long time.
77524 2009-09-01  Simon Josefsson  <simon@josefsson.org>
77526         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
77527         * modules/netinet_in: Likewise.
77528         * modules/sys_file: Likewise.
77529         * modules/sys_ioctl: Likewise.
77530         * modules/sys_select: Likewise.
77531         * modules/sys_socket: Likewise.
77532         * modules/sys_stat: Likewise.
77533         * modules/sys_time: Likewise.
77534         * modules/sys_times: Likewise.
77535         * modules/sys_utsname: Likewise.
77536         * modules/sys_wait: Likewise.
77538 2009-09-01  Jim Meyering  <meyering@redhat.com>
77540         fts: help ensure that return values are not ignored
77541         * lib/fts_.h (__GNUC_PREREQ): Define.
77542         (__attribute_warn_unused_result__): Define.
77543         (fts_children, fts_close, fts_open, fts_read): Declare with
77544         __attribute_warn_unused_result__.
77546         fts: fts_close now fails also when closing a dir file descriptor fails
77547         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
77548         and propagate to caller, along with errno.
77550         announce-gen: correct formatting in --help output
77551         * build-aux/announce-gen (usage): Move the one-line description in
77552         --help output "up", to where it belongs, just after Usage:.
77554 2009-08-31  Eric Blake  <ebb9@byu.net>
77556         fchdir: port to mingw
77557         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
77558         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
77559         opened, then use a substitute.
77560         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
77561         replacement.
77562         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
77563         (_gl_register_fd): No need to check stat if open already filters
77564         all directories.
77565         (fchdir): Fix error condition to match POSIX.
77566         * modules/fchdir (Depends-on): Add sys_stat.
77567         * doc/posix-functions/open.texi (open): Document the limitation.
77568         * modules/fchdir-tests: New file.
77569         * tests/test-fchdir.c: Likewise.
77571         canonicalize: allow cross-testing from cygwin to mingw
77572         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
77573         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
77574         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
77575         Likewise.
77576         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
77577         target does not support symlinks.
77578         * tests/test-canonicalize-lgpl.sh: Likewise.
77580         chown: avoid compilation warning on mingw
77581         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
77582         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
77583         mingw.
77584         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
77585         * modules/chown (Depends-on): Add errno.
77587 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
77589         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
77590         command.
77592 2009-08-31  Jim Meyering  <meyering@redhat.com>
77594         canonicalize: remove useless initialization
77595         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
77596         initialization of local, "end".
77598 2009-08-30  Bruno Haible  <bruno@clisp.org>
77600         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
77601         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
77602         ENOSYS.
77604 2009-08-30  Bruno Haible  <bruno@clisp.org>
77606         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
77607         /usr/xpg4/bin/tr when it exists.
77608         * tests/test-pipe-filter-gi1.sh: Likewise.
77610 2009-08-30  Bruno Haible  <bruno@clisp.org>
77612         Work around deficient /usr/bin/id program on Solaris.
77613         * tests/test-file-has-acl.sh (ID): New variable.
77614         * tests/test-set-mode-acl.sh (ID): Likewise.
77615         * tests/test-copy-acl.sh (ID): Likewise.
77616         * tests/test-copy-file.sh (ID): Likewise.
77618 2009-08-30  Bruno Haible  <bruno@clisp.org>
77620         New module 'xstriconveh'.
77621         * lib/xstriconveh.h: New file.
77622         * lib/xstriconveh.c: New file.
77623         * modules/xstriconveh: New file.
77625 2009-08-30  Bruno Haible  <bruno@clisp.org>
77627         Make it easier to use mem_cd_iconveh.
77628         * lib/striconveh.h (iconveh_t): New type.
77629         (iconveh_open, iconveh_close): New declarations.
77630         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
77631         with a single 'const iconveh_t *' argument.
77632         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
77633         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
77634         with a single 'const iconveh_t *' argument.
77635         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
77636         * tests/test-striconveh.c (main): Update.
77637         * NEWS: Mention the change.
77639 2009-08-30  Bruno Haible  <bruno@clisp.org>
77641         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
77642         problem.
77644 2009-08-30  Bruno Haible  <bruno@clisp.org>
77646         Work around iconv_open problem on Solaris.
77647         * lib/iconv_open-solaris.gperf: New file.
77648         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
77649         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
77650         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
77651         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
77652         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
77653         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
77655 2009-08-29  Jim Meyering  <meyering@redhat.com>
77657         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
77658         * top/maint.mk (cvs-check): Remove target; it was just an alias
77659         to the better-named vc-diff-check.
77660         (maintainer-distcheck): Remove rule.  It was used only from
77661         the (alpha/beta/major) target, and all of its commands but one
77662         were coreutils-specific.
77663         (vc-dist): Remove rule.
77664         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
77665         Run vc-diff-check, not vc-dist.
77666         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
77668 2009-08-27  Bruno Haible  <bruno@clisp.org>
77670         * tests/test-bitrotate.c (main): Remove test that uses a shift count
77671         of 0.
77673 2009-08-27  Bruno Haible  <bruno@clisp.org>
77675         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
77676         compilers.
77677         * doc/func.texi: Document the SunPRO C bug.
77679 2009-08-27  Bruno Haible  <bruno@clisp.org>
77681         Fix link error on Solaris.
77682         * tests/test-parse-duration.c (xstrdup): Remove function.
77684 2009-08-26  Pádraig Brady  <P@draigbrady.com>
77686         ignore-value: handle pointer types, too
77687         * lib/ignore-value.h (__attribute__): Remove definition.
77688         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
77689         of a more concise and more-often effective "(void) i" statement.
77690         (ignore_ptr): New function to suppress warnings from functions that
77691         return pointers, and to make it explicit that one function doesn't
77692         handle all cases.
77694 2009-08-25  Bruno Haible  <bruno@clisp.org>
77696         dup2: work around a Linux bug.
77697         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
77698         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
77699         * doc/posix-functions/dup2.texi: Mention the Linux bug.
77700         Reported by Simon Josefsson.
77702 2009-08-25  Jim Meyering  <meyering@redhat.com>
77704         libguestfs uses gnulib
77705         * users.txt: Add libguestfs.
77707 2009-08-24  Eric Blake  <ebb9@byu.net>
77709         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
77710         * lib/pipe2.c (includes): Add binary-io.h.
77711         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
77713 2009-08-24  Bruno Haible  <bruno@clisp.org>
77715         Tolerate declared but missing accept4 syscall.
77716         * lib/accept4.c (accept4): Invoke original accept4 function first, if
77717         available.
77718         * lib/sys_socket.in.h (accept4): If the function is already present,
77719         override it.
77720         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
77721         * modules/accept4 (Makefile.am): Compile accept4.c always.
77722         Reported by Paolo Bonzini and Eric Blake.
77724 2009-08-23  Bruno Haible  <bruno@clisp.org>
77726         New module 'accept4'.
77727         * lib/sys_socket.in.h (accept4): New declaration.
77728         * lib/accept4.c: New file.
77729         * m4/accept4.m4: New file.
77730         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
77731         GNULIB_ACCEPT4, HAVE_ACCEPT4.
77732         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
77733         HAVE_ACCEPT4.
77734         * modules/accept4: New file.
77735         * doc/glibc-functions/accept4.texi: Mention the new module.
77737 2009-08-24  Jim Meyering  <meyering@redhat.com>
77739         progname: also set global program_invocation_name, when possible
77740         Before this change, a libtool-enabled program that calls glibc's
77741         error function would report the program name as
77742         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
77743         * modules/progname (configure.ac): Check for a declaration of
77744         program_invocation_name.
77745         * lib/progname.c:  Include <errno.h>.
77746         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
77747         Set program_invocation_name.
77749 2009-08-23  Bruno Haible  <bruno@clisp.org>
77751         * lib/dup3.c: Include <string.h>.
77753 2009-08-23  Bruno Haible  <bruno@clisp.org>
77755         * lib/dup3.c (dup3): Test only once whether the system actually exists.
77756         * lib/pipe2.c (pipe2): Likewise.
77757         Suggested by Eric Blake.
77759 2009-08-23  Bruno Haible  <bruno@clisp.org>
77761         Tolerate declared but missing dup3 syscall.
77762         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
77763         * lib/unistd.in.h (dup3): If the function is already present,
77764         override it.
77765         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
77766         * modules/dup3 (Makefile.am): Compile dup3.c always.
77767         Reported by Paolo Bonzini.
77769 2009-08-23  Bruno Haible  <bruno@clisp.org>
77771         Tolerate declared but missing pipe2 syscall.
77772         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
77773         available.
77774         * lib/unistd.in.h (pipe2): If the function is already present,
77775         override it.
77776         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
77777         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
77778         Reported by Paolo Bonzini.
77780 2009-08-23  Bruno Haible  <bruno@clisp.org>
77782         * lib/pipe2.c (pipe2): Move #ifs inside function.
77784 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
77786         quotearg: document limitations of quote_these_too
77787         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
77788         those limitations are created.
77789         * lib/quotearg.h (set_char_quoting): Document that digits and
77790         letters that are special after backslash are not permitted.
77791         (quotearg_char): Cross-reference set_char_quoting documentation.
77793 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
77795         quotearg: implement custom_quoting_style
77796         * lib/quotearg.c: (struct quoting_options): Add left_quote and
77797         right_quote fields.
77798         (set_custom_quoting): New public function.
77799         (quotearg_buffer_restyled): Add left_quote and right_quote
77800         arguments, handle them very much like locale quoting, and update
77801         all uses.
77802         (quotearg_n_custom): New public function.
77803         (quotearg_n_custom_mem): New public function.
77804         (quotearg_custom): New public function.
77805         (quotearg_custom_mem): New public function.
77806         * lib/quotearg.h: Prototype and document new public functions.
77807         (enum quoting_style): For escape_quoting_style and
77808         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
77809         ignored even though they're otherwise like c_quoting_style.
77810         Add custom_quoting_style member and document with comparison to
77811         clocale_quoting_style.
77812         * tests/test-quotearg.c (custom_quotes): New array.
77813         (custom_results): New array.
77814         (main): Extend to test custom quoting.
77816 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
77818         quotearg: fix right quote escaping when it's in quote_these_too
77819         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
77820         quote, be sure to prepend only one backslash.
77821         * tests/test-quotearg.c (use_quote_double_quotes): New function.
77822         (main): Test it.
77824 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
77826         quotearg-tests: test escaping of embedded locale quotes
77827         * tests/test-quotearg.c (struct result_strings): Add member for
77828         new input.
77829         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
77830         (inputs): Add new input.
77831         (results_g): Add expected results.
77832         (flag_results): Likewise.
77833         (locale_results): Likewise.
77834         (compare_strings): Check those.
77836 2009-08-23  Bruno Haible  <bruno@clisp.org>
77838         Tests for module 'dup3'.
77839         * modules/dup3-tests: New file.
77840         * tests/test-dup3.c: New file.
77842         New module 'dup3'.
77843         * lib/unistd.in.h (dup3): New declaration.
77844         * lib/dup3.c: New file.
77845         * m4/dup3.m4: New file.
77846         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
77847         HAVE_DUP3.
77848         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
77849         * modules/dup3: New file.
77850         * doc/glibc-functions/dup3.texi: Mention the new module.
77852 2009-08-23  Bruno Haible  <bruno@clisp.org>
77854         Tweak the dup2 test.
77855         * tests/test-dup2.c (main): Create the test file empty. Verify that an
77856         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
77857         the test file is still empty. Fix argument order of lseek.
77859 2009-08-23  Bruno Haible  <bruno@clisp.org>
77861         Avoid test link errors when the modules getopt-gnu, gettext are used.
77862         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
77863         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
77865 2009-08-23  Bruno Haible  <bruno@clisp.org>
77867         Fix getdtablesize() on mingw.
77868         * lib/getdtablesize.c (getdtablesize): Implement differently.
77869         * lib/unistd.in.h (getdtablesize): Improve comment.
77871 2009-08-23  Bruno Haible  <bruno@clisp.org>
77873         New module 'mkostemp'.
77874         Based on Ulrich Drepper's 2007-08-10 change in glibc.
77875         * lib/stdlib.in.h (mksotemp): New declaration.
77876         * lib/mkostemp.c: New file, from glibc with modifications.
77877         * lib/tempname.h (GT_FILE): Remove outdated comment.
77878         (gen_tempname): Add flags argument.
77879         * lib/tempname.c (__GT_BIGFILE): Remove macro.
77880         (__GT_FILE): Map to 1.
77881         (small_open, large_open): Remove macros.
77882         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
77883         * lib/mkstemp.c (mkstemp): Update.
77884         * lib/mkdtemp.c (mkdtemp): Likewise.
77885         * m4/mkostemp.m4: New file.
77886         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
77887         HAVE_MKOSTEMP.
77888         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
77889         HAVE_MKOSTEMP.
77890         * modules/mkostemp: New file, based on modules/mkstemp.
77891         * doc/glibc-functions/mkostemp.texi: Mention the new module.
77892         * NEWS: Mention the change.
77894 2009-08-23  Bruno Haible  <bruno@clisp.org>
77896         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
77897         Reported by Eric Blake.
77899 2009-08-23  Bruno Haible  <bruno@clisp.org>
77901         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
77902         Reported by Eric Blake.
77904 2009-08-23  Bruno Haible  <bruno@clisp.org>
77906         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
77907         * modules/pipe2 (Depends-on): Likewise.
77909 2009-08-23  Eric Blake  <ebb9@byu.net>
77911         fcntl-h: add O_TTY_INIT support
77912         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
77913         * tests/test-fcntl-h.c (o): Test it.
77914         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
77916         fcntl-h: rename from fcntl, in preparation for fcntl(2)
77917         * modules/fcntl: Move <fcntl.h> header replacement...
77918         * modules/fcntl-h: ...to new name, so as not to collide with
77919         like-named function.
77920         * tests/test-fcntl.c: Rename...
77921         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
77922         * modules/fcntl-tests: Rename...
77923         * modules/fcntl-h-tests: ...to this.  Update test file name.
77924         * modules/chdir-long (Depends-on): Update clients.
77925         * modules/chdir-safer (Depends-on): Likewise.
77926         * modules/fcntl-safer (Depends-on): Likewise.
77927         * modules/fts (Depends-on): Likewise.
77928         * modules/mkancesdirs (Depends-on): Likewise.
77929         * modules/mkdir-p (Depends-on): Likewise.
77930         * modules/open (Depends-on): Likewise.
77931         * modules/savewd (Depends-on): Likewise.
77932         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
77933         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
77935 2009-08-22  Bruno Haible  <bruno@clisp.org>
77937         * modules/binary-io (License): Relicense under LGPL.
77938         * modules/pipe2 (License): Likewise.
77940 2009-08-22  Bruno Haible  <bruno@clisp.org>
77942         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
77943         return value.
77944         * lib/pipe-filter-gi.c (filter_init): Likewise.
77945         Reported by Eric Blake.
77947 2009-08-22  Bruno Haible  <bruno@clisp.org>
77949         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
77950         * modules/pipe (Depends-on): Add pipe2.
77952 2009-08-22  Bruno Haible  <bruno@clisp.org>
77954         Tests for module 'pipe2'.
77955         * modules/pipe2-tests: New file.
77956         * tests/test-pipe2.c: New file.
77958         New module 'pipe2'.
77959         * lib/unistd.in.h (pipe2): New declaration.
77960         * lib/pipe2.c: New file.
77961         * m4/pipe2.m4: New file.
77962         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
77963         HAVE_PIPE2.
77964         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
77965         * modules/pipe2: New file.
77966         * doc/glibc-functions/pipe2.texi: Mention the new module.
77968 2009-08-22  Bruno Haible  <bruno@clisp.org>
77970         Reference some new glibc functions.
77971         * doc/glibc-functions/accept4.texi: New file.
77972         * doc/glibc-functions/dup3.texi: New file.
77973         * doc/glibc-functions/mkostemp.texi: New file.
77974         * doc/glibc-functions/pipe2.texi: New file.
77975         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
77976         (Glibc sys/socket.h): Refer to accept4.
77977         (Glibc unistd.h): Refer to dup3, pipe2.
77978         Reported by Eric Blake.
77980 2009-08-22  Jim Meyering  <meyering@redhat.com>
77981             Bruno Haible  <bruno@clisp.org>
77983         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
77984         This makes it so packages using automake-1.11's silent-rules option
77985         can print e.g., a single "GEN    configmake.h" line, rather than
77986         the 30+ statements that perform the job.  If you want to see the
77987         actual commands, you can still run "make V=1".
77988         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
77989         so that make output is abbreviated when those variables are defined
77990         appropriately.
77991         * modules/argz: Likewise.
77992         * modules/arpa_inet: Likewise.
77993         * modules/byteswap: Likewise.
77994         * modules/configmake: Likewise.
77995         * modules/dirent: Likewise.
77996         * modules/errno: Likewise.
77997         * modules/fcntl: Likewise.
77998         * modules/float: Likewise.
77999         * modules/fnmatch: Likewise.
78000         * modules/getopt-posix: Likewise.
78001         * modules/glob: Likewise.
78002         * modules/iconv_open: Likewise.
78003         * modules/inttypes: Likewise.
78004         * modules/localcharset: Likewise.
78005         * modules/locale: Likewise.
78006         * modules/math: Likewise.
78007         * modules/netdb: Likewise.
78008         * modules/netinet_in: Likewise.
78009         * modules/poll: Likewise.
78010         * modules/posix_spawnp-tests: Likewise.
78011         * modules/sched: Likewise.
78012         * modules/search: Likewise.
78013         * modules/selinux-h: Likewise.
78014         * modules/signal: Likewise.
78015         * modules/spawn: Likewise.
78016         * modules/stdarg: Likewise.
78017         * modules/stdbool: Likewise.
78018         * modules/stddef: Likewise.
78019         * modules/stdint: Likewise.
78020         * modules/stdio: Likewise.
78021         * modules/stdlib: Likewise.
78022         * modules/string: Likewise.
78023         * modules/strings: Likewise.
78024         * modules/sys_file: Likewise.
78025         * modules/sys_ioctl: Likewise.
78026         * modules/sys_select: Likewise.
78027         * modules/sys_socket: Likewise.
78028         * modules/sys_stat: Likewise.
78029         * modules/sys_time: Likewise.
78030         * modules/sys_times: Likewise.
78031         * modules/sys_utsname: Likewise.
78032         * modules/sys_wait: Likewise.
78033         * modules/sysexits: Likewise.
78034         * modules/time: Likewise.
78035         * modules/unistd: Likewise.
78036         * modules/wchar: Likewise.
78037         * modules/wctype: Likewise.
78039 2009-08-22  Jim Meyering  <meyering@redhat.com>
78041         announce-gen: detect write failure
78042         * build-aux/announce-gen: Add Coda at end.
78043         Remove equivalent-but-more-verbose block at top.
78045 2009-08-19  Akim Demaille  <demaille@gostai.com>
78047         bootstrap: --help to stdout.
78048         * bootstrap (usage): Don't send --help to stderr.
78049         Use a here doc instead of a long string.
78051 2009-08-21  Eric Blake  <ebb9@byu.net>
78053         test-popen-safer: split from test-popen
78054         * tests/test-popen.c (main): Move...
78055         * tests/test-popen.h: ...into new file.
78056         * tests/test-popen-safer2.c: New file.
78057         * modules/popen-tests (Files): Add test-popen.h.
78058         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
78059         Suggested by Bruno Haible.
78061         test-fcntl-safer: split from test-open
78062         * tests/test-open.c (main): Move...
78063         * tests/test-open.h: ...into new file.
78064         * tests/test-fcntl-safer.c: New file.
78065         * modules/open-tests (Files): Add test-open.h.
78066         * modules/fcntl-safer-tests: New file.
78067         Suggested by Bruno Haible.
78069         test-fopen-safer: split from test-fopen
78070         * tests/test-fopen.c (main): Move...
78071         * tests/test-fopen.h: ...into new file.
78072         * tests/test-fopen-safer.c: New file.
78073         * modules/fopen-tests (Files): Add test-fopen.h.
78074         * modules/fopen-safer-tests: New file.
78075         Suggested by Bruno Haible.
78077 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
78079         popen-safer: test O_CLOEXEC at run-time.
78080         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
78082 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
78084         fcntl: move more flags to the header
78085         * lib/cloexec.c: Do not define FD_CLOEXEC here.
78086         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
78087         * lib/fcntl.in.h: Do both things here.
78089 2009-08-21  Jim Meyering  <meyering@redhat.com>
78091         consistently remove $@-t before redirecting to it
78092         * modules/argz: Remove $@-t and $@ before redirecting to the former.
78093         * modules/alloca-opt: Likewise.
78094         * modules/byteswap: Likewise.
78095         * modules/fnmatch: Likewise.
78096         * modules/getopt-posix: Likewise.
78097         * modules/glob: Likewise.
78098         * modules/poll: Likewise.
78099         * modules/posix_spawnp-tests: Likewise.
78100         * modules/sys_socket: Likewise.
78101         * modules/sysexits: Likewise.
78103 2009-08-21  Eric Blake  <ebb9@byu.net>
78105         popen: simplify access to original popen
78106         * lib/popen.c (rpl_popen): No need to worry about popen being a
78107         macro.
78108         Reported by Bruno Haible.
78110 2009-08-20  Eric Blake  <ebb9@byu.net>
78112         build: avoid some compiler warnings
78113         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
78114         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
78115         type.
78116         (new_exclude_segment, excluded_file_pattern_p)
78117         (excluded_file_name_p): Reduce scope.
78118         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
78119         old-style declaration.
78121 2009-08-20  Simon Josefsson  <simon@josefsson.org>
78123         * tests/test-exclude1.sh: Handle Windows EOL.
78124         * tests/test-exclude2.sh: Likewise.
78125         * tests/test-exclude3.sh: Likewise.
78126         * tests/test-exclude4.sh: Likewise.
78127         * tests/test-exclude5.sh: Likewise.
78128         * tests/test-exclude6.sh: Likewise.
78129         * tests/test-exclude7.sh: Likewise.
78131 2009-08-19  Akim Demaille  <demaille@gostai.com>
78133         bootstrap: find sha1sum when named gsha1sum.
78134         * bootstrap (find_tool): New.
78135         ($SHA1SUM): New.
78136         Use it.
78138 2009-08-20  Jim Meyering  <meyering@redhat.com>
78140         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
78141         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
78142         expression that converts "." in a file name to "\." in the resulting
78143         regexp.  Start with a dummy statement, so that prior shell variable
78144         definitions are expanded portably.  Reported by Simon Josefsson.
78146 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
78148         Fix polling for writeability of a screen buffer.
78149         * lib/poll.c: Distinguish input and screen buffers for the
78150         Win32 implementation.
78151         * lib/select.c: Likewise.
78153 2009-08-19  Eric Blake  <ebb9@byu.net>
78155         popen-safer: prevent popen from clobbering std descriptors
78156         * modules/popen-safer: New file.
78157         * lib/popen-safer.c: Likewise.
78158         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
78159         * lib/stdio--.h (popen): Provide override.
78160         * lib/stdio-safer.h (popen_safer): Provide declaration.
78161         * tests/test-popen.c (includes): Partially test this.
78162         * modules/popen-safer-tests: New file, for more tests.
78163         * tests/test-popen-safer.c: Likewise.
78164         * MODULES.html.sh (file stream based Input/Output): Mention it.
78166         tests: test some of the *-safer modules
78167         * modules/fopen-safer (Depends-on): Add fopen.
78168         * modules/fcntl-safer (Depends-on): Add fcntl.
78169         * modules/stdlib-safer (Depends-on): Add stdlib.
78170         (configure.ac): Set indicator.
78171         * modules/unistd-safer (configure.ac): Likewise.
78172         * modules/tmpfile-safer (configure.ac): Likewise.
78173         (Depends-on): Add tmpfile.
78174         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
78175         active.
78176         * tests/test-fopen.c (includes): Test safer versions when they are
78177         in use.
78178         * tests/test-open.c (includes): Likewise.
78180         popen: fix cygwin 1.5 bug when stdin closed
78181         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
78182         * modules/popen: New file.
78183         * modules/popen-tests: Likewise.
78184         * tests/test-popen.c: Likewise.
78185         * m4/popen.m4: Likewise.
78186         * lib/popen.c: Likewise.
78187         * lib/stdio.in.h (popen): New declaration.
78188         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
78189         * modules/stdio (Makefile.am): Likewise.
78190         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
78192 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
78194         maint.mk: give full control over update-copyright exclusions
78195         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
78196         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
78197         (update-copyright): Don't force inclusion of top-level
78198         ChangeLog.  Don't force exclusion of all COPYING files, but make
78199         them the default exclusion instead.
78201 2009-08-16  Bruno Haible  <bruno@clisp.org>
78203         Fix test failures on Solaris 10.
78204         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
78205         tests when Solaris iconv() is used.
78206         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
78207         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
78208         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
78209         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
78210         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
78212 2009-08-16  Bruno Haible  <bruno@clisp.org>
78214         Fix test failures on Solaris 10.
78215         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
78216         'tr' program and pass it as first argument.
78217         * tests/test-pipe-filter-gi1.sh: Likewise.
78218         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
78219         program as first argument.
78220         * tests/test-pipe-filter-gi1.c (main): Likewise.
78222 2009-08-16  Eric Blake  <ebb9@byu.net>
78224         fpurge: fix previous commits
78225         * modules/fpurge (Makefile.am): Make replacement conditional,
78226         partially reverting 2007-04-29 change; missed in previous
78227         attempt.
78228         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
78229         is missing.
78231 2009-08-16  Bruno Haible  <bruno@clisp.org>
78233         Clarify fpurge's effect on the file position.
78234         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
78235         * tests/test-fpurge.c (main): Make a second pass for checking the file
78236         position.
78238 2009-08-16  Bruno Haible  <bruno@clisp.org>
78240         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
78241         declaration of fpurge is missing.
78242         * tests/test-fpurge.c (main): Check that the file has not more contents
78243         than expected. Close the file before removing it.
78245 2009-08-15  Eric Blake  <ebb9@byu.net>
78247         fpurge: don't wrap working cygwin implementation
78248         * lib/fpurge.c (fpurge): Fix comment typo.
78249         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
78250         1.7 to avoid replacement.
78251         * tests/test-fpurge.c (main): Enhance test.
78253 2009-08-15  Eric Blake  <ebb9@byu.net>
78254         and Jim Meyering  <meyering@redhat.com>
78256         test-update-copyright: skip if perl is insufficient
78257         * tests/test-update-copyright.sh: Failure to run maintainer tool
78258         should not cause testsuite failure on cygwin 1.5.
78260 2009-08-14  Eric Blake  <ebb9@byu.net>
78262         doc: mention more functions added in cygwin 1.7.0
78263         * doc/posix-headers/limits.texi (limits.h): Update for recent
78264         cygwin additions.
78265         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
78266         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
78267         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
78268         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
78269         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
78271 2009-08-14  Eric Blake  <ebb9@byu.net>
78273         maint.mk: simplify update-copyright rule
78274         * top/maint.mk (update-copyright-local): Delete, and document how
78275         to do it in cfg.mk instead.
78276         (update-copyright-exclude-regexp): Delete, and document how to do
78277         it in .x-update-copyright instead.
78278         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
78279         exclude ChangeLog.
78281 2009-08-14  Bruno Haible  <bruno@clisp.org>
78283         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
78285 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
78287         maint.mk: support update-copyright-env
78288         * top/maint.mk (update-copyright-env): Define place-holder.
78289         (update-copyright): Expand $(update-copyright-env) before
78290         invoking update-copyright.
78292 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
78294         update-copyright: implement forced reformatting
78295         * build-aux/update-copyright: Implement and document
78296         UPDATE_COPYRIGHT_FORCE.
78297         * tests/test-update-copyright.sh: Test it.
78299 2009-08-14  Eric Blake  <ebb9@byu.net>
78300         and Bruno Haible  <bruno@clisp.org>
78302         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
78303         * tests/test-locale.c: Revert previous patch related to NULL.
78304         * tests/test-stdio.c: Likewise.
78305         * tests/test-stdlib.c: Likewise.
78306         * tests/test-string.c: Likewise.
78307         * tests/test-unistd.c: Likewise.
78308         * modules/time-tests (Depends-on): Add verify.
78309         * modules/wchar-tests (Depends-on): Likewise.
78310         * tests/test-time.c: Test for NULL compliance.
78311         * tests/test-wchar.c: Likewise.
78312         * modules/locale (Depends-on): Add stddef.
78313         * modules/stdio (Depends-on): Likewise.
78314         * modules/stdlib (Depends-on): Likewise.
78315         * modules/string (Depends-on): Likewise.
78316         * modules/time (Depends-on): Likewise.
78317         * modules/unistd (Depends-on): Likewise.
78318         * modules/wchar (Depends-on): Likewise.
78319         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
78320         * lib/stdlib.in.h (includes): Likewise.
78321         * lib/string.in.h (includes): Likewise.
78322         * lib/time.in.h (includes): Likewise.
78323         * lib/unistd.in.h (includes): Likewise.
78324         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
78325         replaced.
78326         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
78327         * m4/stddef_h.m4: New file.
78328         * modules/stddef: Likewise.
78329         * lib/stddef.in.h: Likewise.
78330         * modules/stddef-tests: Likewise.
78331         * tests/test-stddef.c: Likewise.
78332         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
78333         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
78334         * doc/posix-headers/locale.texi (locale.h): Likewise.
78335         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
78336         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
78337         * doc/posix-headers/string.texi (string.h): Likewise.
78338         * doc/posix-headers/time.texi (time.h): Likewise.
78339         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
78340         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
78342 2009-08-14  Eric Blake  <ebb9@byu.net>
78344         doc: improve git diff of texinfo files
78345         * .gitattributes: Add rule for *.texi files, with hint on how to
78346         use it.
78347         Copied from m4, and based on a report by Bruno Haible.
78349 2009-08-14  Bruno Haible  <bruno@clisp.org>
78351         Disable multithread support by default on Cygwin 1.5.x for real.
78352         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
78354 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
78356         update-copyright: much ado about intervals
78357         * build-aux/update-copyright: Implement and document
78358         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
78359         of copyright year intervals.
78360         Also, document UPDATE_COPYRIGHT_YEAR.
78361         * tests/test-update-copyright.sh: Test it.
78363         update-copyright: convert 2-digit to 4-digit years
78364         * build-aux/update-copyright: Implement and document.
78365         * tests/test-update-copyright.sh: Update.
78367 2009-08-14  Jim Meyering  <meyering@redhat.com>
78369         test-exclude: avoid coreutils "make check" failure
78370         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
78371         just as in test-argmatch.c.
78373 2009-08-13  Eric Blake  <ebb9@byu.net>
78375         test-dup2: fix bad assumption
78376         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
78377         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
78379         test-version-etc: fix CRLF portability issue
78380         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
78381         recognize \r.
78382         * tests/test-argp-version-etc-1.sh: Likewise.
78384         getopt: update client modules
78385         * modules/argp (Depends-on): Use getopt-gnu.
78386         * modules/git-merge-changelog (Depends-on): Likewise.
78387         * modules/long-options (Depends-on): Likewise.
78388         * modules/xstrtol (Depends-on): Likewise.
78390 2009-08-13  Simon Josefsson  <simon@josefsson.org>
78392         * tests/test-version-etc.sh: Don't fail on different
78393         project/version.  Don't fail on CRLF differences.  Rewrite to use
78394         multiple -e instead of multiple sed forks, suggested by Eric Blake
78395         <ebb9@byu.net>.
78396         * tests/test-argp-version-etc-1.sh: Likewise.
78398 2009-08-13  Simon Josefsson  <simon@josefsson.org>
78400         * tests/test-version-etc.sh: Don't fail on different
78401         project/version.
78403 2009-08-12  Bruno Haible  <bruno@clisp.org>
78405         Tests for modules 'getopt-posix', 'getopt-gnu'.
78406         * modules/getopt-posix-tests: New file.
78407         * tests/test-getopt.c: New file.
78408         * tests/test-getopt.h: New file.
78409         * tests/test-getopt_long.h: New file.
78411         New modules 'getopt-posix', 'getopt-gnu'.
78412         * modules/getopt-gnu: New file, renamed from modules/getopt.
78413         * modules/getopt-posix: New file.
78414         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
78415         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
78416         (gl_GETOPT): Remove macro.
78417         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
78418         Disable the test against BSD systems that declare optreset. Test
78419         against mingw bug. Test against lack of support of optional arguments
78420         on many platforms.
78421         * doc/glibc-headers/getopt.texi: Update module name and list of
78422         relevant platforms.
78423         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
78424         'getopt-gnu' and more portability problems.
78425         * NEWS: Mention the changes.
78427 2009-08-12  Bruno Haible  <bruno@clisp.org>
78429         Ensure that optarg etc. get declared by <unistd.h>.
78430         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
78431         AC_USE_SYSTEM_EXTENSIONS.
78432         * modules/getopt (Depends-on): Add 'extensions'.
78434 2009-08-12  Bruno Haible  <bruno@clisp.org>
78436         Avoid test link errors.
78437         * modules/pipe-filter-ii-tests (Makefile.am): Define
78438         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
78439         * modules/pipe-filter-gi-tests (Makefile.am): Define
78440         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
78441         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
78443 2009-08-12  Bruno Haible  <bruno@clisp.org>
78445         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
78446         gl_GETOPT_SUBSTITUTE before.
78447         (gl_GETOPT): Use it.
78448         * m4/argp.m4 (gl_ARGP): Update.
78449         Reported by Sergey Poznyakoff.
78451         * m4/getopt.m4: Reorder macros.
78452         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
78453         (gl_GETOPT_SUBSTITUTE): Remove macro.
78455 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
78457         Minor improvement in gitlog-to-changelog
78459         * build-aux/gitlog-to-changelog: New option `--format' makes
78460         output format string configurable.
78462 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
78464         Optimize exclude: use hash tables for non-wildcard patterns.
78466         * lib/exclude.c: Include hash.h and mbuiter.h
78467         (struct exclude_pattern, exclude_segment): New data types.
78468         (struct exclude): Rewrite.
78469         (fnmatch_pattern_has_wildcards): New function.
78470         (new_exclude_segment, free_exclude_segment): New functions.
78471         (excluded_file_pattern_p, excluded_file_name_p): New functions.
78472         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
78473         * lib/exclude.h (is_fnmatch_pattern): New prototype.
78474         * modules/exclude: Depend on hash and mbuiter.
78476         * modules/exclude-tests: New file.
78477         * tests/test-exclude.c: New file.
78478         * tests/test-exclude1.sh: New file.
78479         * tests/test-exclude2.sh: New file.
78480         * tests/test-exclude3.sh: New file.
78481         * tests/test-exclude4.sh: New file.
78482         * tests/test-exclude5.sh: New file.
78483         * tests/test-exclude6.sh: New file.
78484         * tests/test-exclude7.sh: New file.
78486 2009-08-12  Bruno Haible  <bruno@clisp.org>
78488         Ensure that getopt() gets declared by <unistd.h>.
78489         * lib/unistd.in.h: Conditionally include getopt.h.
78490         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
78491         Set GNULIB_UNISTD_H_GETOPT.
78492         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
78493         GNULIB_UNISTD_H_GETOPT.
78494         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
78496 2009-08-12  Bruno Haible  <bruno@clisp.org>
78498         Clarify logic.
78499         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
78500         gl_replace_getopt instead of GETOPT_H.
78502 2009-08-12  Bruno Haible  <bruno@clisp.org>
78504         * m4/getopt.m4: Add comments.
78506 2009-08-12  Bruno Haible  <bruno@clisp.org>
78508         Disable multithread support by default on Cygwin 1.5.x.
78509         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
78510         set gl_use_threads=no if not specified otherwise.
78512 2009-08-11  Bruno Haible  <bruno@clisp.org>
78514         Avoid compilation error on NetBSD 5.0.
78515         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
78516         * tests/test-stdio.c: Likewise.
78517         * tests/test-stdlib.c: Likewise.
78518         * tests/test-string.c: Likewise.
78519         * tests/test-unistd.c: Likewise.
78520         Reported by Greg Troxel <gdt@ir.bbn.com>
78521         at <https://savannah.gnu.org/support/?106973>.
78523 2009-08-11  Bruno Haible  <bruno@clisp.org>
78525         * modules/dup2-tests (Depends-on): Remove close.
78527         Undo 2009-07-19 commit.
78528         * modules/acl-tests (Depends-on): Remove close.
78529         * modules/binary-io-tests (Depends-on): Likewise.
78530         * modules/closein-tests (Depends-on): Likewise.
78531         * modules/flock-tests (Depends-on): Likewise.
78532         * modules/fsync-tests (Depends-on): Likewise.
78533         * modules/lseek-tests (Depends-on): Likewise.
78534         * modules/pipe-tests (Depends-on): Likewise.
78535         * modules/posix_spawn-tests (Depends-on): Likewise.
78536         * modules/posix_spawnp-tests (Depends-on): Likewise.
78537         * modules/stat-time-tests (Depends-on): Likewise.
78538         * modules/yesno-tests (Depends-on): Likewise.
78540 2009-08-10  Bruno Haible  <bruno@clisp.org>
78542         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
78544 2009-08-10  Bruno Haible  <bruno@clisp.org>
78546         Fix a gcc warning.
78547         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
78549 2009-08-10  Bruno Haible  <bruno@clisp.org>
78551         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
78552         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
78553         not only the first time.
78554         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
78555         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
78556         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
78557         is 1, not only the first time.
78559 2009-08-10  Bruno Haible  <bruno@clisp.org>
78561         Make it possible to use module 'gethostname' without module 'close'.
78562         * lib/unistd.in.h (close): Evoke a link error only if
78563         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
78564         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
78565         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
78566         * modules/unistd (Makefile.am): Substitute
78567         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
78568         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
78569         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
78570         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
78571         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
78572         * modules/sys_ioctl (Makefile.am): Substitute
78573         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
78574         * modules/socket (configure.ac): On native Windows, set
78575         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
78576         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
78577         Reported by Sam Steingold <sds@gnu.org>.
78579 2009-08-10  Bruno Haible  <bruno@clisp.org>
78581         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
78582         * modules/ioctl (configure.ac): Likewise.
78584 2009-08-10  Bruno Haible  <bruno@clisp.org>
78586         Avoid collision between gnulib wrapper and libintl wrapper.
78587         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
78588         already defined in intl/printf.c.
78589         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
78590         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
78592 2009-08-09  Bruno Haible  <bruno@clisp.org>
78594         Make <sys/select.h> really self-contained, also on Solaris 10.
78595         * lib/sys_select.in.h: Include <string.h>.
78596         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
78597         Solaris 10 problem.
78598         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
78599         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
78600         Reported by Jim Meyering.
78602 2009-08-09  Bruno Haible  <bruno@clisp.org>
78604         Avoid warnings from 'aclocal' that are due to a use of macro name
78605         AM_XGETTEXT_OPTION that is not defined in automake.
78606         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
78607         automake.
78608         * modules/error (configure.ac): Likewise.
78609         * modules/propername (configure.ac): Likewise.
78610         * modules/vasprintf (configure.ac): Likewise.
78611         * modules/verror (configure.ac): Likewise.
78612         * modules/xprintf (configure.ac): Likewise.
78613         * modules/xvasprintf (configure.ac): Likewise.
78615 2009-08-08  Bruno Haible  <bruno@clisp.org>
78617         Avoid compilation error in C++ mode.
78618         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
78619         Reported by Sam Steingold <sds@gnu.org>.
78621 2009-08-08  Bruno Haible  <bruno@clisp.org>
78623         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
78624         for the various Unix platforms.
78625         * doc/posix-headers/limits.texi: Update platforms list regarding
78626         HOST_NAME_MAX.
78627         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
78629 2009-08-07  Jim Meyering  <meyering@redhat.com>
78631         selinux-at: fix typo in a comment
78632         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
78633         Spotted by Paolo Bonzini.
78635         selinux-at: remove redundant m4 code, add documentation
78636         * modules/selinux-at (configure.ac): Remove redundant code.
78637         LIB_SELINUX is already set via the dependent module, selinux-h.
78638         (Include): Add quotes around selinux-at.h.
78639         * lib/selinux-at.h: Add documentation.
78640         Reported by Bruno Haible in
78641         http://marc.info/?l=gnulib-bug&m=124958988300749
78643 2009-08-07  Bruno Haible  <bruno@clisp.org>
78645         Avoid link error on MacOS X 10.3 and 10.4.
78646         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
78647         on non-ELF systems.
78648         * lib/argp-pv.c (argp_program_version): Likewise.
78649         Reported by Simon Josefsson.
78651 2009-08-07  Simon Josefsson  <simon@josefsson.org>
78653         * tests/test-version-etc.sh: Use $EXEEXT.
78655 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
78657         update-copyright: update documentation to point to maint.mk
78658         * build-aux/update-copyright: Here.
78660 2009-08-06  Jim Meyering  <meyering@redhat.com>
78662         maint.mk: support update-copyright-local
78663         * top/maint.mk (update-copyright-local): Define place-holder.
78664         (update-copyright): Depend on $(update-copyright-local).
78666 2009-08-06  Jim Meyering  <meyering@redhat.com>
78668         selinux-at: new module
78669         Initially written for coreutils, this module will soon be
78670         used by findutils, too.
78671         * MODULES.html.sh [Misc]: Add selinux-at.
78672         * lib/selinux-at.h: New file, from coreutils.
78673         * lib/selinux-at.c: Likewise.
78674         * modules/selinux-at: Likewise.
78675         (License): Change from LGPL to GPL, since it depends
78676         on the GPL'd openat module.
78678         doc: update README
78679         * README: Remove references to cogito.
78680         Remove cvs-repo-updating instructions from 2007.
78681         Don't imply that CVS is better if you have limited disk space.
78683 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
78685         update-copyright: support C-style comments
78686         * build-aux/update-copyright: Implement and document.
78687         * tests/test-update-copyright.sh: Test.
78689 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
78691         update-copyright: support omitted "(C)"
78692         * build-aux/update-copyright: Implement and document.  Also,
78693         allow variable whitespace before "(C)".
78694         * tests/test-update-copyright.sh: Test.
78696 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
78698         update-copyright: don't trip on non-FSF copyright statements
78699         * build-aux/update-copyright: Fix so that the first correctly
78700         formatted FSF copyright statement is recognized no matter what
78701         appears before it.  Update documentation.
78702         * tests/test-update-copyright.sh: Test that.
78704 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
78706         update-copyright: clean up code a little
78707         * build-aux/update-copyright: Append "_re" to the name of any
78708         variable holding a regular expression.
78709         Replace "old" and "new" with "stmt" in variable names.
78710         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
78711         handled correctly.
78712         Format code more consistently.
78714 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
78716         update-copyright-tests: improve portability
78717         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
78718         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
78720 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
78722         update-copyright: support @copyright{} and &copy;
78723         * build-aux/update-copyright: Implement and document.
78724         * tests/test-update-copyright.sh: Test.
78726 2009-08-04  Jim Meyering  <meyering@redhat.com>
78728         update-copyright-tests: correctly test EOL=\r\n handling
78729         * tests/test-update-copyright.sh: Put \r at the end of some lines
78730         for the dos-eol tests.  Based on a patch by Joel E. Denny.
78732         maint.mk: make update-copyright exclusion list more configurable
78733         * top/maint.mk (update-copyright): Default to excluding COPYING,
78734         but allow an override, in case someone does want to update that file.
78736         maint.mk: don't update copyright date in COPYING
78737         * top/maint.mk (update-copyright): Exclude COPYING.
78739         maint.mk: add a copyright-updating rule
78740         * top/maint.mk (update-copyright): New rule.
78741         Derived from coreutils/Makefile.am.
78743         update-copyright: rename some variables
78744         * build-aux/update-copyright: Rename a few variables for clarity.
78745         Tweak syntax.  List Joel E. Denny as coauthor.
78747 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
78749         update-copyright: fix bug for 2-digit last year and add tests
78750         * build-aux/update-copyright: Fix bug.
78751         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
78752         specified.
78753         * modules/update-copyright-tests: New
78754         * tests/test-update-copyright.sh: New.
78756 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
78758         update-copyright: handle leading tabs in line prefix
78759         * build-aux/update-copyright: Count leading tabs as 8 spaces
78760         when computing margin.  This helps with the formatting of
78761         ChangeLogs, for example.
78762         Fix documentation a little.
78764 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
78766         update-copyright: support EOL=\r\n
78767         * build-aux/update-copyright: Implement that.
78769 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
78771         update-copyright: automatically format copyright statements
78772         * build-aux/update-copyright: Implement that.
78773         Also, be a little more predictable and safer by always failing
78774         when the full copyright format is not perfectly recognized as an
78775         unbroken whole.  Discussed at
78776         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
78777         Rewrite documentation.
78779 2009-08-03  Bruno Haible  <bruno@clisp.org>
78781         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
78783 2009-08-02  Bruno Haible  <bruno@clisp.org>
78785         Tests for module 'uname'.
78786         * modules/uname-tests: New file.
78787         * tests/test-uname.c: New file.
78789         New module 'uname'.
78790         * lib/uname.c: New file.
78791         * m4/uname.m4: New file.
78792         * modules/uname: New file.
78793         * doc/posix-functions/uname.texi: Mention the new module.
78795 2009-08-02  Bruno Haible  <bruno@clisp.org>
78797         Tests for module 'sys_utsname'.
78798         * modules/sys_utsname-tests: New file.
78799         * tests/test-sys_utsname.c: New file.
78801         New module 'sys_utsname'.
78802         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
78803         * m4/sys_utsname_h.m4: New file.
78804         * modules/sys_utsname: New file.
78805         * doc/posix-headers/sys_utsname.texi: Mention the new module.
78807 2009-08-02  Bruno Haible  <bruno@clisp.org>
78809         Implicitly initialize the sockets library.
78810         * lib/gethostname.c: Include sockets.h.
78811         (rpl_gethostname): Invoke gl_sockets_startup.
78812         * lib/socket.c: Include sockets.h.
78813         (rpl_socket): Invoke gl_sockets_startup.
78814         * modules/gethostname (Depends-on): Add sockets.
78815         * modules/socket (Depends-on): Likewise.
78816         * tests/test-poll.c: Don't include sockets.h.
78817         (main): Don't invoke gl_sockets_startup.
78818         * tests/test-select.c: Don't include sockets.h.
78819         (main): Don't invoke gl_sockets_startup.
78821 2009-08-02  Bruno Haible  <bruno@clisp.org>
78823         Allow multiple calls to gl_sockets_startup.
78824         * lib/sockets.c (initialized_sockets_version): New variable.
78825         (gl_sockets_startup): Do nothing if already called for this or a higher
78826         version.
78827         (gl_sockets_cleanup): Reset initialized_sockets_version.
78829 2009-08-03  Simon Josefsson  <simon@josefsson.org>
78831         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
78832         different project/version.
78834 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
78835             Bruno Haible  <bruno@clisp.org>
78837         Tests for module 'pipe-filter-gi'.
78838         * modules/pipe-filter-gi-tests: New file.
78839         * tests/test-pipe-filter-gi1.sh: New file.
78840         * tests/test-pipe-filter-gi1.c: New file.
78841         * tests/test-pipe-filter-gi2.sh: New file.
78842         * tests/test-pipe-filter-gi2-main.c: New file.
78843         * tests/test-pipe-filter-gi2-child.c: New file.
78845         New module 'pipe-filter-gi'.
78846         * lib/pipe-filter-gi.c: New file.
78847         * modules/pipe-filter-gi: New file.
78849 2009-08-02  Bruno Haible  <bruno@clisp.org>
78850             Paolo Bonzini  <bonzini@gnu.org>
78852         Tests for module 'pipe-filter-ii'.
78853         * modules/pipe-filter-ii-tests: New file.
78854         * tests/test-pipe-filter-ii1.sh: New file.
78855         * tests/test-pipe-filter-ii1.c: New file.
78856         * tests/test-pipe-filter-ii2.sh: New file.
78857         * tests/test-pipe-filter-ii2-main.c: New file.
78858         * tests/test-pipe-filter-ii2-child.c: New file.
78860         New module 'pipe-filter-ii'.
78861         * lib/pipe-filter.h: New file.
78862         * lib/pipe-filter-ii.c: New file.
78863         * lib/pipe-filter-aux.h: New file.
78864         * modules/pipe-filter-ii: New file.
78866 2009-08-02  Simon Josefsson  <simon@josefsson.org>
78868         * lib/gc-libgcrypt.c: Change copyright to FSF.
78869         * lib/gc-gnulib.c: Likewise.
78871 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
78873         * lib/gethostname.c: Include limits.h.
78875 2009-08-02  Simon Josefsson  <simon@josefsson.org>
78876             Bruno Haible  <bruno@clisp.org>
78878         Ensure HOST_NAME_MAX as part of the gethostname module.
78879         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
78880         define also HOST_NAME_MAX.
78881         * tests/test-gethostname.c: Include <limits.h>.
78882         (main): Check also HOST_NAME_MAX.
78883         * doc/posix-headers/limits.texi: Document the mingw problem.
78885 2009-08-02  Bruno Haible  <bruno@clisp.org>
78887         * lib/gethostname.c (gethostname): Fix handling of large len argument.
78888         Add comments.
78890 2009-03-31  Simon Josefsson  <simon@josefsson.org>
78892         * lib/gethostname.c: Add Windows wrapper.
78893         * m4/gethostname.m4: Look for gethostname in -lws2_32.
78894         * modules/gethostname: Depend on sys_socket & errno, for also
78895         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
78896         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
78898 2009-07-31  Jim Meyering  <meyering@redhat.com>
78900         getloadavg: fix symbol name in comment
78901         * lib/getloadavg.c: Correct a typo I introduced when adding
78902         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
78903         Matt Kraai spotted the problem.
78905 2009-07-29  Matt Kraai  <mkraai@beckman.com>
78907         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
78908         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
78909         code also if ! defined N_NAME_POINTER.
78910         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
78911         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
78912         but the n_name member is a 12-byte array.
78914 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
78916         update-copyright: generalize comment handling
78917         * build-aux/update-copyright: Handle copyright statements
78918         within more comment styles.
78919         Document usage.
78920         Report any file with an external copyright holder or parse failure.
78922 2009-07-29  Jim Meyering  <meyering@redhat.com>
78924         mktime: correct setting of REPLACE_MKTIME
78925         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
78927         update-copyright: new module
78928         * modules/update-copyright: New file.
78929         * build-aux/update-copyright: New file.
78930         * MODULES.html.sh (maint+release support): Add update-copyright.
78932 2009-07-27  Bruno Haible  <bruno@clisp.org>
78934         Fix compilation error when <ctime> is used and mktime is replaced.
78935         * lib/time.in.h (mktime): New declaration.
78936         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
78937         REPLACE_MKTIME instead of defining mktime in config.h.
78938         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
78939         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
78940         Reported by Ross McFarland <rwmcfa1@neces.com>.
78942 2009-07-27  Bruno Haible  <bruno@clisp.org>
78944         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
78945         Reported by Matt Kraai <mkraai@beckman.com>.
78947 2009-07-25  Jim Meyering  <meyering@redhat.com>
78949         maint.mk: avoid warnings about missing files
78950         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
78951         diagnostic when .prev-version does not exist.
78952         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
78953         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
78954         nonexistent cfg.mk.
78955         Suggestions from Simon Josefsson.
78957 2009-07-25  Bruno Haible  <bruno@clisp.org>
78959         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
78960         defined as macros. Needed on QNX 6.4.1.
78961         Reported by Matt Kraai <mkraai@beckman.com>.
78963 2009-07-23  Jim Meyering  <meyering@redhat.com>
78965         maint.mk: invoke "make dist" with a working value of XZ_OPT
78966         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
78968 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
78970         Make fseeko.c compile on QNX.
78971         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
78973 2009-07-22  Peter Simons  <simons@cryp.to>
78975         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
78976         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
78977         * lib/md4.h: Likewise.
78978         * lib/md5.h: Likewise.
78979         * lib/sha1.h: Likewise.
78980         * lib/sha256.h: Likewise.
78981         * lib/sha512.h: Likewise.
78983         tests-sha1: don't assign literal string to 'char *' variable
78984         * tests/test-sha1.c (main): Declare locals with "const" to match
78985         attributes of the right hand side.
78987 2009-07-21  Eric Blake  <ebb9@byu.net>
78989         dup2: fix more mingw problems
78990         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
78991         fd to itself.
78992         * doc/posix-functions/dup2.texi (dup2): Document the bug.
78993         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
78994         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
78995         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
78996         care of mingw bugs.
78998 2009-07-21  Jim Meyering  <meyering@redhat.com>
79000         vc-list-files: avoid failure when /bin/sh is dash
79001         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
79002         On some Debian based systems, /bin/sh is a symlink to dash, and running
79003         this command would omit the "/" following each 'tests' prefix:
79004           dash -x build-aux/vc-list-files -C . tests
79005         That is because bash and dash work differently:
79006           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
79007           bash ok
79008           dash odd
79010 2009-07-21  Eric Blake  <ebb9@byu.net>
79012         dup2-tests: test previous patch
79013         * modules/dup2-tests: New file.
79014         * tests/test-dup2.c: Likewise.
79015         * tests/test-open.c (main): Avoid unspecified behavior.
79016         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
79017         test.
79019         dup2: work around mingw and cygwin 1.5 bug
79020         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
79021         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
79022         * modules/unistd (Makefile.am): Substitute it.
79023         * lib/unistd.in.h (dup2): Declare the replacement.
79024         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
79025         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
79026         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
79027         * modules/execute (Depends-on): Add dup2.
79028         * modules/fseterr (Depends-on): Likewise.
79029         * modules/pipe (Depends-on): Likewise.
79030         * modules/posix_spawn-internal (Depends-on): Likewise.
79032 2009-07-21  Bruno Haible  <bruno@clisp.org>
79034         * modules/.gitattributes: New file.
79036 2009-07-20  Bruno Haible  <bruno@clisp.org>
79038         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
79039         (main): Use it.
79041 2009-07-20  Eric Blake  <ebb9@byu.net>
79043         test-pipe: make a bit more robust.
79044         * tests/test-pipe.c (myerr): Allow error messages regardless of
79045         what we do to stderr.
79046         (test_pipe): Rearrange to avoid deadlock.
79047         (child_main): Try a larger read, to ensure we avoided deadlock.
79048         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
79049         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
79050         if misused.
79052 2009-07-19  Jim Meyering  <meyering@redhat.com>
79054         fts: avoid false-positive cycle-detection
79055         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
79056         for each new command line argument.
79058 2009-07-19  Bruno Haible  <bruno@clisp.org>
79060         Fix build error on mingw with the modules sys_select and unistd.
79061         * modules/acl-tests (Depends-on): Add close.
79062         * modules/binary-io-tests (Depends-on): Likewise.
79063         * modules/closein-tests (Depends-on): Likewise.
79064         * modules/flock-tests (Depends-on): Likewise.
79065         * modules/fsync-tests (Depends-on): Likewise.
79066         * modules/lseek-tests (Depends-on): Likewise.
79067         * modules/pipe-tests (Depends-on): Likewise.
79068         * modules/posix_spawn-tests (Depends-on): Likewise.
79069         * modules/posix_spawnp-tests (Depends-on): Likewise.
79070         * modules/stat-time-tests (Depends-on): Likewise.
79071         * modules/yesno-tests (Depends-on): Likewise.
79073 2009-07-19  Bruno Haible  <bruno@clisp.org>
79075         Unify conditionals.
79076         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
79077         macros, not at the compiler macros.
79078         * lib/pipe.c: Likewise.
79079         * lib/execute.c: Likewise.
79080         * lib/spawni.c: Likewise.
79082 2009-07-19  Bruno Haible  <bruno@clisp.org>
79084         Fix handling of closed stdin/stdout/stderr on mingw.
79085         * lib/w32spawn.h: Include unistd.h.
79086         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
79087         file descriptor with O_NOINHERIT flag.
79088         (fd_safer_noinherit): New function, based on fd-safer.c.
79089         (dup_safer_noinherit): New function, based on dup-safer.c.
79090         (undup_safer_noinherit): New function.
79091         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
79092         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
79093         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
79094         instead of fd_safer.
79095         * tests/test-pipe.c: Include <windows.h>.
79096         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
79097         result.
79099         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
79100         from main.
79101         (test_pipe): Pass an extra argument for disambiguation.
79102         (main): Invoke parent_main or child_main.
79104         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
79105         consistently.
79107 2009-07-18  Eric Blake  <ebb9@byu.net>
79109         test-pipe: fix mingw build
79110         * tests/test-pipe.c (main): Avoid fcntl on mingw.
79112 2009-07-18  Bruno Haible  <bruno@clisp.org>
79114         * modules/pipe-tests (Makefile.am): Fix typo.
79116 2009-07-18  Eric Blake  <ebb9@byu.net>
79118         error: fix mingw build
79119         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
79120         Reported by Bruno Haible.
79122         error: avoid undefined use of stdout
79123         * lib/error.c (error, error_at_line): Check that fd 1 is open
79124         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
79125         is handling faults and the close_stdout module wants to report the
79126         detection of closed stdout as an error.
79128 2009-07-17  Eric Blake  <ebb9@byu.net>
79130         pipe: be robust in face of closed fds
79131         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
79132         should cause child to misbehave.
79133         * modules/pipe-tests: New module.
79134         * tests/test-pipe.c: New file.
79135         * tests/test-pipe.sh: New file.
79136         Reported by Akim Demaille.
79138 2009-07-14  Bruno Haible  <bruno@clisp.org>
79140         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
79141         Reported by anonymous kc.
79143 2009-07-07  Jim Meyering  <meyering@redhat.com>
79145         maint.mk: don't look for translatable strings in *.m4 or *.mk
79146         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
79147         when searching for translatable strings.
79149 2009-07-05  Jim Meyering  <meyering@redhat.com>
79151         remove superfluous parentheses in STREQ definition
79152         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
79153         * lib/getugroups.c (STREQ): Likewise.
79154         * lib/fnmatch.c (STREQ): Likewise.
79155         Spotted by Bruno Haible.
79157 2009-07-04  Jim Meyering  <meyering@redhat.com>
79159         argv-iter: new module
79160         * MODULES.html.sh: Add argv-iter.
79161         * lib/argv-iter.c, lib/argv-iter.h: New files.
79162         * modules/argv-iter: New file.
79163         * modules/argv-iter-tests: New file.
79164         * tests/test-argv-iter.c: Test it.
79166 2009-07-04  Bruno Haible  <bruno@clisp.org>
79168         Fix assertion.
79169         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
79170         contains more exact copies of a given entry than file2, leave the extra
79171         copies unpaired rather than aborting.
79172         Reported by Eric Blake.
79174 2009-07-02  Bruno Haible  <bruno@clisp.org>
79176         Speedup git-merge-changelog for git cherry-pick.
79177         * lib/git-merge-changelog.c (struct entries_mapping): New type.
79178         (entries_mapping_get): New function, extracted from compute_mapping.
79179         (entries_mapping_reverse_get): New function.
79180         (compute_mapping): Add a 'full' argument. Return the result in a
79181         'struct entries_mapping'.
79182         (main): Update. Access the mappings through entries_mapping_get.
79183         Reported by Eric Blake.
79185 2009-07-02  Bruno Haible  <bruno@clisp.org>
79187         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
79188         best_i.
79190 2009-07-02  Bruno Haible  <bruno@clisp.org>
79192         Speed up approximate search for matching ChangeLog entries.
79193         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
79194         argument. Call fstrcmp_bounded instead of fstrcmp.
79195         (compute_mapping, try_split_merged_entry, main): Update callers.
79197 2009-07-02  Bruno Haible  <bruno@clisp.org>
79199         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
79201 2009-06-30  Bruno Haible  <bruno@clisp.org>
79203         Reduce the number of uc_is_cased calls.
79204         * lib/unicase.h (casing_suffix_context_t): Add
79205         'first_char_except_ignorable' field.
79206         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
79207         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
79208         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
79209         Update initializer.
79210         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
79211         case-ignorable characters.
79212         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
79213         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
79214         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
79215         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
79216         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
79218 2009-06-30  Bruno Haible  <bruno@clisp.org>
79220         Tests for module 'unicase/ignorable'.
79221         * modules/unicase/ignorable-tests: New file.
79222         * tests/unicase/test-ignorable.c: New file, generated by
79223         gen-uni-tables.
79225         Tests for module 'unicase/cased'.
79226         * modules/unicase/cased-tests: New file.
79227         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
79228         * tests/unicase/test-predicate-part1.h: New file, derived from
79229         tests/unictype/test-predicate-part1.h.
79230         * tests/unicase/test-predicate-part2.h: New file, same as
79231         tests/unictype/test-predicate-part2.h.
79233         Fix evaluation of "Before C" condition of FINAL_SIGMA.
79234         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
79235         (output_casing_properties): New function.
79236         (main): Call it.
79237         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
79238         * lib/unicase/cased.c: Include unictype/bitmap.h.
79239         (uc_is_cased): Define through a bitmap lookup.
79240         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
79241         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
79242         (uc_is_case_ignorable): Define through a bitmap lookup.
79243         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
79244         lib/unictype/bitmap.h.
79245         (Depends-on): Add inline. Clean up.
79246         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
79247         lib/unictype/bitmap.h.
79248         (Depends-on): Add inline. Clean up.
79249         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
79250         recognition.
79251         * tests/unicase/test-u16-tolower.c (main): Likewise.
79252         * tests/unicase/test-u32-tolower.c (main): Likewise.
79254 2009-06-30  Bruno Haible  <bruno@clisp.org>
79256         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
79257         * lib/unicase/u16-casemap.c: Likewise.
79258         * lib/unicase/u32-casemap.c: Likewise.
79260 2009-06-29  Bruno Haible  <bruno@clisp.org>
79262         Define u32_casefold as a wrapper around u32_ct_casefold.
79263         * lib/unicase/u32-casefold.c: Update.
79264         * modules/unicase/u32-casefold (Depends-on): Add
79265         unicase/u32-ct-casefold, unicase/empty-prefix-context,
79266         unicase/empty-suffix-context. Clean up.
79268         Define u16_casefold as a wrapper around u16_ct_casefold.
79269         * lib/unicase/u16-casefold.c: Update.
79270         * modules/unicase/u16-casefold (Depends-on): Add
79271         unicase/u16-ct-casefold, unicase/empty-prefix-context,
79272         unicase/empty-suffix-context. Clean up.
79274         Define u8_casefold as a wrapper around u8_ct_casefold.
79275         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
79276         * lib/unicase/u8-casefold.c: Update.
79277         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
79278         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
79280         Define u32_totitle as a wrapper around u32_ct_totitle.
79281         * lib/unicase/u32-totitle.c: Update.
79282         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
79283         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
79285         Define u16_totitle as a wrapper around u16_ct_totitle.
79286         * lib/unicase/u16-totitle.c: Update.
79287         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
79288         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
79290         Define u8_totitle as a wrapper around u8_ct_totitle.
79291         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
79292         functions.
79293         (FUNC): Delegate to U_CT_TOTITLE.
79294         * lib/unicase/u8-totitle.c: Update.
79295         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
79296         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
79298         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
79299         invocation.
79300         * modules/unicase/u32-tolower (Depends-on): Add
79301         unicase/empty-prefix-context, unicase/empty-suffix-context.
79303         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
79304         invocation.
79305         * modules/unicase/u16-tolower (Depends-on): Add
79306         unicase/empty-prefix-context, unicase/empty-suffix-context.
79308         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
79309         * modules/unicase/u8-tolower (Depends-on): Add
79310         unicase/empty-prefix-context, unicase/empty-suffix-context.
79312         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
79313         invocation.
79314         * modules/unicase/u32-toupper (Depends-on): Add
79315         unicase/empty-prefix-context, unicase/empty-suffix-context.
79317         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
79318         invocation.
79319         * modules/unicase/u16-toupper (Depends-on): Add
79320         unicase/empty-prefix-context, unicase/empty-suffix-context.
79322         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
79323         * modules/unicase/u8-toupper (Depends-on): Add
79324         unicase/empty-prefix-context, unicase/empty-suffix-context.
79326         New module 'unicase/u32-ct-casefold'.
79327         * lib/unicase/u32-ct-casefold.c: New file.
79328         * modules/unicase/u32-ct-casefold: New file.
79330         New module 'unicase/u16-ct-casefold'.
79331         * lib/unicase/u16-ct-casefold.c: New file.
79332         * modules/unicase/u16-ct-casefold: New file.
79334         New module 'unicase/u8-ct-casefold'.
79335         * lib/unicase/u8-ct-casefold.c: New file.
79336         * lib/unicase/u-ct-casefold.h: New file, derived from
79337         lib/unicase/u-casefold.h.
79338         * modules/unicase/u8-ct-casefold: New file.
79340         New module 'unicase/u32-ct-totitle'.
79341         * lib/unicase/u32-ct-totitle.c: New file.
79342         * modules/unicase/u32-ct-totitle: New file.
79344         New module 'unicase/u16-ct-totitle'.
79345         * lib/unicase/u16-ct-totitle.c: New file.
79346         * modules/unicase/u16-ct-totitle: New file.
79348         New module 'unicase/u8-ct-totitle'.
79349         * lib/unicase/u8-ct-totitle.c: New file.
79350         * lib/unicase/u-ct-totitle.h: New file, derived from
79351         lib/unicase/u-totitle.h.
79352         * modules/unicase/u8-ct-totitle: New file.
79354         New module 'unicase/u32-ct-tolower'.
79355         * lib/unicase/u32-ct-tolower.c: New file.
79356         * modules/unicase/u32-ct-tolower: New file.
79358         New module 'unicase/u16-ct-tolower'.
79359         * lib/unicase/u16-ct-tolower.c: New file.
79360         * modules/unicase/u16-ct-tolower: New file.
79362         New module 'unicase/u8-ct-tolower'.
79363         * lib/unicase/u8-ct-tolower.c: New file.
79364         * modules/unicase/u8-ct-tolower: New file.
79366         New module 'unicase/u32-ct-toupper'.
79367         * lib/unicase/u32-ct-toupper.c: New file.
79368         * modules/unicase/u32-ct-toupper: New file.
79370         New module 'unicase/u16-ct-toupper'.
79371         * lib/unicase/u16-ct-toupper.c: New file.
79372         * modules/unicase/u16-ct-toupper: New file.
79374         New module 'unicase/u8-ct-toupper'.
79375         * lib/unicase/u8-ct-toupper.c: New file.
79376         * modules/unicase/u8-ct-toupper: New file.
79378         Add context arguments to u*_casemap functions.
79379         * lib/unicase/unicasemap.h: Include unicase.h.
79380         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
79381         suffix_context arguments.
79382         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
79383         functions.
79384         (FUNC): Add prefix_context and suffix_context arguments. Use
79385         uc_is_cased and uc_is_case_ignorable.
79386         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
79387         * lib/unicase/u16-casemap.c: Likewise.
79388         * lib/unicase/u32-casemap.c: Likewise.
79389         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
79390         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
79391         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
79392         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
79393         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
79394         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
79396         New module 'unicase/u32-suffix-context'.
79397         * lib/unicase/u32-suffix-context.c: New file.
79398         * modules/unicase/u32-suffix-context: New file.
79400         New module 'unicase/u16-suffix-context'.
79401         * lib/unicase/u16-suffix-context.c: New file.
79402         * modules/unicase/u16-suffix-context: New file.
79404         New module 'unicase/u8-suffix-context'.
79405         * lib/unicase/u8-suffix-context.c: New file.
79406         * lib/unicase/u-suffix-context.h: New file.
79407         * modules/unicase/u8-suffix-context: New file.
79409         New module 'unicase/empty-suffix-context'.
79410         * lib/unicase/empty-suffix-context.c: New file.
79411         * modules/unicase/empty-suffix-context: New file.
79413         New module 'unicase/u32-prefix-context'.
79414         * lib/unicase/u32-prefix-context.c: New file.
79415         * modules/unicase/u32-prefix-context: New file.
79417         New module 'unicase/u16-prefix-context'.
79418         * lib/unicase/u16-prefix-context.c: New file.
79419         * modules/unicase/u16-prefix-context: New file.
79421         New module 'unicase/u8-prefix-context'.
79422         * lib/unicase/u8-prefix-context.c: New file.
79423         * lib/unicase/u-prefix-context.h: New file.
79424         * lib/unicase/context.h: New file.
79425         * modules/unicase/u8-prefix-context: New file.
79427         New module 'unicase/empty-prefix-context'.
79428         * lib/unicase/empty-prefix-context.c: New file.
79429         * modules/unicase/empty-prefix-context: New file.
79431         New module 'unicase/ignorable'.
79432         * lib/unicase/ignorable.c: New file.
79433         * modules/unicase/ignorable: New file.
79435         New module 'unicase/cased'.
79436         * lib/unicase/caseprop.h: New file.
79437         * lib/unicase/cased.c: New file.
79438         * modules/unicase/cased: New file.
79440         New functions for case mapping of substrings.
79441         * lib/unicase.h (casing_prefix_context_t): New type.
79442         (unicase_empty_prefix_context): New variable.
79443         (u8_casing_prefix_context, u16_casing_prefix_context,
79444         u32_casing_prefix_context, u8_casing_prefixes_context,
79445         u16_casing_prefixes_context, u32_casing_prefixes_context): New
79446         declarations.
79447         (casing_suffix_context_t): New type.
79448         (unicase_empty_suffix_context): New variable.
79449         (u8_casing_suffix_context, u16_casing_suffix_context,
79450         u32_casing_suffix_context, u8_casing_suffixes_context,
79451         u16_casing_suffixes_context, u32_casing_suffixes_context,
79452         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
79453         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
79454         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
79455         declarations.
79457 2009-06-28  Jim Meyering  <meyering@redhat.com>
79459         boostrap: indent only with spaces
79460         * build-aux/bootstrap: Indent only with spaces, never TABs.
79462         bootstrap: split long lines
79463         * build-aux/bootstrap: Keep line length < 80.
79465         bootstrap: sync from coreutils
79466         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
79467         just as autoreconf does.  Verify a list of prerequisite
79468         package-name,version-number pairs if defined in bootstrap.conf.
79469         Refer to README-prereq, if prerequisites are not satisfied.
79471 2009-06-27  Eric Blake  <ebb9@byu.net>
79473         tests: add test for bogus NULL definition
79474         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
79475         * tests/test-stdlib.c: Likewise.
79476         * tests/test-string.c: Likewise.
79477         * tests/test-locale.c: Likewise.
79478         * tests/test-unistd.c: Likewise.
79479         * modules/stdio-tests (Depends-on): Add verify.
79480         * modules/stdlib-tests (Depends-on): Likewise.
79481         * modules/string-tests (Depends-on): Likewise.
79482         * modules/locale-tests (Depends-on): Likewise.
79483         * modules/unistd-tests (Depends-on): Likewise.
79485 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
79487         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
79488         self-explaining comment.
79489         * m4/selinux-selinux-h: Update serial.
79490         (gl_LIBSELINUX): New macro, adding a warning for missing development
79491         packages to code extracted from...
79492         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
79493         Add warning for missing development packages here, too.
79495 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
79497         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
79499 2009-06-25  Eric Blake  <ebb9@byu.net>
79501         version-etc: fix regression
79502         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
79503         gcc.
79504         (version_etc): Use it, to catch bugs with trailing NULL.
79505         * lib/version-etc.c (version_etc_arn): Delete unused argument.
79506         (version_etc_va): Fix logic bug.
79507         * modules/version-etc-tests: Add test.
79508         * tests/test-version-etc.c: New file.
79509         * tests/test-version-etc.sh: Likewise.
79511 2009-06-25  Sam Steingold  <sds@gnu.org>
79513         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
79514         mbtowc declaration.
79516 2009-06-25  Eric Blake  <ebb9@byu.net>
79518         fpurge: migrate into <stdio.h>
79519         * lib/fpurge.h: Delete...
79520         * lib/stdio.in.h (fpurge): ...and declare here, instead.
79521         * lib/fpurge.c (fpurge): Change declaring header.
79522         * modules/fpurge (Files): Drop deleted file.
79523         (Depends-on): Add stdio.
79524         (configure.ac): Set witness.
79525         * modules/stdio (Makefile.am): Support fpurge macros.
79526         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
79527         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
79528         * lib/fflush.c: Update client.
79529         * tests/test-fpurge.c: Likewise.
79530         * NEWS: Mention the change.
79532 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79534         * lib/argp-version-etc.c (program_authors): Add const
79535         qualifier.
79536         * lib/version-etc.c: Fix typos in the comments.
79537         * modules/argp-version-etc: Depends on version-etc.
79539 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79541         argp-version-etc: new module.
79543         * lib/argp-version-etc.c: New file.
79544         * lib/argp-version-etc.h: New file.
79545         * modules/argp-version-etc: New file.
79546         * modules/argp-version-etc-tests: New file.
79547         * tests/test-argp-version-etc.c: New test.
79548         * tests/test-argp-version-etc-1.sh: New test.
79550 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79552         Provide additional interfaces and documentation for version-etc
79553         module.
79555         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
79556         interfaces.
79557         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
79558         prototypes.
79560 2009-06-24  Bruno Haible  <bruno@clisp.org>
79562         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
79563         HAVE_LIB${NAME} macro.
79564         Reported by Sam Steingold <sds@gnu.org>.
79566 2009-06-23  Simon Josefsson  <simon@josefsson.org>
79568         * modules/hash-tests (test_hash_LDADD): Link to libintl when
79569         needed.
79571 2009-06-21  Bruno Haible  <bruno@clisp.org>
79573         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
79574         work.
79575         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
79576         together with LIB${NAME}, LTLIB${NAME}.
79577         Reported by Sam Steingold <sds@gnu.org>.
79579 2009-06-20  Jim Meyering  <meyering@redhat.com>
79581         tests: make sc_require_test_exit_idiom more generic
79582         * top/maint.mk (Exit_witness_file): New overridable variable.
79583         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
79584         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
79586 2009-06-19  Jim Meyering  <meyering@redhat.com>
79588         hash: reverse order of src/dst parameters in an internal interface
79589         * lib/hash.c (transfer_entries): Reverse order of parameters to
79590         put DST before SRC.  Adjust callers.
79592         tests: test-hash: avoid wholesale duplication
79593         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
79594         Instead, use a loop and add a single conditional.
79596         tests: test-hash: allow seed selection via a command line argument
79597         * tests/test-hash.c (get_seed): New function.
79598         (main): Use it.
79600 2009-06-19  Eric Blake  <ebb9@byu.net>
79602         hash: avoid memory leak on allocation failure
79603         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
79604         failure.  Factor repeated algorithm...
79605         (transfer_entries): ...into new helper routine.
79606         (hash_delete): React to hash_rehash return value.
79608         hash: reduce memory pressure in hash_rehash no-op case
79609         * lib/hash.c (next_prime): Avoid overflow.
79610         (hash_initialize): Factor bucket size computation...
79611         (compute_bucket_size): ...into new helper function.
79612         (hash_rehash): Use new function and open coding to reduce memory
79613         pressure, and avoid a memory leak in USE_OBSTACK code.
79614         Reported by Jim Meyering.
79616 2009-06-18  Eric Blake  <ebb9@byu.net>
79618         hash: make rotation more obvious
79619         * modules/hash (Depends-on): Add bitrotate and stdint.
79620         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
79621         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
79622         (SIZE_MAX): Rely on headers for definition.
79623         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
79624         (raw_hasher): Use rotr_sz.
79625         Suggested by Jim Meyering.
79627         hash: fix memory leak in last patch
79628         * lib/hash.c (hash_rehash): Avoid memory leak.
79630         hash: avoid no-op rehashing
79631         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
79633         hash: provide default callback functions
79634         * lib/hash.c (raw_hasher, raw_comparator): New functions.
79635         (hash_initialize): Use them as defaults.
79636         * tests/test-hash.c (main): Test this.
79638         hash: minor optimization
79639         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
79640         when possible.
79641         (hash_initialize): Document this promise.
79642         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
79643         * tests/test-hash.c (hash_compare_strings): Test this.
79645 2009-06-18  Bruno Haible  <bruno@clisp.org>
79647         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
79648         going to be replaced anyway.
79650 2009-06-18  Bruno Haible  <bruno@clisp.org>
79652         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
79653         in one place.
79654         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
79655         be replaced anyway.
79657 2009-06-18  Eric Blake  <ebb9@byu.net>
79659         hash: check for resize before insertion
79660         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
79661         threshold before insertion, so that a pathological hash_rehash
79662         that fills every bucket can still trigger another rehash.
79664 2009-06-18  Jim Meyering  <meyering@redhat.com>
79666         hash-tests: add a loop around the small tests
79667         * tests/test-hash.c (main): Repeat small tests with selected
79668         small initial table sizes.
79670 2009-06-17  Eric Blake  <ebb9@byu.net>
79672         hash: minor cleanups
79673         * lib/hash.h (hash_entry): Make opaque, by moving...
79674         * lib/hash.c (hash_entry): ...here.
79675         (hash_insert): Clarify restrictions on what can be inserted.
79676         (hash_get_next): Clarify when it is safe to remove an element
79677         during traversal.
79678         (check_tuning): Skip verification when tuning is known safe.
79679         (hash_initialize): Clarify restrictions on tuning.
79681 2009-06-17  Jim Meyering  <jim@meyering.net>
79682         and Eric Blake  <ebb9@byu.net>
79684         hash-tests: new module
79685         * modules/hash-tests: New file.
79686         * tests/test-hash.c: New file.
79688 2009-06-17  Eric Blake  <ebb9@byu.net>
79690         strstr-simple: document new module
79691         * MODULES.html.sh: Document new module.
79693         strstr, strcasestr: replace on platforms with broken memchr
79694         * modules/strstr: Split into...
79695         * modules/strstr-simple: ...new module that does not care about
79696         performance, but does care about glibc bug.
79697         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
79698         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
79699         if platform memchr is broken, per Debian bug 521737.
79700         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
79701         memchr.
79702         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
79703         * doc/posix-functions/strstr.texi (strstr): Document the fix.
79704         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
79705         * modules/mountlist (Depends-on): Add strstr-simple.
79706         * modules/gen-uni-tables (Depends-on): Likewise.
79707         * modules/argz (Depends-on): Add strstr.
79709 2009-06-17  Bruno Haible  <bruno@clisp.org>
79711         * modules/posix_spawn-internal (Depends-on): Add errno.
79713 2009-06-17  Bruno Haible  <bruno@clisp.org>
79715         Define missing ESTALE on Interix 3.5.
79716         * lib/errno.in.h (ESTALE): Assign a value if missing.
79717         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
79718         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
79719         missing.
79720         * doc/posix-headers/errno.texi: Mention the Interix bug.
79721         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
79723 2009-06-15  Eric Blake  <ebb9@byu.net>
79725         memchr, memchr2: add valgrind exception
79726         * lib/memchr.valgrind: New file.
79727         * lib/memchr2.valgrind: New file.
79728         * modules/memchr (Files): Distribute valgrind file.
79729         * modules/memchr2 (Files): Likewise.
79731         docs: memchr is no longer obsolete
79732         * MODULES.html.sh: Move memchr from obsolete to string.h section.
79733         * lib/string.in.h (memchr): Simplify logic.
79735 2009-06-14  Jim Meyering  <meyering@redhat.com>
79737         link-follow: fix the "checking..." message to not mention trailing slash
79738         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
79739         never considered trailing slashes.
79741 2009-06-14  Bruno Haible  <bruno@clisp.org>
79743         * m4/memchr.m4: Mention also the bug on IA-64.
79744         * doc/posix-functions/memchr.texi: Likewise.
79746 2009-06-12  Eric Blake  <ebb9@byu.net>
79748         memchr: detect broken x86_64 and alpha implementations
79749         * modules/memchr-tests (Depends-on): Move mmap detection...
79750         * modules/memchr (Depends-on): ...here.
79751         (configure.ac): Set indicator.
79752         * lib/string.in.h (memchr): Declare replacement.
79753         * modules/string (Makefile.am): Trigger replacement.
79754         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
79755         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
79756         bugs.
79757         * doc/posix-functions/memchr.texi (memchr): Document the bug.
79758         * modules/getpagesize (License): Relax license.
79760 2009-06-11  Bruno Haible  <bruno@clisp.org>
79762         * lib/idpriv.h: Add more references.
79764 2009-06-08  Bruno Haible  <bruno@clisp.org>
79766         Tests for module 'idpriv-droptemp'.
79767         * modules/idpriv-droptemp-tests: New file.
79768         * tests/test-idpriv-droptemp.sh: New file.
79769         * tests/test-idpriv-droptemp.su.sh: New file.
79770         * tests/test-idpriv-droptemp.c: New file.
79772         New module 'idpriv-droptemp'.
79773         * lib/idpriv-droptemp.c: New file.
79774         * modules/idpriv-droptemp: New file.
79776 2009-06-08  Bruno Haible  <bruno@clisp.org>
79778         Tests for module 'idpriv-drop'.
79779         * modules/idpriv-drop-tests: New file.
79780         * tests/test-idpriv-drop.sh: New file.
79781         * tests/test-idpriv-drop.su.sh: New file.
79782         * tests/test-idpriv-drop.c: New file.
79784         New module 'idpriv-drop'.
79785         * lib/idpriv.h: New file.
79786         * lib-idpriv-drop.c: New file.
79787         * m4/idpriv.m4: New file.
79788         * modules/idpriv-drop: New file.
79790 2009-06-08  Bruno Haible  <bruno@clisp.org>
79792         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
79793         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
79794         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
79795         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
79796         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
79797         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
79798         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
79800 2009-06-08  Eric Blake  <ebb9@byu.net>
79802         test-strstr: use memory fence, when possible
79803         * tests/test-strstr.c (main): Use memory fence, in order to be
79804         more likely to trigger Debian bug 521737.
79805         * modules/strstr-tests (Files): Pull in additional files.
79807         memchr: no longer obsolete, for wider field testing
79808         * modules/memchr (Status, Notice): Delete, this module is no
79809         longer obsolete.
79810         * modules/vasnprintf (Depends-on): Add memchr.
79812 2009-06-07  Jim Meyering  <meyering@redhat.com>
79814         hash: declare some functions with the warn_unused_result attribute
79815         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
79817 2009-06-07  Bruno Haible  <bruno@clisp.org>
79819         * tests/test-alignof.c: Don't test int64_t if it does not exist.
79820         Reported by Eric Blake.
79822 2009-06-06  Eric Blake  <ebb9@byu.net>
79824         test-alignof: fix typo with long double
79825         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
79826         compiler error.
79828 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
79830         Escape non-texinfo { and }s.
79831         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
79832         markup error.
79834 2009-06-04  Jim Meyering  <meyering@redhat.com>
79836         gitlog-to-changelog: don't infloop on an empty commit log
79837         * build-aux/gitlog-to-changelog: Warn about an empty log message.
79838         Reported by Boris Petersen <transacid@centerim.org>.
79840 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
79842         version-etc: extend for packagers
79843         Add three new configure options, intended for packagers:
79844           --with-packager="packager name"
79845           --with-packager-version="packager-specific version"
79846           --with-packager-bug-reports="packager bug reporting"
79847         An example with coreutils:
79848           $ ./configure \
79849             --with-packager=Gentoo \
79850             --with-packager-bug-report=http://bugs.gentoo.org/ \
79851             --with-packager-version="patchset 1.6"
79852           $ ./src/ls --version | head -n2
79853           ls (GNU coreutils) 7.1-dirty
79854           Packaged by Gentoo (patchset 1.6)
79855         Note that the bug reporting info via --help doesn't show up because
79856         coreutils uses its own custom emit_bug_reporting_address() implementation
79857         in src/system.h.  If it didn't, it'd look like:
79858           $ ./src/ls --help | tail -n4
79859           Report bugs to <bug-coreutils@gnu.org>.
79860           Report Gentoo bugs to <http://bugs.gentoo.org/>.
79861           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
79862           General help using GNU software: <http://www.gnu.org/gethelp/>.
79863         * lib/version-etc.c: Print new information, if provided.
79864         * m4/version-etc.m4: New file.
79865         * modules/version-etc (Files): Add m4/version-etc.m4.
79866         (configure.ac): Add gl_VERSION_ETC.
79868 2009-05-31  Bruno Haible  <bruno@clisp.org>
79870         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
79871         and 'int64_t'.
79872         * modules/alignof-tests (Dependencies): Add stdint.
79873         Reported by Eric Blake.
79875 2009-05-31  Bruno Haible  <bruno@clisp.org>
79877         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
79878         restriction due to compiler bugs.
79879         Reported by Eric Blake.
79881 2009-05-31  Simon Josefsson  <simon@josefsson.org>
79882             Bruno Haible  <bruno@clisp.org>
79884         Fix test-alignof failure.
79885         * lib/alignof.h (alignof_slot): New macro.
79886         (alignof_type): New macro, with the same semantics as the previous
79887         'alignof'.
79888         (alignof): Alias to alignof_slot.
79889         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
79890         check that the results are usable as constant expressions.
79892 2009-05-31  Bruno Haible  <bruno@clisp.org>
79894         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
79895         * tests/test-memchr.c (main): Check that memchr does not read past the
79896         first occurrence of the byte.
79897         * tests/test-strstr.c (main): Update comment.
79898         Suggested by Eric Blake.
79900 2009-05-30  Bruno Haible  <bruno@clisp.org>
79902         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
79903         detail how to use dumpbin.
79904         Reported by David Byron <dbyron@dbyron.com>.
79906 2009-06-02  Simon Josefsson  <simon@josefsson.org>
79908         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
79910 2009-06-02  Simon Josefsson  <simon@josefsson.org>
79912         * m4/manywarnings.m4: Add GCC 4.4 warnings.
79914 2009-05-28  Bruno Haible  <bruno@clisp.org>
79916         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
79917         build-aux/ files.
79919 2009-05-28  Simon Josefsson  <simon@josefsson.org>
79921         * gnulib-tool (func_import): Transform license on build-aux/ files too.
79923 2009-05-27  Simon Josefsson  <simon@josefsson.org>
79925         * gnulib-tool (sed_transform_main_lib_file)
79926         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
79927         regexps.
79929 2009-05-26  Simon Josefsson  <simon@josefsson.org>
79931         * tests/test-strstr.c: Add another self-test.
79932         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
79933         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
79935 2009-05-23  Bruno Haible  <bruno@clisp.org>
79937         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
79938         change.
79940 2009-05-21  Bruno Haible  <bruno@clisp.org>
79942         Simplify use of mode_t varargs.
79943         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
79944         uses 'mode_t' or 'int'.
79945         * lib/openat.c (openat): Likewise.
79946         * lib/open-safer.c (open_safer): Likewise.
79947         * m4/mode_t.m4: New file.
79948         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
79949         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
79950         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
79951         * modules/open (Files): Add m4/mode_t.m4.
79952         * modules/openat (Files): Likewise.
79953         * modules/fcntl-safer (Files): Likewise.
79954         Suggested by Eric Blake.
79956 2009-05-21  Pádraig Brady  <P@draigbrady.com>
79958         * doc/glibc-functions/fallocate.texi: New file.
79959         * doc/gnulib.texi: Include it.
79961 2009-05-21  Eric Blake  <ebb9@byu.net>
79962             Bruno Haible  <bruno@clisp.org>
79964         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
79965         invocations.
79966         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
79968 2009-05-21  Eric Blake  <ebb9@byu.net>
79969             Bruno Haible  <bruno@clisp.org>
79971         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
79972         include_next. Fix of 2008-11-20 commit.
79973         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
79974         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
79975         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
79976         NEXT_MATH_H.
79977         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
79978         instead of NEXT_MATH_H.
79980 2009-05-21  Bruno Haible  <bruno@clisp.org>
79982         Avoid redefinition warnings for SIZE_MAX.
79983         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
79984         Reported by Simon Josefsson.
79986 2009-05-21  Bruno Haible  <bruno@clisp.org>
79988         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
79989         AC_CACHE_VAL.
79991 2009-05-20  Bruno Haible  <bruno@clisp.org>
79993         Make zeroptr.h work on mingw.
79994         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
79995         mprotect.
79996         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
79997         * modules/memchr2-tests (configure.ac): Likewise.
79998         * modules/memcmp-tests (configure.ac): Likewise.
79999         * modules/memmem-tests (configure.ac): Likewise.
80000         * modules/memrchr-tests (configure.ac): Likewise.
80001         Reported by Simon Josefsson.
80003 2009-05-20  Simon Josefsson  <simon@josefsson.org>
80005         * tests/test-glob.c: Include string.h for strcmp prototype.
80007 2009-05-20  Simon Josefsson  <simon@josefsson.org>
80009         * modules/getdelim (Depends-on): Add explicit stdint, although it
80010         was implicitly already pulled in via realloc-posix.
80011         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
80013 2009-05-20  Simon Josefsson  <simon@josefsson.org>
80015         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
80016         G. Christensen" <tgc@jupiterrise.com>.
80017         * m4/sys_socket_h.m4: Check for sa_family_t.
80018         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
80019         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
80020         * tests/test-sys_socket.c: Check that sa_family_t works.
80022 2009-05-18  Eric Blake  <ebb9@byu.net>
80024         maint.mk: allow gnulib_dir in VPATH build
80025         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
80027 2009-05-15  Jim Meyering  <meyering@redhat.com>
80029         maint.mk: Give gnulib_dir a default definition.
80030         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
80031         Thus, most packages no longer need to specify this variable in cfg.mk
80033 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
80035         rename.m4: fix typos that would make non-mingw cross-configure fail
80036         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
80038 2009-05-13  Eric Blake  <ebb9@byu.net>
80040         mmap-anon: avoid out-of-order autoconf expansion
80041         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
80042         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
80043         * modules/memchr-tests (Depends-on): Add extensions.
80044         * modules/memchr2-tests (Depends-on): Add extensions.
80045         * modules/memcmp-tests (Depends-on): Add extensions.
80046         * modules/memmem-tests (Depends-on): Add extensions.
80047         * modules/memrchr-tests (Depends-on): Add extensions.
80049 2009-05-13  Bruno Haible  <bruno@clisp.org>
80051         Make some tests ISO C 99 compliant.
80052         * tests/zerosize-ptr.h: New file.
80053         * tests/test-memchr.c: Include zerosize-ptr.h.
80054         (main): Use a zero-size object pointer instead of NULL.
80055         * tests/test-memchr2.c: Include zerosize-ptr.h.
80056         (main): Use a zero-size object pointer instead of NULL.
80057         * tests/test-memcmp.c: Include zerosize-ptr.h.
80058         (main): Use a zero-size object pointer instead of NULL.
80059         * tests/test-memmem.c: Include zerosize-ptr.h.
80060         (main): Use a zero-size object pointer instead of NULL.
80061         * tests/test-memrchr.c: Include zerosize-ptr.h.
80062         (main): Use a zero-size object pointer instead of NULL.
80063         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
80064         m4/mmap-anon.m4.
80065         (Depends-on): Add getpagesize.
80066         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
80067         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
80068         m4/mmap-anon.m4.
80069         (Depends-on): Add getpagesize.
80070         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
80071         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
80072         m4/mmap-anon.m4.
80073         (Depends-on): Add getpagesize.
80074         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
80075         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
80076         m4/mmap-anon.m4.
80077         (Depends-on): Add getpagesize.
80078         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
80079         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
80080         m4/mmap-anon.m4.
80081         (Depends-on): Add getpagesize.
80082         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
80084 2009-05-12  Bruno Haible  <bruno@clisp.org>
80086         Tests for module 'alignof'.
80087         * modules/alignof-tests: New file.
80088         * tests/test-alignof.c: New file.
80090 2009-05-12  Bruno Haible  <bruno@clisp.org>
80092         Fix alignof macro.
80093         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
80094         vendor compilers that are always correct.
80096 2009-05-12  Bruno Haible  <bruno@clisp.org>
80098         Make the MAP_ANONYMOUS detection work on HP-UX 11.
80099         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
80100         not whether its fully works.
80102 2009-05-12  Bruno Haible  <bruno@clisp.org>
80104         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
80106 2009-05-12  Jim Meyering  <meyering@redhat.com>
80108         * top/maint.mk: Adjust backslash alignment.
80110 2009-05-11  Simon Josefsson  <simon@josefsson.org>
80112         * top/maint.mk: Make $(srcdir)/build-aux configurable.
80114 2009-05-11  Eric Blake  <ebb9@byu.net>
80116         argp: avoid undefined behavior
80117         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
80118         macros.
80120 2009-05-08  Simon Josefsson  <simon@josefsson.org>
80122         * tests/test-vc-list-files-git.sh: Do git config of user.email and
80123         user.name to prevent git commit from complaining.
80125 2009-05-10  Bruno Haible  <bruno@clisp.org>
80127         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
80128         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
80129         it rewrites every file name only once.
80130         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
80132 2009-05-08  Bruno Haible  <bruno@clisp.org>
80134         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
80135         instead of 'max'.
80137 2009-05-08  Simon Josefsson  <simon@josefsson.org>
80139         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
80140         sockaddr_storage test.
80142 2009-05-07  Simon Josefsson  <simon@josefsson.org>
80144         * modules/sys_socket (Makefile.am): Substitute
80145         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
80146         * m4/sys_socket_h.m4: Check for sockaddr_storage.
80147         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
80148         * tests/test-sys_socket.c: Check sockaddr_storage.
80150 2009-05-08  Bruno Haible  <bruno@clisp.org>
80152         New module 'alignof'.
80153         * lib/alignof.h: New file.
80154         * modules/alignof: New file.
80156 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
80157             Bruno Haible  <bruno@clisp.org>
80159         Fix test-file-has-acl on FreeBSD.
80160         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
80161         mask is implicitly added.
80162         * tests/test-file-has-acl.c: Include <signal.h>.
80163         (main): Terminate the test after 5 seconds.
80164         * modules/acl-tests (configure.ac): Check for alarm function.
80166 2009-05-04  Bruno Haible  <bruno@clisp.org>
80168         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
80169         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
80170         * modules/errno (configure.ac): Drop AC_REQUIRE.
80171         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
80172         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
80174 2009-05-04  Simon Josefsson  <simon@josefsson.org>
80176         * modules/glob-tests: New module.
80177         * tests/test-glob.c: Add.
80179 2009-05-04  Simon Josefsson  <simon@josefsson.org>
80181         * modules/fnmatch-tests: New module.
80182         * tests/test-fnmatch.c: Add.
80184 2009-05-04  Eric Blake  <ebb9@byu.net>
80186         maint: make the new no-submodule-changes rule VPATH-safe
80187         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
80189 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
80190             Bruno Haible  <bruno@clisp.org>
80192         acl: Fix infinite loop on FreeBSD.
80193         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
80194         of return value from acl_get_entry.
80195         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
80196         Likewise.
80198 2009-05-03  Bruno Haible  <bruno@clisp.org>
80200         * lib/acl-internal.h (acl_entries): Clarify return value.
80201         * lib/acl_entries.c (acl_entries): Likewise.
80203 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
80205         Bug fix in acl module.
80206         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
80208 2009-05-03  Bruno Haible  <bruno@clisp.org>
80210         Create gperf-generated file in the source dir, not in the build dir.
80211         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
80212         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
80213         * modules/unicase/locale-language (unicase/locale-languages.h):
80214         Likewise.
80215         * modules/unicase/special-casing (unicase/special-casing-table.h):
80216         Likewise.
80217         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
80218         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
80219         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
80220         Reported by Ralf Wildenhues.
80222 2009-05-03  Bruno Haible  <bruno@clisp.org>
80224         * modules/fnmatch (Description, configure.ac): Taken from
80225         fnmatch-posix.
80226         * modules/fnmatch-posix: Turn into a symbolic reference to the
80227         'fnmatch' module, and deprecate.
80228         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
80230 2009-05-03  Bruno Haible  <bruno@clisp.org>
80232         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
80233         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
80234         Reported by Ralf Wildenhues.
80236 2009-05-04  Simon Josefsson  <simon@josefsson.org>
80238         * m4/fnmatch.m4: Fix fnmatch re-define.
80240 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
80242         priv-set: new module and tests; adapt write-any-file
80243         * lib/priv-set.c: New file.
80244         * lib/priv-set.h: New file.
80245         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
80246         * lib/write-any-file.c: Simplify by using priv-set module.
80247         * m4/priv-set.m4: New file.
80248         * modules/priv-set: New file.
80249         * modules/unlinkdir: Add dependency on priv-set module.
80250         * modules/write-any-file: Likewise.
80252         Tests for module 'priv-set'.
80253         * modules/priv-set-tests: New file.
80254         * tests/test-priv-set.c: New file.
80256 2009-05-03  Jim Meyering  <meyering@redhat.com>
80257             Bruno Haible  <bruno@clisp.org>
80259         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
80260         use the converted UTF-8 variant of the name instead.
80262 2009-05-03  Jim Meyering  <meyering@redhat.com>
80264         tests: tighten some getdate tests
80265         * tests/test-getdate.c (main): Tighten tests: require equality,
80266         not just greater than.  Set TZ envvar to UTC0.
80268 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
80270         getdate: correctly interpret "next monday" when run on a Monday
80271         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
80272         that e.g., "next tues" (when run on a tuesday) results in a date
80273         that is one week in the future, and not today's date.
80274         I.e., add a week when the wday is the same as the current one.
80275         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
80276         and earlier by Martin Bernreuther and Jan Minář.
80277         * tests/test-getdate.c (main): Check that "next DAY" is always in
80278         the future and that "last DAY" is always in the past.
80280 2009-05-02  Jim Meyering  <meyering@redhat.com>
80282         build: ensure that a release build fails when a submodule is unclean
80283         * top/maint.mk (no-submodule-changes): New rule.
80284         (alpha beta major): Depend on it.
80286 2009-05-02  Bruno Haible  <bruno@clisp.org>
80288         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
80289         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
80290         shell variable gl_fnmatch_required to detect which variant is
80291         requested.
80292         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
80293         gl_FUNC_FNMATCH_POSIX.
80294         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
80295         exclude fnmatch-posix.
80297 2009-05-02  Bruno Haible  <bruno@clisp.org>
80299         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
80300         * modules/mbsrtowcs (License): Change to LGPLv2+.
80301         * modules/strnlen1 (License): Likewise.
80302         Reported by Simon Josefsson.
80304 2009-05-02  Bruno Haible  <bruno@clisp.org>
80306         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
80307         "cross".
80308         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
80309         gnulib-tool was called with option --source-base=lib.
80311 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80313         Use automake *-local hooks without commands, for extensibility.
80314         * modules/localcharset (Makefile.am): Rename install-exec-local
80315         rule to install-exec-localcharset, and make it a prerequisite of
80316         install-exec-local.  Likewise, rename the uninstall-local rule to
80317         uninstall-localcharset, and make it a prerequisite of the former.
80319 2009-05-01  Bruno Haible  <bruno@clisp.org>
80321         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
80322         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
80323         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
80324         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
80325         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
80326         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
80327         m4/locale-zh.m4, m4/codeset.m4.
80329         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
80330         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
80331         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
80332         m4/locale-zh.m4.
80334         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
80335         REPLACE_WCRTOMB if mbstate_t must be replaced.
80336         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
80337         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
80339 2009-05-01  Bruno Haible  <bruno@clisp.org>
80341         Avoid compiler warnings when redefining macros defined by <libintl.h>.
80342         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
80343         dngettext, dcngettext, textdomain, bindtextdomain,
80344         bind_textdomain_codeset): Undefine before redefining.
80346 2009-04-30  Bruno Haible  <bruno@clisp.org>
80348         Fix bug introduced on 2009-04-25.
80349         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
80350         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
80351         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
80352         is defined.
80353         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
80354         is defined.
80355         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
80356         is defined.
80357         Reported by Elbert_Pol <elbert.pol@gmail.com>.
80359 2009-04-28  Bruno Haible  <bruno@clisp.org>
80361         Comment tweaks.
80362         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
80363         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
80364         * lib/unicase.h (u*_casexfrm): Likewise.
80365         Reported by Paolo Bonzini.
80367 2009-04-28  Bruno Haible  <bruno@clisp.org>
80369         Fix a compilation error.
80370         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
80371         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
80372         Reported by Jim Meyering.
80374 2009-04-27  Bruno Haible  <bruno@clisp.org>
80376         New module 'libunistring'.
80377         * modules/libunistring: New file.
80378         * m4/libunistring.m4: New file.
80379         * MODULES.html.sh (Unicode string functions): Add it.
80381 2009-04-27  Eric Blake  <ebb9@byu.net>
80383         maint.mk: allow package-specific header to provide <config.h>
80384         * top/maint.mk (sc_require_config_h): New variable.
80385         (sc_require_config_h, sc_require_config_h_first): Use it.
80387 2009-04-27  Simon Josefsson  <simon@josefsson.org>
80389         * top/maint.mk (sc_avoid_if_before_free): Except
80390         useless-if-before-free script.
80392 2009-04-27  Eric Blake  <ebb9@byu.net>
80394         maintainer-makefile: depend on all required helper scripts
80395         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
80396         useless-if-before-free.
80397         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
80398         version, rather than assuming gnulib checkout is available.
80399         Reported by Simen Josefsson.
80401 2009-04-26  Bruno Haible  <bruno@clisp.org>
80403         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
80404         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
80405         "../" or "..".
80407 2009-04-26  Bruno Haible  <bruno@clisp.org>
80409         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
80410         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
80411         AC_LIB_HAVE_LINKFLAGS.
80413 2009-04-26  Bruno Haible  <bruno@clisp.org>
80415         Simplify calling convention of u*_conv_from_encoding.
80416         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
80417         u32_conv_from_encoding): Expect a resultbuf argument and return the
80418         result directly as a pointer.
80419         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
80420         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
80421         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
80422         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
80423         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
80424         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
80425         Update.
80426         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
80427         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
80428         * lib/vasnprintf.c (VASNPRINTF): Update.
80429         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
80430         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
80431         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
80432         * NEWS: Mention the change.
80434 2009-04-26  Bruno Haible  <bruno@clisp.org>
80436         Simplify calling convention of u*_conv_to_encoding.
80437         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
80438         u32_conv_to_encoding): Expect a resultbuf argument and return the
80439         result directly as a pointer.
80440         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
80441         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
80442         freeing scaled_offsets if mem_iconveha failed.
80443         * lib/unicase/u-casexfrm.h (FUNC): Update.
80444         * lib/uninorm/u-normxfrm.h (FUNC): Update.
80445         * lib/vasnprintf.c (VASNPRINTF): Update.
80446         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
80447         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
80448         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
80449         * NEWS: Mention the change.
80451 2009-04-26  Bruno Haible  <bruno@clisp.org>
80453         Avoid test failures on AIX and OSF/1.
80454         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
80455         malloc(0).
80456         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
80457         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
80458         Likewise.
80459         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
80460         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
80461         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
80462         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
80463         * doc/posix-functions/malloc.texi: Document the portability problem
80464         related to malloc(0).
80466 2009-04-26  Bruno Haible  <bruno@clisp.org>
80468         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
80469         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
80470         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
80472 2009-04-25  Bruno Haible  <bruno@clisp.org>
80474         Avoid link error when creating a namespace clean library.
80475         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
80476         as macro with arguments if already defined as an alias.
80477         * lib/signbitf.c (gl_signbitf): Don't undefine.
80478         * lib/signbitd.c (gl_signbitd): Don't undefine.
80479         * lib/signbitl.c (gl_signbitl): Don't undefine.
80481 2009-04-25  Jim Meyering  <meyering@redhat.com>
80483         vc-list-files: fix another quoting bug
80484         * build-aux/vc-list-files: Avoid sed backslash expansion
80485         of pathological directory names.
80487 2009-04-25  Eric Blake  <ebb9@byu.net>
80489         vc-list-files: fix shell quoting error
80490         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
80491         timestamp.
80493 2009-04-25  Jim Meyering  <meyering@redhat.com>
80495         vc-list-files: restore lost functionality with subdir argument
80496         * build-aux/vc-list-files: When given a non-"." sub-directory
80497         argument, substitute the $dir/ prefix back onto each resulting name.
80498         Otherwise, coreutils' root_tests check would fail.
80500 2009-04-24  Eric Blake  <ebb9@byu.net>
80502         vc-list-files: ignore git symlinks
80503         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
80504         than ls-files, to ignore git symlinks.
80506         maint.mk: import improvements from m4
80507         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
80508         (move_if_change): Delete unused macro.
80509         (news-date-check, vc-diff-check): Support VPATH builds.
80510         (announcement): Likewise.  Split --bootstrap-tools list...
80511         (boostrap-tools): ...into separate list, which can be overridden
80512         in cfg.mk.
80513         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
80514         requiring dependency on useless-if-before-free module.
80515         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
80516         Support VPATH builds.
80518 2009-04-24  Jim Meyering  <meyering@redhat.com>
80520         maint.mk: remove coreutils-specific rules and variables
80521         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
80522         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
80523         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
80525         maint.mk: remove obsolete rule
80526         * top/maint.mk (rel-check): Remove rule.
80527         (WGET, WGETFLAGS): Remove now-unused variables.
80529 2009-04-24  Simon Josefsson  <simon@josefsson.org>
80531         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
80532         consistency.
80534         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
80535         '$(PATH_SEPARATOR)' instead of ':'.
80537 2009-04-24  Simon Josefsson  <simon@josefsson.org>
80539         * lib/getopt1.c (main): Use 'const' for static array.
80541 2009-04-24  Simon Josefsson  <simon@josefsson.org>
80543         * top/maint.mk: Sync with coreutils.
80544         * NEWS: Explain incompatibilities.
80546 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80547             Bruno Haible  <bruno@clisp.org>
80549         Fix cross-compilation results.
80550         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
80551         statement, as third argument of AC_TRY_RUN.
80552         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
80553         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
80554         Likewise.
80555         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
80556         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
80557         Likewise.
80558         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
80559         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
80560         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
80562 2009-04-20  Bruno Haible  <bruno@clisp.org>
80564         Avoid test failure on mingw.
80565         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
80567 2009-04-20  Bruno Haible  <bruno@clisp.org>
80569         Avoid compilation error on mingw.
80570         * modules/localename-tests (Depends-on): Add locale.
80572 2009-04-19  Bruno Haible  <bruno@clisp.org>
80574         Support for building a shared library on Windows platforms.
80575         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
80576         (main): Test the presence of UNINORM_NFC here.
80577         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
80578         (main): Test the presence of UNINORM_NFD here.
80579         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
80580         (main): Test the presence of UNINORM_NFKC here.
80581         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
80582         (main): Test the presence of UNINORM_NFKD here.
80584 2009-04-19  Bruno Haible  <bruno@clisp.org>
80586         Avoid a compiler warning.
80587         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
80588         Change type of variable 'sequence'.
80590 2009-04-19  Bruno Haible  <bruno@clisp.org>
80592         * modules/configmake (Makefile.am): When the contents of configmake.h
80593         does not change, arrange to preserve its modification time.
80595 2009-04-17  Simon Josefsson  <simon@josefsson.org>
80597         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
80598         gettext domain.
80600 2009-04-16  Jim Meyering  <meyering@redhat.com>
80602         useless-if-before-free: improve conversion code
80603         * build-aux/useless-if-before-free: Adjust code-in-comment to match
80604         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
80606 2009-04-14  Bruno Haible  <bruno@clisp.org>
80608         * modules/fcntl (Depends-on): Add extensions.
80609         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
80611 2009-04-12  Ben Pfaff  <blp@gnu.org>
80613         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
80614         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
80616 2009-03-20  Ben Pfaff  <blp@gnu.org>
80618         Make rename replace existing destinations on Windows.
80619         * m4/rename.m4: Add test for Mingw.
80620         * lib/rename.c: Add rename replacement that uses MoveFileEx with
80621         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
80622         * doc/posix-functions/rename.texi: Document.
80624 2009-04-10  Bruno Haible  <bruno@clisp.org>
80626         New include file "iconveh.h".
80627         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
80628         * lib/striconveh.h: Include it.
80629         (enum iconv_ilseq_handler): Remove definition.
80630         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
80631         striconveh.h.
80632         * lib/striconveha.c: Include striconveh.h.
80633         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
80634         * modules/striconveh (Files): Add lib/iconveh.h.
80635         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
80636         lib/striconveh.h.
80638 2009-04-10  Bruno Haible  <bruno@clisp.org>
80640         * lib/uniconv.h: Update comment.
80642 2009-04-10  Bruno Haible  <bruno@clisp.org>
80644         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
80645         always.
80646         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
80647         * lib/unistr/u16-mbtouc-aux.c: Likewise.
80648         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
80649         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
80650         "unistring-notinline.h", so that the function gets defined always.
80651         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
80652         * lib/unistr/u8-uctomb.c: Likewise.
80653         * lib/unistr/u16-mbtouc.c: Likewise.
80654         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
80655         * lib/unistr/u16-uctomb.c: Likewise.
80656         * lib/unistr/u32-mbtouc.c: Likewise.
80657         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
80658         * lib/unistr/u32-uctomb.c: Likewise.
80660 2009-04-10  Bruno Haible  <bruno@clisp.org>
80662         Mark 'utime' obsolete.
80663         * modules/utime (Status, Notice): New sections.
80664         Suggested by Jim Meyering.
80666         Fix cross-compile guess for utime test.
80667         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
80668         autoconf.
80669         * doc/posix-functions/utime.texi: Give more precisions.
80670         Reported by Jan <ipif@ymail.com>.
80672 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
80674         filevercmp: correct today's change
80675         * lib/filevercmp.c: Also handle coreutils' test inputs.
80676         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
80678         Fix regression in 'filevercmp' module. Thanks Sven Joachim
80679         for reporting it.
80680         * lib/filevercmp.c: Special handle for "", "." and "..".
80681         * tests/test-filevercmp.c: Enlarge the set suite.
80683 2009-04-07  Jim Meyering  <meyering@redhat.com>
80685         useless-if-before-free: show how to remove braced useless free, too
80686         * build-aux/useless-if-before-free: still only in a comment, though.
80688 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
80690         maint.mk: import changes to syntax-check macros from coreutils
80691         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
80692         Use them in the relevant macros.
80694 2009-04-06  Bruno Haible  <bruno@clisp.org>
80696         Fix unportable use of bit-fields.
80697         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
80698         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
80699         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
80701 2009-04-06  Bruno Haible  <bruno@clisp.org>
80703         Avoid test failures on AIX and OSF/1.
80704         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
80705         that malloc(0) = NULL.
80706         * tests/unicase/test-u8-tolower.c (check): Likewise.
80707         * tests/unicase/test-u8-totitle.c (check): Likewise.
80708         * tests/unicase/test-u8-toupper.c (check): Likewise.
80709         * tests/unicase/test-u16-casefold.c (check): Likewise.
80710         * tests/unicase/test-u16-tolower.c (check): Likewise.
80711         * tests/unicase/test-u16-totitle.c (check): Likewise.
80712         * tests/unicase/test-u16-toupper.c (check): Likewise.
80713         * tests/unicase/test-u32-casefold.c (check): Likewise.
80714         * tests/unicase/test-u32-tolower.c (check): Likewise.
80715         * tests/unicase/test-u32-totitle.c (check): Likewise.
80716         * tests/unicase/test-u32-toupper.c (check): Likewise.
80717         * tests/uninorm/test-u8-nfc.c (check): Likewise.
80718         * tests/uninorm/test-u8-nfd.c (check): Likewise.
80719         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
80720         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
80721         * tests/uninorm/test-u16-nfc.c (check): Likewise.
80722         * tests/uninorm/test-u16-nfd.c (check): Likewise.
80723         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
80724         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
80725         * tests/uninorm/test-u32-nfc.c (check): Likewise.
80726         * tests/uninorm/test-u32-nfd.c (check): Likewise.
80727         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
80728         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
80730 2009-04-05  Bruno Haible  <bruno@clisp.org>
80732         Work around an autoconf limitation.
80733         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
80734         comment line if it would be longer than 3 KB.
80736 2009-04-05  Bruno Haible  <bruno@clisp.org>
80738         Avoid test failure with libiconv-1.13.
80739         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
80740         of the expected test results.
80742 2009-04-05  Bruno Haible  <bruno@clisp.org>
80744         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
80745         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
80746         that it should be installed.
80748 2009-04-05  Bruno Haible  <bruno@clisp.org>
80750         * gnulib-tool: New option --copy-file.
80751         (func_usage): Document it.
80752         (func_dest_tmpfilename): Moved out of func_import.
80753         (func_add_file, func_update_file): New functions, extracted from
80754         func_import.
80755         (func_import): Update.
80757 2009-04-05  Karl Berry  <karl@gnu.org>
80759         * README: prominently mention gnulib-tool.
80760         Rearrange sections so getting the code is near the top.
80762 2009-04-05  Bruno Haible  <bruno@clisp.org>
80764         * lib/unicase.h: Mention u*_cmp2.
80765         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
80766         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
80767         * lib/unicase/ulc-casecmp.c: Likewise.
80768         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
80769         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
80770         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
80771         unistr/u8-cmp.
80772         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
80773         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
80774         unistr/u16-cmp.
80775         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
80776         unistr/u32-cmp.
80778         * lib/uninorm.h: Mention u*_cmp2.
80779         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
80780         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
80781         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
80782         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
80783         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
80784         unistr/u8-cmp.
80785         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
80786         unistr/u16-cmp.
80787         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
80788         unistr/u32-cmp.
80790         New module 'unistr/u32-cmp2'.
80791         * lib/unistr/u32-cmp2.c: New file.
80792         * modules/unistr/u32-cmp2: New file.
80794         New module 'unistr/u16-cmp2'.
80795         * lib/unistr/u16-cmp2.c: New file.
80796         * modules/unistr/u16-cmp2: New file.
80798         New module 'unistr/u8-cmp2'.
80799         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
80800         * lib/unistr/u8-cmp2.c: New file.
80801         * lib/unistr/u-cmp2.h: New file.
80802         * modules/unistr/u8-cmp2: New file.
80804 2009-04-05  Bruno Haible  <bruno@clisp.org>
80806         * lib/unictype.h (uc_property_is_valid): New macro.
80807         * tests/unictype/test-pr_byname.c (main): Use it.
80809         * lib/unistr.h: Doc fixes.
80810         * lib/uniconv.h: Doc fixes.
80811         * lib/unictype.h: Doc fixes.
80813 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
80815         Port coreutils 7.2 to Solaris 8.
80817         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
80818         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
80819         for Solaris 8.  This is a bit of a hack, as it means it's the
80820         caller's responsibility to add -lnsl if needed, but most likely it
80821         won't be needed since only getaddrinfo uses this and getaddrinfo
80822         isn't needed on Solaris 8.
80824         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
80825         problem to Solaris 8 encountered with coreutils 7.2, which
80826         resulted in a message "fnmatch.c:292: warning: passing argument 4
80827         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
80828         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
80830 2009-04-03  Simon Josefsson  <simon@josefsson.org>
80832         * m4/ld-version-script.m4: Add FIXME comment.
80834 2009-04-02  Simon Josefsson  <simon@josefsson.org>
80836         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
80837         SOVERSION variable.
80839 2009-04-02  Bruno Haible  <bruno@clisp.org>
80841         * Makefile (info, html, dvi, pdf): Combine the rules.
80842         Suggested by Jim Meyering.
80844 2009-04-01  Bruno Haible  <bruno@clisp.org>
80846         * Makefile (info, html, dvi, pdf): New targets.
80847         Reported by Reuben Thomas <rrt@sc3d.org>.
80849 2009-04-01  Bruno Haible  <bruno@clisp.org>
80851         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
80852         can be put into PATH.
80853         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
80855 2009-04-01  Bruno Haible  <bruno@clisp.org>
80857         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
80859 2009-04-01  Bruno Haible  <bruno@clisp.org>
80861         Rename module 'visibility'.
80862         * modules/lib-symbol-visibility: Renamed from modules/visibility.
80863         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
80864         * doc/gnulib.texi: Update.
80865         * MODULES.html.sh (Misc): Update.
80866         * NEWS: Mention the change.
80868 2009-04-01  Simon Josefsson  <simon@josefsson.org>
80870         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
80871         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
80872         Eric Blake <ebb9@byu.net> for review.
80873         * MODULES.html.sh: Add lib-msvc-compat.
80874         * doc/gnulib.texi: Link to new section.
80875         * m4/ld-output-def.m4: New file.
80876         * doc/ld-output-def.texi: New file.
80878 2009-04-01  Simon Josefsson  <simon@josefsson.org>
80880         Rename ld-version-script to lib-symbol-versions.  Suggested by
80881         Bruno Haible <bruno@clisp.org>.
80882         * modules/ld-version-script: Renamed to lib-symbol-versions.
80883         * doc/ld-version-script.texi: Fix module name.
80884         * MODULES.html.sh: Add lib-symbol-versions.
80886 2009-03-31  Simon Josefsson  <simon@josefsson.org>
80888         * modules/u64-tests: New file.
80889         * tests/test-u64.c: New file.
80891 2009-03-04  Simon Josefsson  <simon@josefsson.org>
80893         * MODULES.html.sh: Mention u64.
80894         * modules/u64: New module.
80895         * modules/crypto/sha512: Depend on u64 module instead of providing
80896         u64.h.
80898 2009-03-27  Eric Blake  <ebb9@byu.net>
80900         test-strerror: make debugging EAI_SYSTEM easier
80901         * modules/getaddrinfo-tests (Depends-on): Add strerror.
80902         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
80903         failure was EAI_SYSTEM.
80905 2009-03-25  Bruno Haible  <bruno@clisp.org>
80907         Fix a problem with --enable-relocatable on Solaris 7.
80908         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
80909         since 2008-02-24.
80911 2009-03-25  Eric Blake  <ebb9@byu.net>
80913         test-sockets: avoid gcc warning
80914         * tests/test-sockets.c (main): Silence compiler warning.
80916 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
80918         New modules nproc, pthread, contributed by Glen Lenker.
80920         * MODULES.html.sh: Add pthread, nproc.
80921         * lib/nproc.c: New file.
80922         * lib/nproc.h: New file.
80923         * lib/pthread.in.h: New file.
80924         * m4/pthread.m4: New file.
80925         * modules/nproc: New file.
80926         * modules/pthread: New file.
80928 2009-03-24  Simon Josefsson  <simon@josefsson.org>
80930         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
80931         New variable.
80933 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
80935         filevercmp: handle simple~ and numbered.~3~ backup suffixes
80936         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
80937         * tests/test-filevercmp.c: Add tests for backup suffixes.
80939 2009-03-24  Simon Josefsson  <simon@josefsson.org>
80941         * modules/stdlib (Depends-on): Add stdint, needed when defining
80942         struct random_data on, for example, HP-UX 10.20.  Reported by
80943         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
80945 2009-03-24  Simon Josefsson  <simon@josefsson.org>
80947         * lib/readline.c (readline): Call fflush on stdout after printing
80948         prompt.
80950 2009-03-20  Bruno Haible  <bruno@clisp.org>
80952         Remove dependency from 'close' module to -lws2_32 on native Windows.
80953         * lib/close-hook.h: New file.
80954         * lib/close-hook.c: New file.
80955         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
80956         w32sock.h.
80957         (_gl_close_fd_maybe_socket): Remove function.
80958         (rpl_close): Invoke execute_all_close_hooks instead of
80959         _gl_close_fd_maybe_socket.
80960         * lib/sockets.c: Include close-hook.h, w32sock.h.
80961         (close_fd_maybe_socket): New function, essentially from lib/close.c.
80962         (close_sockets_hook): New variable.
80963         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
80964         (gl_sockets_cleanup): Unregister it.
80965         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
80966         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
80967         * modules/close-hook: New file.
80968         * modules/close (Files): Remove lib/w32sock.h.
80969         (Depends-on): Add close-hook.
80970         (Link): Remove section.
80971         * modules/sockets (Files): Add lib/w32sock.h.
80972         (Depends-on): Add close-hook.
80973         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
80974         invocation.
80975         * NEWS: Mention that LIB_CLOSE is gone.
80977 2009-03-23  Eric Blake  <ebb9@byu.net>
80979         signal-tests: test previous patch
80980         * tests/test-signal.c: New file.
80981         * modules/signal-tests: Likewise.
80983         signal.h: always support 'volatile sig_atomic_t'
80984         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
80985         (gl_SIGNAL_H_DEFAULTS): Add a default.
80986         * modules/signal (Makefile.am): Substitute if needed.
80987         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
80988         users can blindly add volatile.
80989         * doc/posix-headers/signal.texi (signal.h): Document it.
80990         Reported by Matthew Woehlke.
80992 2009-03-23  Jim Meyering  <meyering@redhat.com>
80994         pathmax: PATH_MAX: use pathconf only when available
80995         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
80996         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
80997         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
80998         This avoids a link failure in a PSP cross-compilation environment
80999         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
81001         * lib/vasnprintf.c (divide): Fix typo in comment.
81003 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81005         * gnulib-tool (func_filter_filelist): Fix comment.
81007 2009-03-20  Bruno Haible  <bruno@clisp.org>
81009         Make sockets.h self-contained.
81010         * lib/sockets.c: Include sockets.h first.
81011         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
81013 2009-03-19  Eric Blake  <ebb9@byu.net>
81015         doc: mention more functions added in cygwin 1.7.0
81016         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
81017         addition.
81018         * doc/posix-functions/log2f.texi: Likewise.
81020 2009-03-19  Jim Meyering  <meyering@redhat.com>
81022         fsusage: avoid syntax error due to statement-before-declaration
81023         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
81024         after all declarations.  Reported by Matthew Woehlke in
81025         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
81027 2009-03-18  Eric Blake  <ebb9@byu.net>
81029         build-aux/compile: sync from automake
81030         * build-aux/compile: New file, from automake.
81031         * config/srclist.txt: Mention build-aux/compile.
81033 2009-03-17  Bruno Haible  <bruno@clisp.org>
81035         * lib/git-merge-changelog.c: Fix typo in comment.
81036         Reported by Reuben Thomas <rrt@sc3d.org>.
81038 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
81040         * m4/regex.m4: update and improve help for
81041         --without-included-regex.
81043 2009-03-17  Simon Josefsson  <simon@josefsson.org>
81045         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
81046         failure on missing include files.
81048 2009-03-17  Eric Blake  <ebb9@byu.net>
81050         doc: mention more functions added in cygwin 1.7.0
81051         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
81052         addition.
81053         * doc/posix-functions/fwscanf.texi: Likewise.
81054         * doc/posix-functions/swprintf.texi: Likewise.
81055         * doc/posix-functions/swscanf.texi: Likewise.
81056         * doc/posix-functions/vfwprintf.texi: Likewise.
81057         * doc/posix-functions/vfwscanf.texi: Likewise.
81058         * doc/posix-functions/vswprintf.texi: Likewise.
81059         * doc/posix-functions/vswscanf.texi: Likewise.
81060         * doc/posix-functions/vwprintf.texi: Likewise.
81061         * doc/posix-functions/vwscanf.texi: Likewise.
81062         * doc/posix-functions/wcscasecmp.texi: Likewise.
81063         * doc/posix-functions/wcsdup.texi: Likewise.
81064         * doc/posix-functions/wcsftime.texi: Likewise.
81065         * doc/posix-functions/wcsncasecmp.texi: Likewise.
81066         * doc/posix-functions/wprintf.texi: Likewise.
81067         * doc/posix-functions/wscanf.texi: Likewise.
81068         * doc/glibc-functions/gethostbyname2.texi: Likewise.
81070 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81072         maint.mk: really add $(AM_MAKEFLAGS)
81073         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
81074         was inadvertently omitted in the last commit.
81075         Spotted by Bruno Haible.
81077         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
81078         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
81079         $(AM_MAKEFLAGS)' rather than plain `make'.
81081         gnulib-tool: execute $MAKE not make
81082         * gnulib-tool: Default $MAKE to 'make'.
81083         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
81084         than make.  Initialize $MAKE in the do-autobuild script.
81086         gnulib-tool: use $MAKE not make in generated files
81087         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
81088         make, in generated files.  Initialize $MAKE in the do-autobuild
81089         script.
81091         * top/GNUmakefile (_have-git-version-gen): Fix typo.
81093         GNUmakefile: disable parallelism only for multiple, recursive targets
81094         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
81095         additions in the Makefile.
81096         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
81097         by Automake.
81098         (.NOTPARALLEL): Only disable parallel builds if multiple targets
81099         are listed on the command line and at least one of them is
81100         listed in $(ALL_RECURSIVE_TARGETS).
81102 2009-03-14  Bruno Haible  <bruno@clisp.org>
81104         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
81105         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
81106         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
81107         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
81108         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
81109         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
81110         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
81111         unistr/u8-uctomb.
81112         * modules/unistr/u8-strchr (Depends-on): Likewise.
81113         * modules/unistr/u8-strrchr (Depends-on): Likewise.
81114         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
81115         unistr/u16-uctomb.
81116         * modules/unistr/u16-strchr (Depends-on): Likewise.
81117         * modules/unistr/u16-strrchr (Depends-on): Likewise.
81119 2009-03-12  Bruno Haible  <bruno@clisp.org>
81121         Work around select() bug on Interix 3.5.
81122         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
81123         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
81124         * m4/select.m4: New file.
81125         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
81126         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
81127         * modules/select (Files): Add m4/select.m4.
81128         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
81129         * modules/nanosleep (Depends-on): Add select.
81130         * modules/poll (Depends-on): Likewise.
81131         * doc/posix-functions/select.texi: Mention the Interix bug.
81132         Reported by Markus Duft <mduft@gentoo.org>.
81134         * lib/select.c: Renamed from lib/winsock-select.c.
81135         * modules/select (Files): Add lib/select.c, remove
81136         lib/winsock-select.c.
81137         (configure.ac): Update.
81139 2009-03-12  Jim Meyering  <meyering@redhat.com>
81141         avoid gcc warnings about unused macro definitions
81142         * lib/readtokens.c (STREQ): Remove unused definition.
81143         * lib/xmalloc.c (SIZE_MAX): Likewise.
81144         * lib/openat-die.c (N_): Likewise.
81145         * lib/mountlist.c (SIZE_MAX): Remove definition.
81146         Instead, include <stdint.h>.
81147         * lib/readutmp.c: Likewise.
81148         * modules/readutmp (Depends-on): Add stdint.
81149         * modules/mountlist (Depends-on): Add stdint.
81150         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
81152 2009-03-10  Bruno Haible  <bruno@clisp.org>
81154         Tests for module 'mbmemcasecoll'.
81155         * modules/mbmemcasecoll-tests: New file.
81156         * tests/test-mbmemcasecoll1.sh: New file.
81157         * tests/test-mbmemcasecoll2.sh: New file.
81158         * tests/test-mbmemcasecoll3.sh: New file.
81159         * tests/test-mbmemcasecoll.c: New file.
81161         New module 'mbmemcasecoll'.
81162         * lib/mbmemcasecoll.h: New file.
81163         * lib/mbmemcasecoll.c: New file.
81164         * modules/mbmemcasecoll: New file.
81166         * tests/test-mbmemcasecmp.h: New file, extracted from
81167         tests/test-mbmemcasecmp.c.
81168         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
81169         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
81170         (main): Update.
81171         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
81173 2009-03-09  Bruno Haible  <bruno@clisp.org>
81175         Tests for module 'mbmemcasecmp'.
81176         * modules/mbmemcasecmp-tests: New file.
81177         * tests/test-mbmemcasecmp1.sh: New file.
81178         * tests/test-mbmemcasecmp2.sh: New file.
81179         * tests/test-mbmemcasecmp3.sh: New file.
81180         * tests/test-mbmemcasecmp.c: New file.
81182         New module 'mbmemcasecmp'.
81183         * lib/mbmemcasecmp.h: New file.
81184         * lib/mbmemcasecmp.c: New file.
81185         * modules/mbmemcasecmp: New file.
81187 2009-03-09  Bruno Haible  <bruno@clisp.org>
81189         Tests for module 'unicase/ulc-casecoll'.
81190         * modules/unicase/ulc-casecoll-tests: New file.
81191         * tests/unicase/test-ulc-casecoll1.sh: New file.
81192         * tests/unicase/test-ulc-casecoll2.sh: New file.
81193         * tests/unicase/test-ulc-casecoll.c: New file.
81195         New module 'unicase/ulc-casecoll'.
81196         * lib/unicase.h (ulc_casecoll): New declaration.
81197         * lib/unicase/ulc-casecoll.c: New file.
81198         * modules/unicase/ulc-casecoll: New file.
81200         New module 'unicase/ulc-casexfrm'.
81201         * lib/unicase.h (ulc_casexfrm): New declaration.
81202         * lib/unicase/ulc-casexfrm.c: New file.
81203         * modules/unicase/ulc-casexfrm: New file.
81205 2009-03-09  Bruno Haible  <bruno@clisp.org>
81207         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
81208         invocations.
81210         * m4/mbscasecmp.m4: Remove file.
81211         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
81212         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
81214         * m4/mbscasestr.m4: Remove file.
81215         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
81216         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
81218         * m4/mbschr.m4: Remove file.
81219         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
81220         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
81222         * m4/mbscspn.m4: Remove file.
81223         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
81224         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
81226         * m4/mbslen.m4: Remove file.
81227         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
81228         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
81230         * m4/mbsncasecmp.m4: Remove file.
81231         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
81232         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
81234         * m4/mbsnlen.m4: Remove file.
81235         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
81236         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
81238         * m4/mbspbrk.m4: Remove file.
81239         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
81240         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
81242         * m4/mbspcasecmp.m4: Remove file.
81243         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
81244         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
81246         * m4/mbsrchr.m4: Remove file.
81247         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
81248         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
81250         * m4/mbssep.m4: Remove file.
81251         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
81252         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
81254         * m4/mbsspn.m4: Remove file.
81255         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
81256         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
81258         * m4/mbsstr.m4: Remove file.
81259         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
81260         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
81262         * m4/mbstok_r.m4: Remove file.
81263         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
81264         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
81266         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
81268         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
81269         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
81271         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
81273 2009-03-08  Bruno Haible  <bruno@clisp.org>
81275         Tests for module 'unicase/ulc-casecmp'.
81276         * modules/unicase/ulc-casecmp-tests: New file.
81277         * tests/unicase/test-ulc-casecmp1.sh: New file.
81278         * tests/unicase/test-ulc-casecmp2.sh: New file.
81279         * tests/unicase/test-ulc-casecmp.c: New file.
81281         New module 'unicase/ulc-casecmp'.
81282         * lib/unicase.h (ulc_casecmp): New declaration.
81283         * lib/unicase/ulc-casecmp.c: New file.
81284         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
81285         'const SRC_UNIT *'.
81286         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
81287         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
81288         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
81289         * modules/unicase/ulc-casecmp: New file.
81291         Tests for module 'unicase/u32-is-cased'.
81292         * modules/unicase/u32-is-cased-tests: New file.
81293         * tests/unicase/test-u32-is-cased.c: New file.
81295         Tests for module 'unicase/u16-is-cased'.
81296         * modules/unicase/u16-is-cased-tests: New file.
81297         * tests/unicase/test-u16-is-cased.c: New file.
81299         Tests for module 'unicase/u8-is-cased'.
81300         * modules/unicase/u8-is-cased-tests: New file.
81301         * tests/unicase/test-u8-is-cased.c: New file.
81302         * tests/unicase/test-is-cased.h: New file.
81304         New module 'unicase/u32-is-cased'.
81305         * lib/unicase/u32-is-cased.c: New file.
81306         * modules/unicase/u32-is-cased: New file.
81308         New module 'unicase/u16-is-cased'.
81309         * lib/unicase/u16-is-cased.c: New file.
81310         * modules/unicase/u16-is-cased: New file.
81312         New module 'unicase/u8-is-cased'.
81313         * lib/unicase/u8-is-cased.c: New file.
81314         * lib/unicase/u-is-cased.h: New file.
81315         * modules/unicase/u8-is-cased: New file.
81317         Tests for module 'unicase/u32-is-casefolded'.
81318         * modules/unicase/u32-is-casefolded-tests: New file.
81319         * tests/unicase/test-u32-is-casefolded.c: New file.
81321         Tests for module 'unicase/u16-is-casefolded'.
81322         * modules/unicase/u16-is-casefolded-tests: New file.
81323         * tests/unicase/test-u16-is-casefolded.c: New file.
81325         Tests for module 'unicase/u8-is-casefolded'.
81326         * modules/unicase/u8-is-casefolded-tests: New file.
81327         * tests/unicase/test-u8-is-casefolded.c: New file.
81328         * tests/unicase/test-is-casefolded.h: New file.
81330         New module 'unicase/u32-is-casefolded'.
81331         * lib/unicase/u32-is-casefolded.c: New file.
81332         * modules/unicase/u32-is-casefolded: New file.
81334         New module 'unicase/u16-is-casefolded'.
81335         * lib/unicase/u16-is-casefolded.c: New file.
81336         * modules/unicase/u16-is-casefolded: New file.
81338         New module 'unicase/u8-is-casefolded'.
81339         * lib/unicase/u8-is-casefolded.c: New file.
81340         * modules/unicase/u8-is-casefolded: New file.
81342         Tests for module 'unicase/u32-is-titlecase'.
81343         * modules/unicase/u32-is-titlecase-tests: New file.
81344         * tests/unicase/test-u32-is-titlecase.c: New file.
81346         Tests for module 'unicase/u16-is-titlecase'.
81347         * modules/unicase/u16-is-titlecase-tests: New file.
81348         * tests/unicase/test-u16-is-titlecase.c: New file.
81350         Tests for module 'unicase/u8-is-titlecase'.
81351         * modules/unicase/u8-is-titlecase-tests: New file.
81352         * tests/unicase/test-u8-is-titlecase.c: New file.
81353         * tests/unicase/test-is-titlecase.h: New file.
81355         New module 'unicase/u32-is-titlecase'.
81356         * lib/unicase/u32-is-titlecase.c: New file.
81357         * modules/unicase/u32-is-titlecase: New file.
81359         New module 'unicase/u16-is-titlecase'.
81360         * lib/unicase/u16-is-titlecase.c: New file.
81361         * modules/unicase/u16-is-titlecase: New file.
81363         New module 'unicase/u8-is-titlecase'.
81364         * lib/unicase/u8-is-titlecase.c: New file.
81365         * modules/unicase/u8-is-titlecase: New file.
81367         Tests for module 'unicase/u32-is-lowercase'.
81368         * modules/unicase/u32-is-lowercase-tests: New file.
81369         * tests/unicase/test-u32-is-lowercase.c: New file.
81371         Tests for module 'unicase/u16-is-lowercase'.
81372         * modules/unicase/u16-is-lowercase-tests: New file.
81373         * tests/unicase/test-u16-is-lowercase.c: New file.
81375         Tests for module 'unicase/u8-is-lowercase'.
81376         * modules/unicase/u8-is-lowercase-tests: New file.
81377         * tests/unicase/test-u8-is-lowercase.c: New file.
81378         * tests/unicase/test-is-lowercase.h: New file.
81380         New module 'unicase/u32-is-lowercase'.
81381         * lib/unicase/u32-is-lowercase.c: New file.
81382         * modules/unicase/u32-is-lowercase: New file.
81384         New module 'unicase/u16-is-lowercase'.
81385         * lib/unicase/u16-is-lowercase.c: New file.
81386         * modules/unicase/u16-is-lowercase: New file.
81388         New module 'unicase/u8-is-lowercase'.
81389         * lib/unicase/u8-is-lowercase.c: New file.
81390         * modules/unicase/u8-is-lowercase: New file.
81392         Tests for module 'unicase/u32-is-uppercase'.
81393         * modules/unicase/u32-is-uppercase-tests: New file.
81394         * tests/unicase/test-u32-is-uppercase.c: New file.
81396         Tests for module 'unicase/u16-is-uppercase'.
81397         * modules/unicase/u16-is-uppercase-tests: New file.
81398         * tests/unicase/test-u16-is-uppercase.c: New file.
81400         Tests for module 'unicase/u8-is-uppercase'.
81401         * modules/unicase/u8-is-uppercase-tests: New file.
81402         * tests/unicase/test-u8-is-uppercase.c: New file.
81403         * tests/unicase/test-is-uppercase.h: New file.
81405         New module 'unicase/u32-is-uppercase'.
81406         * lib/unicase/u32-is-uppercase.c: New file.
81407         * modules/unicase/u32-is-uppercase: New file.
81409         New module 'unicase/u16-is-uppercase'.
81410         * lib/unicase/u16-is-uppercase.c: New file.
81411         * modules/unicase/u16-is-uppercase: New file.
81413         New module 'unicase/u8-is-uppercase'.
81414         * lib/unicase/u8-is-uppercase.c: New file.
81415         * modules/unicase/u8-is-uppercase: New file.
81417         New module 'unicase/u32-is-invariant'.
81418         * lib/unicase/u32-is-invariant.c: New file.
81419         * modules/unicase/u32-is-invariant: New file.
81421         New module 'unicase/u16-is-invariant'.
81422         * lib/unicase/u16-is-invariant.c: New file.
81423         * modules/unicase/u16-is-invariant: New file.
81425         New module 'unicase/u8-is-invariant'.
81426         * lib/unicase/u8-is-invariant.c: New file.
81427         * lib/unicase/invariant.h: New file.
81428         * lib/unicase/u-is-invariant.h: New file.
81429         * modules/unicase/u8-is-invariant: New file.
81431         Tests for module 'unicase/u32-casecoll'.
81432         * modules/unicase/u32-casecoll-tests: New file.
81433         * tests/unicase/test-u32-casecoll.c: New file.
81435         Tests for module 'unicase/u16-casecoll'.
81436         * modules/unicase/u16-casecoll-tests: New file.
81437         * tests/unicase/test-u16-casecoll.c: New file.
81439         Tests for module 'unicase/u8-casecoll'.
81440         * modules/unicase/u8-casecoll-tests: New file.
81441         * tests/unicase/test-u8-casecoll.c: New file.
81443         New module 'unicase/u32-casecoll'.
81444         * lib/unicase/u32-casecoll.c: New file.
81445         * modules/unicase/u32-casecoll: New file.
81447         New module 'unicase/u16-casecoll'.
81448         * lib/unicase/u16-casecoll.c: New file.
81449         * modules/unicase/u16-casecoll: New file.
81451         New module 'unicase/u8-casecoll'.
81452         * lib/unicase/u8-casecoll.c: New file.
81453         * lib/unicase/u-casecoll.h: New file.
81454         * modules/unicase/u8-casecoll: New file.
81456         New module 'unicase/u32-casexfrm'.
81457         * lib/unicase/u32-casexfrm.c: New file.
81458         * modules/unicase/u32-casexfrm: New file.
81460         New module 'unicase/u16-casexfrm'.
81461         * lib/unicase/u16-casexfrm.c: New file.
81462         * modules/unicase/u16-casexfrm: New file.
81464         New module 'unicase/u8-casexfrm'.
81465         * lib/unicase/u8-casexfrm.c: New file.
81466         * lib/unicase/u-casexfrm.h: New file.
81467         * modules/unicase/u8-casexfrm: New file.
81469         Tests for module 'unicase/u32-casecmp'.
81470         * modules/unicase/u32-casecmp-tests: New file.
81471         * tests/unicase/test-u32-casecmp.c: New file.
81473         Tests for module 'unicase/u16-casecmp'.
81474         * modules/unicase/u16-casecmp-tests: New file.
81475         * tests/unicase/test-u16-casecmp.c: New file.
81477         Tests for module 'unicase/u8-casecmp'.
81478         * modules/unicase/u8-casecmp-tests: New file.
81479         * tests/unicase/test-u8-casecmp.c: New file.
81480         * tests/unicase/test-casecmp.h: New file.
81482         New module 'unicase/u32-casecmp'.
81483         * lib/unicase/u32-casecmp.c: New file.
81484         * modules/unicase/u32-casecmp: New file.
81486         New module 'unicase/u16-casecmp'.
81487         * lib/unicase/u16-casecmp.c: New file.
81488         * modules/unicase/u16-casecmp: New file.
81490         New module 'unicase/u8-casecmp'.
81491         * lib/unicase/u8-casecmp.c: New file.
81492         * lib/unicase/u-casecmp.h: New file.
81493         * modules/unicase/u8-casecmp: New file.
81495         Tests for module 'unicase/u32-casefold'.
81496         * modules/unicase/u32-casefold-tests: New file.
81497         * tests/unicase/test-u32-casefold.c: New file.
81499         Tests for module 'unicase/u16-casefold'.
81500         * modules/unicase/u16-casefold-tests: New file.
81501         * tests/unicase/test-u16-casefold.c: New file.
81503         Tests for module 'unicase/u8-casefold'.
81504         * modules/unicase/u8-casefold-tests: New file.
81505         * tests/unicase/test-u8-casefold.c: New file.
81507         New module 'unicase/u32-casefold'.
81508         * lib/unicase/u32-casefold.c: New file.
81509         * modules/unicase/u32-casefold: New file.
81511         New module 'unicase/u16-casefold'.
81512         * lib/unicase/u16-casefold.c: New file.
81513         * modules/unicase/u16-casefold: New file.
81515         New module 'unicase/u8-casefold'.
81516         * lib/unicase/u8-casefold.c: New file.
81517         * lib/unicase/u-casefold.h: New file.
81518         * modules/unicase/u8-casefold: New file.
81520         New module 'unicase/tocasefold'.
81521         * lib/unicase/casefold.h: New file.
81522         * lib/unicase/tocasefold.c: New file.
81523         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
81524         * modules/unicase/tocasefold: New file.
81526         Tests for module 'unicase/u32-totitle'.
81527         * modules/unicase/u32-totitle-tests: New file.
81528         * tests/unicase/test-u32-totitle.c: New file.
81530         Tests for module 'unicase/u16-totitle'.
81531         * modules/unicase/u16-totitle-tests: New file.
81532         * tests/unicase/test-u16-totitle.c: New file.
81534         Tests for module 'unicase/u8-totitle'.
81535         * modules/unicase/u8-totitle-tests: New file.
81536         * tests/unicase/test-u8-totitle.c: New file.
81538         New module 'unicase/u32-totitle'.
81539         * lib/unicase/u32-totitle.c: New file.
81540         * modules/unicase/u32-totitle: New file.
81542         New module 'unicase/u16-totitle'.
81543         * lib/unicase/u16-totitle.c: New file.
81544         * modules/unicase/u16-totitle: New file.
81546         New module 'unicase/u8-totitle'.
81547         * lib/unicase/u8-totitle.c: New file.
81548         * lib/unicase/u-totitle.h: New file.
81549         * modules/unicase/u8-totitle: New file.
81551         Tests for module 'unicase/u32-tolower'.
81552         * modules/unicase/u32-tolower-tests: New file.
81553         * tests/unicase/test-u32-tolower.c: New file.
81555         Tests for module 'unicase/u16-tolower'.
81556         * modules/unicase/u16-tolower-tests: New file.
81557         * tests/unicase/test-u16-tolower.c: New file.
81559         Tests for module 'unicase/u8-tolower'.
81560         * modules/unicase/u8-tolower-tests: New file.
81561         * tests/unicase/test-u8-tolower.c: New file.
81563         New module 'unicase/u32-tolower'.
81564         * lib/unicase/u32-tolower.c: New file.
81565         * modules/unicase/u32-tolower: New file.
81567         New module 'unicase/u16-tolower'.
81568         * lib/unicase/u16-tolower.c: New file.
81569         * modules/unicase/u16-tolower: New file.
81571         New module 'unicase/u8-tolower'.
81572         * lib/unicase/u8-tolower.c: New file.
81573         * modules/unicase/u8-tolower: New file.
81575         Tests for module 'unicase/u32-toupper'.
81576         * modules/unicase/u32-toupper-tests: New file.
81577         * tests/unicase/test-u32-toupper.c: New file.
81579         Tests for module 'unicase/u16-toupper'.
81580         * modules/unicase/u16-toupper-tests: New file.
81581         * tests/unicase/test-u16-toupper.c: New file.
81583         Tests for module 'unicase/u8-toupper'.
81584         * modules/unicase/u8-toupper-tests: New file.
81585         * tests/unicase/test-u8-toupper.c: New file.
81587         New module 'unicase/u32-toupper'.
81588         * lib/unicase/u32-toupper.c: New file.
81589         * modules/unicase/u32-toupper: New file.
81591         New module 'unicase/u16-toupper'.
81592         * lib/unicase/u16-toupper.c: New file.
81593         * modules/unicase/u16-toupper: New file.
81595         New module 'unicase/u8-toupper'.
81596         * lib/unicase/u8-toupper.c: New file.
81597         * modules/unicase/u8-toupper: New file.
81599         New module 'unicase/u32-casemap'.
81600         * lib/unicase/u32-casemap.c: New file.
81601         * modules/unicase/u32-casemap: New file.
81603         New module 'unicase/u16-casemap'.
81604         * lib/unicase/u16-casemap.c: New file.
81605         * modules/unicase/u16-casemap: New file.
81607         New module 'unicase/u8-casemap'.
81608         * lib/unicase/unicasemap.h: New file.
81609         * lib/unicase/u8-casemap.c: New file.
81610         * lib/unicase/u-casemap.h: New file.
81611         * modules/unicase/u8-casemap: New file.
81613         New module 'unicase/special-casing'.
81614         * lib/unicase/special-casing.h: New file.
81615         * lib/unicase/special-casing.c: New file.
81616         * lib/unicase/special-casing-table.gperf: New file, generated by
81617         gen-uni-tables.c.
81618         * modules/unicase/special-casing: New file.
81620         Tests for module 'unicase/locale-language'.
81621         * modules/unicase/locale-language-tests: New file.
81622         * tests/unicase/test-locale-language.sh: New file.
81623         * tests/unicase/test-locale-language.c: New file.
81625         New module 'unicase/locale-language'.
81626         * lib/unicase/locale-language.c: New file.
81627         * lib/unicase/locale-languages.gperf: New file.
81628         * modules/unicase/locale-language: New file.
81630         Generate more tables for case conversion and case folding.
81631         * lib/gen-uni-tables.c (SCC_*): New enum items.
81632         (struct special_casing_rule): New type.
81633         (casing_rules, num_casing_rules, allocated_casing_rules): New
81634         variables.
81635         (add_casing_rule, fill_casing_rules): New functions.
81636         (struct casefold_rule): New type.
81637         (casefolding_rules, num_casefolding_rules,
81638         allocated_casefolding_rules): New variables.
81639         (fill_casefolding_rules): New function.
81640         (unicode_casefold): New variable.
81641         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
81642         sort_casing_rules, output_casing_rules): New functions.
81643         (main): Accept to more arguments: SpecialCasing.txt and
81644         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
81645         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
81646         Output mapping for casefolding.
81648         * lib/unicase.h: Include stdbool.h, uninorm.h.
81649         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
81650         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
81651         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
81652         arguments.
81653         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
81654         resultp arguments.
81655         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
81656         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
81657         resultp arguments.
81658         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
81659         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
81660         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
81661         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
81662         declarations.
81663         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
81665 2009-03-08  Bruno Haible  <bruno@clisp.org>
81667         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
81668         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
81669         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
81670         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
81672 2009-03-07  Bruno Haible  <bruno@clisp.org>
81674         Adjust u*_normcmp, u*_normcoll API.
81675         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
81676         u16_normcoll, u32_normcoll): Change failure conventions.
81677         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
81678         errno and return -1.
81679         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
81681 2009-03-07  Bruno Haible  <bruno@clisp.org>
81683         Tests for module 'uninorm/u32-normcoll'.
81684         * modules/uninorm/u32-normcoll-tests: New file.
81685         * tests/uninorm/test-u32-normcoll.c: New file.
81687         Tests for module 'uninorm/u16-normcoll'.
81688         * modules/uninorm/u16-normcoll-tests: New file.
81689         * tests/uninorm/test-u16-normcoll.c: New file.
81691         Tests for module 'uninorm/u8-normcoll'.
81692         * modules/uninorm/u8-normcoll-tests: New file.
81693         * tests/uninorm/test-u8-normcoll.c: New file.
81695 2009-03-07  Bruno Haible  <bruno@clisp.org>
81697         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
81698         tests/uninorm/test-u32-normcmp.c.
81699         * tests/uninorm/test-u32-normcmp.c: Include it.
81700         (test_nonascii): New function, extracted from main. Add some more
81701         tests.
81702         (main): Invoke test_ascii and test_nonascii.
81703         * modules/uninorm/u32-normcmp-tests (Files): Add
81704         tests/uninorm/test-u32-normcmp.h.
81705         (Depends-on): Remove uninorm/u32-normcmp.
81707         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
81708         tests/uninorm/test-u16-normcmp.c.
81709         * tests/uninorm/test-u16-normcmp.c: Include it.
81710         (test_nonascii): New function, extracted from main. Add some more
81711         tests.
81712         (main): Invoke test_ascii and test_nonascii.
81713         * modules/uninorm/u16-normcmp-tests (Files): Add
81714         tests/uninorm/test-u16-normcmp.h.
81715         (Depends-on): Remove uninorm/u16-normcmp.
81717         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
81718         tests/uninorm/test-u8-normcmp.c.
81719         * tests/uninorm/test-u8-normcmp.c: Include it.
81720         (test_nonascii): New function, extracted from main. Add some more
81721         tests.
81722         (main): Invoke test_ascii and test_nonascii.
81723         * modules/uninorm/u8-normcmp-tests (Files): Add
81724         tests/uninorm/test-u8-normcmp.h.
81725         (Depends-on): Remove uninorm/u8-normcmp.
81727 2009-03-07  Bruno Haible  <bruno@clisp.org>
81729         New module 'uninorm/u32-normcoll'.
81730         * lib/uninorm/u32-normcoll.c: New file.
81731         * modules/uninorm/u32-normcoll: New file.
81733         New module 'uninorm/u16-normcoll'.
81734         * lib/uninorm/u16-normcoll.c: New file.
81735         * modules/uninorm/u16-normcoll: New file.
81737         New module 'uninorm/u8-normcoll'.
81738         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
81739         declarations.
81740         * lib/uninorm/u8-normcoll.c: New file.
81741         * lib/uninorm/u-normcoll.h: New file.
81742         * modules/uninorm/u8-normcoll: New file.
81744         New module 'uninorm/u32-normxfrm'.
81745         * lib/uninorm/u32-normxfrm.c: New file.
81746         * modules/uninorm/u32-normxfrm: New file.
81748         New module 'uninorm/u16-normxfrm'.
81749         * lib/uninorm/u16-normxfrm.c: New file.
81750         * modules/uninorm/u16-normxfrm: New file.
81752         New module 'uninorm/u8-normxfrm'.
81753         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
81754         declarations.
81755         * lib/uninorm/u8-normxfrm.c: New file.
81756         * lib/uninorm/u-normxfrm.h: New file.
81757         * modules/uninorm/u8-normxfrm: New file.
81759 2009-03-07  Bruno Haible  <bruno@clisp.org>
81761         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
81762         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
81763         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
81765 2009-03-07  Bruno Haible  <bruno@clisp.org>
81767         New module 'memxfrm'.
81768         * lib/memxfrm.h: New file.
81769         * lib/memxfrm.c: New file.
81770         * modules/memxfrm: New file.
81772 2009-03-07  Bruno Haible  <bruno@clisp.org>
81774         New module 'memcmp2'.
81775         * lib/memcmp2.h: New file.
81776         * lib/memcmp2.c: New file.
81777         * modules/memcmp2: New file.
81779 2009-03-07  Bruno Haible  <bruno@clisp.org>
81781         Tests for module 'uninorm/decomposing-form'.
81782         * modules/uninorm/decomposing-form-tests: New file.
81783         * tests/uninorm/test-decomposing-form.c: New file.
81785         New module 'uninorm/decomposing-form'.
81786         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
81787         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
81788         Add 'decomposing_variant' field.
81789         * lib/uninorm/decomposing-form.c: New file.
81790         * lib/uninorm/nfc.c (uninorm_nfc): Update.
81791         * lib/uninorm/nfd.c (uninorm_nfd): Update.
81792         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
81793         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
81794         * modules/uninorm/decomposing-form: New file.
81795         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
81796         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
81798 2009-03-07  Bruno Haible  <bruno@clisp.org>
81800         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
81801         strings.
81803 2009-03-06  Bruno Haible  <bruno@clisp.org>
81805         Tests for module 'uninorm/u32-normcmp'.
81806         * tests/uninorm/test-u32-normcmp.c: New file.
81807         * modules/uninorm/u32-normcmp-tests: New file.
81809         Tests for module 'uninorm/u16-normcmp'.
81810         * tests/uninorm/test-u16-normcmp.c: New file.
81811         * modules/uninorm/u16-normcmp-tests: New file.
81813         Tests for module 'uninorm/u8-normcmp'.
81814         * tests/uninorm/test-u8-normcmp.c: New file.
81815         * modules/uninorm/u8-normcmp-tests: New file.
81817         New module 'uninorm/u32-normcmp'.
81818         * lib/uninorm/u32-normcmp.c: New file.
81819         * modules/uninorm/u32-normcmp: New file.
81821         New module 'uninorm/u16-normcmp'.
81822         * lib/uninorm/u16-normcmp.c: New file.
81823         * modules/uninorm/u16-normcmp: New file.
81825         New module 'uninorm/u8-normcmp'.
81826         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
81827         declarations.
81828         * lib/uninorm/u8-normcmp.c: New file.
81829         * lib/uninorm/u-normcmp.h: New file.
81830         * modules/uninorm/u8-normcmp: New file.
81832 2009-03-06  Bruno Haible  <bruno@clisp.org>
81834         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
81835         Reported by Eric Blake.
81837 2009-03-06  Eric Blake  <ebb9@byu.net>
81838             Bruno Haible  <bruno@clisp.org>
81840         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
81841         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
81842         condition.
81843         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
81844         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
81845         condition.
81846         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
81848 2009-03-06  Eric Blake  <ebb9@byu.net>
81850         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
81851         to avoid compiler warnings.
81852         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
81854 2009-03-05  Bruno Haible  <bruno@clisp.org>
81856         * tests/test-ftell.c (main): Disable test beyond end of file on
81857         FreeMiNT.
81858         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
81860 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
81862         * lib/filevercmp.c: Move hidden files up in ordering.
81863         * tests/test-filevercmp.c: Add tests for hidden files.
81865 2009-03-04  Bruno Haible  <bruno@clisp.org>
81867         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
81868         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
81869         AM_CFLAGS.
81870         Reported by Simon Josefsson.
81872 2009-03-03  Bruno Haible  <bruno@clisp.org>
81874         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
81875         Reported by Simon Josefsson.
81877         * doc/ld-version-script.texi: Update node reference.
81879 2009-03-03  Bruno Haible  <bruno@clisp.org>
81881         * modules/visibility (License): Change to 'unlimited'.
81882         Suggested by Simon Josefsson.
81884 2009-03-03  Jim Meyering  <meyering@redhat.com>
81886         unlinkdir: cannot_unlink_dir may modify process state
81887         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
81888         it's neither thread-safe nor appropriate for use in a library.
81890 2009-03-03  Eric Blake  <ebb9@byu.net>
81892         test-closein: silence test under Darwin
81893         * tests/test-closein.sh: Ignore stderr from cat, since we don't
81894         care if it dies from EPIPE or EBADF.
81896 2009-03-03  Bruno Haible  <bruno@clisp.org>
81898         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
81899         earlier.
81900         * doc/visibility.texi: Fix @node and @section.
81902 2009-03-03  Simon Josefsson  <simon@josefsson.org>
81904         * doc/gnulib.texi: Link to sections for ld version script and
81905         visibility.
81906         * doc/visibility.texi: Add @node and @section.
81907         * modules/ld-version-script: New module.
81908         * m4/ld-version-script.m4: New file.
81909         * doc/ld-version-script.texi: New file.
81911 2009-03-02  David Lutterkort  <lutter@redhat.com>
81913         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
81914         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81916 2009-03-02  Bruno Haible  <bruno@clisp.org>
81918         * doc/visibility.texi: Mention libtool's -export-symbols option.
81920 2009-03-02  Jim Meyering  <meyering@redhat.com>
81922         announce-gen: new option: --no-print-checksums
81923         * build-aux/announce-gen (usage): Describe it.
81924         (print_checksums): Print a newline here, not in the [*] footnote.
81925         (main): Honor it.
81927 2009-03-01  Bruno Haible  <bruno@clisp.org>
81929         Use socklen_t in the native Windows replacements prototypes.
81930         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
81931         instead of 'int'.
81932         * lib/getsockopt.c (rpl_getsockopt): Likewise.
81933         * lib/setsockopt.c (rpl_setsockopt): Likewise.
81934         * modules/getsockopt (Depends-on): Add socklen.
81935         * modules/setsockopt (Depends-on): Add socklen.
81937 2009-03-01  Bruno Haible  <bruno@clisp.org>
81939         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
81940         least 4.2.
81942 2009-03-01  Eric Blake  <ebb9@byu.net>
81943             Bruno Haible  <bruno@clisp.org>
81945         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
81946         error messages.
81947         * lib/wait-process.c (wait_subprocess): Omit error message about
81948         deadly signal sent to the child of termsigp != NULL.
81950 2009-03-01  Eric Blake  <ebb9@byu.net>
81952         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
81954 2009-03-01  Bruno Haible  <bruno@clisp.org>
81956         Avoid a gcc warning.
81957         * tests/test-sched.c (b): Make global.
81958         Reported by Eric Blake.
81960 2009-01-19  Martin Lambers  <marlam@marlam.de>
81962         Provide POSIX semantics for socket timeout options on W32.
81963         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
81964         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
81965         * modules/setsockopt: Depend on sys_time module for struct timeval.
81966         * modules/getsockopt: Depend on sys_time module for struct timeval.
81968 2009-03-01  Simon Josefsson  <simon@josefsson.org>
81970         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
81971         __USE_GNU, for consistency with netdb.in.h.
81972         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
81974 2009-03-01  Bruno Haible  <bruno@clisp.org>
81976         More support for FreeMiNT.
81977         * lib/fseeko.c (rpl_fseeko): Complete last commit.
81978         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
81980 2009-03-01  Bruno Haible  <bruno@clisp.org>
81982         More support for FreeMiNT.
81983         * lib/fpurge.c (fpurge): Correct last commit.
81984         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
81986 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81988         Fix unportable awk script in vc-list-files.
81989         * build-aux/vc-list-files: In the replacement awk script, use
81990         substr with a second argument of 1, not zero.
81991         Report by Simon Josefsson.
81993 2009-02-28  Bruno Haible  <bruno@clisp.org>
81995         More support for FreeMiNT.
81996         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
81997         to FreeMiNT today.
81998         * lib/fwriting.c (fwriting): Likewise.
81999         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
82001 2009-02-28  Bruno Haible  <bruno@clisp.org>
82003         * tests/test-freadseek.c (main): Disable test beyond end of file on
82004         FreeMiNT.
82005         * tests/test-ftello.c (main): Likewise.
82006         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
82008 2009-02-28  Bruno Haible  <bruno@clisp.org>
82010         Add tentative support for FreeMiNT.
82011         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
82012         * lib/fpurge.c (fpurge): Likewise.
82013         * lib/freadable.c (freadable): Likewise.
82014         * lib/freading.c (freading): Likewise.
82015         * lib/freadptr.c (freadptr): Likewise.
82016         * lib/freadseek.c (freadptrinc): Likewise.
82017         * lib/fseeko.c (rpl_fseeko): Likewise.
82018         * lib/fseterr.c (fseterr): Likewise.
82019         * lib/fwritable.c (fwritable): Likewise.
82020         * lib/fwriting.c (fwriting): Likewise.
82021         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
82022         Hourihane.
82023         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
82025 2009-02-28  Bruno Haible  <bruno@clisp.org>
82027         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
82028         SIGCHLD.
82029         Reported by Jim Meyering.
82031 2009-02-28  Bruno Haible  <bruno@clisp.org>
82033         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
82034         Mention the results of these tests on various platforms.
82035         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
82036         order.
82037         * doc/posix-functions/printf.texi: Likewise.
82038         * doc/posix-functions/snprintf.texi: Likewise.
82039         * doc/posix-functions/sprintf.texi: Likewise.
82040         * doc/posix-functions/vfprintf.texi: Likewise.
82041         * doc/posix-functions/vprintf.texi: Likewise.
82042         * doc/posix-functions/vsnprintf.texi: Likewise.
82043         * doc/posix-functions/vsprintf.texi: Likewise.
82044         * doc/glibc-functions/obstack_printf.texi: Likewise.
82045         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
82047 2009-02-28  Bruno Haible  <bruno@clisp.org>
82049         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
82050         Reported by Loïc Minier <lool@dooz.org>.
82052 2009-02-27  Bruno Haible  <bruno@clisp.org>
82054         * gnulib-tool (func_import): Make the sed expression used to create the
82055         sed script for updating the .gitignore file POSIX compliant.
82056         Reported by Eric Blake.
82058 2009-02-27  Bruno Haible  <bruno@clisp.org>
82060         * gnulib-tool (sed): Don't alias as "sed --posix".
82061         Reported by Eric Blake.
82063 2009-02-27  Bruno Haible  <bruno@clisp.org>
82065         Avoid test link errors.
82066         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
82067         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
82068         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
82069         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
82070         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
82072 2009-02-27  Bruno Haible  <bruno@clisp.org>
82074         Avoid spurious "(cached)" in configure output.
82075         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
82076         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
82077         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
82078         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
82079         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
82080         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
82081         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
82082         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
82083         Reported by Eric Blake.
82085 2009-02-27  Eric Blake  <ebb9@byu.net>
82087         printf: fix regression in previous patch
82088         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
82090 2009-02-27  Bruno Haible  <bruno@clisp.org>
82092         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
82093         value.
82094         * lib/stdint.in.h: Likewise.
82095         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
82097 2009-02-27  Eric Blake  <ebb9@byu.net>
82099         doc: mention more functions added in cygwin 1.7.0
82100         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
82101         addition.
82102         * doc/posix-functions/open_wmemstream.texi: Likewise.
82103         * doc/posix-functions/wcsnlen.texi: Likewise.
82104         * doc/posix-functions/wcsnrtombs.texi: Likewise.
82105         * doc/posix-functions/wcstod.texi: Likewise.
82106         * doc/posix-functions/wcstof.texi: Likewise.
82107         * doc/posix-functions/wcstoimax.texi: Likewise.
82108         * doc/posix-functions/wcstok.texi: Likewise.
82109         * doc/posix-functions/wcstoumax.texi: Likewise.
82111         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
82112         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
82113         * doc/posix-functions/fprintf.texi: Update.
82114         * doc/posix-functions/printf.texi: Update.
82115         * doc/posix-functions/snprintf.texi: Update.
82116         * doc/posix-functions/sprintf.texi: Update.
82117         * doc/posix-functions/vfprintf.texi: Update.
82118         * doc/posix-functions/vprintf.texi: Update.
82119         * doc/posix-functions/vsnprintf.texi: Update.
82120         * doc/posix-functions/vsprintf.texi: Update.
82121         * doc/glibc-functions/obstack_printf.texi: Update.
82122         * doc/glibc-functions/obstack_vprintf.texi: Update.
82124 2009-02-26  Eric Blake  <ebb9@byu.net>
82126         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
82127         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
82128         compilation bug by using runtime conversion.
82129         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
82130         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
82131         * modules/ceill-tests (Files): Use nan.h.
82132         * modules/floorl-tests (Files): Likewise.
82133         * modules/frexpl-tests (Files): Likewise.
82134         * modules/isnanl-tests (Files): Likewise.
82135         * modules/ldexpl-tests (Files): Likewise.
82136         * modules/roundl-tests (Files): Likewise.
82137         * modules/truncl-tests (Files): Likewise.
82138         * tests/test-ceill.c (main): Use a working NaN.
82139         * tests/test-floorl.c (main): Likewise.
82140         * tests/test-frexpl.c (main): Likewise.
82141         * tests/test-isnan.c (test_long_double): Likewise.
82142         * tests/test-isnanl.h (main): Likewise.
82143         * tests/test-ldexpl.h (main): Likewise.
82144         * tests/test-roundl.h (main): Likewise.
82145         * tests/test-truncl.h (main): Likewise.
82146         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
82148 2009-02-26  Eric Blake  <ebb9@byu.net>
82149             Bruno Haible  <bruno@clisp.org>
82151         Work around a *printf bug with %ls on Solaris.
82152         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
82153         precision is specified, sprintf stops converting the wide string
82154         argument when the number of bytes that have been produced by this
82155         conversion equals or exceeds the precision.
82156         * doc/posix-functions/fprintf.texi: Update.
82157         * doc/posix-functions/printf.texi: Update.
82158         * doc/posix-functions/snprintf.texi: Update.
82159         * doc/posix-functions/sprintf.texi: Update.
82160         * doc/posix-functions/vfprintf.texi: Update.
82161         * doc/posix-functions/vprintf.texi: Update.
82162         * doc/posix-functions/vsnprintf.texi: Update.
82163         * doc/posix-functions/vsprintf.texi: Update.
82164         * doc/glibc-functions/obstack_printf.texi: Update.
82165         * doc/glibc-functions/obstack_vprintf.texi: Update.
82167 2009-02-26  Eric Blake  <ebb9@byu.net>
82169         stdlib: favor compiler check of random.h
82170         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
82171         to avoid an ObjC random.h installed by Swarm.
82173 2009-02-26  Bruno Haible  <bruno@clisp.org>
82175         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
82176         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
82177         Reported by Gary V. Vaughan <gary@gnu.org>.
82179 2009-02-26  Bruno Haible  <bruno@clisp.org>
82181         Fix *printf behaviour regarding the %ls directive.
82182         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
82183         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
82184         NEED_PRINTF_DIRECTIVE_LS.
82185         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
82186         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
82187         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
82188         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
82189         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
82190         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
82191         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
82192         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
82193         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
82194         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
82195         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
82196         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
82197         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
82198         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
82199         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
82200         * doc/posix-functions/fprintf.texi: Update.
82201         * doc/posix-functions/printf.texi: Update.
82202         * doc/posix-functions/snprintf.texi: Update.
82203         * doc/posix-functions/sprintf.texi: Update.
82204         * doc/posix-functions/vfprintf.texi: Update.
82205         * doc/posix-functions/vprintf.texi: Update.
82206         * doc/posix-functions/vsnprintf.texi: Update.
82207         * doc/posix-functions/vsprintf.texi: Update.
82208         * doc/glibc-functions/obstack_printf.texi: Update.
82209         * doc/glibc-functions/obstack_vprintf.texi: Update.
82210         Reported by Eric Blake.
82212 2009-02-25  Bruno Haible  <bruno@clisp.org>
82214         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
82215         with known value.
82216         Reported by Gary V. Vaughan <gary@gnu.org>.
82218 2009-02-25  Bruno Haible  <bruno@clisp.org>
82220         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
82221         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
82222         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
82223         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
82224         Reported by Gary V. Vaughan <gary@gnu.org>.
82226 2009-02-25  Bruno Haible  <bruno@clisp.org>
82228         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
82229         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
82230         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
82231         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
82232         Reported by Gary V. Vaughan <gary@gnu.org>.
82234 2009-02-25  Eric Blake  <ebb9@byu.net>
82236         tests: skip fseek/ftell tests if ungetc is broken
82237         * m4/ungetc.m4: New file.
82238         * modules/fseek-tests: Split test, so ungetc dependency is
82239         separate from rest of test.
82240         * modules/fseeko-tests: Likewise.
82241         * modules/ftell-tests: Likewise.
82242         * modules/ftello-tests: Likewise.
82243         * tests/test-fseek.c (main): Isolate ungetc dependency.
82244         * tests/test-fseeko.c (main): Likewise.
82245         * tests/test-ftell.c (main): Likewise.
82246         * tests/test-ftello.c (main): Likewise.
82247         * tests/test-fseek2.sh: New file.
82248         * tests/test-fseeko2.sh: Likewise.
82249         * tests/test-ftell2.sh: Likewise.
82250         * tests/test-ftello2.sh: Likewise.
82252 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
82254         test-getaddrinfo: fix usage of skip return code 77
82255         * tests/test-gettaddrinfo.c: Return skip code 77 only
82256         for first occurrence of skip (4x77 is not 77)
82258 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
82260         strtod: avoid C99 decl-after-statement
82261         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
82263 2009-02-24  Eric Blake  <ebb9@byu.net>
82265         strtod: detect HP-UX 11.31 bug
82266         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
82267         Reported by Gary V. Vaughan.
82269 2009-02-23  Bruno Haible  <bruno@clisp.org>
82271         Fix invalid read past end of memory block.
82272         * lib/vasnprintf.c (DCHAR_SET): Define.
82273         (local_wcslen): Define only when needed.
82274         (local_strnlen, local_wcsnlen): New functions.
82275         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
82276         directives that involve a conversion ourselves.
82277         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
82278         wcsnlen, mbrtowc, wcrtomb.
82279         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
82280         * tests/test-vasprintf-posix.c (test_function): Likewise.
82281         * tests/test-snprintf-posix.h (test_function): Likewise.
82282         * tests/test-sprintf-posix.h (test_function): Likewise.
82283         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82285 2009-02-22  Bruno Haible  <bruno@clisp.org>
82287         Implement new clarified decomposition of Hangul syllables.
82288         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
82289         of type LTV, return only a pairwise decomposition.
82290         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
82291         Likewise.
82292         * tests/uninorm/test-decomposition.c (main): Updated expected result.
82293         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
82294         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
82296 2009-02-22  Bruno Haible  <bruno@clisp.org>
82298         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
82299         zero-length results and shrink excess allocated memory.
82300         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
82301         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
82302         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
82303         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
82304         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
82305         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
82306         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
82307         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
82308         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
82309         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
82310         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
82311         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
82313 2009-02-21  Bruno Haible  <bruno@clisp.org>
82315         * doc/gnulib.texi: Include safe-alloc.texi earlier.
82316         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
82317         spaces after a period. Put a space between a macro name and its
82318         argument list. Trivial rewordings.
82319         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
82320         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
82321         (main): Return 0 explicitly.
82323 2009-02-21  Bruno Haible  <bruno@clisp.org>
82325         Tests for module 'uninorm/filter'.
82326         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
82327         * modules/uninorm/filter-tests: New file.
82329         New module 'uninorm/filter'.
82330         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
82331         uninorm_filter_flush, uninorm_filter_free): New declarations.
82332         * lib/uninorm/uninorm-filter.c: New file.
82333         * modules/uninorm/filter: New file.
82335 2009-02-21  Bruno Haible  <bruno@clisp.org>
82337         Tests for module 'uninorm/nfkc'.
82338         * tests/uninorm/test-nfkc.c: New file.
82339         * tests/uninorm/test-u8-nfkc.c: New file.
82340         * tests/uninorm/test-u16-nfkc.c: New file.
82341         * tests/uninorm/test-u32-nfkc.c: New file.
82342         * tests/uninorm/test-u32-nfkc-big.sh: New file.
82343         * tests/uninorm/test-u32-nfkc-big.c: New file.
82344         * modules/uninorm/nfkc-tests: New file.
82346         New module 'uninorm/nfkc'.
82347         * lib/uninorm/nfkc.c: New file.
82348         * modules/uninorm/nfkc: New file.
82350         Tests for module 'uninorm/nfkd'.
82351         * tests/uninorm/test-nfkd.c: New file.
82352         * tests/uninorm/test-u8-nfkd.c: New file.
82353         * tests/uninorm/test-u16-nfkd.c: New file.
82354         * tests/uninorm/test-u32-nfkd.c: New file.
82355         * tests/uninorm/test-u32-nfkd-big.sh: New file.
82356         * tests/uninorm/test-u32-nfkd-big.c: New file.
82357         * modules/uninorm/nfkd-tests: New file.
82359         New module 'uninorm/nfkd'.
82360         * lib/uninorm/nfkd.c: New file.
82361         * modules/uninorm/nfkd: New file.
82363         Tests for module 'uninorm/nfc'.
82364         * tests/uninorm/test-nfc.c: New file.
82365         * tests/uninorm/test-u8-nfc.c: New file.
82366         * tests/uninorm/test-u16-nfc.c: New file.
82367         * tests/uninorm/test-u32-nfc.c: New file.
82368         * tests/uninorm/test-u32-nfc-big.sh: New file.
82369         * tests/uninorm/test-u32-nfc-big.c: New file.
82370         * modules/uninorm/nfc-tests: New file.
82372         New module 'uninorm/nfc'.
82373         * lib/uninorm/nfc.c: New file.
82374         * modules/uninorm/nfc: New file.
82376         Tests for module 'uninorm/nfd'.
82377         * tests/uninorm/test-nfd.c: New file.
82378         * tests/uninorm/test-u8-nfd.c: New file.
82379         * tests/uninorm/test-u16-nfd.c: New file.
82380         * tests/uninorm/test-u32-nfd.c: New file.
82381         * tests/uninorm/test-u32-nfd-big.sh: New file.
82382         * tests/uninorm/test-u32-nfd-big.c: New file.
82383         * tests/uninorm/test-u32-normalize-big.h: New file.
82384         * tests/uninorm/test-u32-normalize-big.c: New file.
82385         * tests/uninorm/NormalizationTest.txt: New file, created from
82386         Unicode 5.1.0 NormalizationTest.txt.
82387         * modules/uninorm/nfd-tests: New file.
82389         New module 'uninorm/nfd'.
82390         * lib/uninorm/nfd.c: New file.
82391         * modules/uninorm/nfd: New file.
82393         New module 'uninorm/u32-normalize'.
82394         * lib/uninorm/u32-normalize.c: New file.
82395         * modules/uninorm/u32-normalize: New file.
82397         New module 'uninorm/u16-normalize'.
82398         * lib/uninorm/u16-normalize.c: New file.
82399         * modules/uninorm/u16-normalize: New file.
82401         New module 'uninorm/u8-normalize'.
82402         * lib/uninorm/u8-normalize.c: New file.
82403         * lib/uninorm/normalize-internal.h: New file.
82404         * lib/uninorm/u-normalize-internal.h: New file.
82405         * modules/uninorm/u8-normalize: New file.
82407         New module 'uninorm/decompose-internal'.
82408         * lib/uninorm/decompose-internal.c: New file.
82409         * modules/uninorm/decompose-internal: New file.
82411         Tests for module 'uninorm/composition'.
82412         * tests/uninorm/test-composition.c: New file.
82413         * modules/uninorm/composition-tests: New file.
82415         New module 'uninorm/composition'.
82416         * lib/uninorm/composition.c: New file.
82417         * lib/uninorm/composition-table.gperf: New file, generated by
82418         gen-uni-tables.
82419         * modules/uninorm/composition: New file.
82421         Tests for module 'uninorm/compat-decomposition'.
82422         * tests/uninorm/test-compat-decomposition.c: New file.
82423         * modules/uninorm/compat-decomposition-tests: New file.
82425         New module 'uninorm/compat-decomposition'.
82426         * lib/uninorm/decompose-internal.h: New file.
82427         * lib/uninorm/compat-decomposition.c: New file.
82428         * modules/uninorm/compat-decomposition: New file.
82430         Tests for module 'uninorm/canonical-decomposition'.
82431         * tests/uninorm/test-canonical-decomposition.c: New file.
82432         * modules/uninorm/canonical-decomposition-tests: New file.
82434         New module 'uninorm/canonical-decomposition'.
82435         * lib/uninorm/canonical-decomposition.c: New file.
82436         * modules/uninorm/canonical-decomposition: New file.
82438         Tests for module 'uninorm/decomposition'.
82439         * tests/uninorm/test-decomposition.c: New file.
82440         * modules/uninorm/decomposition-tests: New file.
82442         New module 'uninorm/decomposition'.
82443         * lib/uninorm/decomposition.c: New file.
82444         * modules/uninorm/decomposition: New file.
82446         New module 'uninorm/decomposition-table'.
82447         * lib/uninorm/decomposition-table.h: New file.
82448         * lib/uninorm/decomposition-table.c: New file.
82449         * lib/uninorm/decomposition-table1.h: New file, generated by
82450         gen-uni-tables.
82451         * lib/uninorm/decomposition-table2.h: New file, generated by
82452         gen-uni-tables.
82453         * modules/uninorm/decomposition-table: New file.
82455         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
82456         (UC_DECOMP_*): New enumeration items.
82457         (get_decomposition): New function.
82458         (struct decomp_table): New type.
82459         (output_decomposition, output_decomposition_tables): New functions.
82460         (unicode_composition_exclusions): New variable.
82461         (fill_composition_exclusions, debug_output_composition_tables): New
82462         functions.
82463         (main): Accept one more argument. Invoke fill_composition_exclusions.
82464         Output decomposition and composition tables.
82466         New module 'uninorm/base'.
82467         * lib/uninorm.h: New file.
82468         * lib/unictype.h: Update comment.
82469         * modules/uninorm/base: New file.
82471 2009-02-21  David Lutterkort  <lutter@redhat.com>
82473         Tests for module 'safe-alloc'.
82474         * tests/test-safe-alloc.c: New file.
82475         * modules/safe-alloc-tests: New file.
82477         New module 'safe-alloc'.
82478         * lib/safe-alloc.h: New file.
82479         * lib/safe-alloc.c: New file.
82480         * m4/safe-alloc.m4: New file.
82481         * modules/safe-alloc: New file.
82482         * doc/safe-alloc.texi: New file.
82483         * doc/gnulib.texi: Include it.
82484         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
82485         safe-alloc.
82487 2009-02-18  Bruno Haible  <bruno@clisp.org>
82489         Fix link error on non-glibc systems.
82490         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
82491         variable.
82492         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
82494 2009-02-18  Jim Meyering  <meyering@redhat.com>
82496         fts: avoid used-uninitialized error due to recent change
82497         * lib/fts.c (fts_read): Guard uses of the new member,
82498         parent->fts_n_dirs_remaining, since it's not relevant for
82499         the parent of a directory specified on the command-line.
82501 2009-02-17  James Youngman  <jay@gnu.org>
82502             Bruno Haible  <bruno@clisp.org>
82504         * m4/include_next.m4: Reformulate comment.
82506 2009-02-16  Jim Meyering  <meyering@redhat.com>
82508         fts: add #if guards so that the fts_lgpl module still builds
82509         * lib/fts.c: Guard just-added hash-table-using parts with
82510         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
82511         Reported by Simon Josefsson.
82513 2009-02-15  Bruno Haible  <bruno@clisp.org>
82515         * modules/array-mergesort-tests: New file.
82516         * tests/test-array-mergesort.c: New file.
82518         New module 'array-mergesort'.
82519         * modules/array-mergesort: New file.
82520         * lib/array-mergesort.h: New file.
82522 2009-02-15  Bruno Haible  <bruno@clisp.org>
82524         Fix 2009-02-07 commit.
82525         * lib/gen-uni-tables.c (output_predicate, output_category,
82526         output_combclass, output_bidi_category, output_decimal_digit,
82527         output_digit, output_numeric, output_mirror, output_scripts,
82528         output_ident_category, output_simple_mapping): Fix format directives.
82529         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
82531 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
82533         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
82534         fixes are available from IBM.
82536 2009-02-13  Jim Meyering  <meyering@redhat.com>
82538         fts: arrange not to stat non-directories in more cases
82539         This makes GNU find (when it doesn't need to stat each file)
82540         *much* more efficient at traversing reiserfs file systems.
82541         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
82542         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
82543         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
82544         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
82545         (leaf_optimization_applies): New function.
82546         (LCO_hash, LCO_compare): New helper functions.
82547         (link_count_optimize_ok): New function.
82548         (fts_stat): Initialize new member (if dir).
82549         (fts_read): Decrement parent's fts_n_dirs_remaining count if
82550         we've just stat'ed a directory.  Skip the stat call when possible.
82551         ---
82552         Note this AFS-related exchange:
82553         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
82554         and note find's pioctl call in find/fstype.c.
82555         But that is necessary only if you want to enable the
82556         optimization for AFS, and for now, I don't.
82558         fts: move a function definition "up" (no semantic change)
82559         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
82560         "up" to precede upcoming use of a related function.
82562 2009-02-11  Jim Meyering  <meyering@redhat.com>
82564         fts: correct internal computation of nlinks (optimization-related)
82565         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
82566         whether the current entry is a directory, so don't test it.
82568 2009-02-10  Bruno Haible  <bruno@clisp.org>
82570         Tests for module 'uniwbrk/ulc-wordbreaks'.
82571         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
82572         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
82573         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
82575         Tests for module 'uniwbrk/u32-wordbreaks'.
82576         * modules/uniwbrk/u32-wordbreaks-tests: New file.
82577         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
82579         Tests for module 'uniwbrk/u16-wordbreaks'.
82580         * modules/uniwbrk/u16-wordbreaks-tests: New file.
82581         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
82583         Tests for module 'uniwbrk/u8-wordbreaks'.
82584         * modules/uniwbrk/u8-wordbreaks-tests: New file.
82585         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
82587 2009-02-10  Bruno Haible  <bruno@clisp.org>
82589         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
82590         property.
82591         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
82592         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
82593         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
82595 2009-02-10  Simon Josefsson  <simon@josefsson.org>
82597         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
82598         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
82600 2009-02-10  Bruno Haible  <bruno@clisp.org>
82602         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
82603         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
82604         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
82605         * lib/unilbrk/u8-possible-linebreaks.c: Update.
82606         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
82607         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
82609 2009-02-09  Simon Josefsson  <simon@josefsson.org>
82611         * lib/sockets.h (gl_fd_to_handle): New function.
82613         * tests/test-sockets.c: Call gl_fd_to_handle.
82615 2009-02-09  Bruno Haible  <bruno@clisp.org>
82617         * doc/havelib.texi: Document the conventions on bi-arch systems.
82619 2009-02-08  Bruno Haible  <bruno@clisp.org>
82621         Document the AC_LIB_LINKFLAGS macro.
82622         * doc/havelib.texi: New file, mostly written on 2005-05-24.
82623         * doc/gnulib.texi: Include it.
82625 2009-02-08  Bruno Haible  <bruno@clisp.org>
82627         Fix wrong order of sections, compared to TOC.
82628         * doc/gnulib.texi: Include relocatable-maint.texi after the
82629         "Regular expressions" node, not before.
82631 2009-02-08  Bruno Haible  <bruno@clisp.org>
82633         Tests for module 'unicase/totitle'.
82634         * modules/unicase/totitle-tests: New file.
82636         Tests for module 'unicase/tolower'.
82637         * modules/unicase/tolower-tests: New file.
82639         Tests for module 'unicase/toupper'.
82640         * modules/unicase/toupper-tests: New file.
82641         * tests/unicase/test-mapping-part1.h: New file.
82642         * tests/unicase/test-mapping-part2.h: New file.
82644         New module 'unicase/totitle'.
82645         * modules/unicase/totitle: New file.
82646         * lib/unicase/totitle.c: New file.
82648         New module 'unicase/tolower'.
82649         * modules/unicase/tolower: New file.
82650         * lib/unicase/tolower.c: New file.
82652         New module 'unicase/toupper'.
82653         * modules/unicase/toupper: New file.
82654         * lib/unicase/toupper.c: New file.
82655         * lib/unicase/simple-mapping.h: New file.
82657         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
82658         (mapping_table): New structure.
82659         (output_simple_mapping): New function.
82660         (main): Invoke output_simple_mapping_test and output_simple_mapping.
82661         * modules/gen-uni-tables (Description): Update.
82662         * lib/unicase/toupper.h: New file, automatically generated by
82663         gen-uni-tables.
82664         * lib/unicase/tolower.h: New file, automatically generated by
82665         gen-uni-tables.
82666         * lib/unicase/totitle.h: New file, automatically generated by
82667         gen-uni-tables.
82668         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
82669         gen-uni-tables.
82670         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
82671         gen-uni-tables.
82672         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
82673         gen-uni-tables.
82675         New module 'unicase/base'.
82676         * modules/unicase/base: New file.
82677         * lib/unicase.h: New file.
82679 2009-02-08  Bruno Haible  <bruno@clisp.org>
82681         New module 'uniwbrk/ulc-wordbreaks'.
82682         * modules/uniwbrk/ulc-wordbreaks: New file.
82683         * lib/uniwbrk/ulc-wordbreaks.c: New file.
82685         New module 'uniwbrk/u32-wordbreaks'.
82686         * modules/uniwbrk/u32-wordbreaks: New file.
82687         * lib/uniwbrk/u32-wordbreaks.c: New file.
82689         New module 'uniwbrk/u16-wordbreaks'.
82690         * modules/uniwbrk/u16-wordbreaks: New file.
82691         * lib/uniwbrk/u16-wordbreaks.c: New file.
82693         New module 'uniwbrk/u8-wordbreaks'.
82694         * modules/uniwbrk/u8-wordbreaks: New file.
82695         * lib/uniwbrk/u8-wordbreaks.c: New file.
82696         * lib/uniwbrk/u-wordbreaks.h: New file.
82698         New module 'uniwbrk/table'.
82699         * modules/uniwbrk/table: New file.
82700         * lib/uniwbrk/wbrktable.h: New file.
82701         * lib/uniwbrk/wbrktable.c: New file.
82703         New module 'uniwbrk/wordbreak-property'.
82704         * modules/uniwbrk/wordbreak-property: New file.
82705         * lib/uniwbrk/wordbreak-property.c: New file.
82707         * lib/gen-uni-tables.c (WBP_*): New enum items.
82708         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
82709         (unicode_org_wbp): New variable.
82710         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
82711         New functions.
82712         (wbp_table): New structure.
82713         (output_wbp, output_wbrk_tables): New functions.
82714         (main): Accept additional argument. Invoke fill_org_wbp,
82715         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
82716         output_wbrk_tables.
82717         * modules/gen-uni-tables (Description): Update.
82718         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
82719         gen-uni-tables.
82721         New module 'uniwbrk/base'.
82722         * modules/uniwbrk/base: New file.
82723         * lib/uniwbrk.h: New file.
82725 2009-02-08  Bruno Haible  <bruno@clisp.org>
82727         Update to Unicode 5.1.0.
82728         * lib/gen-uni-tables.c (is_property_alphabetic): Include
82729         U+2185..U+2188.
82730         (is_property_default_ignorable_code_point): Don't include characters
82731         of category Cc or Cs and not-a-characters.
82732         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
82733         U+0D79, U+109E, U+109F, U+A60C.
82734         * lib/unictype/bidi_of.h: Regenerated.
82735         * lib/unictype/blocks.h: Regenerated.
82736         * lib/unictype/categ_C.h: Regenerated.
82737         * lib/unictype/categ_Cf.h: Regenerated.
82738         * lib/unictype/categ_Cn.h: Regenerated.
82739         * lib/unictype/categ_L.h: Regenerated.
82740         * lib/unictype/categ_Ll.h: Regenerated.
82741         * lib/unictype/categ_Lm.h: Regenerated.
82742         * lib/unictype/categ_Lo.h: Regenerated.
82743         * lib/unictype/categ_Lu.h: Regenerated.
82744         * lib/unictype/categ_M.h: Regenerated.
82745         * lib/unictype/categ_Mc.h: Regenerated.
82746         * lib/unictype/categ_Me.h: Regenerated.
82747         * lib/unictype/categ_Mn.h: Regenerated.
82748         * lib/unictype/categ_N.h: Regenerated.
82749         * lib/unictype/categ_Nd.h: Regenerated.
82750         * lib/unictype/categ_Nl.h: Regenerated.
82751         * lib/unictype/categ_No.h: Regenerated.
82752         * lib/unictype/categ_P.h: Regenerated.
82753         * lib/unictype/categ_Pd.h: Regenerated.
82754         * lib/unictype/categ_Pe.h: Regenerated.
82755         * lib/unictype/categ_Pf.h: Regenerated.
82756         * lib/unictype/categ_Pi.h: Regenerated.
82757         * lib/unictype/categ_Po.h: Regenerated.
82758         * lib/unictype/categ_Ps.h: Regenerated.
82759         * lib/unictype/categ_S.h: Regenerated.
82760         * lib/unictype/categ_Sk.h: Regenerated.
82761         * lib/unictype/categ_Sm.h: Regenerated.
82762         * lib/unictype/categ_So.h: Regenerated.
82763         * lib/unictype/categ_of.h: Regenerated.
82764         * lib/unictype/combining.h: Regenerated.
82765         * lib/unictype/ctype_alnum.h: Regenerated.
82766         * lib/unictype/ctype_alpha.h: Regenerated.
82767         * lib/unictype/ctype_graph.h: Regenerated.
82768         * lib/unictype/ctype_lower.h: Regenerated.
82769         * lib/unictype/ctype_print.h: Regenerated.
82770         * lib/unictype/ctype_punct.h: Regenerated.
82771         * lib/unictype/ctype_upper.h: Regenerated.
82772         * lib/unictype/decdigit.h: Regenerated.
82773         * lib/unictype/digit.h: Regenerated.
82774         * lib/unictype/mirror.h: Regenerated.
82775         * lib/unictype/numeric.h: Regenerated.
82776         * lib/unictype/pr_alphabetic.h: Regenerated.
82777         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
82778         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
82779         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
82780         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
82781         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
82782         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
82783         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
82784         * lib/unictype/pr_combining.h: Regenerated.
82785         * lib/unictype/pr_dash.h: Regenerated.
82786         * lib/unictype/pr_decimal_digit.h: Regenerated.
82787         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
82788         * lib/unictype/pr_deprecated.h: Regenerated.
82789         * lib/unictype/pr_diacritic.h: Regenerated.
82790         * lib/unictype/pr_extender.h: Regenerated.
82791         * lib/unictype/pr_format_control.h: Regenerated.
82792         * lib/unictype/pr_grapheme_base.h: Regenerated.
82793         * lib/unictype/pr_grapheme_extend.h: Regenerated.
82794         * lib/unictype/pr_grapheme_link.h: Regenerated.
82795         * lib/unictype/pr_id_continue.h: Regenerated.
82796         * lib/unictype/pr_id_start.h: Regenerated.
82797         * lib/unictype/pr_ideographic.h: Regenerated.
82798         * lib/unictype/pr_ignorable_control.h: Regenerated.
82799         * lib/unictype/pr_lowercase.h: Regenerated.
82800         * lib/unictype/pr_math.h: Regenerated.
82801         * lib/unictype/pr_numeric.h: Regenerated.
82802         * lib/unictype/pr_other_alphabetic.h: Regenerated.
82803         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
82804         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
82805         * lib/unictype/pr_other_id_continue.h: Regenerated.
82806         * lib/unictype/pr_other_lowercase.h: Regenerated.
82807         * lib/unictype/pr_other_math.h: Regenerated.
82808         * lib/unictype/pr_punctuation.h: Regenerated.
82809         * lib/unictype/pr_sentence_terminal.h: Regenerated.
82810         * lib/unictype/pr_soft_dotted.h: Regenerated.
82811         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
82812         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
82813         * lib/unictype/pr_unified_ideograph.h: Regenerated.
82814         * lib/unictype/pr_uppercase.h: Regenerated.
82815         * lib/unictype/pr_xid_continue.h: Regenerated.
82816         * lib/unictype/pr_xid_start.h: Regenerated.
82817         * lib/unictype/pr_zero_width.h: Regenerated.
82818         * lib/unictype/scripts.h: Regenerated.
82819         * lib/unictype/scripts_byname.gperf: Regenerated.
82820         * lib/unictype/sy_java_ident.h: Regenerated.
82821         * lib/unilbrk/lbrkprop1.h: Regenerated.
82822         * lib/unilbrk/lbrkprop2.h: Regenerated.
82823         * tests/unictype/test-categ_C.c: Regenerated.
82824         * tests/unictype/test-categ_Cf.c: Regenerated.
82825         * tests/unictype/test-categ_Cn.c: Regenerated.
82826         * tests/unictype/test-categ_L.c: Regenerated.
82827         * tests/unictype/test-categ_Ll.c: Regenerated.
82828         * tests/unictype/test-categ_Lm.c: Regenerated.
82829         * tests/unictype/test-categ_Lo.c: Regenerated.
82830         * tests/unictype/test-categ_Lu.c: Regenerated.
82831         * tests/unictype/test-categ_M.c: Regenerated.
82832         * tests/unictype/test-categ_Mc.c: Regenerated.
82833         * tests/unictype/test-categ_Me.c: Regenerated.
82834         * tests/unictype/test-categ_Mn.c: Regenerated.
82835         * tests/unictype/test-categ_N.c: Regenerated.
82836         * tests/unictype/test-categ_Nd.c: Regenerated.
82837         * tests/unictype/test-categ_Nl.c: Regenerated.
82838         * tests/unictype/test-categ_No.c: Regenerated.
82839         * tests/unictype/test-categ_P.c: Regenerated.
82840         * tests/unictype/test-categ_Pd.c: Regenerated.
82841         * tests/unictype/test-categ_Pe.c: Regenerated.
82842         * tests/unictype/test-categ_Pf.c: Regenerated.
82843         * tests/unictype/test-categ_Pi.c: Regenerated.
82844         * tests/unictype/test-categ_Po.c: Regenerated.
82845         * tests/unictype/test-categ_Ps.c: Regenerated.
82846         * tests/unictype/test-categ_S.c: Regenerated.
82847         * tests/unictype/test-categ_Sk.c: Regenerated.
82848         * tests/unictype/test-categ_Sm.c: Regenerated.
82849         * tests/unictype/test-categ_So.c: Regenerated.
82850         * tests/unictype/test-ctype_alnum.c: Regenerated.
82851         * tests/unictype/test-ctype_alpha.c: Regenerated.
82852         * tests/unictype/test-ctype_graph.c: Regenerated.
82853         * tests/unictype/test-ctype_lower.c: Regenerated.
82854         * tests/unictype/test-ctype_print.c: Regenerated.
82855         * tests/unictype/test-ctype_punct.c: Regenerated.
82856         * tests/unictype/test-ctype_upper.c: Regenerated.
82857         * tests/unictype/test-decdigit.h: Regenerated.
82858         * tests/unictype/test-digit.h: Regenerated.
82859         * tests/unictype/test-numeric.h: Regenerated.
82860         * tests/unictype/test-pr_alphabetic.c: Regenerated.
82861         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
82862         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
82863         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
82864         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
82865         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
82866         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
82867         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
82868         * tests/unictype/test-pr_combining.c: Regenerated.
82869         * tests/unictype/test-pr_dash.c: Regenerated.
82870         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
82871         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
82872         * tests/unictype/test-pr_deprecated.c: Regenerated.
82873         * tests/unictype/test-pr_diacritic.c: Regenerated.
82874         * tests/unictype/test-pr_extender.c: Regenerated.
82875         * tests/unictype/test-pr_format_control.c: Regenerated.
82876         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
82877         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
82878         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
82879         * tests/unictype/test-pr_id_continue.c: Regenerated.
82880         * tests/unictype/test-pr_id_start.c: Regenerated.
82881         * tests/unictype/test-pr_ideographic.c: Regenerated.
82882         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
82883         * tests/unictype/test-pr_lowercase.c: Regenerated.
82884         * tests/unictype/test-pr_math.c: Regenerated.
82885         * tests/unictype/test-pr_numeric.c: Regenerated.
82886         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
82887         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
82888         Regenerated.
82889         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
82890         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
82891         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
82892         * tests/unictype/test-pr_other_math.c: Regenerated.
82893         * tests/unictype/test-pr_punctuation.c: Regenerated.
82894         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
82895         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
82896         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
82897         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
82898         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
82899         * tests/unictype/test-pr_uppercase.c: Regenerated.
82900         * tests/unictype/test-pr_xid_continue.c: Regenerated.
82901         * tests/unictype/test-pr_xid_start.c: Regenerated.
82902         * tests/unictype/test-pr_zero_width.c: Regenerated.
82904         Update to Unicode 5.1.0.
82905         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
82906         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
82907         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
82908         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
82909         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
82910         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
82911         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
82912         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
82913         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
82914         (nonspacing_table_ind): Update.
82915         * tests/uniwidth/test-uc_width2.sh: Update expected result.
82917         Update to Unicode 5.1.0.
82918         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
82919         code transform.
82920         * lib/uniname/uniname.c (unicode_character_name,
82921         unicode_name_character): Add the range 0x1Fxxx to the code transform.
82922         * lib/uniname/uninames.h: Regenerated.
82923         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
82925 2009-02-07  Bruno Haible  <bruno@clisp.org>
82927         Merge gen-ctype and gen-lbrk into a single program.
82928         * lib/gen-uni-tables.c: New file, incorporating
82929         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
82930         Add directory prefixes to the names of the generated files.
82931         * lib/unictype/gen-ctype.c: Remove file.
82932         * lib/unilbrk/gen-lbrk.c: Remove file.
82933         * modules/gen-uni-tables: New file.
82934         * modules/unictype/gen-ctype: Remove file.
82935         * modules/unilbrk/gen-lbrk: Remove file.
82937 2009-02-07  Bruno Haible  <bruno@clisp.org>
82939         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
82941         New module 'unistr/u32-strcoll'.
82942         * modules/unistr/u32-strcoll: New file.
82943         * lib/unistr/u32-strcoll.c: New file.
82945         New module 'unistr/u16-strcoll'.
82946         * modules/unistr/u16-strcoll: New file.
82947         * lib/unistr/u16-strcoll.c: New file.
82949         New module 'unistr/u8-strcoll'.
82950         * modules/unistr/u8-strcoll: New file.
82951         * lib/unistr/u8-strcoll.c: New file.
82952         * lib/unistr/u-strcoll.h: New file.
82954 2009-02-07  Bruno Haible  <bruno@clisp.org>
82956         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
82957         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
82958         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
82959         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
82960         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
82961         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
82963 2009-02-07  Bruno Haible  <bruno@clisp.org>
82965         Make 64-bit clean.
82966         * lib/unictype/gen-ctype.c (output_predicate, output_category,
82967         output_combclass, output_bidi_category, output_decimal_digit,
82968         output_digit, output_numeric, output_mirror, output_scripts,
82969         output_ident_category): Use proper width specifier in format strings.
82971 2009-02-07  Bruno Haible  <bruno@clisp.org>
82973         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
82974         failure behaviour.
82976 2009-02-07  Jim Meyering  <meyering@redhat.com>
82978         regex: avoid compilation failure with upcoming gcc-4.4
82979         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
82980         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
82981         "... error: integer overflow in preprocessor expression".
82983 2009-02-05  Ben Pfaff  <blp@gnu.org>
82985         Fix link errors on Windows when close module is used.
82986         * modules/close: Add $(LIB_CLOSE) to Link section.
82987         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
82988         $(LIB_CLOSE) on Windows.
82990 2009-02-05  Jim Meyering  <meyering@redhat.com>
82992         still avoid unused-parameter warnings, but do it cleanly
82993         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
82994         (get_fs_usage): Cast to void instead.
82995         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
82996         (dev_from_mount_options, read_file_system_list): Cast to void.
82997         Prompted by Bruno Haible.
82999 2009-02-04  Jim Meyering  <meyering@redhat.com>
83001         fsusage.c: correct copyright year
83002         * lib/fsusage.c: Reflect year in which the change is pushed into
83004         avoid misc. warnings
83005         * lib/fsusage.c (UNUSED_PARAM): Define.
83006         (get_fs_usage): Mark parameter "disk" as unused.
83007         * lib/getugroups.c (getgrent): Use "void" in prototype.
83008         * lib/mountlist.c: Mark unused parameters.
83009         (read_file_system_list): Declare a local with "const".
83010         * lib/nanosleep.c (getnow): Declare static.
83011         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
83013         dirfd: set errno upon failure
83014         * lib/dirfd.c: Include <errno.h>.
83015         Set errno to ENOTSUP when returning -1.
83016         * modules/dirfd (Depends-on): Add errno.
83017         Suggested by John Kodis <kodis@comcast.net>.
83019 2009-02-01  Bruno Haible  <bruno@clisp.org>
83021         Don't assume sizeof (long) >= sizeof (void *).
83022         * lib/memcmp.c: Include stdint.h.
83023         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
83024         srcp2 to 'const byte *'.
83025         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
83026         types to uintptr_t.
83027         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
83028         * modules/memcmp (Depends-on): Add stdint.
83029         Reported by Ozkan Sezer <sezeroz@gmail.com>.
83031 2009-01-30  Eric Blake  <ebb9@byu.net>
83033         fix more require-before-expand issues
83034         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
83035         expand, AC_PROG_AWK.
83036         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
83038 2009-01-28  Eric Blake  <ebb9@byu.net>
83040         version-etc: use consistent URL formatting
83041         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
83042         Improve formatting.  Use fputs for string without %.
83044 2009-01-28  Jim Meyering  <meyering@redhat.com>
83046         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
83047         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
83048         "underquoted definition of NAME" from autoconf-2.59.
83050 2009-01-28  Bruno Haible  <bruno@clisp.org>
83052         * doc/gnulib.texi: Add "Obsolete modules" to index.
83054 2009-01-28  Jim Meyering  <meyering@redhat.com>
83056         useless-if-before-free: recognize more variants
83057         * build-aux/useless-if-before-free: Also recognize e.g.,
83058         if (NULL != p) free (p);
83060 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
83062         test-getaddrinfo: skip (don't fail) this test when there's no network
83063         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
83064         on the presumption that it means you lack network access.
83066 2009-01-26  Jim Meyering  <meyering@redhat.com>
83068         fflush: avoid warnings on modern systems
83069         * lib/fflush.c (rpl_fflush): Move declarations of locals,
83070         pos and result, into scopes where they're used.
83072 2009-01-26  Eric Blake  <ebb9@byu.net>
83074         Silence warning reintroduced by recent extensions patch.
83075         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
83076         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
83077         autoconf.
83079         Backport improved autoconf semantics of AC_DEFUN_ONCE.
83080         * m4/00gnulib.m4: New file.
83081         * gnulib-tool (func_get_filelist): Always use it.
83082         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
83083         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
83085 2009-01-25  Bruno Haible  <bruno@clisp.org>
83087         Make test-quotearg work on MacOS X and AIX.
83088         * tests/test-quotearg.sh: New file.
83089         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
83090         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
83091         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
83092         include <libintl.h>.
83093         (fake_locale): Remove variable.
83094         (gettext, dgettext, dcgettext): Remove functions.
83095         (main): Instead of setting a fake locale, set a real locale. Call
83096         textdomain and bindtextdomain.
83097         * modules/quotearg-tests (Files): Add the new files.
83098         (Depends-on): Add gettext, setenv, unsetenv.
83099         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
83100         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
83101         Augment TESTS_ENVIRONMENT.
83103 2009-01-25  Bruno Haible  <bruno@clisp.org>
83105         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
83106         fr_FR.ISO8859-1 locale on MacOS X.
83107         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
83108         ja_JP.eucJP locale on MacOS X.
83109         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
83110         zh_CN.GB18030 locale on MacOS X.
83112 2009-01-25  Bruno Haible  <bruno@clisp.org>
83114         Avoid link errors on MacOS X 10.3.
83115         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
83116         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
83118 2009-01-25  Bruno Haible  <bruno@clisp.org>
83120         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
83121         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
83122         * modules/pipe (Files): Remove m4/posix_spawn.m4.
83123         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
83124         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
83125         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
83126         posix_spawnattr_init, posix_spawnattr_setsigmask,
83127         posix_spawnattr_setflags, posix_spawnattr_destroy.
83129         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
83130         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
83131         * modules/execute (Files): Remove m4/posix_spawn.m4.
83132         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
83133         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
83134         posix_spawnattr_init, posix_spawnattr_setsigmask,
83135         posix_spawnattr_setflags, posix_spawnattr_destroy.
83137 2009-01-25  Bruno Haible  <bruno@clisp.org>
83139         * lib/glthread/threadlib.c: Include <stdlib.h>.
83141 2009-01-25  Bruno Haible  <bruno@clisp.org>
83143         * lib/glthread/threadlib.c (dummy): New declaration.
83145 2009-01-25  Bruno Haible  <bruno@clisp.org>
83147         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
83148         multibyte characters also for the GB18030 encoding. Don't crash when
83149         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
83151 2009-01-25  Bruno Haible  <bruno@clisp.org>
83153         Avoid redefining 'struct random_data' on OSF/1 5.1.
83154         * lib/stdlib.in.h: Include <random.h> if it exists.
83155         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
83156         HAVE_RANDOM_H. Include <random.h> when testing whether
83157         'struct random_data' exists.
83158         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
83160 2009-01-25  Bruno Haible  <bruno@clisp.org>
83162         Don't install charset.alias on MacOS X >= 10.3.
83163         * lib/localcharset.c (DARWIN7): New macro.
83164         (get_charset_aliases): Hardcode the result for Darwin7.
83165         * modules/localcharset (install-exec-local): Don't install
83166         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
83168 2009-01-25  Bruno Haible  <bruno@clisp.org>
83170         Don't install charset.alias on mingw and Cygwin.
83171         * modules/localcharset (install-exec-local): Don't install
83172         charset.alias on mingw and Cygwin, if the file does not yet exist.
83173         The result for these platforms is hardcoded in localcharset.c.
83175 2009-01-25  Bruno Haible  <bruno@clisp.org>
83177         Make it possible again to use AC_GNU_SOURCE together with gnulib.
83178         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
83179         before requiring AC_USE_SYSTEM_EXTENSIONS.
83181 2009-01-25  Jim Meyering  <meyering@redhat.com>
83183         c-strtod: avoid warnings
83184         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
83185         "assignment discards qualifiers from pointer target type" warnings.
83187 2009-01-24  Bruno Haible  <bruno@clisp.org>
83189         Add support for non-UTF-8 locales on MacOS X.
83190         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
83191         canonical encodings. For Darwin 7 and newer, don't map traditional
83192         encodings to UTF-8.
83193         Reported by Vincent Lefevre <vincent@vinc17.org>
83194         at <http://savannah.gnu.org/bugs/?25235>.
83196 2009-01-24  Bruno Haible  <bruno@clisp.org>
83198         * doc/gnulib.texi (Obsolete modules): New section.
83199         Reported by Mike Frysinger <vapier@gentoo.org>.
83201 2009-01-24  Bruno Haible  <bruno@clisp.org>
83203         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
83204         (%.dvi): New rule.
83206 2009-01-24  Bruno Haible  <bruno@clisp.org>
83208         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
83209         Reported by Eric Blake.
83211 2009-01-24  Bruno Haible  <bruno@clisp.org>
83213         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
83214         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
83215         Reported by Gary V. Vaughan <gary@gnu.org>.
83217 2009-01-24  Bruno Haible  <bruno@clisp.org>
83219         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
83221 2009-01-23  Bruno Haible  <bruno@clisp.org>
83223         Make c-strtod, c-strtold usable in libraries.
83224         * lib/c-strtod.c: Include string.h instead of xalloc.h.
83225         (C_STRTOD): Call strdup instead of xstrdup.
83226         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
83227         * modules/c-strtold (Depends-on): Likewise.
83228         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
83229         * NEWS: Mention the change.
83230         Reported by Michael Gold <mgold@ncf.ca>.
83232 2009-01-23  Jim Meyering  <meyering@redhat.com>
83234         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
83235         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
83236         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
83238 2009-01-23  Simon Josefsson  <simon@josefsson.org>
83240         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
83241         GNU CoreUtils.
83242         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
83243         * modules/version-etc (Description): Update.
83245 2009-01-22  Bruno Haible  <bruno@clisp.org>
83247         Cache the C locale object.
83248         * lib/c-strtod.c (c_locale_cache): New variable.
83249         (c_locale): New function.
83250         (C_STRTOD): Use it, and don't call freelocale.
83251         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
83252         Suggested by Paolo Bonzini.
83254 2009-01-21  Bruno Haible  <bruno@clisp.org>
83256         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
83257         conditions other than overflow.
83259 2009-01-21  Bruno Haible  <bruno@clisp.org>
83261         * lib/c-strtod.c: Include errno.h.
83262         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
83263         value from STRTOD_L and STRTOD.
83265 2009-01-21  Bruno Haible  <bruno@clisp.org>
83266         and Jim Meyering  <meyering@redhat.com>
83268         nanosleep: skip configure test (fail it) for apple universal builds
83269         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
83270         universal builds, assume that nanosleep does not work.
83271         * modules/nanosleep (Depends-on): Add multiarch.
83273         mktime: skip configure test (fail it) for apple universal builds
83274         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
83275         universal builds, assume that mktime does not work.
83276         * modules/mktime (Depends-on): Add multiarch.
83278 2009-01-21  Eric Blake  <ebb9@byu.net>
83280         multiarch: avoid expand-before-require warning
83281         * modules/multiarch (configure.ac): Require, rather than expand,
83282         gl_MULTIARCH.
83283         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
83284         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
83285         enforce that all clients require it.  Partial reversion of
83286         2008-12-29 patch.
83288         error: avoid expand-before-require warning
83289         * modules/errno (configure.ac): Require, rather than expand,
83290         gl_HEADER_ERRNO_H.
83291         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
83292         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
83293         enforce that all clients require it.
83295         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
83296         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
83297         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
83298         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
83300 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
83302         Revert:
83303         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
83305         regex: do not depend on obsolete modules.
83306         * modules/regex: Remove memcmp and memmove.
83308 2009-01-20  Bruno Haible  <bruno@clisp.org>
83310         Make the 'link' module link on Windows NT 4.
83311         * lib/link.c (_WIN32_WINNT): Don't define.
83312         (CreateHardLinkFuncType): New type.
83313         (CreateHardLinkFunc, initialized): New variables.
83314         (initialize): New function.
83315         (link): Invoke CreateHardLink indirectly through the function pointer.
83317 2009-01-20  Bruno Haible  <bruno@clisp.org>
83319         Fix compilation failure on mingw.
83320         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
83322 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
83324         * doc/c-strtod.texi: Mention a couple of restrictions.
83326 2009-01-20  Jim Meyering  <meyering@redhat.com>
83328         gettimeofday: move more declarations out of functions
83329         * lib/gettimeofday.c: Move extern declarations of tzset and
83330         gmtime out of containing functions.  Prompted by Bruno Haible.
83332 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
83334         regex: do not depend on obsolete modules.
83335         * modules/regex: Remove memcmp and memmove.
83337 2009-01-19  Bruno Haible  <bruno@clisp.org>
83339         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
83340         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
83341         gl_BIGENDIAN, not AC_C_BIGENDIAN.
83342         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
83343         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
83345 2009-01-19  Bruno Haible  <bruno@clisp.org>
83347         * tests/test-link.c: Include <errno.h>.
83348         (main): Exit with code 77 when a hard link cannot be created due to
83349         the file system.
83350         * tests/test-link.sh: Skip test when a hard link cannot be created due
83351         to the file system.
83352         Suggested by Eric Blake.
83354 2009-01-19  Martin Lambers  <marlam@marlam.de>
83356         * modules/link-tests: New file.
83357         * tests/test-link.sh: New file.
83358         * tests/test-link.c: New file.
83360 2009-01-19  Eric Blake  <ebb9@byu.net>
83362         doc: mention another function added in cygwin 1.7.0
83363         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
83364         Another new function in cygwin 1.7.
83366 2009-01-19  Bruno Haible  <bruno@clisp.org>
83368         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
83369         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
83370         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
83371         gl_BIGENDIAN, not AC_C_BIGENDIAN.
83372         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
83373         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
83374         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
83375         * m4/md4.m4 (gl_MD4): Likewise.
83376         * m4/md5.m4 (gl_MD5): Likewise.
83377         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
83378         * m4/sha1.m4 (gl_SHA1): Likewise.
83379         * m4/sha256.m4 (gl_SHA256): Likewise.
83380         * m4/sha512.m4 (gl_SHA512): Likewise.
83382 2009-01-19  Bruno Haible  <bruno@clisp.org>
83384         * modules/uniname/uniname-tests (Depends-on): Add progname.
83385         * tests/uniname/test-uninames.c: Include progname.h.
83386         (main): Call set_program_name.
83388         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
83389         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
83390         (main): Call set_program_name.
83392         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
83393         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
83394         (main): Call set_program_name.
83396         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
83397         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
83398         (main): Call set_program_name.
83400         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
83401         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
83402         (main): Call set_program_name.
83404         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
83405         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
83406         (main): Call set_program_name.
83408         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
83409         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
83410         (main): Call set_program_name.
83412         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
83413         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
83414         (main): Call set_program_name.
83416         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
83417         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
83418         (main): Call set_program_name.
83420 2009-01-19  Eric Blake  <ebb9@byu.net>
83422         test-unistd: test previous patch
83423         * tests/test-unistd.c: Test *_FILENO macros.
83425         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
83426         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
83427         Guarantee a definition.
83428         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
83429         * modules/unistd-safer (Depends-on): Add dependency on unistd.
83430         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
83431         * lib/dup-safer.c (STDERR_FILENO): Likewise.
83432         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
83433         Likewise.
83434         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
83435         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
83436         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
83437         Likewise.
83438         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
83439         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
83440         (STDERR_FILENO): Likewise.
83441         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
83442         (STDERR_FILENO): Likewise.
83443         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
83444         (STDERR_FILENO): Likewise.
83445         Reported by Elbert Pol.
83447 2009-01-19  Eric Blake  <ebb9@byu.net>
83449         doc: mention more functions added in cygwin 1.7.0
83450         * doc/posix-functions/abort.texi (abort): Update wording related
83451         to cygwin.
83452         * doc/posix-functions/daylight.texi (daylight): Likewise.
83453         * doc/posix-functions/optarg.texi (optarg): Likewise.
83454         * doc/posix-functions/optarg.texi (opterr): Likewise.
83455         * doc/posix-functions/optarg.texi (optind): Likewise.
83456         * doc/posix-functions/optarg.texi (optopt): Likewise.
83457         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
83458         worked in 1.5.x, and was withdrawn in 1.7.
83459         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
83460         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
83461         cygwin versions.
83462         * doc/posix-functions/perror.texi (perror): Likewise.
83463         * doc/posix-functions/printf.texi (printf): Likewise.
83464         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
83465         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
83466         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
83467         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
83468         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
83469         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
83470         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
83471         Likewise.
83472         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
83473         Likewise.
83474         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
83475         this function.
83476         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
83477         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
83478         Likewise.
83479         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
83480         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
83481         * doc/posix-functions/confstr.texi (confstr): Likewise.
83482         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
83483         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
83484         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
83485         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
83486         * doc/posix-functions/fputws.texi (fputws): Likewise.
83487         * doc/posix-functions/fwide.texi (fwide): Likewise.
83488         * doc/posix-functions/getwc.texi (getwc): Likewise.
83489         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
83490         * doc/posix-functions/putwc.texi (putwc): Likewise.
83491         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
83492         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
83493         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
83494         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
83495         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
83496         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
83497         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
83498         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
83499         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
83500         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
83501         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
83503 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
83505         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
83506         * lib/ioctl.c: Include <sys/ioctl.h>.
83508 2009-01-19  Simon Josefsson  <simon@josefsson.org>
83510         * modules/getdate-tests (Depends-on): Add progname.
83511         * tests/test-getdate.c: Use progname module, to avoid link errors
83512         on non-glibc systems.
83514 2009-01-18  Simon Josefsson  <simon@josefsson.org>
83516         * modules/filenamecat-tests (Depends-on): Add progname.
83517         * modules/fstrcmp-tests (Depends-on): Likewise.
83519         * tests/test-filenamecat.c: Use progname module, to avoid link
83520         errors on non-glibc systems.
83521         * tests/test-fstrcmp.c: Likewise.
83523 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
83525         gettimeofday: avoid warning: nested extern declaration of 'localtime'
83526         * lib/gettimeofday.c: Move extern declaration out of function.
83528 2009-01-18  Bruno Haible  <bruno@clisp.org>
83530         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
83531         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
83532         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
83534 2009-01-18  Bruno Haible  <bruno@clisp.org>
83536         * lib/strftime.c (MEMPCPY): Remove unused macro.
83537         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
83539 2009-01-18  Martin Lambers  <marlam@marlam.de>
83541         New module 'link'.
83542         * lib/unistd.in.h (link): New declaration.
83543         * lib/link.c: New file.
83544         * m4/link.m4: New file.
83545         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
83546         HAVE_LINK.
83547         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
83548         * modules/link: New file.
83549         * doc/posix-functions/link.texi: Mention the new module.
83551 2009-01-18  Bruno Haible  <bruno@clisp.org>
83553         * tests/test-avltree_list.c (main): Call set_program_name.
83554         * tests/test-avltree_oset.c (main): Likewise.
83555         * tests/test-obstack-printf.c: Include progname.h.
83556         (main): Call set_program_name.
83557         * tests/test-quotearg.c: Include progname.h.
83558         (main): Call set_program_name.
83559         * tests/test-xmemdup0.c: Include progname.h.
83560         (main): Call set_program_name.
83562 2009-01-18  Bruno Haible  <bruno@clisp.org>
83564         New module 'alphasort'.
83565         * lib/dirent.in.h (alphasort): New declaration.
83566         * lib/alphasort.c: New file, from glibc with modifications.
83567         * m4/alphasort.m4: New file.
83568         * modules/alphasort: New file.
83569         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
83570         HAVE_ALPHASORT.
83571         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
83572         HAVE_ALPHASORT.
83573         * doc/posix-functions/alphasort.texi: Mention the new module and the
83574         portability problems.
83576 2009-01-18  Bruno Haible  <bruno@clisp.org>
83578         New module 'scandir'.
83579         * lib/dirent.in.h (scandir): New declaration.
83580         * lib/scandir.c: New file, from glibc with modifications.
83581         * m4/scandir.m4: New file.
83582         * modules/scandir: New file.
83583         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
83584         HAVE_SCANDIR.
83585         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
83586         HAVE_SCANDIR.
83587         * doc/posix-functions/scandir.texi: Mention the new module and the
83588         portability problems.
83590 2009-01-17  Bruno Haible  <bruno@clisp.org>
83592         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
83593         Update documentation.
83594         (func_remove_suffix): Escape all dots in the suffix. Update
83595         documentation.
83596         (func_filter_filelist): Update documentation.
83597         Reported by Ralf Wildenhues.
83599 2009-01-17  Bruno Haible  <bruno@clisp.org>
83601         * modules/dprintf-posix-tests: New file.
83602         * tests/test-dprintf-posix.sh: New file.
83603         * tests/test-dprintf-posix.c: New file.
83605         New modules 'dprintf', 'dprintf-posix'.
83606         * lib/stdio.in.h (dprintf): New declaration.
83607         * lib/dprintf.c: New file.
83608         * m4/dprintf.m4: New file.
83609         * m4/dprintf-posix.m4: New file.
83610         * modules/dprintf: New file.
83611         * modules/dprintf-posix: New file.
83612         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
83613         HAVE_DPRINTF, REPLACE_DPRINTF.
83614         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
83615         HAVE_DPRINTF, REPLACE_DPRINTF.
83616         * doc/posix-functions/dprintf.texi: Mention the new modules.
83618 2009-01-17  Bruno Haible  <bruno@clisp.org>
83620         * modules/vdprintf-posix-tests: New file.
83621         * tests/test-vdprintf-posix.sh: New file.
83622         * tests/test-vdprintf-posix.c: New file.
83624         New modules 'vdprintf', 'vdprintf-posix'.
83625         * lib/stdio.in.h (vdprintf): New declaration.
83626         * lib/vdprintf.c: New file.
83627         * m4/vdprintf.m4: New file.
83628         * m4/vdprintf-posix.m4: New file.
83629         * modules/vdprintf: New file.
83630         * modules/vdprintf-posix: New file.
83631         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
83632         HAVE_VDPRINTF, REPLACE_VDPRINTF.
83633         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
83634         HAVE_VDPRINTF, REPLACE_VDPRINTF.
83635         * doc/posix-functions/vdprintf.texi: Mention the new modules.
83637 2009-01-17  Bruno Haible  <bruno@clisp.org>
83639         Fix replacement of fopen on mingw.
83640         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
83641         mingw.
83643 2009-01-17  Bruno Haible  <bruno@clisp.org>
83645         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
83646         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
83648 2009-01-17  Bruno Haible  <bruno@clisp.org>
83650         Avoid test-fflush2.sh failure on mingw.
83651         * tests/test-fflush2.c: Include binary-io.h.
83652         (main): Put standard input into binary mode.
83653         * modules/fflush-tests (Depends-on): Add binary-io.
83655 2009-01-17  Bruno Haible  <bruno@clisp.org>
83657         * lib/wchar.in.h: In another particular situation, include only the
83658         system's <wchar.h> file.
83659         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
83660         Reported by Albert Chin-A-Young <china@thewrittenword.com>
83661         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
83663 2009-01-17  Bruno Haible  <bruno@clisp.org>
83665         Support for stripping executables in --enable-relocatable.
83666         * build-aux/install-reloc: Expect one more argument, or an environment
83667         variable RELOC_STRIP_PROG. If set, strip the destination program and
83668         its wrapper.
83669         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
83670         RELOC_STRIP_PROG.
83671         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
83672         to set RELOCATABLE_STRIP.
83673         * NEWS: Mention the new Makefile requirement.
83675 2009-01-17  Bruno Haible  <bruno@clisp.org>
83677         * build-aux/install-reloc: Remove debugging information left over by
83678         C compiler on MacOS X.
83680 2009-01-17  Bruno Haible  <bruno@clisp.org>
83682         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
83683         * lib/progreloc.c (find_executable): Fix type of pointer passed to
83684         _NSGetExecutablePath.
83686 2009-01-16  Jim Meyering  <meyering@redhat.com>
83688         strerror: avoid warnings about discarding "const"
83689         * lib/strerror.c (rpl_strerror): Instead of returning a const
83690         string from each and every "case", use a variable, and add a single
83691         cast after the switch.
83693 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
83695         * lib/arpa_inet.in.h: Add extern "C" block for C++.
83697 2009-01-16  Bruno Haible  <bruno@clisp.org>
83699         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
83700         array initializer syntax that also works in C++ mode.
83701         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
83703 2009-01-16  Jim Meyering  <meyering@redhat.com>
83705         poll: suppress a warning
83706         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
83707         to ignore "...unsigned expression < 0 is always false" warnings.
83709 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
83711         poll: remove declarations of unused variables
83712         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
83713         sockbuf and optlen.
83715 2009-01-15  Bruno Haible  <bruno@clisp.org>
83717         Make fflush-after-ungetc POSIX compliant on BSD systems.
83718         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
83719         (clear_ungetc_buffer): Implement also for other systems.
83720         (rpl_fflush): On glibc systems, invoke
83721         clear_ungetc_buffer_preserving_position. Otherwise, invoke
83722         clear_ungetc_buffer after fetching the stream's position, not before.
83724 2009-01-15  Bruno Haible  <bruno@clisp.org>
83726         Make fflush-after-ungetc POSIX compliant on glibc systems.
83727         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
83728         after ungetc.
83729         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
83730         (rpl_fflush): On glibc systems, simply call the system's fflush
83731         function after clearing the ungetc buffer.
83732         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
83733         Instead, lseek only to the end of file, then use the system's fseeko
83734         for the rest. On glibc systems, reset the EOF indicator bit.
83736 2009-01-15  Jim Meyering  <meyering@redhat.com>
83738         openmp.m4: revert quote-adding change, for portability to older autoconf
83739         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
83740         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
83741         Simon Josefsson noticed the problem when using autoconf-2.61.
83743 2009-01-15  Bruno Haible  <bruno@clisp.org>
83745         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
83746         * tests/test-fflush2.c (ASSERT): Always fail.
83747         (main): Add two tests for fflush() after ungetc(), taking into account
83748         the Austin Group's clarification.
83749         Suggested by Eric Blake.
83751 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
83753         mktime.m4: remove K&R-style function prototypes
83754         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
83755         for the Sun C++ compiler.
83757 2009-01-14  Bruno Haible  <bruno@clisp.org>
83759         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
83760         while including <wchar.h>.
83761         * lib/wchar.in.h: In two particular situations on HP-UX, include only
83762         the system's <wchar.h> file.
83763         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
83765 2009-01-14  Bruno Haible  <bruno@clisp.org>
83767         * m4/csharp.m4: Don't mention gettext on the serial number line.
83768         * m4/csharpexec.m4: Likewise.
83769         * m4/eaccess.m4: Likewise.
83770         * m4/javaexec.m4: Likewise.
83771         * m4/sig_atomic_t.m4: Likewise.
83772         * m4/tmpdir.m4: Likewise.
83773         * m4/intldir.m4: Bump gettext version.
83774         * m4/lib-ld.m4: Likewise.
83776 2009-01-14  Bruno Haible  <bruno@clisp.org>
83778         * lib/progname.c (set_program_name): Add more comments.
83779         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
83781 2009-01-14  Simon Josefsson  <simon@josefsson.org>
83783         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
83784         were sys/stat.h does not define it.
83786 2009-01-14  Jim Meyering  <meyering@redhat.com>
83788         many *.m4 files: improve m4 quoting
83789         99% of this change was performed by running the following commands:
83790         git ls-files | grep '\.m4$' | xargs perl -pi \
83791           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
83792           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
83793           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
83794           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
83795         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
83796         The remainder were to add Copyright dates, increment serial numbers,
83797         undo some changes in comments, exclude m4/intl.m4, and add quotes
83798         around the "1" in ",1" where the unusual spacing prohibited the
83799         above regexps from doing the job.  For more details, see
83800         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
83801         * m4/acl.m4: Modified.
83802         * m4/afs.m4: Likewise.
83803         * m4/alloca.m4: Likewise.
83804         * m4/argp.m4: Likewise.
83805         * m4/argz.m4: Likewise.
83806         * m4/atexit.m4: Likewise.
83807         * m4/bison-i18n.m4: Likewise.
83808         * m4/bison.m4: Likewise.
83809         * m4/byteswap.m4: Likewise.
83810         * m4/c-stack.m4: Likewise.
83811         * m4/c-strtod.m4: Likewise.
83812         * m4/calloc.m4: Likewise.
83813         * m4/canonicalize-lgpl.m4: Likewise.
83814         * m4/chown.m4: Likewise.
83815         * m4/clock_time.m4: Likewise.
83816         * m4/codeset.m4: Likewise.
83817         * m4/copy-file.m4: Likewise.
83818         * m4/csharp.m4: Likewise.
83819         * m4/csharpcomp.m4: Likewise.
83820         * m4/csharpexec.m4: Likewise.
83821         * m4/d-ino.m4: Likewise.
83822         * m4/d-type.m4: Likewise.
83823         * m4/dirfd.m4: Likewise.
83824         * m4/double-slash-root.m4: Likewise.
83825         * m4/eaccess.m4: Likewise.
83826         * m4/eealloc.m4: Likewise.
83827         * m4/environ.m4: Likewise.
83828         * m4/errno_h.m4: Likewise.
83829         * m4/euidaccess.m4: Likewise.
83830         * m4/execute.m4: Likewise.
83831         * m4/fatal-signal.m4: Likewise.
83832         * m4/fchdir.m4: Likewise.
83833         * m4/fcntl_h.m4: Likewise.
83834         * m4/fileblocks.m4: Likewise.
83835         * m4/filenamecat.m4: Likewise.
83836         * m4/findprog.m4: Likewise.
83837         * m4/flexmember.m4: Likewise.
83838         * m4/fnmatch.m4: Likewise.
83839         * m4/fopen.m4: Likewise.
83840         * m4/fpending.m4: Likewise.
83841         * m4/fprintf-posix.m4: Likewise.
83842         * m4/free.m4: Likewise.
83843         * m4/frexp.m4: Likewise.
83844         * m4/frexpl.m4: Likewise.
83845         * m4/fsusage.m4: Likewise.
83846         * m4/ftruncate.m4: Likewise.
83847         * m4/gc-camellia.m4: Likewise.
83848         * m4/gc-random.m4: Likewise.
83849         * m4/gc.m4: Likewise.
83850         * m4/getaddrinfo.m4: Likewise.
83851         * m4/getcwd-abort-bug.m4: Likewise.
83852         * m4/getcwd-path-max.m4: Likewise.
83853         * m4/getdate.m4: Likewise.
83854         * m4/getdomainname.m4: Likewise.
83855         * m4/getgroups.m4: Likewise.
83856         * m4/gethostname.m4: Likewise.
83857         * m4/gethrxtime.m4: Likewise.
83858         * m4/getline.m4: Likewise.
83859         * m4/getloadavg.m4: Likewise.
83860         * m4/getndelim2.m4: Likewise.
83861         * m4/getpass.m4: Likewise.
83862         * m4/gettext.m4: Likewise.
83863         * m4/gettime.m4: Likewise.
83864         * m4/gettimeofday.m4: Likewise.
83865         * m4/gnulib-common.m4: Likewise.
83866         * m4/group-member.m4: Likewise.
83867         * m4/host-os.m4: Likewise.
83868         * m4/iconv.m4: Likewise.
83869         * m4/iconv_open.m4: Likewise.
83870         * m4/inet_ntop.m4: Likewise.
83871         * m4/inet_pton.m4: Likewise.
83872         * m4/inline.m4: Likewise.
83873         * m4/intldir.m4: Likewise.
83874         * m4/intlmacosx.m4: Likewise.
83875         * m4/intmax.m4: Likewise.
83876         * m4/intmax_t.m4: Likewise.
83877         * m4/inttypes.m4: Likewise.
83878         * m4/inttypes_h.m4: Likewise.
83879         * m4/inttypes-pri.m4: Likewise.
83880         * m4/isapipe.m4: Likewise.
83881         * m4/isnand.m4: Likewise.
83882         * m4/isnanf.m4: Likewise.
83883         * m4/isnanl.m4: Likewise.
83884         * m4/javacomp.m4: Likewise.
83885         * m4/javaexec.m4: Likewise.
83886         * m4/jm-winsz1.m4: Likewise.
83887         * m4/jm-winsz2.m4: Likewise.
83888         * m4/lchown.m4: Likewise.
83889         * m4/lcmessage.m4: Likewise.
83890         * m4/ldexpl.m4: Likewise.
83891         * m4/lib-ld.m4: Likewise.
83892         * m4/lib-link.m4: Likewise.
83893         * m4/libsigsegv.m4: Likewise.
83894         * m4/link-follow.m4: Likewise.
83895         * m4/localcharset.m4: Likewise.
83896         * m4/locale-fr.m4: Likewise.
83897         * m4/locale-ja.m4: Likewise.
83898         * m4/locale-tr.m4: Likewise.
83899         * m4/locale-zh.m4: Likewise.
83900         * m4/lock.m4: Likewise.
83901         * m4/longlong.m4: Likewise.
83902         * m4/ls-mntd-fs.m4: Likewise.
83903         * m4/lstat.m4: Likewise.
83904         * m4/malloc.m4: Likewise.
83905         * m4/mathl.m4: Likewise.
83906         * m4/mbrtowc.m4: Likewise.
83907         * m4/mbstate_t.m4: Likewise.
83908         * m4/mbswidth.m4: Likewise.
83909         * m4/memchr.m4: Likewise.
83910         * m4/memcmp.m4: Likewise.
83911         * m4/memcpy.m4: Likewise.
83912         * m4/memmem.m4: Likewise.
83913         * m4/memmove.m4: Likewise.
83914         * m4/mempcpy.m4: Likewise.
83915         * m4/memrchr.m4: Likewise.
83916         * m4/memset.m4: Likewise.
83917         * m4/minmax.m4: Likewise.
83918         * m4/mkdir-slash.m4: Likewise.
83919         * m4/mkdtemp.m4: Likewise.
83920         * m4/mktime.m4: Likewise.
83921         * m4/mmap-anon.m4: Likewise.
83922         * m4/mountlist.m4: Likewise.
83923         * m4/nanosleep.m4: Likewise.
83924         * m4/nls.m4: Likewise.
83925         * m4/nocrash.m4: Likewise.
83926         * m4/open.m4: Likewise.
83927         * m4/openat.m4: Likewise.
83928         * m4/openmp.m4: Likewise.
83929         * m4/pathmax.m4: Likewise.
83930         * m4/perl.m4: Likewise.
83931         * m4/physmem.m4: Likewise.
83932         * m4/pipe.m4: Likewise.
83933         * m4/po.m4: Likewise.
83934         * m4/poll.m4: Likewise.
83935         * m4/posixtm.m4: Likewise.
83936         * m4/posixver.m4: Likewise.
83937         * m4/printf-frexp.m4: Likewise.
83938         * m4/printf-frexpl.m4: Likewise.
83939         * m4/printf-posix.m4: Likewise.
83940         * m4/printf-posix-rpl.m4: Likewise.
83941         * m4/printf.m4: Likewise.
83942         * m4/progtest.m4: Likewise.
83943         * m4/putenv.m4: Likewise.
83944         * m4/readline.m4: Likewise.
83945         * m4/readlink.m4: Likewise.
83946         * m4/readutmp.m4: Likewise.
83947         * m4/realloc.m4: Likewise.
83948         * m4/regex.m4: Likewise.
83949         * m4/relocatable.m4: Likewise.
83950         * m4/relocatable-lib.m4: Likewise.
83951         * m4/rename-dest-slash.m4: Likewise.
83952         * m4/rename.m4: Likewise.
83953         * m4/rmdir-errno.m4: Likewise.
83954         * m4/rmdir.m4: Likewise.
83955         * m4/roundf.m4: Likewise.
83956         * m4/roundl.m4: Likewise.
83957         * m4/rpmatch.m4: Likewise.
83958         * m4/save-cwd.m4: Likewise.
83959         * m4/selinux-selinux-h.m4: Likewise.
83960         * m4/setenv.m4: Likewise.
83961         * m4/settime.m4: Likewise.
83962         * m4/sig2str.m4: Likewise.
83963         * m4/sig_atomic_t.m4: Likewise.
83964         * m4/signalblocking.m4: Likewise.
83965         * m4/signbit.m4: Likewise.
83966         * m4/sigpipe.m4: Likewise.
83967         * m4/sockets.m4: Likewise.
83968         * m4/sockpfaf.m4: Likewise.
83969         * m4/st_dm_mode.m4: Likewise.
83970         * m4/stat-time.m4: Likewise.
83971         * m4/stdbool.m4: Likewise.
83972         * m4/stdint.m4: Likewise.
83973         * m4/stdint_h.m4: Likewise.
83974         * m4/stpcpy.m4: Likewise.
83975         * m4/stpncpy.m4: Likewise.
83976         * m4/strcase.m4: Likewise.
83977         * m4/strchrnul.m4: Likewise.
83978         * m4/strcspn.m4: Likewise.
83979         * m4/strdup.m4: Likewise.
83980         * m4/strftime.m4: Likewise.
83981         * m4/strndup.m4: Likewise.
83982         * m4/strnlen.m4: Likewise.
83983         * m4/strpbrk.m4: Likewise.
83984         * m4/strptime.m4: Likewise.
83985         * m4/strsep.m4: Likewise.
83986         * m4/strtod.m4: Likewise.
83987         * m4/strtoimax.m4: Likewise.
83988         * m4/strtok_r.m4: Likewise.
83989         * m4/strtol.m4: Likewise.
83990         * m4/strtoll.m4: Likewise.
83991         * m4/strtoul.m4: Likewise.
83992         * m4/strtoull.m4: Likewise.
83993         * m4/strtoumax.m4: Likewise.
83994         * m4/strverscmp.m4: Likewise.
83995         * m4/threadlib.m4: Likewise.
83996         * m4/timegm.m4: Likewise.
83997         * m4/tm_gmtoff.m4: Likewise.
83998         * m4/tmpdir.m4: Likewise.
83999         * m4/tmpfile.m4: Likewise.
84000         * m4/tzset.m4: Likewise.
84001         * m4/uintmax_t.m4: Likewise.
84002         * m4/unlinkdir.m4: Likewise.
84003         * m4/unlocked-io.m4: Likewise.
84004         * m4/uptime.m4: Likewise.
84005         * m4/userspec.m4: Likewise.
84006         * m4/utimbuf.m4: Likewise.
84007         * m4/utime.m4: Likewise.
84008         * m4/utimes-null.m4: Likewise.
84009         * m4/utimes.m4: Likewise.
84010         * m4/vararrays.m4: Likewise.
84011         * m4/vasnprintf.m4: Likewise.
84012         * m4/vfprintf-posix.m4: Likewise.
84013         * m4/vprintf-posix.m4: Likewise.
84014         * m4/wait-process.m4: Likewise.
84015         * m4/wchar_t.m4: Likewise.
84016         * m4/wint_t.m4: Likewise.
84017         * m4/write-any-file.m4: Likewise.
84018         * m4/yield.m4: Likewise.
84020 2009-01-13  Bruno Haible  <bruno@clisp.org>
84022         Avoid test-copy-file.sh failures when ACL support insufficient.
84023         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
84024         TESTS_ENVIRONMENT.
84025         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
84026         Reported by Jim Meyering.
84028 2009-01-13  Bruno Haible  <bruno@clisp.org>
84030         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
84031         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
84032         * modules/unistdio/u8-printf-parse (Files): Likewise.
84033         * modules/unistdio/u32-printf-parse (Files): Likewise.
84034         * modules/unistdio/ulc-printf-parse (Files): Likewise.
84036 2009-01-13  Simon Josefsson  <simon@josefsson.org>
84038         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
84039         and m4/inttypes_h.m4 too.
84041 2009-01-12  Eric Blake  <ebb9@byu.net>
84043         tests: IRIX 6.2 cc can't compile -0.0 into .data
84044         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
84045         rather than at compile-time.
84046         * tests/test-floorl.c (minus_zero): Likewise.
84047         * tests/test-frexpl.c (minus_zero): Likewise.
84048         * tests/test-isnan.c (minus_zerol): Likewise.
84049         * tests/test-isnanl.h (minus_zero): Likewise.
84050         * tests/test-ldexpl.c (minus_zero): Likewise.
84051         * tests/test-roundl.c (minus_zero): Likewise.
84052         * tests/test-signbit.c (minus_zerol): Likewise.
84053         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
84054         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
84055         * tests/test-truncl.c (minus_zero): Likewise.
84056         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
84057         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
84058         Reported by Tom G. Christensen and Nelson H. F. Beebe.
84060 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
84062         regex: fix glibc bug 9697
84063         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
84064         handling.
84066 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
84068         regex: fix glibc bug 697
84069         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
84070         being NULL also if there are no backreferences.
84072 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
84074         regex: merge glibc changes
84075         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
84076         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
84077         re_string_skip_chars, re_string_reconstruct): Likewise.
84078         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
84080 2009-01-07  Jim Meyering  <meyering@redhat.com>
84082         poll: filter through cppi
84083         * lib/poll.c: Indent cpp directives to reflect nesting.
84085 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
84087         poll: don't return uninitialized
84088         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
84090 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
84092         avoid compile failure on AIX 6.1
84093         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
84094         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
84096 2009-01-04  Jim Meyering  <meyering@redhat.com>
84098         remove duplicate inclusion of <stdio.h>
84099         * tests/test-fprintf-posix.c: Likewise.
84100         * tests/test-printf-posix.c: Likewise.
84101         * tests/test-snprintf-posix.c: Likewise.
84102         * tests/test-sprintf-posix.c: Likewise.
84103         * tests/test-vasprintf-posix.c: Likewise.
84104         * tests/test-vfprintf-posix.c: Likewise.
84105         * tests/test-vprintf-posix.c: Likewise.
84106         * tests/test-vsnprintf-posix.c: Likewise.
84107         * tests/test-vsprintf-posix.c: Likewise.
84109 2009-01-03  Jim Meyering  <meyering@redhat.com>
84111         gnulib-tool: fix sed-based filtering
84112         * gnulib-tool (func_filter_filelist): Remove extra backslash
84113         in sed_fff_filter definition.
84115 2009-01-02  Jim Meyering  <meyering@redhat.com>
84117         strftime: avoid compilation failure on Solaris 2.6
84118         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
84119         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
84120         Don't #define mbrlen or mbsinit, since now they're guaranteed to
84121         be available.  Reported by Tom G. Christensen.  Details in
84122         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
84124 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84125             Bruno Haible  <bruno@clisp.org>
84127         Speed up gnulib-tool by doing more string processing through shell
84128         built-ins.
84129         * gnulib-tool (fast_func_append): New variable.
84130         (func_remove_prefix, func_remove_suffix): New functions.
84131         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
84132         (func_filter_filelist): New function.
84133         (func_get_dependencies): Use func_remove_suffix instead of sed.
84134         (func_get_automake_snippet): Use func_filter_filelist instead of a
84135         subshell and sed invocation.
84137 2009-01-01  Bruno Haible  <bruno@clisp.org>
84139         Fix a security bug.
84140         * gnulib-tool (func_import, import, update): Don't allow the characters
84141         '"', '$', '`', '\' in macro arguments that become part of commands that
84142         are evaluated.
84144 2009-01-01  Bruno Haible  <bruno@clisp.org>
84146         * gnulib-tool (func_reset_sigpipe): Add more comments.
84148 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84150         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
84151         func_emit_tests_Makefile_am, func_import): Abort loops early if we
84152         already know the answer.
84154 2009-01-01  Jim Meyering  <meyering@redhat.com>
84156         * lib/version-etc.c (version_etc_va): Update copyright year.
84158 2008-12-30  Bruno Haible  <bruno@clisp.org>
84160         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
84161         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
84162         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
84164 2008-12-29  Eric Blake  <ebb9@byu.net>
84166         multiarch: avoid autoconf AC_REQUIRE bug
84167         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
84168         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
84169         2.63 and older.
84170         Reported by Bruno Haible, and analyzed in
84171         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
84173 2008-12-29  Bruno Haible  <bruno@clisp.org>
84175         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
84176         files in subdirectories correctly.
84177         Reported by Ralf Wildenhues.
84179 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84181         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
84182         rather than 'join FILE -', for Solaris join.
84184 2008-12-29  Bruno Haible  <bruno@clisp.org>
84186         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
84187         quoting.
84188         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
84189         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
84190         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
84191         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
84192         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
84193         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
84194         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
84195         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
84196         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
84197         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
84198         * m4/nls.m4 (AM_NLS): Likewise.
84199         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
84200         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
84201         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
84202         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
84203         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
84204         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
84205         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
84206         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
84207         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
84208         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
84209         * m4/xsize.m4 (gl_XSIZE): Likewise.
84210         Suggested by Jim Meyering.
84212 2008-11-17  Bruce Korb  <bkorb@gnu.org>
84214         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
84215         * lib/parse-duration.c: use a switch instead of cascading if's.
84217 2008-12-29  Eric Blake  <ebb9@byu.net>
84219         wchar.h: supply WEOF on Irix 5.3
84220         * lib/wchar.in.h (wint_t): Also supply WEOF.
84221         * lib/wctype.in.h (wint_t): Likewise.
84222         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
84223         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
84224         Reported by Tom G. Christensen.
84226 2008-12-26  Bruno Haible  <bruno@clisp.org>
84228         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
84229         i486, i586, i686.
84231 2008-12-26  Bruno Haible  <bruno@clisp.org>
84233         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
84235 2008-12-26  Bruno Haible  <bruno@clisp.org>
84237         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
84238         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
84239         not __STDC_CONSTANT_MACROS.
84240         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
84242 2008-12-25  Bruno Haible  <bruno@clisp.org>
84244         Add support for universal builds to vasnprintf.
84245         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
84246         universal builds, guess no.
84247         * modules/vasnprintf-posix (Depends-on): Add multiarch.
84248         * modules/vasprintf-posix (Depends-on): Likewise.
84249         * modules/fprintf-posix (Depends-on): Likewise.
84250         * modules/vfprintf-posix (Depends-on): Likewise.
84251         * modules/snprintf-posix (Depends-on): Likewise.
84252         * modules/vsnprintf-posix (Depends-on): Likewise.
84253         * modules/sprintf-posix (Depends-on): Likewise.
84254         * modules/vsprintf-posix (Depends-on): Likewise.
84255         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
84256         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
84257         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
84258         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
84259         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
84260         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
84261         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
84263         Add support for universal builds to <inttypes.h>.
84264         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
84265         _SCNu64_PREFIX): In Apple
84266         universal builds, define directly, using _LP64.
84267         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
84268         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
84269         * modules/inttypes (Depends-on): Add multiarch.
84270         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
84272         Add support for universal builds to <stdint.h>.
84273         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
84274         universal builds, define directly, using _LP64.
84275         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
84276         Apple universal builds, don't test for the size and suffix of ptrdiff_t
84277         and size_t.
84278         * modules/stdint (Depends-on): Add multiarch.
84279         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
84281         New module 'multiarch'.
84282         * modules/multiarch: New file.
84283         * m4/multiarch.m4: New file.
84285 2008-12-25  Bruno Haible  <bruno@clisp.org>
84287         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
84289 2008-12-25  Bruno Haible  <bruno@clisp.org>
84291         * modules/btowc (License): Relicense under LGPLv2+.
84292         * modules/mbsinit (License): Likewise.
84293         * modules/mbrtowc (License): Likewise.
84294         * modules/wcrtomb (License): Likewise.
84295         * modules/streq (License): Likewise.
84296         Reported by David Lutterkort <lutter@redhat.com>.
84298 2008-12-23  Bruno Haible  <bruno@clisp.org>
84300         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
84302 2008-12-23  Bruno Haible  <bruno@clisp.org>
84304         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
84305         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
84306         GETADDRINFO_LIB, not in LIBS.
84307         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
84308         * modules/canon-host (Link): Likewise.
84309         * NEWS: Mention the change.
84310         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
84311         GETADDRINFO_LIB.
84313 2008-12-22  Bruno Haible  <bruno@clisp.org>
84315         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
84316         * doc/posix-functions/iswalpha_l.texi: Likewise.
84317         * doc/posix-functions/iswblank_l.texi: Likewise.
84318         * doc/posix-functions/iswcntrl_l.texi: Likewise.
84319         * doc/posix-functions/iswctype_l.texi: Likewise.
84320         * doc/posix-functions/iswdigit_l.texi: Likewise.
84321         * doc/posix-functions/iswgraph_l.texi: Likewise.
84322         * doc/posix-functions/iswlower_l.texi: Likewise.
84323         * doc/posix-functions/iswprint_l.texi: Likewise.
84324         * doc/posix-functions/iswpunct_l.texi: Likewise.
84325         * doc/posix-functions/iswspace_l.texi: Likewise.
84326         * doc/posix-functions/iswupper_l.texi: Likewise.
84327         * doc/posix-functions/iswxdigit_l.texi: Likewise.
84328         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
84329         * doc/posix-functions/open_wmemstream.texi: Likewise.
84330         * doc/posix-functions/swscanf.texi: Likewise.
84331         * doc/posix-functions/towctrans_l.texi: Likewise.
84332         * doc/posix-functions/towlower.texi: Likewise.
84333         * doc/posix-functions/towlower_l.texi: Likewise.
84334         * doc/posix-functions/towupper.texi: Likewise.
84335         * doc/posix-functions/towupper_l.texi: Likewise.
84336         * doc/posix-functions/vfwprintf.texi: Likewise.
84337         * doc/posix-functions/vfwscanf.texi: Likewise.
84338         * doc/posix-functions/vswscanf.texi: Likewise.
84339         * doc/posix-functions/vwprintf.texi: Likewise.
84340         * doc/posix-functions/vwscanf.texi: Likewise.
84341         * doc/posix-functions/wcpcpy.texi: Likewise.
84342         * doc/posix-functions/wcpncpy.texi: Likewise.
84343         * doc/posix-functions/wcscasecmp.texi: Likewise.
84344         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
84345         * doc/posix-functions/wcscoll_l.texi: Likewise.
84346         * doc/posix-functions/wcsdup.texi: Likewise.
84347         * doc/posix-functions/wcsncasecmp.texi: Likewise.
84348         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
84349         * doc/posix-functions/wcsnlen.texi: Likewise.
84350         * doc/posix-functions/wcsnrtombs.texi: Likewise.
84351         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
84352         * doc/posix-functions/wctrans_l.texi: Likewise.
84353         * doc/posix-functions/wctype_l.texi: Likewise.
84354         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
84355         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
84356         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
84357         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
84358         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
84359         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
84360         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
84361         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
84362         * doc/glibc-functions/wcschrnul.texi: Likewise.
84363         * doc/glibc-functions/wcsftime_l.texi: Likewise.
84364         * doc/glibc-functions/wcstod_l.texi: Likewise.
84365         * doc/glibc-functions/wcstof_l.texi: Likewise.
84366         * doc/glibc-functions/wcstol_l.texi: Likewise.
84367         * doc/glibc-functions/wcstold_l.texi: Likewise.
84368         * doc/glibc-functions/wcstoll_l.texi: Likewise.
84369         * doc/glibc-functions/wcstoq.texi: Likewise.
84370         * doc/glibc-functions/wcstoul_l.texi: Likewise.
84371         * doc/glibc-functions/wcstoull_l.texi: Likewise.
84372         * doc/glibc-functions/wcstouq.texi: Likewise.
84373         * doc/glibc-functions/wmempcpy.texi: Likewise.
84375 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
84376             Eric Blake  <ebb9@byu.net>
84377             Paolo Bonzini  <bonzini@gnu.org>
84378             Bruno Haible  <bruno@clisp.org>
84380         Make c-stack work on Haiku.
84381         * lib/c-stack.c (SA_ONSTACK): Define fallback.
84382         (c_stack_action): Use SA_ONSTACK flag.
84384 2008-12-22  Bruno Haible  <bruno@clisp.org>
84386         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
84388 2008-12-22  Bruno Haible  <bruno@clisp.org>
84390         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
84391         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
84392         being overridden.
84393         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
84394         New macros.
84395         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
84396         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
84397         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
84398         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
84400 2008-12-22  Bruno Haible  <bruno@clisp.org>
84402         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
84403         from test code.
84405 2008-12-22  Eric Blake  <ebb9@byu.net>
84407         Avoid gcc warnings on cygwin.
84408         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
84409         Avoid unused variable.
84410         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
84411         Likewise.
84413 2008-12-22  Bruno Haible  <bruno@clisp.org>
84415         Remove HAVE_MBRTOWC conditionals.
84416         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
84417         (mbscasecmp): Assume mbrtowc function.
84418         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
84419         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
84420         * lib/mbschr.c: Include mbuiter.h unconditionally.
84421         (mbschr): Assume mbrtowc function.
84422         * lib/mbscspn.c: Include mbuiter.h unconditionally.
84423         (mbscspn): Assume mbrtowc function.
84424         * lib/mbslen.c: Include mbuiter.h unconditionally.
84425         (mbslen): Assume mbrtowc function.
84426         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
84427         (mbsncasecmp): Assume mbrtowc function.
84428         * lib/mbsnlen.c: Include mbiter.h unconditionally.
84429         (mbsnlen): Assume mbrtowc function.
84430         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
84431         (mbspbrk): Assume mbrtowc function.
84432         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
84433         (mbspcasecmp): Assume mbrtowc function.
84434         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
84435         (mbsrchr): Assume mbrtowc function.
84436         * lib/mbssep.c: Include mbuiter.h unconditionally.
84437         (mbssep): Assume mbrtowc function.
84438         * lib/mbsspn.c: Include mbuiter.h unconditionally.
84439         (mbsspn): Assume mbrtowc function.
84440         * lib/mbsstr.c: Include mbuiter.h unconditionally.
84441         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
84442         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
84443         (mbstok_r): Assume mbrtowc function.
84444         * lib/propername.c: Include mbuiter.h unconditionally.
84445         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
84446         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
84447         (trim2): Assume mbrtowc function.
84448         * lib/mbswidth.c (mbsinit): Remove fallback definition.
84449         (mbsnwidth): Assume mbrtowc function.
84450         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
84451         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
84452         fallback definitions.
84453         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
84455 2008-12-22  Bruno Haible  <bruno@clisp.org>
84457         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
84459 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
84461         * modules/regex: Request emulations for the mb*/wc* functions we need.
84462         * m4/regex.m4: Don't look for those functions here.
84463         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
84465 2008-12-22  Bruno Haible  <bruno@clisp.org>
84467         * modules/fnmatch (Depends-on): Remove duplicated dependency.
84469 2008-12-21  Bruno Haible  <bruno@clisp.org>
84471         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
84472         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
84473         (Include): Remove conditionalization.
84474         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
84475         (Include): Remove conditionalization.
84476         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
84477         (Include): Remove conditionalization.
84478         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
84479         * m4/mbfile.m4 (gl_MBFILE): Likewise.
84480         * NEWS: Mention the change.
84481         Reported by Alan Hourihane <alanh@fairlite.co.uk>
84482         via Sergey Poznyakoff <gray@gnu.org.ua>.
84484 2008-12-21  Bruno Haible  <bruno@clisp.org>
84486         * MODULES.html.sh (Extended multibyte and wide character utilities
84487         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
84488         wcrtomb, wcsrtombs.
84489         (Support for systems lacking POSIX:2008): Add accept, bind, close,
84490         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
84491         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
84492         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
84494 2008-12-21  Bruno Haible  <bruno@clisp.org>
84496         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
84498 2008-12-21  Bruno Haible  <bruno@clisp.org>
84500         * modules/wcsnrtombs-tests: New file.
84501         * tests/test-wcsnrtombs1.sh: New file.
84502         * tests/test-wcsnrtombs2.sh: New file.
84503         * tests/test-wcsnrtombs3.sh: New file.
84504         * tests/test-wcsnrtombs4.sh: New file.
84505         * tests/test-wcsnrtombs.c: New file.
84507         New module 'wcsnrtombs'.
84508         * lib/wchar.in.h (wcsnrtombs): New declaration.
84509         * lib/wcsnrtombs.c: New file.
84510         * lib/wcsrtombs-state.c: New file.
84511         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
84512         (internal_state): Remove variable.
84513         * m4/wcsnrtombs.m4: New file.
84514         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
84515         compilation units.
84516         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
84517         HAVE_WCSNRTOMBS.
84518         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
84519         HAVE_WCSNRTOMBS.
84520         * modules/wcsnrtombs: New file.
84521         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
84522         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
84524 2008-12-21  Bruno Haible  <bruno@clisp.org>
84526         * modules/wcsrtombs-tests: New file.
84527         * tests/test-wcsrtombs1.sh: New file.
84528         * tests/test-wcsrtombs2.sh: New file.
84529         * tests/test-wcsrtombs3.sh: New file.
84530         * tests/test-wcsrtombs4.sh: New file.
84531         * tests/test-wcsrtombs.c: New file.
84533         New module 'wcsrtombs'.
84534         * lib/wchar.in.h (wcsrtombs): New declaration.
84535         * lib/wcsrtombs.c: New file.
84536         * m4/wcsrtombs.m4: New file.
84537         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
84538         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
84539         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
84540         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
84541         * modules/wcsrtombs: New file.
84542         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
84543         bugs.
84545 2008-12-21  Bruno Haible  <bruno@clisp.org>
84547         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
84548         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
84549         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
84550         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
84551         if not correct.
84552         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
84553         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
84554         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
84555         m4/locale-zh.m4, m4/codeset.m4.
84556         * doc/posix-functions/wcrtomb.texi: Document the bug.
84558 2008-12-21  Bruno Haible  <bruno@clisp.org>
84560         Work around a btowc() bug on IRIX 6.5.
84561         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
84562         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
84563         REPLACE_WTOBC if not.
84564         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
84565         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
84566         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
84568 2008-12-21  Bruno Haible  <bruno@clisp.org>
84570         * modules/wcrtomb-tests: New file.
84571         * tests/test-wcrtomb.sh: New file.
84572         * tests/test-wcrtomb.c: New file.
84574         New module 'wcrtomb'.
84575         * lib/wchar.in.h (wcrtomb): New declaration.
84576         * lib/wcrtomb.c: New file.
84577         * m4/wcrtomb.m4: New file.
84578         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
84579         HAVE_WCRTOMB.
84580         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
84581         HAVE_WCRTOMB.
84582         * modules/wcrtomb: New file.
84583         * doc/posix-functions/wcrtomb.texi: Mention the new module.
84585 2008-12-21  Bruno Haible  <bruno@clisp.org>
84587         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
84588         * modules/mbsrtowcs (Files): Likewise.
84589         * modules/wctob (Files): Likewise.
84590         * modules/c-strcase-tests (Files): Likewise.
84591         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
84592         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
84593         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
84594         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
84595         * modules/vasnprintf-posix-tests (Files): Likewise.
84597 2008-12-21  William Pursell  <bill.pursell@gmail.com>
84599         gitlog-to-changelog: pass all command-line arguments to git-log
84600         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
84601         it is sometimes convenient to filter the commits in various ways.
84602         gitlog-to-changelog only allows --since to specify a start date,
84603         but git-log itself supports many other filtering mechanisms.
84604         At the moment, I want to filter by branch name.  Rather than
84605         adding a --branch option to gitlog-to-changelog, it seems more
84606         flexible to simply pass all options directly to git-log and let
84607         git do the work.  Notice that this effectively makes --since a
84608         redundant option for gitlog-to-changelog, but removing it would
84609         require current usage to change since calls would then require
84610         an additional '--'.
84612 2008-12-21  Bruno Haible  <bruno@clisp.org>
84614         * modules/mbsnrtowcs-tests: New file.
84615         * tests/test-mbsnrtowcs1.sh: New file.
84616         * tests/test-mbsnrtowcs2.sh: New file.
84617         * tests/test-mbsnrtowcs3.sh: New file.
84618         * tests/test-mbsnrtowcs4.sh: New file.
84619         * tests/test-mbsnrtowcs.c: New file.
84621         New module 'mbsnrtowcs'.
84622         * lib/wchar.in.h (mbsnrtowcs): New declaration.
84623         * lib/mbsnrtowcs.c: New file.
84624         * lib/mbsrtowcs-state.c: New file.
84625         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
84626         (internal_state): Remove variable.
84627         * m4/mbsnrtowcs.m4: New file.
84628         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
84629         compilation units.
84630         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
84631         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
84632         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
84633         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
84634         * modules/mbsnrtowcs: New file.
84635         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
84636         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
84637         portability problem.
84639 2008-12-21  Bruno Haible  <bruno@clisp.org>
84641         Work around mbsrtowcs bug.
84642         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
84643         (gl_FUNC_MBSRTOWCS): Invoke it.
84644         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
84645         m4/locale-zh.m4.
84646         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
84648 2008-12-21  Bruno Haible  <bruno@clisp.org>
84650         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
84652 2008-12-21  Bruno Haible  <bruno@clisp.org>
84654         Update doc for AIX.
84655         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
84656         16-bit wchar_t type.
84657         * doc/posix-functions/btowc.texi: Likewise.
84658         * doc/posix-functions/fgetwc.texi: Likewise.
84659         * doc/posix-functions/fgetws.texi: Likewise.
84660         * doc/posix-functions/fputwc.texi: Likewise.
84661         * doc/posix-functions/fputws.texi: Likewise.
84662         * doc/posix-functions/fwide.texi: Likewise.
84663         * doc/posix-functions/fwprintf.texi: Likewise.
84664         * doc/posix-functions/fwscanf.texi: Likewise.
84665         * doc/posix-functions/getwchar.texi: Likewise.
84666         * doc/posix-functions/getwc.texi: Likewise.
84667         * doc/posix-functions/iswalnum.texi: Likewise.
84668         * doc/posix-functions/iswalpha.texi: Likewise.
84669         * doc/posix-functions/iswblank.texi: Likewise.
84670         * doc/posix-functions/iswcntrl.texi: Likewise.
84671         * doc/posix-functions/iswctype.texi: Likewise.
84672         * doc/posix-functions/iswdigit.texi: Likewise.
84673         * doc/posix-functions/iswgraph.texi: Likewise.
84674         * doc/posix-functions/iswlower.texi: Likewise.
84675         * doc/posix-functions/iswprint.texi: Likewise.
84676         * doc/posix-functions/iswpunct.texi: Likewise.
84677         * doc/posix-functions/iswspace.texi: Likewise.
84678         * doc/posix-functions/iswupper.texi: Likewise.
84679         * doc/posix-functions/iswxdigit.texi: Likewise.
84680         * doc/posix-functions/mbrtowc.texi: Likewise.
84681         * doc/posix-functions/mbsrtowcs.texi: Likewise.
84682         * doc/posix-functions/mbstowcs.texi: Likewise.
84683         * doc/posix-functions/mbtowc.texi: Likewise.
84684         * doc/posix-functions/putwchar.texi: Likewise.
84685         * doc/posix-functions/putwc.texi: Likewise.
84686         * doc/posix-functions/swprintf.texi: Likewise.
84687         * doc/posix-functions/tolower.texi: Likewise.
84688         * doc/posix-functions/toupper.texi: Likewise.
84689         * doc/posix-functions/towctrans.texi: Likewise.
84690         * doc/posix-functions/ungetwc.texi: Likewise.
84691         * doc/posix-functions/vswprintf.texi: Likewise.
84692         * doc/posix-functions/wcrtomb.texi: Likewise.
84693         * doc/posix-functions/wcscat.texi: Likewise.
84694         * doc/posix-functions/wcschr.texi: Likewise.
84695         * doc/posix-functions/wcscmp.texi: Likewise.
84696         * doc/posix-functions/wcscoll.texi: Likewise.
84697         * doc/posix-functions/wcscpy.texi: Likewise.
84698         * doc/posix-functions/wcscspn.texi: Likewise.
84699         * doc/posix-functions/wcsftime.texi: Likewise.
84700         * doc/posix-functions/wcslen.texi: Likewise.
84701         * doc/posix-functions/wcsncat.texi: Likewise.
84702         * doc/posix-functions/wcsncmp.texi: Likewise.
84703         * doc/posix-functions/wcsncpy.texi: Likewise.
84704         * doc/posix-functions/wcspbrk.texi: Likewise.
84705         * doc/posix-functions/wcsrchr.texi: Likewise.
84706         * doc/posix-functions/wcsrtombs.texi: Likewise.
84707         * doc/posix-functions/wcsspn.texi: Likewise.
84708         * doc/posix-functions/wcsstr.texi: Likewise.
84709         * doc/posix-functions/wcstod.texi: Likewise.
84710         * doc/posix-functions/wcstof.texi: Likewise.
84711         * doc/posix-functions/wcstoimax.texi: Likewise.
84712         * doc/posix-functions/wcstok.texi: Likewise.
84713         * doc/posix-functions/wcstold.texi: Likewise.
84714         * doc/posix-functions/wcstoll.texi: Likewise.
84715         * doc/posix-functions/wcstol.texi: Likewise.
84716         * doc/posix-functions/wcstombs.texi: Likewise.
84717         * doc/posix-functions/wcstoull.texi: Likewise.
84718         * doc/posix-functions/wcstoul.texi: Likewise.
84719         * doc/posix-functions/wcstoumax.texi: Likewise.
84720         * doc/posix-functions/wcswidth.texi: Likewise.
84721         * doc/posix-functions/wcsxfrm.texi: Likewise.
84722         * doc/posix-functions/wctob.texi: Likewise.
84723         * doc/posix-functions/wctomb.texi: Likewise.
84724         * doc/posix-functions/wctrans.texi: Likewise.
84725         * doc/posix-functions/wctype.texi: Likewise.
84726         * doc/posix-functions/wcwidth.texi: Likewise.
84727         * doc/posix-functions/wmemchr.texi: Likewise.
84728         * doc/posix-functions/wmemcmp.texi: Likewise.
84729         * doc/posix-functions/wmemcpy.texi: Likewise.
84730         * doc/posix-functions/wmemmove.texi: Likewise.
84731         * doc/posix-functions/wmemset.texi: Likewise.
84732         * doc/posix-functions/wprintf.texi: Likewise.
84733         * doc/posix-functions/wscanf.texi: Likewise.
84735 2008-12-21  Bruno Haible  <bruno@clisp.org>
84737         Update doc for HP-UX 11.11.
84738         * doc/posix-functions/btowc.texi: Clarify that the function is missing
84739         in HP-UX version 11.00, not in all versions of HP-UX 11.
84740         * doc/posix-functions/fwide.texi: Likewise.
84741         * doc/posix-functions/fwprintf.texi: Likewise.
84742         * doc/posix-functions/fwscanf.texi: Likewise.
84743         * doc/posix-functions/inet_ntop.texi: Likewise.
84744         * doc/posix-functions/inet_pton.texi: Likewise.
84745         * doc/posix-functions/mbrlen.texi: Likewise.
84746         * doc/posix-functions/mbrtowc.texi: Likewise.
84747         * doc/posix-functions/mbsinit.texi: Likewise.
84748         * doc/posix-functions/mbsrtowcs.texi: Likewise.
84749         * doc/posix-functions/swprintf.texi: Likewise.
84750         * doc/posix-functions/swscanf.texi: Likewise.
84751         * doc/posix-functions/towctrans.texi: Likewise.
84752         * doc/posix-functions/vfwprintf.texi: Likewise.
84753         * doc/posix-functions/vswprintf.texi: Likewise.
84754         * doc/posix-functions/vwprintf.texi: Likewise.
84755         * doc/posix-functions/wcrtomb.texi: Likewise.
84756         * doc/posix-functions/wcsrtombs.texi: Likewise.
84757         * doc/posix-functions/wcsstr.texi: Likewise.
84758         * doc/posix-functions/wctob.texi: Likewise.
84759         * doc/posix-functions/wctrans.texi: Likewise.
84760         * doc/posix-functions/wmemchr.texi: Likewise.
84761         * doc/posix-functions/wmemcmp.texi: Likewise.
84762         * doc/posix-functions/wmemcpy.texi: Likewise.
84763         * doc/posix-functions/wmemmove.texi: Likewise.
84764         * doc/posix-functions/wmemset.texi: Likewise.
84765         * doc/posix-functions/wprintf.texi: Likewise.
84766         * doc/posix-functions/wscanf.texi: Likewise.
84768 2008-12-21  Bruno Haible  <bruno@clisp.org>
84770         Work around a portability problem.
84771         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
84772         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
84774 2008-12-20  Bruno Haible  <bruno@clisp.org>
84776         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
84777         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
84778         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
84779         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
84780         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
84782         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
84783         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
84784         set.
84785         (GNULIB_defined_mbstate_t): New macro.
84786         (mbsinit): Redefine if REPLACE_MBSINIT is set.
84787         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
84788         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
84789         reuses the system's mbrtowc function but works around the bugs.
84790         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
84791         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
84792         macros.
84793         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
84794         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
84795         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
84796         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
84797         REPLACE_MBSINIT if mbsinit needs to be overridden.
84798         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
84799         REPLACE_MBSINIT, REPLACE_MBRTOWC.
84800         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
84801         REPLACE_MBSINIT, REPLACE_MBRTOWC.
84802         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
84803         m4/locale-zh.m4.
84804         (Depends): Add mbsinit.
84805         * modules/mbsinit (Depends): Add mbrtowc.
84806         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
84808 2008-12-20  Bruno Haible  <bruno@clisp.org>
84810         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
84811         so that there are no conversion errors on AIX.
84812         * tests/test-mbsrtowcs.c (main): LIkewise.
84814 2008-12-20  Bruno Haible  <bruno@clisp.org>
84816         Work around wctob bug on Solaris <= 9.
84817         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
84818         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
84819         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
84820         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
84821         * modules/wctob (Files): Add m4/locale-fr.m4.
84822         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
84824 2008-12-20  Bruno Haible  <bruno@clisp.org>
84826         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
84827         /dev/null.
84828         * tests/test-select-in.sh: Likewise.
84829         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
84831 2008-12-20  Bruno Haible  <bruno@clisp.org>
84833         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
84834         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
84835         Cygwin 1.5.x.
84837 2008-12-20  Bruno Haible  <bruno@clisp.org>
84839         Ensure mbstate_t is defined on HP-UX 11.11.
84840         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
84841         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
84842         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
84843         AC_USE_SYSTEM_EXTENSIONS.
84844         * modules/fnmatch (Depends-on): Add extensions.
84845         * modules/mbrlen (Depends-on): Likewise.
84846         * modules/mbrtowc (Depends-on): Likewise.
84847         * modules/mbsinit (Depends-on): Likewise.
84848         * modules/mbsrtowcs (Depends-on): Likewise.
84849         * modules/mbswidth (Depends-on): Likewise.
84850         * modules/quotearg (Depends-on): Likewise.
84851         * modules/strftime (Depends-on): Likewise.
84853 2008-12-20  Bruno Haible  <bruno@clisp.org>
84855         Ensure wctob is declared on IRIX 6.5.
84856         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
84857         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
84858         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
84859         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
84860         of HAVE_WCTOB.
84861         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
84862         HAVE_WCTOB.
84863         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
84865 2008-12-19  Bruno Haible  <bruno@clisp.org>
84867         * modules/mbsrtowcs-tests: New file.
84868         * tests/test-mbsrtowcs1.sh: New file.
84869         * tests/test-mbsrtowcs2.sh: New file.
84870         * tests/test-mbsrtowcs3.sh: New file.
84871         * tests/test-mbsrtowcs4.sh: New file.
84872         * tests/test-mbsrtowcs.c: New file.
84874         New module 'mbsrtowcs'.
84875         * lib/wchar.in.h (mbsrtowcs): New declaration.
84876         * lib/mbsrtowcs.c: New file.
84877         * m4/mbsrtowcs.m4: New file.
84878         * modules/mbsrtowcs: New file.
84879         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
84880         HAVE_MBSRTOWCS.
84881         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
84882         HAVE_MBSRTOWCS.
84883         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
84885 2008-12-19  Bruno Haible  <bruno@clisp.org>
84887         New module 'mbrlen'.
84888         * lib/wchar.in.h (mbrlen): New declaration.
84889         * lib/mbrlen.c: New file.
84890         * m4/mbrlen.m4: New file.
84891         * modules/mbrlen: New file.
84892         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
84893         HAVE_MBRLEN.
84894         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
84895         HAVE_MBRLEN.
84896         * doc/posix-functions/mbrlen.texi: Document the new module.
84898 2008-12-19  Bruno Haible  <bruno@clisp.org>
84900         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
84901         * modules/mbrtowc (Depends-on): Add verify.
84902         Suggested by Paul Eggert.
84904 2008-12-18  Bruno Haible  <bruno@clisp.org>
84906         * modules/mbsinit-tests: New file.
84907         * tests/test-mbsinit.sh: New file.
84908         * tests/test-mbsinit.c: New file.
84910 2008-12-18  Bruno Haible  <bruno@clisp.org>
84912         * modules/mbrtowc-tests: New file.
84913         * tests/test-mbrtowc1.sh: New file.
84914         * tests/test-mbrtowc2.sh: New file.
84915         * tests/test-mbrtowc3.sh: New file.
84916         * tests/test-mbrtowc4.sh: New file.
84917         * tests/test-mbrtowc.c: New file.
84919         New module 'mbrtowc'.
84920         * lib/wchar.in.h (mbstate_t): Override when the system does not have
84921         mbsinit and mbrtowc.
84922         (mbrtowc): New declaration.
84923         * lib/mbrtowc.c: New file.
84924         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
84925         * modules/mbrtowc: New file.
84926         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
84927         HAVE_MBRTOWC.
84928         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
84929         HAVE_MBRTOWC.
84930         * doc/posix-functions/mbrtowc.texi: Document the new module.
84932 2008-12-18  Bruno Haible  <bruno@clisp.org>
84934         New module 'wctob'.
84935         * lib/wchar.in.h (wctob): New declaration.
84936         * lib/wctob.c: New file.
84937         * m4/wctob.m4: New file.
84938         * modules/wctob: New file.
84939         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
84940         HAVE_WCTOB.
84941         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
84942         * doc/posix-functions/wctob.texi: Document the new module.
84944 2008-12-18  Bruno Haible  <bruno@clisp.org>
84946         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
84947         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
84949 2008-12-18  Simon Josefsson  <simon@josefsson.org>
84951         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
84952         G. Christensen" <tgc@jupiterrise.com>.
84954         * lib/flock.c: Need to include errno.h.  Reported by "Tom
84955         G. Christensen" <tgc@jupiterrise.com>.
84957         * lib/flock.c: Need to include string.h.  Reported by "Tom
84958         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
84959         <ebb9@byu.net>.
84961 2008-12-18  Bruno Haible  <bruno@clisp.org>
84963         * m4/locale-ja.m4: New file, from GNU gettext.
84965 2008-12-17  Bruno Haible  <bruno@clisp.org>
84967         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
84968         Suggested by Eric Blake.
84970 2008-12-17  Bruno Haible  <bruno@clisp.org>
84972         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
84974 2008-12-17  Bruno Haible  <bruno@clisp.org>
84976         * lib/mbsinit.c: Include verify.h. Verify an assumption.
84977         * modules/mbsinit (Depends-on): Add verify.
84978         Suggested by Paul Eggert.
84980 2008-12-17  Bruno Haible  <bruno@clisp.org>
84982         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
84983         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
84984         gl_FUNC_MBRTOWC.
84985         * m4/mbiter.m4 (gl_MBITER): LIkewise.
84986         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
84987         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
84988         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
84989         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
84990         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
84991         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
84992         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
84993         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
84994         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
84995         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
84996         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
84997         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
84998         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
84999         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
85000         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
85001         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
85002         * modules/trim (configure.ac): Likewise.
85004 2008-12-17  Bruno Haible  <bruno@clisp.org>
85006         * modules/btowc-tests: New file.
85007         * tests/test-btowc1.sh: New file.
85008         * tests/test-btowc2.sh: New file.
85009         * tests/test-btowc.c: New file.
85011         New module 'btowc'.
85012         * lib/wchar.in.h (btowc): New declaration.
85013         * lib/btowc.c: New file.
85014         * m4/btowc.m4: New file.
85015         * modules/btowc: New file.
85016         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
85017         HAVE_BTOWC.
85018         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
85019         * doc/posix-functions/btowc.texi: Document the new module.
85021 2008-12-17  Bruno Haible  <bruno@clisp.org>
85023         New module 'mbsinit'.
85024         * lib/wchar.in.h (mbsinit): New declaration.
85025         * lib/mbsinit.c: New file.
85026         * m4/mbsinit.m4: New file.
85027         * modules/mbsinit: New file.
85028         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
85029         HAVE_MBSINIT.
85030         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
85031         HAVE_MBSINIT.
85032         * doc/posix-functions/mbsinit.texi: Document the new module.
85034 2008-12-16  Bruno Haible  <bruno@clisp.org>
85036         * lib/unistd.in.h: Add comment.
85037         * tests/test-environ.c: Don't include <stdlib.h>.
85039 2008-12-16  Bruno Haible  <bruno@clisp.org>
85041         * lib/parse-duration.h (parse_duration): Document return value
85042         convention.
85043         * lib/parse-duration.c: Include specification header first. Add
85044         comments.
85045         (_): Remove macro.
85046         (parse_year_month_day, parse_hour_minute_second): Move side effects
85047         outside of strchr call.
85048         (parse_non_iso8601): Move side effects outside of isspace call.
85049         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
85050         call.
85052 2008-12-16  Bruno Haible  <bruno@clisp.org>
85054         * tests/test-parse-duration.sh: Produce no output when the test
85055         succeeds.
85057 2008-12-16  Bruno Haible  <bruno@clisp.org>
85059         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
85060         expressions.
85062 2008-12-15  Bruno Haible  <bruno@clisp.org>
85064         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
85065         * doc/glibc-functions/flistxattr.texi: Likewise.
85066         * doc/glibc-functions/fopencookie.texi: Likewise.
85067         * doc/glibc-functions/fremovexattr.texi: Likewise.
85068         * doc/glibc-functions/fsetxattr.texi: Likewise.
85069         * doc/glibc-functions/getxattr.texi: Likewise.
85070         * doc/glibc-functions/lgetxattr.texi: Likewise.
85071         * doc/glibc-functions/listxattr.texi: Likewise.
85072         * doc/glibc-functions/llistxattr.texi: Likewise.
85073         * doc/glibc-functions/lremovexattr.texi: Likewise.
85074         * doc/glibc-functions/lsetxattr.texi: Likewise.
85075         * doc/glibc-functions/removexattr.texi: Likewise.
85076         * doc/glibc-functions/setxattr.texi: Likewise.
85077         * doc/posix-functions/open_memstream.texi: Likewise.
85079 2008-12-15  Eric Blake  <ebb9@byu.net>
85081         Update doc for cygwin 1.7.
85082         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
85083         functions.
85084         * doc/posix-functions/fchmodat.texi: Likewise.
85085         * doc/posix-functions/fchownat.texi: Likewise.
85086         * doc/posix-functions/fdopendir.texi: Likewise.
85087         * doc/posix-functions/fmemopen.texi: Likewise.
85088         * doc/posix-functions/freeaddrinfo.texi: Likewise.
85089         * doc/posix-functions/fstatat.texi: Likewise.
85090         * doc/posix-functions/futimens.texi: Likewise.
85091         * doc/posix-functions/gai_strerror.texi: Likewise.
85092         * doc/posix-functions/getaddrinfo.texi: Likewise.
85093         * doc/posix-functions/getnameinfo.texi: Likewise.
85094         * doc/posix-functions/if_freenameindex.texi: Likewise.
85095         * doc/posix-functions/if_indextoname.texi: Likewise.
85096         * doc/posix-functions/if_nameindex.texi: Likewise.
85097         * doc/posix-functions/if_nametoindex.texi: Likewise.
85098         * doc/posix-functions/insque.texi: Likewise.
85099         * doc/posix-functions/linkat.texi: Likewise.
85100         * doc/posix-functions/llrint.texi: Likewise.
85101         * doc/posix-functions/llrintf.texi: Likewise.
85102         * doc/posix-functions/llrintl.texi: Likewise.
85103         * doc/posix-functions/lockf.texi: Likewise.
85104         * doc/posix-functions/lrintl.texi: Likewise.
85105         * doc/posix-functions/mkdirat.texi: Likewise.
85106         * doc/posix-functions/mkfifoat.texi: Likewise.
85107         * doc/posix-functions/mknodat.texi: Likewise.
85108         * doc/posix-functions/mq_close.texi: Likewise.
85109         * doc/posix-functions/mq_getattr.texi: Likewise.
85110         * doc/posix-functions/mq_notify.texi: Likewise.
85111         * doc/posix-functions/mq_open.texi: Likewise.
85112         * doc/posix-functions/mq_receive.texi: Likewise.
85113         * doc/posix-functions/mq_send.texi: Likewise.
85114         * doc/posix-functions/mq_setattr.texi: Likewise.
85115         * doc/posix-functions/mq_timedreceive.texi: Likewise.
85116         * doc/posix-functions/mq_timedsend.texi: Likewise.
85117         * doc/posix-functions/mq_unlink.texi: Likewise.
85118         * doc/posix-functions/open_memstream.texi: Likewise.
85119         * doc/posix-functions/openat.texi: Likewise.
85120         * doc/posix-functions/posix_fadvise.texi: Likewise.
85121         * doc/posix-functions/posix_fallocate.texi: Likewise.
85122         * doc/posix-functions/posix_madvise.texi: Likewise.
85123         * doc/posix-functions/posix_memalign.texi: Likewise.
85124         * doc/posix-functions/posix_openpt.texi: Likewise.
85125         * doc/posix-functions/readlinkat.texi: Likewise.
85126         * doc/posix-functions/remque.texi: Likewise.
85127         * doc/posix-functions/renameat.texi: Likewise.
85128         * doc/posix-functions/rintl.texi: Likewise.
85129         * doc/posix-functions/sem_unlink.texi: Likewise.
85130         * doc/posix-functions/shm_open.texi: Likewise.
85131         * doc/posix-functions/shm_unlink.texi: Likewise.
85132         * doc/posix-functions/signgam.texi: Likewise.
85133         * doc/posix-functions/sigset.texi: Likewise.
85134         * doc/posix-functions/stpcpy.texi: Likewise.
85135         * doc/posix-functions/stpncpy.texi: Likewise.
85136         * doc/posix-functions/strerror.texi: Likewise.
85137         * doc/posix-functions/strtod.texi: Likewise.
85138         * doc/posix-functions/symlinkat.texi: Likewise.
85139         * doc/posix-functions/unlinkat.texi: Likewise.
85140         * doc/posix-functions/utimensat.texi: Likewise.
85141         * doc/glibc-functions/bindresvport.texi: Likewise.
85142         * doc/glibc-functions/dn_expand.texi: Likewise.
85143         * doc/glibc-functions/exp10.texi: Likewise.
85144         * doc/glibc-functions/exp10f.texi: Likewise.
85145         * doc/glibc-functions/fgetxattr.texi: Likewise.
85146         * doc/glibc-functions/flistxattr.texi: Likewise.
85147         * doc/glibc-functions/fopencookie.texi: Likewise.
85148         * doc/glibc-functions/freeifaddrs.texi: Likewise.
85149         * doc/glibc-functions/fremovexattr.texi: Likewise.
85150         * doc/glibc-functions/fsetxattr.texi: Likewise.
85151         * doc/glibc-functions/getifaddrs.texi: Likewise.
85152         * doc/glibc-functions/getxattr.texi: Likewise.
85153         * doc/glibc-functions/lgetxattr.texi: Likewise.
85154         * doc/glibc-functions/listxattr.texi: Likewise.
85155         * doc/glibc-functions/llistxattr.texi: Likewise.
85156         * doc/glibc-functions/lremovexattr.texi: Likewise.
85157         * doc/glibc-functions/lsetxattr.texi: Likewise.
85158         * doc/glibc-functions/pow10.texi: Likewise.
85159         * doc/glibc-functions/pow10f.texi: Likewise.
85160         * doc/glibc-functions/rcmd_af.texi: Likewise.
85161         * doc/glibc-functions/removexattr.texi: Likewise.
85162         * doc/glibc-functions/res_init.texi: Likewise.
85163         * doc/glibc-functions/res_mkquery.texi: Likewise.
85164         * doc/glibc-functions/res_query.texi: Likewise.
85165         * doc/glibc-functions/res_querydomain.texi: Likewise.
85166         * doc/glibc-functions/res_send.texi: Likewise.
85167         * doc/glibc-functions/rresvport_af.texi: Likewise.
85168         * doc/glibc-functions/setxattr.texi: Likewise.
85169         * doc/glibc-functions/strcasestr.texi: Likewise.
85171 2008-12-15  Bruno Haible  <bruno@clisp.org>
85173         Fix compilation error on OSF/1 4.0.
85174         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
85175         <sys/time.h>, simply delegate to the system header.
85176         Reported by Daniel Richard G. <oss@teragram.com>.
85178 2008-12-15  Bruno Haible  <bruno@clisp.org>
85180         * doc/posix-functions/openat.texi: Mention the 'openat' module.
85181         * doc/posix-functions/fchmodat.texi: Likewise.
85182         * doc/posix-functions/fchownat.texi: Likewise.
85183         * doc/posix-functions/fdopendir.texi: Likewise.
85184         * doc/posix-functions/fstatat.texi: Likewise.
85185         * doc/posix-functions/mkdirat.texi: Likewise.
85186         * doc/posix-functions/unlinkat.texi: Likewise.
85188 2008-12-14  Bruno Haible  <bruno@clisp.org>
85190         Update doc for POSIX:2008.
85191         * doc/posix-functions/faccessat.texi: New file.
85192         * doc/posix-functions/fchmodat.texi: New file.
85193         * doc/posix-functions/fchownat.texi: New file.
85194         * doc/posix-functions/fdopendir.texi: New file.
85195         * doc/posix-functions/fstatat.texi: New file.
85196         * doc/posix-functions/futimens.texi: New file.
85197         * doc/posix-functions/linkat.texi: New file.
85198         * doc/posix-functions/mkdirat.texi: New file.
85199         * doc/posix-functions/mkfifoat.texi: New file.
85200         * doc/posix-functions/mknodat.texi: New file.
85201         * doc/posix-functions/open_wmemstream.texi: New file.
85202         * doc/posix-functions/openat.texi: New file.
85203         * doc/posix-functions/psiginfo.texi: New file.
85204         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
85205         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
85206         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
85207         * doc/posix-functions/readlinkat.texi: New file.
85208         * doc/posix-functions/renameat.texi: New file.
85209         * doc/posix-functions/strerror_l.texi: New file.
85210         * doc/posix-functions/symlinkat.texi: New file.
85211         * doc/posix-functions/unlinkat.texi: New file.
85212         * doc/posix-functions/utimensat.texi: New file.
85213         * doc/gnulib.texi (Function Substitutes): Add these subsections.
85215 2008-12-14  Bruno Haible  <bruno@clisp.org>
85217         Update doc for POSIX:2008.
85218         * doc/posix-functions/alphasort.texi: Renamed from
85219         doc/glibc-functions/alphasort.texi.
85220         * doc/posix-functions/dirfd.texi: Renamed from
85221         doc/glibc-functions/dirfd.texi.
85222         * doc/posix-functions/dprintf.texi: Renamed from
85223         doc/glibc-functions/dprintf.texi.
85224         * doc/posix-functions/duplocale.texi: Renamed from
85225         doc/glibc-functions/duplocale.texi.
85226         * doc/posix-functions/fexecve.texi: Renamed from
85227         doc/glibc-functions/fexecve.texi.
85228         * doc/posix-functions/fmemopen.texi: Renamed from
85229         doc/glibc-functions/fmemopen.texi.
85230         * doc/posix-functions/freelocale.texi: Renamed from
85231         doc/glibc-functions/freelocale.texi.
85232         * doc/posix-functions/getdate_err.texi: Renamed from
85233         doc/glibc-functions/getdate_err.texi.
85234         * doc/posix-functions/isalnum_l.texi: Renamed from
85235         doc/glibc-functions/isalnum_l.texi.
85236         * doc/posix-functions/isalpha_l.texi: Renamed from
85237         doc/glibc-functions/isalpha_l.texi.
85238         * doc/posix-functions/isblank_l.texi: Renamed from
85239         doc/glibc-functions/isblank_l.texi.
85240         * doc/posix-functions/iscntrl_l.texi: Renamed from
85241         doc/glibc-functions/iscntrl_l.texi.
85242         * doc/posix-functions/isdigit_l.texi: Renamed from
85243         doc/glibc-functions/isdigit_l.texi.
85244         * doc/posix-functions/isgraph_l.texi: Renamed from
85245         doc/glibc-functions/isgraph_l.texi.
85246         * doc/posix-functions/islower_l.texi: Renamed from
85247         doc/glibc-functions/islower_l.texi.
85248         * doc/posix-functions/isprint_l.texi: Renamed from
85249         doc/glibc-functions/isprint_l.texi.
85250         * doc/posix-functions/ispunct_l.texi: Renamed from
85251         doc/glibc-functions/ispunct_l.texi.
85252         * doc/posix-functions/isspace_l.texi: Renamed from
85253         doc/glibc-functions/isspace_l.texi.
85254         * doc/posix-functions/isupper_l.texi: Renamed from
85255         doc/glibc-functions/isupper_l.texi.
85256         * doc/posix-functions/iswalnum_l.texi: Renamed from
85257         doc/glibc-functions/iswalnum_l.texi.
85258         * doc/posix-functions/iswalpha_l.texi: Renamed from
85259         doc/glibc-functions/iswalpha_l.texi.
85260         * doc/posix-functions/iswblank_l.texi: Renamed from
85261         doc/glibc-functions/iswblank_l.texi.
85262         * doc/posix-functions/iswcntrl_l.texi: Renamed from
85263         doc/glibc-functions/iswcntrl_l.texi.
85264         * doc/posix-functions/iswctype_l.texi: Renamed from
85265         doc/glibc-functions/iswctype_l.texi.
85266         * doc/posix-functions/iswdigit_l.texi: Renamed from
85267         doc/glibc-functions/iswdigit_l.texi.
85268         * doc/posix-functions/iswgraph_l.texi: Renamed from
85269         doc/glibc-functions/iswgraph_l.texi.
85270         * doc/posix-functions/iswlower_l.texi: Renamed from
85271         doc/glibc-functions/iswlower_l.texi.
85272         * doc/posix-functions/iswprint_l.texi: Renamed from
85273         doc/glibc-functions/iswprint_l.texi.
85274         * doc/posix-functions/iswpunct_l.texi: Renamed from
85275         doc/glibc-functions/iswpunct_l.texi.
85276         * doc/posix-functions/iswspace_l.texi: Renamed from
85277         doc/glibc-functions/iswspace_l.texi.
85278         * doc/posix-functions/iswupper_l.texi: Renamed from
85279         doc/glibc-functions/iswupper_l.texi.
85280         * doc/posix-functions/iswxdigit_l.texi: Renamed from
85281         doc/glibc-functions/iswxdigit_l.texi.
85282         * doc/posix-functions/isxdigit_l.texi: Renamed from
85283         doc/glibc-functions/isxdigit_l.texi.
85284         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
85285         doc/glibc-functions/mbsnrtowcs.texi.
85286         * doc/posix-functions/mkdtemp.texi: Renamed from
85287         doc/glibc-functions/mkdtemp.texi.
85288         * doc/posix-functions/newlocale.texi: Renamed from
85289         doc/glibc-functions/newlocale.texi.
85290         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
85291         doc/glibc-functions/nl_langinfo_l.texi.
85292         * doc/posix-functions/open_memstream.texi: Renamed from
85293         doc/glibc-functions/open_memstream.texi.
85294         * doc/posix-functions/opterr.texi: Renamed from
85295         doc/glibc-functions/opterr.texi.
85296         * doc/posix-functions/optind.texi: Renamed from
85297         doc/glibc-functions/optind.texi.
85298         * doc/posix-functions/optopt.texi: Renamed from
85299         doc/glibc-functions/optopt.texi.
85300         * doc/posix-functions/psignal.texi: Renamed from
85301         doc/glibc-functions/psignal.texi.
85302         * doc/posix-functions/scandir.texi: Renamed from
85303         doc/glibc-functions/scandir.texi.
85304         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
85305         doc/glibc-functions/sched_get_priority_min.texi.
85306         * doc/posix-functions/signgam.texi: Renamed from
85307         doc/glibc-functions/signgam.texi.
85308         * doc/posix-functions/stpcpy.texi: Renamed from
85309         doc/glibc-functions/stpcpy.texi.
85310         * doc/posix-functions/stpncpy.texi: Renamed from
85311         doc/glibc-functions/stpncpy.texi.
85312         * doc/posix-functions/strcasecmp_l.texi: Renamed from
85313         doc/glibc-functions/strcasecmp_l.texi.
85314         * doc/posix-functions/strcoll_l.texi: Renamed from
85315         doc/glibc-functions/strcoll_l.texi.
85316         * doc/posix-functions/strfmon_l.texi: Renamed from
85317         doc/glibc-functions/strfmon_l.texi.
85318         * doc/posix-functions/strftime_l.texi: Renamed from
85319         doc/glibc-functions/strftime_l.texi.
85320         * doc/posix-functions/strncasecmp_l.texi: Renamed from
85321         doc/glibc-functions/strncasecmp_l.texi.
85322         * doc/posix-functions/strndup.texi: Renamed from
85323         doc/glibc-functions/strndup.texi.
85324         * doc/posix-functions/strnlen.texi: Renamed from
85325         doc/glibc-functions/strnlen.texi.
85326         * doc/posix-functions/strsignal.texi: Renamed from
85327         doc/glibc-functions/strsignal.texi.
85328         * doc/posix-functions/strxfrm_l.texi: Renamed from
85329         doc/glibc-functions/strxfrm_l.texi.
85330         * doc/posix-functions/timer_gettime.texi: Renamed from
85331         doc/glibc-functions/timer_gettime.texi.
85332         * doc/posix-functions/tolower_l.texi: Renamed from
85333         doc/glibc-functions/tolower_l.texi.
85334         * doc/posix-functions/toupper_l.texi: Renamed from
85335         doc/glibc-functions/toupper_l.texi.
85336         * doc/posix-functions/towctrans_l.texi: Renamed from
85337         doc/glibc-functions/towctrans_l.texi.
85338         * doc/posix-functions/towlower_l.texi: Renamed from
85339         doc/glibc-functions/towlower_l.texi.
85340         * doc/posix-functions/towupper_l.texi: Renamed from
85341         doc/glibc-functions/towupper_l.texi.
85342         * doc/posix-functions/uselocale.texi: Renamed from
85343         doc/glibc-functions/uselocale.texi.
85344         * doc/posix-functions/vdprintf.texi: Renamed from
85345         doc/glibc-functions/vdprintf.texi.
85346         * doc/posix-functions/wcpcpy.texi:
85347         Renamed from doc/glibc-functions/wcpcpy.texi.
85348         * doc/posix-functions/wcpncpy.texi: Renamed from
85349         doc/glibc-functions/wcpncpy.texi.
85350         * doc/posix-functions/wcscasecmp.texi: Renamed from
85351         doc/glibc-functions/wcscasecmp.texi.
85352         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
85353         doc/glibc-functions/wcscasecmp_l.texi.
85354         * doc/posix-functions/wcscoll_l.texi: Renamed from
85355         doc/glibc-functions/wcscoll_l.texi.
85356         * doc/posix-functions/wcsdup.texi: Renamed from
85357         doc/glibc-functions/wcsdup.texi.
85358         * doc/posix-functions/wcsncasecmp.texi: Renamed from
85359         doc/glibc-functions/wcsncasecmp.texi.
85360         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
85361         doc/glibc-functions/wcsncasecmp_l.texi.
85362         * doc/posix-functions/wcsnlen.texi: Renamed from
85363         doc/glibc-functions/wcsnlen.texi.
85364         * doc/posix-functions/wcsnrtombs.texi: Renamed from
85365         doc/glibc-functions/wcsnrtombs.texi.
85366         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
85367         doc/glibc-functions/wcsxfrm_l.texi.
85368         * doc/posix-functions/wctrans_l.texi: Renamed from
85369         doc/glibc-functions/wctrans_l.texi.
85370         * doc/posix-functions/wctype_l.texi: Renamed from
85371         doc/glibc-functions/wctype_l.texi.
85372         * doc/gnulib.texi (Function Substitutes): Add these subsections.
85373         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
85374         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
85375         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
85376         these subsections.
85377         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
85378         Remove sections.
85380 2008-12-14  Bruno Haible  <bruno@clisp.org>
85382         Update doc for POSIX:2008.
85383         * doc/posix-functions/*.texi: Update URL of POSIX specification.
85385 2008-12-14  Bruno Haible  <bruno@clisp.org>
85387         Update doc for POSIX:2008.
85388         * doc/pastposix-functions/bcmp.texi: Renamed from
85389         doc/posix-functions/bcmp.texi.
85390         * doc/pastposix-functions/bcopy.texi: Renamed from
85391         doc/posix-functions/bcopy.texi.
85392         * doc/pastposix-functions/bsd_signal.texi: Renamed from
85393         doc/posix-functions/bsd_signal.texi.
85394         * doc/pastposix-functions/bzero.texi: Renamed from
85395         doc/posix-functions/bzero.texi.
85396         * doc/pastposix-functions/ecvt.texi: Renamed from
85397         doc/posix-functions/ecvt.texi.
85398         * doc/pastposix-functions/fcvt.texi: Renamed from
85399         doc/posix-functions/fcvt.texi.
85400         * doc/pastposix-functions/ftime.texi: Renamed from
85401         doc/posix-functions/ftime.texi.
85402         * doc/pastposix-functions/gcvt.texi: Renamed from
85403         doc/posix-functions/gcvt.texi.
85404         * doc/pastposix-functions/getcontext.texi: Renamed from
85405         doc/posix-functions/getcontext.texi.
85406         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
85407         doc/posix-functions/gethostbyaddr.texi.
85408         * doc/pastposix-functions/gethostbyname.texi: Renamed from
85409         doc/posix-functions/gethostbyname.texi.
85410         * doc/pastposix-functions/getwd.texi: Renamed from
85411         doc/posix-functions/getwd.texi.
85412         * doc/pastposix-functions/h_errno.texi: Renamed from
85413         doc/posix-functions/h_errno.texi.
85414         * doc/pastposix-functions/index.texi: Renamed from
85415         doc/posix-functions/index.texi.
85416         * doc/pastposix-functions/makecontext.texi: Renamed from
85417         doc/posix-functions/makecontext.texi.
85418         * doc/pastposix-functions/mktemp.texi: Renamed from
85419         doc/posix-functions/mktemp.texi.
85420         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
85421         doc/posix-functions/pthread_attr_getstackaddr.texi.
85422         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
85423         doc/posix-functions/pthread_attr_setstackaddr.texi.
85424         * doc/pastposix-functions/rindex.texi: Renamed from
85425         doc/posix-functions/rindex.texi.
85426         * doc/pastposix-functions/scalb.texi: Renamed from
85427         doc/posix-functions/scalb.texi.
85428         * doc/pastposix-functions/setcontext.texi: Renamed from
85429         doc/posix-functions/setcontext.texi.
85430         * doc/pastposix-functions/swapcontext.texi: Renamed from
85431         doc/posix-functions/swapcontext.texi.
85432         * doc/pastposix-functions/ualarm.texi: Renamed from
85433         doc/posix-functions/ualarm.texi.
85434         * doc/pastposix-functions/usleep.texi: Renamed from
85435         doc/posix-functions/usleep.texi.
85436         * doc/pastposix-functions/vfork.texi: Renamed from
85437         doc/posix-functions/vfork.texi.
85438         * doc/pastposix-functions/wcswcs.texi: Renamed from
85439         doc/posix-functions/wcswcs.texi.
85440         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
85441         (Function Substitutes): Update.
85443 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85445         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
85446         m4/strerror.m4.
85448 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85449             Bruno Haible  <bruno@clisp.org>
85451         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
85453 2008-12-13  Bruno Haible  <bruno@clisp.org>
85455         * modules/strtoull (Depends-on): Remove unistd.
85457 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85459         * modules/strtoull (Depends-on): Add stdlib.
85461 2008-12-11  Simon Josefsson  <simon@josefsson.org>
85463         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
85465 2008-12-10  Jim Meyering  <meyering@redhat.com>
85467         gl_ASSERT: don't say assertions are disabled when they're not
85468         * m4/assert.m4 (gl_ASSERT): Do not make configure report
85469         "checking whether to enable assertions... no", when they are in
85470         fact enabled.  This is solely a bug in the output of configure.
85471         In spite of saying "no", NDEBUG was not defined in that case.
85472         Also, as noted by Eric Blake, leave assertions enabled upon
85473         --enable-assert=INVALID.
85475 2008-12-10  Bruno Haible  <bruno@clisp.org>
85477         Change MODULES.html to refer to POSIX:2008 where possible.
85478         * MODULES.html.sh (POSIX2008_URL): New variable.
85479         (posix_headers): Remove sys/timeb, ucontext.
85480         (posix2001_headers): New variable.
85481         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
85482         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
85483         index, makecontext, mktemp, pthread_attr_getstackaddr,
85484         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
85485         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
85486         (posix2001_functions): New variable.
85487         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
85488         otherwise.
85490 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85492         add missing include to parse-duration.c
85493         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
85494         * modules/parse-duration (Depends-on): Add xalloc.
85496         fix sed script reading maint.mk
85497         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
85498         (syntax-check-rules): Use it.
85500 2008-12-09  Bruno Haible  <bruno@clisp.org>
85502         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
85503         MacOS X 10.4/PowerPC.
85504         Reported by Simon Josefsson.
85506 2008-12-08  Jim Meyering  <meyering@redhat.com>
85508         work around mingw's lack of some S_IF definitions
85509         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
85510         Reported by Simon Josefsson.
85512 2008-12-08  Bruno Haible  <bruno@clisp.org>
85514         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
85515         applied to variables. Needed on MacOS X 10.4/PowerPC.
85516         Reported by Simon Josefsson.
85518 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
85519         and Eric Blake  <ebb9@byu.net>
85521         assert: honor --enable-assert
85522         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
85523         order to honor --enable-assert, rather than treating it as a
85524         synonym for --disable-assert.
85526 2008-12-08  Jim Meyering  <meyering@redhat.com>
85528         * lib/posixtm.c: Remove now-useless declaration of mktime.
85530         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
85532 2008-12-07  Bruno Haible  <bruno@clisp.org>
85534         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
85535         test_once): Mark functions as static.
85536         * tests/test-tls.c (test_tls): Likewise.
85538 2008-12-07  Bruno Haible  <bruno@clisp.org>
85540         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
85541         iconv_register_autodetect.
85543 2008-12-07  Jim Meyering  <meyering@redhat.com>
85545         posixtm.c: avoid a warning
85546         * lib/posixtm.c (posixtime): Don't initialize tm0.
85547         It's no longer needed to placate gcc4's -Wuninitialized,
85548         and the attempt to placate would elicit a new warning.
85550         unicodeio.c: mark unused parameters
85551         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
85552         (fallback_failure_callback): Likewise.
85554 2008-12-07  Bruno Haible  <bruno@clisp.org>
85556         * gnulib-tool (func_create_testdir): When building the tests
85557         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
85558         Reported by Simon Josefsson.
85560 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85562         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
85564 2008-12-06  Bruno Haible  <bruno@clisp.org>
85566         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
85567         Suggested by Eric Blake.
85569 2008-12-06  Bruno Haible  <bruno@clisp.org>
85571         Fix a c-stack test failure on MacOS X.
85572         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
85573         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
85574         handler for SIGBUS as well.
85575         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
85576         install a signal handler for SIGBUS as well.
85577         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
85579 2008-12-06  Bruno Haible  <bruno@clisp.org>
85581         Advocacy documentation.
85582         * doc/gnulib-intro.texi (Benefits): New section.
85583         * doc/gnulib.texi: Update.
85585 2008-12-06  Bruno Haible  <bruno@clisp.org>
85587         Document the 'manywarnings' module.
85588         * doc/manywarnings.texi: New file.
85589         * doc/gnulib.texi: Include it.
85591 2008-12-05  Eric Blake  <ebb9@byu.net>
85593         tests: silence some gcc warnings
85594         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
85595         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
85596         type mismatches.
85598 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85599             Bruno Haible  <bruno@clisp.org>
85601         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
85603 2008-11-29  Jim Meyering  <meyering@redhat.com>
85605         unicodeio.c: mark unused parameters
85606         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
85607         (fallback_failure_callback): Likewise.
85609         fts: fix a thinko
85610         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
85611         (set_stat_type): Return S_IF*-valued "type" directly.
85612         Prompted by James Youngman's spotting a related bug.
85613         Confirmed by further testing through find.
85615         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
85616         * lib/fts.c (D_TYPE): Define.
85617         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
85618         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
85619         (s_ifmt_shift_bits): New function.
85620         (set_stat_type): New function.
85621         (fts_build): When not calling fts_stat, call set_stat_type
85622         to propagate dirent.d_type info to fts_read caller.
85623         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
85624         fts_statp->st_mode type information may be valid.
85626 2008-11-28  Simon Josefsson  <simon@josefsson.org>
85628         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
85629         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
85630         <sds@gnu.org>.
85632 2008-11-20  Bruno Haible  <bruno@clisp.org>
85634         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
85635         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
85636         INCLUDE_NEXT.
85637         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
85638         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
85639         * modules/math (Makefile.am): Substitute
85640         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
85641         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
85643 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
85644             Bruno Haible  <bruno@clisp.org>
85646         * lib/stdint.in.h: Define all type macros so that their expansion is
85647         a single typedef'ed token. Fixes a compilation failure in Boost which
85648         does "using ::int8_t;".
85650 2008-11-18  Simon Josefsson  <simon@josefsson.org>
85652         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
85653         gl_MANYWARN_ALL_GCC.
85654         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
85655         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
85656         * modules/manywarnings: New file.
85657         * MODULES.html.sh: Mention manywarnings module.
85659 2008-11-18  Bruno Haible  <bruno@clisp.org>
85661         * doc/gnulib-tool.texi (Unit tests): New section.
85663 2008-11-18  Simon Josefsson  <simon@josefsson.org>
85665         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
85666         paths like 'lib/po/foo.po'.
85668 2008-11-17  Simon Josefsson  <simon@josefsson.org>
85670         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
85671         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
85673 2008-11-17  Simon Josefsson  <simon@josefsson.org>
85675         * m4/warnings.m4: Use CPPFLAGS to really check whether the
85676         parameter works.
85678 2008-11-17  Simon Josefsson  <simon@josefsson.org>
85680         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
85682 2008-11-17  Bruce Korb  <bkorb@gnu.org>
85684         * modules/parse-duration-tests: New file.
85685         * tests/test-parse-duration.sh: New file.
85686         * tests/test-parse-duration.c: New file.
85688         New module 'parse-duration'.
85689         * lib/parse-duration.h: New file.
85690         * lib/parse-duration.c: New file.
85691         * modules/parse-duration: New file.
85693 2008-11-17  Bruno Haible  <bruno@clisp.org>
85695         * tests/test-select-out.sh: Comment out the first pipe test.
85696         Reported by Simon Josefsson.
85698 2008-11-17  Bruno Haible  <bruno@clisp.org>
85700         * modules/getaddrinfo (Depends-on): Add servent, hostent.
85701         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
85702         gl_HOSTENT.
85704 2008-11-17  Bruno Haible  <bruno@clisp.org>
85706         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
85707         -lnetwork and -lnet. Needed for Haiku and BeOS.
85709 2008-11-16  Bruno Haible  <bruno@clisp.org>
85711         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
85713 2008-11-16  Bruno Haible  <bruno@clisp.org>
85715         Avoid test failure on Haiku.
85716         * tests/test-fsync.c: Include <errno.h>.
85717         (main): Don't require that fsync (0) fails.
85719 2008-11-15  Bruno Haible  <bruno@clisp.org>
85721         New module 'hostent'.
85722         * modules/hostent: New file.
85723         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
85725 2008-11-15  Bruno Haible  <bruno@clisp.org>
85727         New module 'servent'.
85728         * modules/servent: New file.
85729         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
85731 2008-11-15  Bruno Haible  <bruno@clisp.org>
85733         Avoid generating same test program with two different rules.
85734         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
85735         test-frexp to test-frexp-nolibm.
85736         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
85737         test-frexpl to test-frexpl-nolibm.
85739 2008-11-15  Bruno Haible  <bruno@clisp.org>
85741         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
85742         $(FREXPL_LIBM).
85744 2008-11-15  Bruno Haible  <bruno@clisp.org>
85746         * lib/netdb.in.h: Activate the definitions also when the system's
85747         <netdb.h> has 'struct addrinfo'.
85748         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
85749         EAI_OVERFLOW or AI_NUMERICSERV.
85750         * doc/posix-headers/netdb.texi: Document the problem.
85752 2008-11-15  Bruno Haible  <bruno@clisp.org>
85754         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
85756         Make the 'sched' module work on platforms where <sched.h> exists but
85757         is incomplete (such as Haiku).
85758         * lib/sched.in.h; Include the system's <sched.h> if it exists.
85759         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
85760         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
85761         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
85762         HAVE_STRUCT_SCHED_PARAM.
85763         * modules/sched (Depends-on): Add include_next.
85764         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
85765         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
85766         * doc/posix-headers/sched.texi: Document the issue.
85768 2008-11-13  Jim Meyering  <meyering@redhat.com>
85770         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
85771         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
85772         test would fail due to the difference in the Report bugs to ...
85773         line.  The expected address is empty, "<>", while the actual
85774         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
85776 2008-11-12  Bruno Haible  <bruno@clisp.org>
85778         lstat: don't compile lstat.c on systems lacking lstat
85779         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
85780         which don't have lstat; this is handled by lib/sys_stat.in.h already.
85781         Reported by Daniel P. Berrange via Jim Meyering.
85783 2008-11-12  Jim Meyering  <meyering@redhat.com>
85785         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
85787 2008-11-12  Simon Josefsson  <simon@josefsson.org>
85789         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
85790         instead.
85792 2008-11-12  Bruno Haible  <bruno@clisp.org>
85794         * lib/unicodeio.c: Include unistr.h.
85795         (utf8_wctomb): Remove function.
85796         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
85798 2008-11-12  Simon Josefsson  <simon@josefsson.org>
85800         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
85801         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
85802         <bruno@clisp.org>.
85803         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
85805 2008-11-12  Simon Josefsson  <simon@josefsson.org>
85807         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
85808         * doc/gnulib.texi: Add section for warnings.
85810 2008-11-11  Bruno Haible  <bruno@clisp.org>
85812         * lib/sockets.h: Add a comment.
85814 2008-11-11  Karl Berry  <karl@gnu.org>
85816         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
85818 2008-11-11  Eric Blake  <ebb9@byu.net>
85820         fdl.texi: avoid git symlinks
85821         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
85823 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
85825         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
85827 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
85829         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
85830         (gl_WARN_ADD): Substitute $2 if literal.
85832 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
85834         * m4/warning.m4: Remove.
85836 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
85838         * m4/warnings.m4: Almost complete rewrite. :-)
85840 2008-11-10  Simon Josefsson  <simon@josefsson.org>
85842         * modules/warnings: New module.
85843         * m4/warnings.m4: New file.
85844         * MODULES.html.sh: Mention warnings module.
85845         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
85846         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
85848 2008-11-10  Eric Blake  <ebb9@byu.net>
85850         fdl.texi: make a symlink to the latest version
85851         * doc/standards.texi: Revert today's earlier change.
85852         * doc/fdl-1.2.texi: Rename from old fdl.texi...
85853         * doc/fdl.texi: ...and replace this with a symlink to the newer
85854         fdl-1.3.texi.
85856 2008-11-10  Bruno Haible  <bruno@clisp.org>
85858         * tests/test-select-fd.c (main): Accept the result file name as fourth
85859         argument.
85860         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
85861         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
85863 2008-11-10  Bruno Haible  <bruno@clisp.org>
85865         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
85866         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
85867         as autoconf-substituted macros.
85868         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
85869         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
85870         gl_NETDB_H_DEFAULTS. Set these variables.
85871         * modules/netdb (Makefile.am): Substitute these variables.
85873 2008-11-10  Eric Blake  <ebb9@byu.net>
85875         standards.texi: include correct file for FDL 1.3
85876         * doc/standards.texi (GNU Free Documentation License): Change
85877         include file to pull in FDL 1.3, not 1.2.
85879         fdl.texi: revert accidental change to license
85880         * doc/fdl.texi: This is FDL 1.2, not 1.3.
85882 2008-11-10  Bruno Haible  <bruno@clisp.org>
85884         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
85885         cross-compiling guesses also when the native compile gives no result.
85887 2008-11-10  Bruno Haible  <bruno@clisp.org>
85889         * lib/spawni.c (__spawni): Force variable into the stack.
85891 2008-11-10  Bruno Haible  <bruno@clisp.org>
85893         Add support for Haiku.
85894         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
85895         glibc and BeOS, but also on Haiku.
85896         * lib/fpurge.c (fpurge): Likewise.
85897         * lib/freadable.c (freadable): Likewise.
85898         * lib/freadahead.c (freadahead): Likewise.
85899         * lib/freading.c (freading): Likewise.
85900         * lib/freadptr.c (freadptr): Likewise.
85901         * lib/freadseek.c (freadptrinc): Likewise.
85902         * lib/fseeko.c (rpl_fseeko): Likewise.
85903         * lib/fseterr.c (fseterr): Likewise.
85904         * lib/fwritable.c (fwritable): Likewise.
85905         * lib/fwriting.c (fwriting): Likewise.
85906         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
85908 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
85910         * lib/config.charset: Treat Haiku like BeOS.
85912 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
85914         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
85915         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
85917 2008-11-08  Bruno Haible  <bruno@clisp.org>
85919         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
85920         AC_CACHE_CHECK.
85922 2008-11-08  Bruno Haible  <bruno@clisp.org>
85924         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
85926 2008-11-08  Bruno Haible  <bruno@clisp.org>
85928         * tests/test-select-fd.c: New file.
85929         * tests/test-select-in.sh: New file.
85930         * tests/test-select-out.sh: New file.
85931         * tests/test-select-stdin.c: New file.
85932         * modules/select-tests (Files): Add the new files.
85933         (Depends-on): Add gettimeofday.
85934         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
85935         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
85936         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
85938 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
85939             Bruno Haible  <bruno@clisp.org>
85941         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
85943 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
85945         * build-aux/pmccabe2html: Added support for C++ source files.
85947 2008-11-05  Ben Pfaff  <blp@gnu.org>
85949         Fix lib/close.c build on Windows.
85950         * modules/close (Files): Add lib/w32sock.h.
85952 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
85954         Accept Bison's NEWS format.
85955         * build-aux/announce-gen (print_news_deltas): Tweak
85956         $re_prefix.
85958 2008-11-04  Bruno Haible  <bruno@clisp.org>
85960         * modules/random_r (Maintainer): Add glibc.
85962 2008-11-04  Simon Josefsson  <simon@josefsson.org>
85964         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
85965         by karl@freefriends.org (Karl Berry).
85966         * doc/alloca.texi: Likewise.
85967         * doc/c-ctype.texi: Likewise.
85968         * doc/c-strcase.texi: Likewise.
85969         * doc/c-strcaseeq.texi: Likewise.
85970         * doc/c-strcasestr.texi: Likewise.
85971         * doc/c-strstr.texi: Likewise.
85972         * doc/c-strtod.texi: Likewise.
85973         * doc/c-strtold.texi: Likewise.
85974         * doc/ctime.texi: Likewise.
85975         * doc/error.texi: Likewise.
85976         * doc/fdl.texi: Likewise.
85977         * doc/gcd.texi: Likewise.
85978         * doc/getdate.texi: Likewise.
85979         * doc/gnulib-intro.texi: Likewise.
85980         * doc/gnulib-tool.texi: Likewise.
85981         * doc/gnulib.texi: Likewise.
85982         * doc/inet_ntoa.texi: Likewise.
85983         * doc/maintain.texi: Likewise.
85984         * doc/make-stds.texi: Likewise.
85985         * doc/quote.texi: Likewise.
85986         * doc/regexprops-generic.texi: Likewise.
85987         * doc/standards.texi: Likewise.
85988         * doc/verify.texi: Likewise.
85989         * doc/visibility.texi: Likewise.
85990         * doc/gnulib.texi (GNU Free Documentation License): Include
85991         fdl-1.3.texi instead of fdl.texi.
85993 2008-11-04  Simon Josefsson  <simon@josefsson.org>
85995         * doc/fdl-1.3.texi: New file, from
85996         <http://www.gnu.org/licenses/fdl-1.3.texi>.
85997         * modules/fdl-1.3: Add.
85998         * MODULES.html.sh: Add fdl-1.3.
86000 2008-11-03  Bruno Haible  <bruno@clisp.org>
86002         Make determination of absolute name of header file work with AIX xlc.
86003         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
86004         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
86005         preprocessing.
86006         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
86007         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
86009 2008-11-03  Simon Josefsson  <simon@josefsson.org>
86011         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
86012         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
86013         <ludo@gnu.org>.
86015 2008-11-02  Bruno Haible  <bruno@clisp.org>
86017         Mark 'strpbrk' obsolete.
86018         * modules/strpbrk (Status, Notice): New sections.
86019         * modules/strtok_r (Depends-on): Add strpbrk.
86021 2008-11-02  Bruno Haible  <bruno@clisp.org>
86023         Mark 'strdup' obsolete.
86024         * modules/strdup (Status, Notice): New sections.
86025         * modules/findprog (Depends-on): Add strdup.
86026         * modules/getaddrinfo (Depends-on): Likewise.
86027         * modules/localename (Depends-on): Likewise.
86028         * modules/relocatable-lib (Depends-on): Likewise.
86029         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
86030         * modules/relocatable-prog (Depends-on): Likewise.
86031         * modules/trim (Depends-on): Likewise.
86032         * modules/unictype/gen-ctype (Depends-on): Likewise.
86033         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
86035 2008-11-02  Bruno Haible  <bruno@clisp.org>
86037         Mark 'strcspn' obsolete.
86038         * modules/strcspn (Status, Notice): New sections.
86040 2008-11-02  Bruno Haible  <bruno@clisp.org>
86042         Mark 'rmdir' obsolete.
86043         * modules/rmdir (Status, Notice): New sections.
86044         * modules/clean-temp (Depends-on): Add rmdir.
86045         * modules/openat (Depends-on): Likewise.
86047 2008-11-02  Bruno Haible  <bruno@clisp.org>
86049         Mark 'raise' obsolete.
86050         * modules/raise (Status, Notice): New sections.
86051         (Include): Specify <signal.h>.
86052         * modules/stdio (Depends-on): Add raise.
86053         * modules/write (Depends-on): Likewise.
86055 2008-11-02  Bruno Haible  <bruno@clisp.org>
86057         Mark 'memset' obsolete.
86058         * modules/memset (Status, Notice): New sections.
86060 2008-11-02  Bruno Haible  <bruno@clisp.org>
86062         Mark 'memmove' obsolete.
86063         * modules/memmove (Status, Notice): New sections.
86064         * modules/argp (Depends-on): Add memmove.
86065         * modules/argz (Depends-on): Likewise.
86066         * modules/canonicalize (Depends-on): Likewise.
86067         * modules/canonicalize-lgpl (Depends-on): Likewise.
86068         * modules/fts (Depends-on): Likewise.
86069         * modules/getcwd (Depends-on): Likewise.
86070         * modules/human (Depends-on): Likewise.
86071         * modules/regex (Depends-on): Likewise.
86072         * modules/striconveh (Depends-on): Likewise.
86073         * modules/trim (Depends-on): Likewise.
86074         * modules/unistr/u8-move (Depends-on): Likewise.
86075         * modules/unistr/u16-move (Depends-on): Likewise.
86076         * modules/unistr/u32-move (Depends-on): Likewise.
86078 2008-11-02  Bruno Haible  <bruno@clisp.org>
86080         Mark 'memcpy' obsolete.
86081         * modules/memcpy (Status, Notice): New sections.
86083 2008-11-02  Bruno Haible  <bruno@clisp.org>
86085         Mark 'memcmp' obsolete.
86086         * modules/memcmp (Status, Notice): New sections.
86087         * modules/argmatch (Depends-on): Add memchr.
86088         * modules/backupfile (Depends-on): Likewise.
86089         * modules/c-strcasestr (Depends-on): Likewise.
86090         * modules/crypto/des (Depends-on): Likewise.
86091         * modules/csharpcomp (Depends-on): Likewise.
86092         * modules/fnmatch (Depends-on): Likewise.
86093         * modules/git-merge-changelog (Depends-on): Likewise.
86094         * modules/isnand (Depends-on): Likewise.
86095         * modules/isnand-nolibm (Depends-on): Likewise.
86096         * modules/isnanf (Depends-on): Likewise.
86097         * modules/isnanf-nolibm (Depends-on): Likewise.
86098         * modules/isnanl (Depends-on): Likewise.
86099         * modules/isnanl-nolibm (Depends-on): Likewise.
86100         * modules/mbchar (Depends-on): Likewise.
86101         * modules/memcoll (Depends-on): Likewise.
86102         * modules/quotearg (Depends-on): Likewise.
86103         * modules/regex (Depends-on): Likewise.
86104         * modules/relocatable-prog (Depends-on): Likewise.
86105         * modules/same (Depends-on): Likewise.
86106         * modules/signbit (Depends-on): Likewise.
86107         * modules/strcasestr-simple (Depends-on): Likewise.
86108         * modules/unictype/gen-ctype (Depends-on): Likewise.
86109         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
86110         * modules/uniname/uniname (Depends-on): Likewise.
86111         * modules/unistr/u8-cmp (Depends-on): Likewise.
86113 2008-11-02  Bruno Haible  <bruno@clisp.org>
86115         Mark 'memchr' obsolete.
86116         * modules/memchr (Status, Notice): New sections.
86117         * modules/argp (Depends-on): Add memchr.
86118         * modules/base64 (Depends-on): Likewise.
86119         * modules/c-strcasestr (Depends-on): Likewise.
86120         * modules/chdir-long (Depends-on): Likewise.
86121         * modules/fnmatch (Depends-on): Likewise.
86122         * modules/getsubopt (Depends-on): Likewise.
86123         * modules/git-merge-changelog (Depends-on): Likewise.
86124         * modules/glob (Depends-on): Likewise.
86125         * modules/strcasestr-simple (Depends-on): Likewise.
86126         * modules/strnlen (Depends-on): Likewise.
86128 2008-11-02  Bruno Haible  <bruno@clisp.org>
86130         Mark 'atexit' obsolete.
86131         * modules/atexit (Status, Notice): New sections.
86132         * modules/chdir-long (Depends-on): Add atexit.
86133         * modules/wait-process (Depends-on): Likewise.
86135 2008-11-02  Bruno Haible  <bruno@clisp.org>
86137         * gnulib-tool: New option --with-obsolete.
86138         (func_usage): Document it.
86139         (func_modules_transitive_closure): Drop obsolete dependencies if
86140         incobsolete is not true.
86141         (func_import): Read and save the incobsolete variable to the cache.
86143 2008-11-02  Bruno Haible  <bruno@clisp.org>
86145         * modules/TEMPLATE-EXTENDED: New field 'Status'.
86146         * gnulib-tool: New option --extract-status.
86147         (func_usage): Document it.
86148         (sed_extract_prog): Recognize it.
86149         (func_get_status): New function.
86151 2008-10-30  Simon Josefsson  <simon@josefsson.org>
86153         * modules/sockets (License): Change from LGPL to LGPLv2+.
86155 2008-10-28  Simon Josefsson  <simon@josefsson.org>
86157         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
86159 2008-10-28  Simon Josefsson  <simon@josefsson.org>
86161         * MODULES.html.sh (Support for systems lacking POSIX:2001):
86162         Mention times and sys_times.
86163         * modules/sys_times, modules/sys_times-tests: New modules.
86164         * modules/times, modules/times-tests: Likewise
86165         * m4/sys_times_h.m4: New file.
86166         * lib/sys_times.in.h: Likewise
86167         * lib/times.c: Likewise.
86168         * tests/test-sys_times.c: Likewise.
86169         * tests/test-times.c: Likewise.
86170         * doc/posix-headers/sys_times.texi: Update.
86171         * doc/posix-functions/times.texi: Update.
86173 2008-10-28  Jim Meyering  <meyering@redhat.com>
86175         * modules/tempname (Depends-on): Add lstat.
86177         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
86179 2008-10-28  Simon Josefsson  <simon@josefsson.org>
86181         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
86182         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
86183         using idiom used elsewhere in gnulib.
86185 2008-10-27  Jim Meyering  <meyering@redhat.com>
86187         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
86189 2008-10-27  Simon Josefsson  <simon@josefsson.org>
86191         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
86192         TESTS_ENVIRONMENT, for shell scripts that needs to call built
86193         programs.
86194         * tests/test-argp-2.sh: Use $EXEEXT when needed.
86196 2008-10-27  Simon Josefsson  <simon@josefsson.org>
86198         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
86200 2008-10-27  Bruno Haible  <bruno@clisp.org>
86202         * tests/test-lstat.c: Include <stdio.h>.
86204 2008-10-27  Simon Josefsson  <simon@josefsson.org>
86206         * modules/lstat-tests: New module.
86207         * tests/test-lstat.c: New file.
86209 2008-10-26  Jim Meyering  <meyering@redhat.com>
86211         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
86213 2008-10-26  Simon Josefsson  <simon@josefsson.org>
86214             Bruno Haible  <bruno@clisp.org>
86216         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
86217         * modules/configmake (Include): Add a note that the include must come
86218         after all system headers.
86219         * lib/javaversion.c: Include configmake.h after all other includes.
86221 2008-10-26  Bruno Haible  <bruno@clisp.org>
86223         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
86224         HAVE_STRUCT_RANDOM_DATA to 1.
86225         (gl_STDLIB_H): Simplify.
86227 2008-10-26  Simon Josefsson  <simon@josefsson.org>
86229         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
86230         substitute HAVE_STRUCT_RANDOM_DATA.
86231         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
86232         random_data.
86233         * modules/stdlib (Makefile.am): Substitute
86234         HAVE_STRUCT_RANDOM_DATA.
86236 2008-10-26  Simon Josefsson  <simon@josefsson.org>
86238         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
86239         * doc/gnulib-intro.texi (Copyright): Likewise.
86241 2008-10-26  Simon Josefsson  <simon@josefsson.org>
86243         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
86244         findings.
86246 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
86247             Bruno Haible  <bruno@clisp.org>
86249         * lib/unistd.in.h: Include <winsock2.h>.
86250         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
86251         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
86252         Provide dummy declarations.
86253         (gethostname): Override.
86254         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
86255         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
86256         gl_PREREQ_SYS_H_WINSOCK2.
86257         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
86258         * doc/posix-functions/gethostname.texi: More details.
86260 2008-10-25  Bruno Haible  <bruno@clisp.org>
86262         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
86263         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
86264         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
86266         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
86267         here ...
86268         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
86269         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
86270         gl_UNISTD_H_DEFAULTS.
86272 2008-10-25  Eric Blake  <ebb9@byu.net>
86274         signbit: avoid spurious compiler failure
86275         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
86276         declarations inside function.
86278 2008-10-24  Simon Josefsson  <simon@josefsson.org>
86279             Bruno Haible  <bruno@clisp.org>
86281         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
86282         * modules/random_r (Depends-on): Add stdint.
86284 2008-10-24  Bruno Haible  <bruno@clisp.org>
86286         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
86287         Eggert.
86288         * modules/strerror (License): Likewise.
86290 2008-10-24  Jim Meyering  <meyering@redhat.com>
86292         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
86293         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
86295 2008-10-24  Eric Blake  <ebb9@byu.net>
86297         getgroups: fix compilation when getgroups is available
86298         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
86299         but with <config.h> override of getgroups disabled.
86301 2008-10-24  Simon Josefsson  <simon@josefsson.org>
86303         * doc/gnulib.texi (Header files): Add note about C++ problems.
86304         Explained by Bruno Haible <bruno@clisp.org>.
86306 2008-10-23  Bruno Haible  <bruno@clisp.org>
86308         Define a dummy SA_NODEFER macro on Interix.
86309         * lib/signal.in.h (SA_NODEFER): Define fallback.
86310         Reported by Aleksey Cheusov <cheusov@tut.by> via
86311         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
86313 2008-10-23  Bruno Haible  <bruno@clisp.org>
86315         * modules/freadahead (License): Change to LGPLv2+.
86316         Suggested by Simon Josefsson.
86318 2008-10-23  Jim Meyering  <meyering@redhat.com>
86320         random_r: new module
86321         * modules/random_r: New file.
86322         * m4/random_r.m4: New file.
86323         * lib/random_r.c: New file, from glibc.
86324         * modules/random_r-tests: New file.
86325         * tests/test-random_r.c: New file.
86326         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
86327          Declare.
86328         (RAND_MAX): Define.
86329         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
86330         * modules/stdlib: Substitute them, too.
86331         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
86332         * doc/glibc-functions/initstate_r.texi: Mention the new module.
86333         * doc/glibc-functions/random_r.texi: Likewise.
86334         * doc/glibc-functions/setstate_r.texi: Likewise.
86335         * doc/glibc-functions/srandom_r.texi: Likewise.
86336         * config/srclist.txt: Mention it.
86338 2008-10-23  David Lutterkort  <lutter@redhat.com>
86340         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
86341         link requirement
86343 2008-10-23  Jim Meyering  <meyering@redhat.com>
86345         selinux-h: mark parameters of stub functions as intentionally unused
86346         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
86347         * lib/se-context.in.h: Likewise.
86349 2008-10-22  Simon Josefsson  <simon@josefsson.org>
86351         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
86353 2008-10-22  Simon Josefsson  <simon@josefsson.org>
86355         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
86357 2008-10-22  Eric Blake  <ebb9@byu.net>
86359         glthread/thread: avoid compiler warning
86360         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
86361         Add unreachable abort to silence compiler.
86363 2008-10-22  Eric Blake  <ebb9@byu.net>
86365         netdb: also supply struct addrinfo for cygwin 1.5.x
86366         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
86367         older cygwin.
86368         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
86369         cygwin.
86370         * doc/posix-headers/netdb.texi (netdb.h): Document this.
86372 2008-10-22  Bruno Haible  <bruno@clisp.org>
86374         * users.txt: Update entry about pspp.
86376 2008-10-21  Bruno Haible  <bruno@clisp.org>
86378         Simplification.
86379         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
86380         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
86382         Simplification.
86383         * lib/ioctl.c (ioctl): Don't undefine.
86384         * lib/socket.c (socket): Don't undefine.
86386         Remove unused module indicator macros.
86387         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
86388         GNULIB_$1 as a C macro.
86390         * doc/posix-functions/close.texi: Undo last change.
86391         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
86392         Windows platforms.
86394 2008-10-21  Bruno Haible  <bruno@clisp.org>
86396         Add gethostname() declaration to <unistd.h>.
86397         * lib/unistd.in.h (gethostname): New declaration.
86398         * lib/gethostname.c: Include <unistd.h>.
86399         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
86400         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
86401         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
86402         and HAVE_GETHOSTNAME.
86403         * modules/gethostname (Depends-on): Add unistd.
86404         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86405         (Include): Specify <unistd.h>.
86406         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
86407         HAVE_GETHOSTNAME.
86408         * tests/test-gethostname.c: Include <unistd.h> first.
86410 2008-10-21  Bruno Haible  <bruno@clisp.org>
86412         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
86413         * modules/select-tests (Depends-on): Likewise.
86414         Reported by Simon Josefsson.
86416 2008-10-21  Simon Josefsson  <simon@josefsson.org>
86418         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
86419         * lib/accept.c: New file, based on winsock.c.
86420         * lib/bind.c: New file, based on winsock.c.
86421         * lib/connect.c: New file, based on winsock.c.
86422         * lib/getpeername.c: New file, based on winsock.c.
86423         * lib/getsockname.c: New file, based on winsock.c.
86424         * lib/getsockopt.c: New file, based on winsock.c.
86425         * lib/ioctl.c: New file, based on winsock.c.
86426         * lib/listen.c: New file, based on winsock.c.
86427         * lib/recv.c: New file, based on winsock.c.
86428         * lib/recvfrom.c: New file, based on winsock.c.
86429         * lib/send.c: New file, based on winsock.c.
86430         * lib/sendto.c: New file, based on winsock.c.
86431         * lib/setsockopt.c: New file, based on winsock.c.
86432         * lib/shutdown.c: New file, based on winsock.c.
86433         * lib/socket.c: New file, based on winsock.c.
86434         * lib/w32sock.h: New file, based on winsock.c.
86435         * lib/winsock.c: Remove file.
86436         * modules/accept: Likewise.
86437         * modules/bind: Likewise.
86438         * modules/connect: Likewise.
86439         * modules/getpeername: Likewise.
86440         * modules/getsockname: Likewise.
86441         * modules/getsockopt: Likewise.
86442         * modules/ioctl: Likewise.
86443         * modules/listen: Likewise.
86444         * modules/recv: Likewise.
86445         * modules/recvfrom: Likewise.
86446         * modules/send: Likewise.
86447         * modules/sendto: Likewise.
86448         * modules/setsockopt: Likewise.
86449         * modules/shutdown: Likewise.
86450         * modules/socket: Use socket.c instead of winsock.c.
86451         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
86452         * doc/posix-functions/accept.texi: Doc fix.
86453         * doc/posix-functions/bind.texi: Doc fix.
86454         * doc/posix-functions/close.texi: Doc fix.
86455         * doc/posix-functions/connect.texi: Doc fix.
86456         * doc/posix-functions/getpeername.texi: Doc fix.
86457         * doc/posix-functions/getsockname.texi: Doc fix.
86458         * doc/posix-functions/getsockopt.texi: Doc fix.
86459         * doc/posix-functions/ioctl.texi: Doc fix.
86460         * doc/posix-functions/listen.texi: Doc fix.
86461         * doc/posix-functions/recv.texi: Doc fix.
86462         * doc/posix-functions/recvfrom.texi: Doc fix.
86463         * doc/posix-functions/send.texi: Doc fix.
86464         * doc/posix-functions/sendto.texi: Doc fix.
86465         * doc/posix-functions/setsockopt.texi: Doc fix.
86466         * doc/posix-functions/shutdown.texi: Doc fix.
86467         * doc/posix-functions/socket.texi: Doc fix.
86469 2008-10-20  Bruno Haible  <bruno@clisp.org>
86471         Take into account the role of SIGABRT_COMPAT on Windows 2008.
86472         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
86473         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
86474         as an alias for SIGABRT.
86475         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
86476         (sigaction): Map it to SIGABRT.
86477         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
86479 2008-10-20  Bruno Haible  <bruno@clisp.org>
86481         * lib/fts.c: Don't include lstat.h.
86482         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
86484         Move the lstat() declaration to <sys/stat.h>.
86485         * lib/lstat.h: Remove file.
86486         * lib/sys_stat.in.h: Add special invocation convention.
86487         (lstat): New declaration.
86488         * lib/lstat.c (orig_lstat): New function.
86489         (rpl_lstat): Use orig_lstat instead of lstat.
86490         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
86491         AC_C_INLINE. Set REPLACE_LSTAT.
86492         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
86493         and REPLACE_LSTAT.
86494         * modules/lstat (Files): Remove lib/lstat.h.
86495         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
86496         (Include): Specify <sys/stat.h> instead of lstat.h.
86497         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
86498         REPLACE_LSTAT.
86499         * NEWS: Mention the change.
86501 2008-10-20  Bruno Haible  <bruno@clisp.org>
86503         * modules/posix_spawn-tests: New file.
86504         * tests/test-posix_spawn3.c: New file.
86506 2008-10-20  Bruno Haible  <bruno@clisp.org>
86508         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
86509         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
86510         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
86511         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
86512         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
86514 2008-10-20  Bruno Haible  <bruno@clisp.org>
86516         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
86517         of posix_spawn on AIX 5.3.
86519 2008-10-20  Bruno Haible  <bruno@clisp.org>
86521         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
86523 2008-10-20  Bruno Haible  <bruno@clisp.org>
86525         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
86526         of AC_LANG_PROGRAM.
86528 2008-10-20  Simon Josefsson  <simon@josefsson.org>
86530         * lib/netdb.in.h: Don't define GNU specific constants until they
86531         are supported or needed.  Reported by Bruno Haible
86532         <bruno@clisp.org>.
86534 2008-10-20  Simon Josefsson  <simon@josefsson.org>
86536         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
86538 2008-10-20  Simon Josefsson  <simon@josefsson.org>
86540         * lib/getaddrinfo.h: Remove file.
86541         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
86542         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
86543         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
86544         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
86545         * modules/netdb: Substitute GNULIB_GETADDRINFO.
86546         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
86547         * tests/test-getaddrinfo.c: Likewise.
86548         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
86549         * NEWS: Mention change.
86551 2008-10-19  Bruno Haible  <bruno@clisp.org>
86553         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
86555 2008-10-19  Bruno Haible  <bruno@clisp.org>
86557         * lib/wait-process.c: Include simply <sys/wait.h>.
86558         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
86559         WIFSTOPPED): Remove fallback definitions.
86560         * modules/wait-process (Depends-on): Add sys_wait.
86562         New module 'sys_wait'.
86563         * modules/sys_wait: New file.
86564         * lib/sys_wait.in.h: New file, partially copied from
86565         lib/wait-process.c.
86566         * m4/sys_wait_h.m4: New file.
86567         * doc/posix-headers/sys_wait.texi: Mention the new module.
86569 2008-10-19  Bruno Haible  <bruno@clisp.org>
86571         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
86573 2008-10-19  Bruno Haible  <bruno@clisp.org>
86575         Assume that waitpid() fills an 'int' status, not a 'union wait'.
86576         * lib/wait-process.c (WAIT_T): Remove type.
86577         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
86578         (wait_subprocess): Update.
86580 2008-10-19  Bruno Haible  <bruno@clisp.org>
86582         New module 'atoll'.
86583         * modules/atoll: New file.
86584         * lib/stdlib.in.h (atoll): New declaration.
86585         * lib/atoll.c: New file, from glibc with modifications.
86586         * m4/atoll.m4: New file.
86587         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
86588         HAVE_ATOLL.
86589         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
86590         * doc/posix-functions/atoll.texi: Mention the new module.
86592 2008-10-19  Bruno Haible  <bruno@clisp.org>
86594         Add strtoull() declaration to <stdlib.h>.
86595         * lib/stdlib.in.h (strtoull): New declaration.
86596         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
86597         Set HAVE_STRTOULL.
86598         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
86599         HAVE_STRTOULL.
86600         * modules/strtoull (Depends-on): Add stdlib.
86601         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
86602         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
86603         HAVE_STRTOULL.
86605 2008-10-19  Bruno Haible  <bruno@clisp.org>
86607         Add strtoll() declaration to <stdlib.h>.
86608         * lib/stdlib.in.h (strtoll): New declaration.
86609         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
86610         Set HAVE_STRTOLL.
86611         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
86612         HAVE_STRTOLL.
86613         * modules/strtoll (Depends-on): Add stdlib.
86614         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
86615         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
86617 2008-10-19  Bruno Haible  <bruno@clisp.org>
86619         * modules/bcopy (Depends-on): Add strings.
86620         (Include): Specify <strings.h>.
86622 2008-10-19  Bruno Haible  <bruno@clisp.org>
86624         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
86626 2008-10-19  Bruno Haible  <bruno@clisp.org>
86628         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
86629         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
86630         mingw.
86632 2008-10-19  Bruno Haible  <bruno@clisp.org>
86634         * lib/atanl.c: Don't include isnanl.h.
86635         * lib/cosl.c: Likewise.
86636         * lib/ldexpl.c: Likewise.
86637         * lib/logl.c: Likewise.
86638         * lib/sinl.c: Likewise.
86639         * lib/sqrtl.c: Likewise.
86640         * lib/tanl.c: Likewise.
86642         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
86643         * lib/isnanf.h: Remove file.
86644         * lib/isnand.h: Remove file.
86645         * lib/isnanl.h: Remove file.
86646         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
86647         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
86648         macros.
86649         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
86650         HAVE_ISNANF, don't define it as a C macro.
86651         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
86652         HAVE_ISNAND, don't define it as a C macro.
86653         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
86654         HAVE_ISNANL, don't define it as a C macro.
86655         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
86656         HAVE_ISNAN[FDL].
86657         * modules/isnanf (Files): Remove lib/isnanf.h.
86658         (Depends-on): Add math.
86659         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
86660         (Include): Specify <math.h> instead of isnanf.h.
86661         * modules/isnand (Files): Remove lib/isnand.h.
86662         (Depends-on): Add math.
86663         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
86664         (Include): Specify <math.h> instead of isnand.h.
86665         * modules/isnanl (Files): Remove lib/isnanl.h.
86666         (Depends-on): Add math.
86667         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
86668         (Include): Specify <math.h> instead of isnanl.h.
86669         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
86670         HAVE_ISNAN[FDL].
86671         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
86672         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
86673         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
86674         * NEWS: Mention the change.
86676 2008-10-18  Bruno Haible  <bruno@clisp.org>
86678         Add getusershell(), setusershell(), endusershell() declarations to
86679         <unistd.h>.
86680         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
86681         declarations.
86682         * lib/getusershell.c: Include unistd.h.
86683         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
86684         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
86685         HAVE_GETUSERSHELL.
86686         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
86687         and HAVE_GETUSERSHELL.
86688         * modules/getusershell (Depends-on): Add unistd, extensions.
86689         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86690         (Include): Specify <unistd.h>.
86691         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
86692         HAVE_GETUSERSHELL.
86694 2008-10-18  Bruno Haible  <bruno@clisp.org>
86696         Add a getloadavg() declaration to <stdlib.h>.
86697         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
86698         getloadavg declaration.
86699         (getloadavg): New declaration.
86700         * lib/getloadavg.c: Include <stdlib.h> first.
86701         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
86702         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
86703         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
86704         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
86705         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
86706         * modules/getloadavg (Depends-on): Add stdlib, extensions.
86707         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
86708         (Include): Specify <stdlib.h>.
86709         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
86710         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
86712 2008-10-18  Bruno Haible  <bruno@clisp.org>
86714         * lib/dirchownmod.c: Don't include lchmod.h.
86716         Move the lchmod() declaration to <sys/stat.h>.
86717         * lib/lchmod.h: Remove file.
86718         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
86719         (lchmod): New declaration, moved here from lib/lchown.h.
86720         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
86721         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
86722         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
86723         and HAVE_LCHMOD.
86724         * modules/lchmod (Files): Remove lib/lchmod.h.
86725         (Depends-on): Add sys_stat, extensions.
86726         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
86727         (Include): Specify <sys/stat.h> instead of lchmod.h.
86728         * modules/sys_stat (Depends-on): Add link-warning.
86729         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
86730         definition of GL_LINK_WARNING.
86731         * NEWS: Mention the change.
86733 2008-10-18  Bruno Haible  <bruno@clisp.org>
86735         * lib/fchdir.c: Don't include dirfd.h.
86736         * lib/fts.c: Likewise.
86737         * lib/getcwd.c: Likewise.
86738         * lib/glob.c: Likewise.
86740         Move the dirfd() declaration to <dirent.h>.
86741         * lib/dirfd.h: Remove file.
86742         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
86743         (dirfd): New declaration.
86744         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
86745         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
86746         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
86747         HAVE_DECL_DIRFD.
86748         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
86749         HAVE_DECL_DIRFD.
86750         * modules/dirfd (Files): Remove lib/dirfd.h.
86751         (Depends-on): Add dirent, extensions.
86752         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
86753         (Include): Specify <dirent.h> instead of dirfd.h.
86754         * modules/dirent (Depends-on): Add link-warning.
86755         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
86756         definition of GL_LINK_WARNING.
86757         * NEWS: Mention the change.
86759 2008-10-18  Bruno Haible  <bruno@clisp.org>
86761         Move the euidaccess() declaration to <unistd.h>.
86762         * lib/euidaccess.h: Remove file.
86763         * lib/unistd.in.h (euidaccess): New declaration.
86764         * lib/euidaccess.c: Don't include euidaccess.h.
86765         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
86766         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
86767         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
86768         and HAVE_EUIDACCESS.
86769         * modules/euidaccess (Files): Remove lib/euidaccess.h.
86770         (Depends-on): Add unistd.
86771         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86772         (Include): Specify <unistd.h> instead of euidaccess.h.
86773         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
86774         HAVE_EUIDACCESS.
86775         * NEWS: Mention the change.
86777 2008-10-18  Bruno Haible  <bruno@clisp.org>
86779         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
86781         Move the getdomainname() declaration to <unistd.h>.
86782         * lib/getdomainname.h: Remove file.
86783         * lib/unistd.in.h (getdomainname): New declaration.
86784         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
86785         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
86786         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
86787         HAVE_GETDOMAINNAME.
86788         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
86789         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
86790         * modules/getdomainname (Files): Remove lib/getdomainname.h.
86791         (Depends-on): Add unistd, extensions.
86792         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86793         (Includes): Specify <unistd.h> instead of getdomainname.h.
86794         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
86795         HAVE_GETDOMAINNAME.
86796         * NEWS: Mention the change.
86798 2008-10-18  Bruno Haible  <bruno@clisp.org>
86800         * modules/dirent: New file.
86801         * m4/dirent_h.m4: New file.
86802         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
86803         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
86804         * modules/fchdir (Files): Remove lib/dirent.in.h.
86805         (Depends-on): Add dirent.
86806         (Makefile.am): Move rules to modules/dirent.
86807         * doc/posix-headers/dirent.texi: Mention the new module.
86809 2008-10-18  Bruno Haible  <bruno@clisp.org>
86811         Avoid -Wunused-parameter warnings in public gnulib header files.
86812         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
86813         macro.
86814         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
86816 2008-10-18  Bruno Haible  <bruno@clisp.org>
86818         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
86819         * doc/glibc-functions/error.texi: Mention the module 'error'.
86820         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
86821         * doc/glibc-functions/getdomainname.texi: Mention the module
86822         'getdomainname'.
86823         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
86824         * doc/glibc-functions/getpagesize.texi: Mention the module
86825         'getpagesize'.
86826         * doc/glibc-functions/getusershell.texi: Mention the module
86827         'getusershell'.
86828         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
86829         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
86830         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
86831         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
86832         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
86833         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
86834         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
86835         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
86836         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
86837         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
86838         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
86839         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
86840         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
86841         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
86843 2008-10-17  Bruno Haible  <bruno@clisp.org>
86845         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
86846         HP-UX and IRIX, use -0.0L.
86847         * tests/test-ceill.c (minus_zero): Likewise.
86848         * tests/test-floorl.c (minus_zero): Likewise.
86849         * tests/test-frexpl.c (minus_zero): Likewise.
86850         * tests/test-isnan.c (minus_zerol): Likewise.
86851         * tests/test-isnanl.h (minus_zero): Likewise.
86852         * tests/test-ldexpl.c (minus_zero): Likewise.
86853         * tests/test-roundl.c (minus_zero): Likewise.
86854         * tests/test-signbit.c (minus_zerol): Likewise.
86855         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
86856         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
86857         * tests/test-truncl.c (minus_zero): Likewise.
86858         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
86859         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
86860         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
86861         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
86863 2008-10-17  Bruno Haible  <bruno@clisp.org>
86865         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
86866         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
86867         that it gets activated only for gcc >= 3.0.
86868         * lib/dirent.in.h: Likewise.
86869         * lib/errno.in.h: Likewise.
86870         * lib/fcntl.in.h: Likewise.
86871         * lib/float.in.h: Likewise.
86872         * lib/iconv.in.h: Likewise.
86873         * lib/inttypes.in.h: Likewise.
86874         * lib/locale.in.h: Likewise.
86875         * lib/math.in.h: Likewise.
86876         * lib/netdb.in.h: Likewise.
86877         * lib/netinet_in.in.h: Likewise.
86878         * lib/search.in.h: Likewise.
86879         * lib/signal.in.h: Likewise.
86880         * lib/spawn.in.h: Likewise.
86881         * lib/stdarg.in.h: Likewise.
86882         * lib/stdint.in.h: Likewise.
86883         * lib/stdio.in.h: Likewise.
86884         * lib/stdlib.in.h: Likewise.
86885         * lib/string.in.h: Likewise.
86886         * lib/strings.in.h: Likewise.
86887         * lib/sys_file.in.h: Likewise.
86888         * lib/sys_ioctl.in.h: Likewise.
86889         * lib/sys_select.in.h: Likewise.
86890         * lib/sys_socket.in.h: Likewise.
86891         * lib/sys_stat.in.h: Likewise.
86892         * lib/sys_time.in.h: Likewise.
86893         * lib/sysexits.in.h: Likewise.
86894         * lib/time.in.h: Likewise.
86895         * lib/unistd.in.h: Likewise.
86896         * lib/wchar.in.h: Likewise.
86897         * lib/wctype.in.h: Likewise.
86898         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86900 2008-10-17  Jim Meyering  <meyering@redhat.com>
86902         ignore-value: don't depend on inline module
86903         * modules/ignore-value (Depends-on): Remove 'inline'.
86904         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
86905         Suggestion from Bruno Haible.
86907 2008-10-17  Bruno Haible  <bruno@clisp.org>
86909         New implementation of condition variables for Win32.
86910         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
86911         (gl_linked_waitqueue_t): New type.
86912         (gl_cond_t): Use it.
86913         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
86914         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
86915         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
86916         (glthread_cond_init_func, glthread_cond_wait_func,
86917         glthread_cond_timedwait_func, glthread_cond_signal_func,
86918         glthread_cond_broadcast_func, glthread_cond_destroy_func):
86919         Reimplemented on the basis of gl_linked_waitqueue_t.
86920         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
86921         gl_waitqueue_t.
86922         (gl_rwlock_t): Update.
86923         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
86925 2008-10-17  Simon Josefsson  <simon@josefsson.org>
86927         * modules/recvfrom (Depends-on): Add dependency on getpeername.
86928         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
86930 2008-10-17  Jim Meyering  <meyering@redhat.com>
86932         ignore-value: new module
86933         * modules/ignore-value: New file.
86934         * lib/ignore-value.h: New file.
86935         * MODULES.html.sh (Compiler warning management): New section,
86936         just for this module.  More to come.
86938 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
86940         open-safer.c: avoid 'signed and unsigned in conditional...' warning
86941         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
86942         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
86944 2008-10-16  Jim Meyering  <meyering@redhat.com>
86946         openat-die.c: avoid 'no previous prototype' warning
86947         * lib/openat-die.c: Include "openat.h".
86948         Reported by Reuben Thomas <rrt@sc3d.org>.
86950 2008-10-16  Simon Josefsson  <simon@josefsson.org>
86952         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
86953         * lib/netdb.in.h: Fix typo.
86954         Reported by Bruno Haible  <bruno@clisp.org>
86956         * lib/netdb.in.h: Include sys/socket.h for platforms without
86957         netdb.h, to get structures like hostent on MinGW.
86958         * modules/netdb (Depends-on): Add sys_socket.
86960 2008-10-15  Simon Josefsson  <simon@josefsson.org>
86962         * modules/netdb, modules/netdb-tests: New file.
86963         * m4/netdb_h.m4: New file.
86964         * lib/netdb.in.h: Add, currently just an empty file pending
86965         definitions.
86966         * tests/test-netdb.c: New file.
86967         * doc/posix-headers/netdb.texi: Mention that we replace it if
86968         needed.
86969         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86970         netdb.
86972 2008-10-15  Simon Josefsson  <simon@josefsson.org>
86974         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
86975         with code.
86977 2008-10-13  Bruno Haible  <bruno@clisp.org>
86979         * lib/glthread/cond.c (glthread_cond_wait_func,
86980         glthread_cond_timedwait_func): Add a comment.
86982 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86984         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
86985         * tests/test-select.c: Likewise,
86987 2008-10-13  Bruno Haible  <bruno@clisp.org>
86989         * lib/glthread/cond.c (glthread_cond_wait_func,
86990         glthread_cond_timedwait_func): Fix variable name.
86991         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
86993 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
86995         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
86996         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
86997         struct sockaddr.sa_len.
86998         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
87000 2008-10-13  Simon Josefsson  <simon@josefsson.org>
87002         * build-aux/pmccabe2html: Add css and css_url parameters.
87004 2008-10-12  Bruno Haible  <bruno@clisp.org>
87006         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
87007         calling aclx_get.
87008         Reported by Rainer Tammer <tammer@tammer.net>.
87010 2008-10-12  Bruno Haible  <bruno@clisp.org>
87012         Use msvcrt aware primitives for creation/termination of Win32 threads.
87013         * lib/glthread/thread.c: Include <process.h>.
87014         (glthread_create_func): Use _beginthreadex instead of CreateThread.
87015         (wrapper_func): Update signature.
87016         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
87018 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87019             Bruno Haible  <bruno@clisp.org>
87021         Provide a Win32 implementation of the 'cond' module.
87022         * lib/glthread/cond.h [USE_WIN32]: New implementation.
87023         * lib/glthread/cond.c (glthread_cond_init_func,
87024         glthread_cond_wait_func, glthread_cond_timedwait_func,
87025         glthread_cond_signal_func, glthread_cond_broadcast_func,
87026         glthread_cond_destroy_func) [USE_WIN32]: New functions.
87027         * modules/cond (Dependencies): Add gettimeofday.
87029 2008-10-11  Bruno Haible  <bruno@clisp.org>
87031         Make sleep work on older versions of mingw.
87032         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
87033         only whether it exists.
87034         * doc/posix-functions/sleep.texi: Mention the problem with older
87035         versions of mingw.
87037 2008-10-11  Bruno Haible  <bruno@clisp.org>
87039         New module 'shutdown'.
87040         * modules/shutdown: New file.
87041         * lib/sys_socket.in.h (shutdown): New declaration.
87042         * lib/winsock.c (shutdown): New function.
87043         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
87044         GNULIB_SHUTDOWN.
87045         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
87046         * doc/posix-functions/shutdown.texi: Document the new module.
87048 2008-10-11  Jim Meyering  <meyering@redhat.com>
87050         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
87052 2008-10-11  Bruno Haible  <bruno@clisp.org>
87054         New module 'fclose'.
87055         * modules/fclose: New file.
87056         * lib/stdio.in.h (fclose): New declaration.
87057         * lib/fclose.c: New file.
87058         * m4/fclose.m4: New file.
87059         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
87060         REPLACE_FCLOSE.
87061         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
87062         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
87063         REPLACE_FCLOSE.
87064         * modules/close (Depends-on): fclose.
87065         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
87067 2008-10-11  Bruno Haible  <bruno@clisp.org>
87069         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
87070         set errno and don't call _close.
87072 2008-10-10  Bruno Haible  <bruno@clisp.org>
87074         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
87075         ACL, not afterwards. Fixes test failure on Cygwin.
87077 2008-10-09  Ben Pfaff  <blp@gnu.org>
87079         * build-aux/announce-gen: Fix gnulib version related part of usage
87080         message.  Die with a useful error message if no tarballs are
87081         found.
87083 2008-10-10  Jim Meyering  <meyering@redhat.com>
87085         bootstrap: use git's --depth=N option only if it's supported
87086         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
87087         recognize the --depth option.  Reported by Pádraig Brady.
87089 2008-10-09  Bruno Haible  <bruno@clisp.org>
87091         New module 'ioctl'.
87092         * modules/ioctl: New file.
87093         * lib/sys_socket.in.h (ioctl): Remove declaration.
87094         * lib/winsock.c: Include <sys/ioctl.h>.
87095         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
87096         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
87097         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
87098         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
87099         * doc/posix-functions/ioctl.texi: Mention the new module.
87101 2008-10-09  Bruno Haible  <bruno@clisp.org>
87103         New module 'sys_ioctl'.
87104         * lib/sys_ioctl.in.h: New file.
87105         * m4/sys_ioctl_h.m4: New file.
87106         * modules/sys_ioctl: New file.
87107         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
87109 2008-10-09  Bruno Haible  <bruno@clisp.org>
87111         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
87112         * lib/winsock.c: Include <stdarg.h>.
87113         (rpl_ioctl): Change to second argument 'int' and then varargs.
87115 2008-10-09  Bruno Haible  <bruno@clisp.org>
87117         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
87118         when the sys_socket module is present and the system has <winsock2.h>.
87120 2008-10-09  Bruno Haible  <bruno@clisp.org>
87122         * doc/posix-functions/close.texi: Mention module 'close' instead of
87123         module 'sys_socket'.
87125 2008-10-09  Bruno Haible  <bruno@clisp.org>
87127         * doc/glibc-headers/sys_ioctl.texi: New file.
87128         * doc/gnulib.texi: Include it.
87130 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
87131             Bruno Haible  <bruno@clisp.org>
87133         Combine the two replacements of 'close'.
87134         * lib/sys_socket.in.h (close): Define to a reminder to include
87135         <unistd.h>.
87136         (_gl_close_fd_maybe_socket): New declaration.
87137         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
87138         * lib/winsock.c (close): Remove undefinition.
87139         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
87140         needed for the gnulib module 'close'.
87141         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
87142         define to an error symbol or to a warning, if suitable.
87143         * lib/close.c: Include <sys/socket.h>.
87144         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
87145         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
87146         UNISTD_H_HAVE_WINSOCK2_H.
87147         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
87148         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
87149         UNISTD_H_HAVE_WINSOCK2_H.
87150         * modules/sys_socket (Files): Add m4/unistd_h.m4.
87151         (configure.ac): Set a module indicator.
87152         (Makefile.am): Substitute GNULIB_CLOSE.
87153         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
87154         * modules/poll-tests (Depends-on): Add close.
87155         * modules/select-tests (Depends-on): Likewise.
87157 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
87158             Bruno Haible  <bruno@clisp.org>
87160         New module 'close'.
87161         * modules/close: New file.
87162         * lib/unistd.in.h (close): Move declaration out of the
87163         FCHDIR_REPLACEMENT scope.
87164         (_gl_unregister_fd): New declaration.
87165         * lib/close.c: New file.
87166         * lib/fchdir.c (rpl_close): Remove function.
87167         * m4/close.m4: New file.
87168         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
87169         close.
87170         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
87171         REPLACE_CLOSE.
87172         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
87173         REPLACE_CLOSE.
87174         * modules/fchdir (Depends-on): Add close.
87176 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
87177             Bruno Haible  <bruno@clisp.org>
87179         * lib/fcntl.in.h (open): Simplify conditionals.
87180         (_gl_register_fd): New declaration.
87181         * lib/fchdir.c (rpl_open): Remove function.
87182         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
87183         also.
87184         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
87185         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
87186         open.
87188 2008-10-09  Jim Meyering  <meyering@redhat.com>
87190         GNUmakefile: use the more name-space-friendly "_version"
87191         * top/GNUmakefile (_dummy): Update.
87192         (_version): Rename from "version".
87194 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
87195             Bruno Haible  <bruno@clisp.org>
87197         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
87198         rpl_close.
87199         (_gl_register_fd): New function, extracted from rpl_open.
87200         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
87201         (rpl_open, rpl_opendir): Use _gl_register_fd.
87203 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
87205         Fix organization of 'open' replacement.
87206         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
87207         (gl_FUNC_OPEN): Use it.
87208         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
87210 2008-10-08  Bruno Haible  <bruno@clisp.org>
87212         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
87214 2008-10-08  Simon Josefsson  <simon@josefsson.org>
87216         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
87217         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
87218         listen).
87220 2008-10-08  Eric Blake  <ebb9@byu.net>
87222         GNUmakefile: add 'make version' target
87223         * top/GNUmakefile (_curr-ver): Split version update rules...
87224         (version): ...into a target.
87226 2008-10-07  Bruno Haible  <bruno@clisp.org>
87228         Use a more portable replacement expression for -0.0L.
87229         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
87230         instead of -0.0L. Fix m4 quotation.
87232         * tests/test-signbit.c: Include <float.h>.
87233         (minus_zero): New variable.
87234         (test_signbitl): Use minus_zero instead of -zero.
87235         * modules/signbit-tests (Depends-on): Add float.
87237         * tests/test-ceill.c: Include <float.h>.
87238         (zero): Remove variable.
87239         (minus_zero): New variable.
87240         (main): Use minus_zero instead of -zero.
87241         * modules/ceill-tests (Depends-on): Add float.
87243         * tests/test-floorl.c: Include <float.h>.
87244         (zero): Remove variable.
87245         (minus_zero): New variable.
87246         (main): Use minus_zero instead of -zero.
87247         * modules/floorl-tests (Depends-on): Add float.
87249         * tests/test-roundl.c: Include <float.h>.
87250         (zero): Remove variable.
87251         (minus_zero): New variable.
87252         (main): Use minus_zero instead of -zero.
87253         * modules/roundl-tests (Depends-on): Add float.
87255         * tests/test-truncl.c: Include <float.h>.
87256         (zero): Remove variable.
87257         (minus_zero): New variable.
87258         (main): Use minus_zero instead of -zero.
87259         * modules/truncl-tests (Depends-on): Add float.
87261         * tests/test-frexpl.c (zero): Remove variable.
87262         (minus_zero): New variable.
87263         (main): Use minus_zero instead of -zero.
87264         * modules/frexpl-tests (Depends-on): Add float.
87266         * tests/test-isnan.c (zerol): Remove variable.
87267         (minus_zerol): New variable.
87268         (test_long_double): Use minus_zerol instead of -zerol.
87269         * modules/isnan-tests (Depends-on): Add float.
87271         * tests/test-isnanl.h (zero): Remove variable.
87272         (minus_zero): New variable.
87273         (main): Use minus_zero instead of -zero.
87274         * modules/isnanl-nolibm-tests (Depends-on): Add float.
87275         * modules/isnanl-tests (Depends-on): Add float.
87277         * tests/test-ldexpl.c (zero): Remove variable.
87278         (minus_zero): New variable.
87279         (main): Use minus_zero instead of -zero.
87280         * modules/ldexpl-tests (Depends-on): Add float.
87282         * tests/test-snprintf-posix.h (zerol): Remove variable.
87283         (minus_zerol): New variable.
87284         (test_function): Use minus_zerol instead of -zerol.
87285         * modules/snprintf-posix-tests (Depends-on): Add float.
87286         * modules/vsnprintf-posix-tests (Depends-on): Add float.
87288         * tests/test-sprintf-posix.h (zerol): Remove variable.
87289         (minus_zerol): New variable.
87290         (test_function): Use minus_zerol instead of -zerol.
87291         * modules/sprintf-posix-tests (Depends-on): Add float.
87292         * modules/vsprintf-posix-tests (Depends-on): Add float.
87294         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
87295         (minus_zerol): New variable.
87296         (test_function): Use minus_zerol instead of -zerol.
87297         * modules/vasnprintf-posix-tests (Depends-on): Add float.
87299         * tests/test-vasprintf-posix.c (zerol): Remove variable.
87300         (minus_zerol): New variable.
87301         (test_function): Use minus_zerol instead of -zerol.
87302         * modules/vasprintf-posix-tests (Depends-on): Add float.
87304 2008-10-07  Simon Josefsson  <simon@josefsson.org>
87306         * MODULES.html.sh (Support for building documentation): Mention
87307         pmccabe2html.  Sort entries.
87309         Add pmccabe2html module, from gnupdf.
87310         * build-aux/pmccabe.css: New file.
87311         * build-aux/pmccabe2html: New file.
87312         * m4/pmccabe2html.m4: New file.
87313         * modules/pmccabe2html: New file.
87315 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
87317         flock: new module
87318         * MODULES.html.sh: Add to list of modules.
87319         * lib/flock.c: flock implementation for Windows and Unix systems
87320         which have fcntl.
87321         * doc/glibc-functions/flock.texi: Update documentation.
87322         * lib/sys_file.in.h: <sys/file.h> header file.
87323         * m4/flock.m4: M4 macros.
87324         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
87325         * modules/flock: flock module.
87326         * modules/flock-tests: flock tests module.
87327         * modules/sys_file: sys/file.h module.
87328         * tests/test-flock.c: test suite for flock.
87330 2008-10-06  Jim Meyering  <meyering@redhat.com>
87332         bootstrap: check for LT_INIT more portably still ;-)
87333         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
87334         Spotted by Bruno Haible.
87336 2008-10-06  Eric Blake  <ebb9@byu.net>
87338         test-signbit: avoid tripping Irix cc bug on -0.0L
87339         * tests/test-signbit.c (minus_zerol): Delete, and replace with
87340         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
87341         entire testsuite consistent and avoids an Irix 6.2 bug.
87343 2008-10-05  Bruno Haible  <bruno@clisp.org>
87344             Jim Meyering  <jim@meyering.net>
87346         Add an option for ignoring EPIPE during close_stdout.
87347         * lib/closeout.h: Include <stdbool.h>.
87348         (close_stdout_set_ignore_EPIPE): New declaration.
87349         * lib/closeout.c: Include <stdbool.h>.
87350         (ignore_EPIPE): New variable.
87351         (close_stdout_set_ignore_EPIPE): New function.
87352         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
87353         * lib/close-stream.c (close_stream): Mention the possible EPIPE
87354         failure.
87355         * modules/closeout (Depends-on): Add stdbool.
87357 2008-10-05  Bruno Haible  <bruno@clisp.org>
87359         * modules/accept: New file.
87360         * modules/bind: New file.
87361         * modules/connect: New file.
87362         * modules/getpeername: New file.
87363         * modules/getsockname: New file.
87364         * modules/getsockopt: New file.
87365         * modules/listen: New file.
87366         * modules/recv: New file.
87367         * modules/recvfrom: New file.
87368         * modules/send: New file.
87369         * modules/sendto: New file.
87370         * modules/setsockopt: New file.
87371         * modules/socket: New file.
87372         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
87373         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
87374         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
87375         the particular module is requested. Add a link warning when the
87376         particular module is not requested.
87377         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
87378         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
87379         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
87380         the particular module is requested.
87381         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
87382         gl_SYS_SOCKET_H_DEFAULTS): New macros.
87383         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
87384         * modules/sys_socket (Depends-on): Add link-warning.
87385         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
87386         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
87387         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
87388         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
87389         GL_LINK_WARNING.
87390         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
87391         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
87392         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
87393         * doc/posix-functions/getpeername.texi: Mention the new module
87394         'getpeername'.
87395         * doc/posix-functions/getsockname.texi: Mention the new module
87396         'getsockname'.
87397         * doc/posix-functions/getsockopt.texi: Mention the new module
87398         'getsockopt'.
87399         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
87400         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
87401         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
87402         * doc/posix-functions/send.texi: Mention the new module 'send'.
87403         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
87404         * doc/posix-functions/setsockopt.texi: Mention the new module
87405         'setsockopt'.
87406         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
87407         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
87408         listen, connect, accept.
87409         * modules/select-tests (Depends-on): Likewise.
87411 2008-10-05  Bruno Haible  <bruno@clisp.org>
87413         * lib/winsock.c (strerror): Remove unused #undef.
87414         (rpl_close): Remove unused local variable.
87416         * modules/sys_socket (Depends-on); Add errno.
87418 2008-10-05  Bruno Haible  <bruno@clisp.org>
87420         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
87421         (select): Add a link warning when the 'select' module is not used.
87422         * modules/sys_select (Depends-on): Add link-warning.
87423         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
87424         Suggested by Paolo Bonzini.
87426 2008-10-05  Jim Meyering  <meyering@redhat.com>
87428         bootstrap: check for LT_INIT more portably
87429         * build-aux/bootstrap: Avoid using grep -E, since it's not
87430         portable enough.  Suggestion from Bruno Haible.
87432 2008-10-05  Bruno Haible  <bruno@clisp.org>
87434         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
87435         as being fixed by gnulib.
87437 2008-10-05  Bruno Haible  <bruno@clisp.org>
87439         * modules/select-tests: New file, mostly copied from
87440         modules/sys_select-tests.
87441         * tests/test-select.c: New file, mostly copied from
87442         tests/test-sys_select.c.
87443         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
87444         * modules/sys_select-tests (Depends-on): Remove all dependencies.
87445         (Makefile.am): Remove test_sys_select_LDADD.
87447         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
87448         to an undefined symbol, for an error message.
87449         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
87450         (gl_SYS_SELECT_H_DEFAULTS): New macro.
87451         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
87452         winsock-select.c here.
87453         * modules/sys_select (Files): Remove lib/winsock-select.c.
87454         (Depends-on): Remove alloca.
87455         (Makefile.am): Substitute GNULIB_SELECT.
87456         * modules/select: New file.
87457         * doc/posix-functions/select.texi: Update.
87459 2008-10-05  Bruno Haible  <bruno@clisp.org>
87461         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
87462         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
87463         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
87464         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
87465         getdtablesize.
87466         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
87467         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
87469 2008-10-05  Bruno Haible  <bruno@clisp.org>
87471         * modules/getdtablesize-tests: New file.
87472         * tests/test-getdtablesize.c: New file.
87474         New module 'getdtablesize'.
87475         * lib/unistd.in.h (getdtablesize): New declaration.
87476         * lib/getdtablesize.c: New file.
87477         * m4/getdtablesize.m4: New file.
87478         * modules/getdtablesize: New file.
87479         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
87480         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
87481         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
87482         HAVE_GETDTABLESIZE.
87483         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
87485 2008-10-05  Bruno Haible  <bruno@clisp.org>
87487         * modules/sched (Makefile.am): Fix typo.
87488         Reported by Simon Josefsson.
87490 2008-10-05  Jim Meyering  <meyering@redhat.com>
87492         bootstrap: check for LT_INIT, too
87493         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
87494         are deprecated.  Suggestion from Ralf Wildenhues.
87496 2008-10-05  Bruno Haible  <bruno@clisp.org>
87498         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
87499         overriding them by ours.
87500         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
87502 2008-10-05  Jim Meyering  <meyering@redhat.com>
87504         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
87505         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
87506         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
87508 2008-10-04  Bruno Haible  <bruno@clisp.org>
87510         * modules/dup2 (License): Change to LGPLv2+.
87511         * modules/sleep (License): Likewise.
87512         * modules/perror (License): Likewise.
87513         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
87514         Blake.
87515         * modules/signal (License): Likewise.
87516         * modules/sigprocmask (License): Likewise.
87517         * modules/raise (License): Change to LGPLv2+, with approval by Jim
87518         Meyering.
87520 2008-10-04  Bruno Haible  <bruno@clisp.org>
87522         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
87523         Reported by Rainer Tammer <tammer@tammer.net>.
87525 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
87526             Bruno Haible  <bruno@clisp.org>
87528         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
87529         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
87530         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
87532 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
87534         filevercmp: new module
87535         * lib/filevercmp.h: New function filevercmp comparing version strings.
87536         * lib/filevercmp.c: Implementation of filevercmp function.
87537         * modules/filevercmp: Module metadata.
87538         * tests/test-filevercmp.c: Unit test for new module.
87539         * modules/filevercmp-tests: Unit test metadata.
87540         * MODULES.html.sh: Add filevercmp module.
87542 2008-10-03  Bruno Haible  <bruno@clisp.org>
87544         * lib/c-ctype.h: Add comment.
87545         Reported by Jim Meyering.
87547 2008-10-02  Bruno Haible  <bruno@clisp.org>
87549         * modules/posix_spawn-internal (Depends-on): Add 'open'.
87551 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
87553         * build-aux/bootstrap: Allow renaming bootstrap, and change the
87554         name of bootstrap.conf accordingly.
87556 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
87558         * build-aux/bootstrap: Install git-merge-changelog configuration
87559         items into .gitconfig if needed.
87561 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
87563         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
87564         git repository, and initialize/update it accordingly.
87566 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
87568         * modules/fsync-tests: New file.
87569         * tests/test-fsync.c: New file.
87571         New module 'fsync'.
87572         * lib/fsync.c: New file.
87573         * m4/fsync.m4: New file.
87574         * modules/fsync: New file.
87575         * lib/unistd.in.h (fsync): New declaration.
87576         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
87577         GNULIB_FSYNC and HAVE_FSYNC.
87578         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
87579         * MODULES.html.sh (posix_functions): Add fsync.
87580         * doc/posix-functions/fsync.texi: Mention the new module.
87582 2008-10-02  Jim Meyering  <meyering@redhat.com>
87584         fts.c: sync with similar code from coreutils' remove.c
87585         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
87586         Guard also with "#if defined __linux__", since for now at least,
87587         this code is Linux-kernel-specific.
87589 2008-10-02  Jim Meyering  <meyering@redhat.com>
87591         fts: bug fixes
87592         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
87593         Include <sys/vfs.h>, not <sys/statfs.h>.
87595         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
87596         Include <sys/vfs.h>, not <sys/statfs.h>.
87598 2008-10-01  Bruno Haible  <bruno@clisp.org>
87600         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
87601         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
87602         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
87603         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
87604         * doc/posix-functions/posix_spawnp.texi: Likewise.
87605         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
87606         whether posix_spawn actually works.
87607         * m4/pipe.m4 (gl_PIPE): Likewise.
87608         * modules/execute (Files): Add m4/posix_spawn.m4.
87609         * modules/pipe (Files): Add m4/posix_spawn.m4.
87610         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
87612 2008-10-01  Jim Meyering  <meyering@redhat.com>
87614         remove trailing spaces
87615         * NEWS: Likewise.
87616         * lib/poll.c (poll): Likewise.
87617         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
87618         * lib/winsock.c (rpl_close): Likewise.
87619         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
87620         * modules/yield: Likewise.
87621         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
87622         * tests/test-sys_select.c (connect_to_socket): Likewise.
87624         fts.c: adjust a new interface to be more generally useful
87625         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
87626         (fts_build): Adjust caller.
87628 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87630         * modules/cond-tests: New file.
87631         * tests/test-cond.c: New file.
87633 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87634             Bruno Haible  <bruno@clisp.org>
87636         * modules/cond (Dependencies): Add errno, time.
87637         * lib/glthread/cond.h: Include <time.h>.
87638         (gl_cond_define, gl_cond_define_initialized): Use the same definition
87639         across platforms.
87641 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87642             Bruno Haible  <bruno@clisp.org>
87644         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
87646 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87647             Bruno Haible  <bruno@clisp.org>
87649         * modules/tls-tests (Depends-on): Add thread, yield.
87650         (configure.ac): Remove all checks.
87651         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
87652         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
87653         gl_thread_self): Remove definitions. Include glthread/thread.h and
87654         glthread/yield.h instead.
87655         (test_tls): Pass an additional NULL argument to gl_thread_join.
87657 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87658             Bruno Haible  <bruno@clisp.org>
87660         * modules/lock-tests (Depends-on): Add thread, yield.
87661         (configure.ac): Remove all checks.
87662         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
87663         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
87664         gl_thread_self): Remove definitions. Include glthread/thread.h and
87665         glthread/yield.h instead.
87666         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
87667         additional NULL argument to gl_thread_join.
87669 2008-09-30  Bruno Haible  <bruno@clisp.org>
87671         Fix the Win32 implementation of the 'thread' module.
87672         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
87673         pointer type.
87674         (gl_thread_self): Invoke gl_thread_self_func.
87675         (gl_thread_self_func): New declaration.
87676         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
87677         (do_init_self_key, init_self_key): New functions.
87678         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
87679         Remove some fields.
87680         (running_threads, running_lock): Remove variables.
87681         (get_current_thread_handle): New function.
87682         (gl_thread_self_func, wrapper_func, glthread_create_func,
87683         glthread_join_func, gl_thread_exit_func): Largely rewritten and
87684         simplified.
87686 2008-09-30  Bruno Haible  <bruno@clisp.org>
87688         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
87689         files.
87691 2008-09-30  Jim Meyering  <meyering@redhat.com>
87693         fts.m4: correct the test for statfs.f_type
87694         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
87695         when checking for statfs.f_type.
87697 2008-09-15  Simon Josefsson  <simon@josefsson.org>
87699         tests: avoid some compiler warnings
87700         * tests/test-memchr.c (main): Pass NULL indirectly.
87701         * tests/test-getdate.c (main): Remove unused variable 'ret'.
87703 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
87705         getdate.y: disallow countable dayshifts like "4 yesterday ago"
87706         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
87707         exactly specified dayshifts.
87708         (dayshift): New rule.
87709         (rel): Add dayshift.
87710         (relative_time_table) [tomorrow, yesterday, today, now]:
87711         Use tDAY_SHIFT in place of tDAY_UNIT.
87712         * tests/test-getdate.c: Add tests for now-disallowed countable
87713         dayshifts, e.g., "4 yesterday ago".
87715 2008-09-29  Bruno Haible  <bruno@clisp.org>
87717         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
87718         * tests/test-posix_spawn1.in.sh: Renamed from
87719         tests/test-posix_spawn.in.sh.
87720         * tests/test-posix_spawn2.c: New file.
87721         * tests/test-posix_spawn2.in.sh: New file.
87722         * modules/posix_spawnp-tests (Files): Update.
87723         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
87725 2008-09-29  Bruno Haible  <bruno@clisp.org>
87727         Propagate effects of putenv/setenv/unsetenv to child processes.
87728         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
87729         * lib/pipe.c (create_pipe): Likewise.
87731 2008-09-29  Bruno Haible  <bruno@clisp.org>
87733         Enable use of shell scripts as executables in mingw.
87734         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
87735         run the program as a shell script.
87736         * lib/pipe.c (create_pipe): Likewise.
87737         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
87738         resulting array.
87740 2008-09-29  Eric Blake  <ebb9@byu.net>
87742         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
87744 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
87746         * doc/posix-functions/accept.texi: Update mingw problems.
87747         * doc/posix-functions/bind.texi: Update mingw problems.
87748         * doc/posix-functions/close.texi: Update mingw problems.
87749         * doc/posix-functions/connect.texi: Update mingw problems.
87750         * doc/posix-functions/getpeername.texi: Update mingw problems.
87751         * doc/posix-functions/getsockname.texi: Update mingw problems.
87752         * doc/posix-functions/getsockopt.texi: Update mingw problems.
87753         * doc/posix-functions/ioctl.texi: Update mingw problems.
87754         * doc/posix-functions/listen.texi: Update mingw problems.
87755         * doc/posix-functions/recv.texi: Update mingw problems.
87756         * doc/posix-functions/recvfrom.texi: Update mingw problems.
87757         * doc/posix-functions/select.texi: Update mingw problems.
87758         * doc/posix-functions/send.texi: Update mingw problems.
87759         * doc/posix-functions/sendto.texi: Update mingw problems.
87760         * doc/posix-functions/setsockopt.texi: Update mingw problems.
87761         * doc/posix-functions/socket.texi: Update mingw problems.
87763 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
87764             Bruno Haible  <bruno@clisp.org>
87766         * lib/sys_select.in.h: Include sys/time.h.
87767         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
87768         * modules/sys_select: Depend on sys_time.
87769         * tests/test-sys_select.c: Test that sys/select.h defines struct
87770         timeval fully.
87772 2008-09-29  Bruno Haible  <bruno@clisp.org>
87774         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
87775         * lib/sys_select.in.h: Likewise.
87777 2008-09-29  Bruno Haible  <bruno@clisp.org>
87779         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
87781 2008-09-29  Bruno Haible  <bruno@clisp.org>
87783         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
87784         Set LIBSOCKET instead of augmenting LIBS.
87785         * modules/sockets (Link): New section.
87786         * modules/sockets-tests (test_sockets_LDADD): New variable.
87787         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
87788         * modules/poll-tests (test_poll_LDADD): New variable.
87789         * NEWS: Document the change.
87791 2008-09-29  Bruno Haible  <bruno@clisp.org>
87793         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
87794         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
87795         ARPA_INET_H directly.
87796         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
87798 2008-09-28  Bruno Haible  <bruno@clisp.org>
87800         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
87801         from gl_HEADER_SYS_SOCKET.
87802         (gl_HEADER_SYS_SOCKET): Invoke it.
87803         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
87805 2008-09-28  Bruno Haible  <bruno@clisp.org>
87807         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
87808         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
87809         Needed on OSF/1 4.0.
87811 2008-09-28  Bruno Haible  <bruno@clisp.org>
87813         Override open more carefully.
87814         * lib/open.c (orig_open): New function.
87815         (rpl_open): Use orig_open instead of open.
87816         * lib/fcntl.in.h: Add special invocation convention.
87817         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
87818         (gl_FUNC_OPEN): Invoke it.
87820         Override freopen more carefully.
87821         * lib/freopen.c (orig_freopen): New function.
87822         (rpl_freopen): Use orig_freopen instead of freopen.
87823         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
87824         (gl_FUNC_FREOPEN): Invoke it.
87826         Override fopen more carefully.
87827         * lib/fopen.c (orig_fopen): New function.
87828         (rpl_fopen): Use orig_fopen instead of fopen.
87829         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
87830         (gl_FUNC_FOPEN): Invoke it.
87831         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
87833 2008-09-28  Bruno Haible  <bruno@clisp.org>
87835         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
87836         SIGPIPE.
87838 2008-09-28  Bruno Haible  <bruno@clisp.org>
87840         * tests/test-sigaction.c (handler, main): Disable the check whether
87841         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
87842         glibc systems with LinuxThreads.
87844 2008-09-28  Bruno Haible  <bruno@clisp.org>
87846         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
87848         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
87849         with AIX xlc.
87850         * lib/fcntl.in.h (open): Likewise.
87851         Reported by Rainer Tammer <tammer@tammer.net>.
87853 2008-09-28  Bruno Haible  <bruno@clisp.org>
87855         * modules/posix_spawnp-tests: New file.
87856         * tests/test-posix_spawn.c: New file.
87857         * tests/test-posix_spawn.in.sh: New file.
87859         New module 'posix_spawnp'.
87860         * modules/posix_spawnp: New file.
87861         * lib/spawnp.c: New file, from GNU libc with modifications.
87862         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
87864         New module 'posix_spawn'.
87865         * modules/posix_spawn: New file.
87866         * lib/spawn.c: New file, from GNU libc with modifications.
87867         * doc/posix-functions/posix_spawn.texi: Mention the new module.
87869         New module 'posix_spawnattr_destroy'.
87870         * modules/posix_spawnattr_destroy: New file.
87871         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
87872         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
87873         module.
87875         New module 'posix_spawnattr_setsigmask'.
87876         * modules/posix_spawnattr_setsigmask: New file.
87877         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
87878         modifications.
87879         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
87880         new module.
87882         New module 'posix_spawnattr_getsigmask'.
87883         * modules/posix_spawnattr_getsigmask: New file.
87884         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
87885         modifications.
87886         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
87887         new module.
87889         New module 'posix_spawnattr_setsigdefault'.
87890         * modules/posix_spawnattr_setsigdefault: New file.
87891         * lib/spawnattr_setdefault.c: New file, from GNU libc with
87892         modifications.
87893         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
87894         new module.
87896         New module 'posix_spawnattr_getsigdefault'.
87897         * modules/posix_spawnattr_getsigdefault: New file.
87898         * lib/spawnattr_getdefault.c: New file, from GNU libc with
87899         modifications.
87900         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
87901         new module.
87903         New module 'posix_spawnattr_setschedpolicy'.
87904         * modules/posix_spawnattr_setschedpolicy: New file.
87905         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
87906         modifications.
87907         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
87908         new module.
87910         New module 'posix_spawnattr_getschedpolicy'.
87911         * modules/posix_spawnattr_getschedpolicy: New file.
87912         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
87913         modifications.
87914         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
87915         new module.
87917         New module 'posix_spawnattr_setschedparam'.
87918         * modules/posix_spawnattr_setschedparam: New file.
87919         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
87920         modifications.
87921         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
87922         new module.
87924         New module 'posix_spawnattr_getschedparam'.
87925         * modules/posix_spawnattr_getschedparam: New file.
87926         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
87927         modifications.
87928         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
87929         new module.
87931         New module 'posix_spawnattr_setpgroup'.
87932         * modules/posix_spawnattr_setpgroup: New file.
87933         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
87934         modifications.
87935         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
87936         module.
87938         New module 'posix_spawnattr_getpgroup'.
87939         * modules/posix_spawnattr_getpgroup: New file.
87940         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
87941         modifications.
87942         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
87943         module.
87945         New module 'posix_spawnattr_setflags'.
87946         * modules/posix_spawnattr_setflags: New file.
87947         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
87948         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
87949         module.
87951         New module 'posix_spawnattr_getflags'.
87952         * modules/posix_spawnattr_getflags: New file.
87953         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
87954         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
87955         module.
87957         New module 'posix_spawnattr_init'.
87958         * modules/posix_spawnattr_init: New file.
87959         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
87960         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
87961         module.
87963         New module 'posix_spawn_file_actions_destroy'.
87964         * modules/posix_spawn_file_actions_destroy: New file.
87965         * lib/spawn_faction_destroy.c: New file, from GNU libc with
87966         modifications.
87967         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
87968         the new module.
87970         New module 'posix_spawn_file_actions_addopen'.
87971         * modules/posix_spawn_file_actions_addopen: New file.
87972         * lib/spawn_faction_addopen.c: New file, from GNU libc with
87973         modifications.
87974         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
87975         the new module.
87977         New module 'posix_spawn_file_actions_adddup2'.
87978         * modules/posix_spawn_file_actions_adddup2: New file.
87979         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
87980         modifications.
87981         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
87982         the new module.
87984         New module 'posix_spawn_file_actions_addclose'.
87985         * modules/posix_spawn_file_actions_addclose: New file.
87986         * lib/spawn_faction_addclose.c: New file, from GNU libc with
87987         modifications.
87988         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
87989         the new module.
87991         New module 'posix_spawn_file_actions_init'.
87992         * modules/posix_spawn_file_actions_init: New file.
87993         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
87994         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
87995         new module.
87997         New module 'posix_spawn-internal'.
87998         * modules/posix_spawn-internal: New file.
87999         * lib/spawn_int.h: New file, from GNU libc with modifications.
88000         * lib/spawni.c: New file, from GNU libc with modifications.
88001         * m4/posix_spawn.m4: New file.
88003         New module 'spawn'.
88004         * modules/spawn: New file.
88005         * lib/spawn.in.h: New file, from GNU libc with modifications.
88006         * m4/spawn_h.m4: New file.
88007         * doc/posix-headers/spawn.texi: Mention the new module.
88009 2008-09-28  Bruno Haible  <bruno@clisp.org>
88011         * modules/sched-tests: New file.
88012         * tests/test-sched.c: New file.
88014         New module 'sched'.
88015         * modules/sched: New file.
88016         * lib/sched.in.h: New file.
88017         * m4/sched_h.m4: New file.
88018         * doc/posix-headers/sched.texi: Mention the new module.
88020 2008-09-27  Eric Blake  <ebb9@byu.net>
88022         Fix previous patch, and tweak references to $0.
88023         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
88024         (func_version, func_gnulib_dir): Don't call this program
88025         gnulib-tool.
88026         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
88027         with using $0 in function.
88028         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
88029         (func_fatal_error): Reuse the name the user invoked us with.
88031 2008-09-27  Bruno Haible  <bruno@clisp.org>
88033         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
88034         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
88035         (gl_ICONV_H): Not here.
88036         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
88037         instead of assigning ICONV_H directly.
88039         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
88040         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
88041         WCHAR_H directly.
88043 2008-09-27  Bruno Haible  <bruno@clisp.org>
88045         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
88046         * modules/arpa_inet (Depends-on): Add link-warning.
88047         (Makefile.am): Insert the definition of GL_LINK-WARNING.
88048         * modules/unistd (Makefile.am): Likewise.
88050 2008-09-26  Bruno Haible  <bruno@clisp.org>
88052         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
88053         variables.
88054         (func_version): Essentially copied from gnulib-tool.
88055         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
88056         func_readlink): Copied from gnulib-tool.
88058 2008-09-26  Bruno Haible  <bruno@clisp.org>
88060         * gnulib-tool (func_version): Change directory to $gnulib_dir before
88061         invoking git-version-gen.
88063 2008-09-26  Bruno Haible  <bruno@clisp.org>
88065         * posix-modules: Update to directory names changed on 2008-01-19.
88066         Remove commas in output before splitting into words. No more need to
88067         avoid 'ftruncate' since 2007-02-19.
88069 2008-09-26  Bruno Haible  <bruno@clisp.org>
88071         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
88073 2008-09-26  Bruno Haible  <bruno@clisp.org>
88075         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
88076         * modules/fwriteerror (Depends-on): Add errno.
88078 2008-09-26  Bruno Haible  <bruno@clisp.org>
88080         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
88081         * tests/test-vc-list-files-cvs.sh: Likewise.
88083 2008-09-26  Bruno Haible  <bruno@clisp.org>
88085         * doc/posix-headers/sys_resource.texi: Reorder items.
88087 2008-09-26  Jim Meyering  <meyering@redhat.com>
88089         fts: tweak inode comparison function
88090         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
88091         inode numbers, as documented.
88093         fts: sort dirent entries on inode number before traversing
88094         This avoids a quadratic, seek-related performance penalty when
88095         operating on a directory containing many entries (measurable at 10k;
88096         3.5 hours at 2 million entries with a cold cache) on certain types
88097         of file systems, including ext3 and ext4, but not tmpfs.
88098         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
88099         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
88100         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
88101         (fs_handles_readdir_ordered_dirents_efficiently): New function.
88102         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
88103         (fts_build): Set the stat.st_ino member from D_INO.
88104         If it is likely to be useful, sort dirent entries on inode number.
88106         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
88107         and the struct statfs.f_type member.
88108         * modules/fts (Depends-on): Add d-ino.
88110 2008-09-26  Bruno Haible  <bruno@clisp.org>
88112         * modules/sigpipe-die (Depends-on): Add sigpipe.
88114         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
88115         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
88116         and GNULIB_STDIO_H_SIGPIPE are set.
88117         * lib/stdio-write.c: New file.
88118         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
88119         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
88120         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
88121         REPLACE_STDIO_WRITE_FUNCS.
88122         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
88123         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
88124         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
88125         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
88126         * modules/stdio (Files): Add lib/stdio-write.c.
88127         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
88128         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
88129         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
88130         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
88131         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
88132         REPLACE_FPRINTF_POSIX.
88133         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
88134         REPLACE_PRINTF_POSIX.
88135         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
88136         REPLACE_VFPRINTF_POSIX.
88137         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
88138         REPLACE_VPRINTF_POSIX.
88139         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
88140         SIGPIPE issue.
88141         * doc/posix-functions/fputc.texi: Likewise.
88142         * doc/posix-functions/fputs.texi: Likewise.
88143         * doc/posix-functions/fwrite.texi: Likewise.
88144         * doc/posix-functions/printf.texi: Likewise.
88145         * doc/posix-functions/putc.texi: Likewise.
88146         * doc/posix-functions/putchar.texi: Likewise.
88147         * doc/posix-functions/puts.texi: Likewise.
88148         * doc/posix-functions/vfprintf.texi: Likewise.
88149         * doc/posix-functions/vprintf.texi: Likewise.
88151         * modules/safe-write (Depends-on): Add write.
88153         * modules/sigpipe-tests: New file.
88154         * tests/test-sigpipe.c: New file.
88155         * tests/test-sigpipe.sh: New file.
88157         * modules/write: New file.
88158         * lib/unistd.in.h: Include <sys/types.h>.
88159         (write): New declaration.
88160         * lib/write.c: New file.
88161         * m4/write.m4: New file.
88162         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
88163         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
88164         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
88165         GNULIB_WRITE, REPLACE_WRITE.
88166         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
88167         and the SIGPIPE issue.
88169         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
88170         (raise): New declaration.
88171         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
88172         (ext_signal): New function.
88173         (rpl_raise): New function.
88174         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
88175         GNULIB_SIGNAL_H_SIGPIPE.
88176         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
88177         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
88179         * modules/sigpipe: New file.
88180         * m4/sigpipe.m4: New file.
88182 2008-09-25  Derek Price  <derek@ximbiot.com>
88183             Bruno Haible  <bruno@clisp.org>
88185         * gnulib-tool (func_import): Report all license incompatibilities, not
88186         just the first one.
88188 2008-09-25  Bruno Haible  <bruno@clisp.org>
88190         * gnulib-tool (func_import): When computing the edits, consider not
88191         only the Makefile.ams that exist but also those that will be generated.
88193 2008-09-25  Simon Josefsson  <simon@josefsson.org>
88195         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
88196         fixes gnulib-tool --test warning about duplicate dependency.
88198 2008-09-25  Bruno Haible  <bruno@clisp.org>
88200         * gnulib-tool: Don't ask the user to perform edits in the generated
88201         Makefile.ams.
88202         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
88203         apply to the Makefile.am being generated.
88204         (func_emit_tests_Makefile_am): Execute edits that apply to the
88205         Makefile.am being generated.
88206         (func_import): Setup list of Makefile.am edits before emitting the
88207         Makefile.ams, not at the end.
88208         (func_create_testdir): Update.
88209         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
88211 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88213         * gnulib-tool (func_import): Store the --tests-base option in the
88214         comment in gnulib-cache.m4.
88216 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
88218         * NEWS: Document increased portability that sys_select now provides.
88220         * lib/sys_select.in.h: Install select wrapper.
88221         * lib/sys_socket.in.h: Use more descriptive name when there is no
88222         select wrapper.
88223         * lib/winsock-select.c: New.
88224         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
88225         Require gl_HEADER_SYS_SOCKET.
88226         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
88227         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
88228         * tests/test-sys_select.c: Add functional tests.
88230 2008-09-24  Eric Blake  <ebb9@byu.net>
88232         open, fopen: close fd leak in last patch
88233         * lib/open.c (rpl_open): Close fd before returning error.
88234         * lib/fopen.c (rpl_fopen): Close fd before returning error.
88235         * doc/posix-functions/open.texi (open): Document that Irix also
88236         has the bug.
88237         * doc/posix-functions/fopen.texi (fopen): Likewise.
88238         Reported by Paolo Bonzini.
88240 2008-09-24  Bruno Haible  <bruno@clisp.org>
88242         Ensure that a filename ending in a slash cannot be used to access a
88243         non-directory.
88244         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
88245         to check whether it's really a directory.
88246         * lib/fopen.c: Include fcntl.h, unistd.h.
88247         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
88248         and fdopen().
88249         * modules/fopen (Depends-on): Add unistd.
88250         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
88251         * tests/test-fopen.c (main): Likewise.
88252         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
88253         * doc/posix-functions/fopen.texi: Likewise.
88254         Reported by Eric Blake.
88256 2008-09-23  Eric Blake  <ebb9@byu.net>
88258         c-stack: avoid compiler optimizations when provoking overflow
88259         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
88260         recursion harder to optimize, to ensure a stack overflow occurs.
88261         * tests/test-c-stack.c (recurse): Likewise.
88262         Borrowed from libsigsegv.
88264         c-stack: work around Irix sigaltstack bug
88265         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
88266         whether sigaltstack uses wrong end of stack_t (copied in part from
88267         libsigsegv).
88268         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
88269         Irix bug, without requiring an over-allocation.
88270         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
88271         bug.
88273         fopen: document mingw bug on directories
88274         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
88275         not allowing a stream visiting a directory, even though reading
88276         from such a stream is not portable.
88278 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
88280         * lib/poll.c: Rewrite.
88281         * modules/poll: Depend on alloca.
88283 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
88285         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
88286         instead define prototypes for a full set of wrappers.  Ensure
88287         that Cygwin does not use the compatibility code, which is only
88288         for MinGW.
88289         * lib/winsock.c: New.
88290         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
88291         * modules/sys_socket: Add lib/winsock.c.
88293         * modules/poll-tests: Add errno and perror.
88294         * tests/test-poll.c: Use ioctl, not ioctlsocket.
88296 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
88298         * tests/test-poll.c: Downgrade minimum needed Winsock version.
88300 2008-09-23  Bruno Haible  <bruno@clisp.org>
88302         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
88303         * doc/glibc-functions/*: Likewise.
88305 2008-09-23  Simon Josefsson  <simon@josefsson.org>
88307         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
88308         success.
88310 2008-09-22  Eric Blake  <ebb9@byu.net>
88311             Bruno Haible  <bruno@clisp.org>
88313         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
88314         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
88315         supply %A but mishandle pseudo-NaN.
88316         Reported by Simon Josefsson.
88318 2008-09-21  Bruno Haible  <bruno@clisp.org>
88320         * tests/test-lock.c (main): Tweak skip message.
88321         * tests/test-tls.c (main): Likewise.
88323 2008-09-21  Bruno Haible  <bruno@clisp.org>
88325         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
88326         whether 'struct sigaction' has sa_sigaction here...
88327         (gl_PREREQ_SIG_HANDLER_H): ... not here.
88328         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
88330 2008-09-21  Bruno Haible  <bruno@clisp.org>
88332         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
88333         section.
88334         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
88335         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
88336         the new section.
88337         (Support for obsolete systems lacking POSIX:2001): New section.
88338         (String handling <string.h>): Move strdup to the new section.
88339         Suggested by Simon Josefsson and Paolo Bonzini.
88341 2008-09-21  Bruno Haible  <bruno@clisp.org>
88343         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
88344         exponents in %e and %g results on 'long double'. Needed for mingw's
88345         improved *printf functions.
88346         * tests/test-vasprintf-posix.c (test_function): Likewise.
88347         * tests/test-snprintf-posix.h (test_function): Likewise.
88348         * tests/test-sprintf-posix.h (test_function): Likewise.
88349         Reported by Eric Blake.
88351 2008-09-21  Bruno Haible  <bruno@clisp.org>
88353         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
88354         * tests/test-sprintf-posix.h (test_function): Likewise.
88356 2008-09-21  Bruno Haible  <bruno@clisp.org>
88358         * modules/getpass (Depends-on): Add strdup-posix.
88360         New module 'strdup-posix'.
88361         * modules/strdup-posix: New file.
88362         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
88363         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
88364         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
88365         REPLACE_STRDUP.
88366         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
88367         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
88368         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88369         strdup-posix.
88371         * modules/strdup (Depends-on): Remove malloc-posix.
88373 2008-09-20  Bruno Haible  <bruno@clisp.org>
88375         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
88376         Wildenhues.
88378 2008-09-20  Bruno Haible  <bruno@clisp.org>
88380         Ensure that wint_t gets defined on IRIX 5.3.
88381         * lib/wchar.in.h (wint_t): Define if not defined by the system.
88382         * lib/wctype.in.h (wint_t): Likewise.
88383         (__wctype_wint_t): Remove type.
88384         (isw*): Use wint_t instead of __wctype_wint_t.
88385         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
88386         * modules/wchar (Files): Add m4/wint_t.m4.
88387         (Makefile.am): Substitute HAVE_WINT_T.
88388         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
88389         * tests/test-wctype.c: Check that wint_t is defined.
88390         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
88391         * doc/posix-headers/wctype.texi: Likewise.
88392         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
88394 2008-09-18  Bruno Haible  <bruno@clisp.org>
88396         * gnulib-tool (func_exit): Update comment.
88398 2008-09-18  Simon Josefsson  <simon@josefsson.org>
88400         * modules/getaddrinfo (Depends-on): Remove strdup, this module
88401         assumes strdup exists and does not depend on strdup to return
88402         ENOMEM on out of memory conditions.
88404 2008-09-18  Bruno Haible  <bruno@clisp.org>
88406         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
88407         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
88408         digits for the exponent.
88410 2008-09-18  Jim Meyering  <meyering@redhat.com>
88411             Bruno Haible  <bruno@clisp.org>
88413         * lib/vasnprintf.c (decimal_point_char): Define also if
88414         NEED_PRINTF_INFINITE_LONG_DOUBLE.
88416 2008-09-16  Bruno Haible  <bruno@clisp.org>
88417         and Eric Blake  <ebb9@byu.net>
88419         vasnprintf: support Irix 5.3
88420         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
88421         that mishandle long double infinity.
88422         Reported by Tom G. Christensen.
88424 2008-09-16  Bruno Haible  <bruno@clisp.org>
88426         * doc/glibc-functions/scandir.texi: Mention the function is missing on
88427         Solaris 9.
88428         * doc/glibc-functions/alphasort.texi: Likewise.
88429         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
88431 2008-09-16  Jim Meyering  <meyering@redhat.com>
88433         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
88434         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
88435         a umask modification leak out of a subshell.  Otherwise, the
88436         opensolaris /bin/sh would be accepted and thus cause unwarranted
88437         failures in the coreutils test suite.
88439 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
88441         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
88442         to succeed.
88444 2008-09-16  Jim Meyering  <meyering@redhat.com>
88446         avoid spurious test failure when library is built without ACL support
88447         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
88448         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
88449         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
88450         * tests/test-copy-acl.sh: Likewise.
88452 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88454         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
88455         based on character occurrence counts.
88457 2008-09-15  Eric Blake  <ebb9@byu.net>
88459         tests: avoid some compiler warnings
88460         * tests/test-memchr.c (main): Pass NULL indirectly.
88461         * tests/test-closein.c (main): Avoid unused variable.
88463 2008-09-15  Bruno Haible  <bruno@clisp.org>
88465         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
88466         are missing on OpenBSD 4.0 individually.
88467         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
88469 2008-09-15  Bruno Haible  <bruno@clisp.org>
88471         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
88472         * doc/posix-functions/strerror.texi: Mention also Cygwin.
88473         * doc/posix-functions/perror.texi: Likewise.
88474         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
88475         is missing.
88476         Reported by Eric Blake.
88478         * lib/errno.in.h: Use replacement values >= 2000.
88479         Reported by Eric Blake.
88481 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88483         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
88484         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
88485         limit.
88486         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
88487         compareseq was aborted.
88489 2008-09-14  Bruno Haible  <bruno@clisp.org>
88491         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
88492         yvec_edit_count.
88493         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
88494         (fstrcmp_bounded): Simplify result computation accordingly.
88496 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88498         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
88499         (fstrcmp): Define in terms of fstrcmp_bounded.
88500         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
88501         lower_bound argument.
88502         Return quickly if the result is certainly < lower_bound.
88503         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
88505 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88507         * lib/diffseq.h (EARLY_ABORT): New macro.
88508         (compareseq): Change return type to bool. Return true when EARLY_ABORT
88509         evaluates to true.
88511 2008-09-14  Bruno Haible  <bruno@clisp.org>
88513         * modules/perror-tests: New file.
88514         * tests/test-perror.sh: New file.
88515         * tests/test-perror.c: New file.
88517         New module 'perror'.
88518         * lib/stdio.in.h (perror): New declaration.
88519         * lib/perror.c: New file.
88520         * m4/perror.m4: New file.
88521         * modules/perror: New file.
88522         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
88523         * doc/posix-functions/perror.texi: Mention the perror module.
88524         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
88525         REPLACE_PERROR.
88526         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
88527         REPLACE_PERROR.
88529 2008-09-14  Bruno Haible  <bruno@clisp.org>
88531         * modules/stdio (Makefile.am): Reorder to match the order in
88532         lib/stdio.in.h.
88533         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
88535 2008-09-13  Bruno Haible  <bruno@clisp.org>
88537         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
88539 2008-09-13  Bruno Haible  <bruno@clisp.org>
88541         Extend strerror to cover the added errno values.
88542         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
88543         (rpl_strerror): Provide error messages for the added errno values and
88544         for the WSA* values.
88545         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
88546         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
88547         strerror.
88548         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
88549         * modules/strerror (Depends-on): Add errno.
88550         * doc/posix-functions/strerror.texi: Document the change.
88551         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
88552         and EOVERFLOW.
88554 2008-09-13  Bruno Haible  <bruno@clisp.org>
88556         * modules/EOVERFLOW: Remove file.
88557         * m4/eoverflow.m4: Remove file.
88558         * modules/EOVERFLOW-tests: Remove file.
88559         * tests/test-EOVERFLOW.c: Remove file.
88560         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
88561         * modules/ftell (Depends-on): Likewise.
88562         * modules/getdelim (Depends-on): Likewise.
88563         * modules/getugroups (Depends-on): Likewise.
88564         * modules/poll (Depends-on): Likewise.
88565         * modules/snprintf (Depends-on): Likewise.
88566         * modules/sprintf-posix (Depends-on): Likewise.
88567         * modules/vasnprintf (Depends-on): Likewise.
88568         * modules/vasprintf (Depends-on): Likewise.
88569         * modules/vfprintf-posix (Depends-on): Likewise.
88570         * modules/vsnprintf (Depends-on): Likewise.
88571         * modules/vsprintf-posix (Depends-on): Likewise.
88572         * modules/xvasprintf (Depends-on): Likewise.
88573         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
88574         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
88575         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
88576         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
88577         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
88578         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
88579         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
88580         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
88581         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
88582         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
88583         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
88584         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
88585         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
88586         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
88587         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
88588         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
88589         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
88590         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
88591         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
88592         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
88593         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
88594         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
88595         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
88596         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
88597         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
88598         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
88599         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
88600         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
88601         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
88602         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
88603         * MODULES.html.sh: Remove EOVERFLOW.
88604         * NEWS: Mention the change.
88606 2008-09-13  Bruno Haible  <bruno@clisp.org>
88608         * modules/errno-tests: New file.
88609         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
88611         * lib/errno.in.h: New file.
88612         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
88613         * modules/errno: New file.
88614         * doc/posix-headers/errno.texi: Update documentation.
88615         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
88617 2008-09-13  Bruno Haible  <bruno@clisp.org>
88619         * tests/test-poll.c: Use #if for native Windows, rather than testing
88620         __MSVCRT__.
88622 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88623             Bruno Haible  <bruno@clisp.org>
88625         * lib/glob.c: Don't include <pwd.h> on native Windows.
88626         (WINDOWS32): New macro.
88627         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
88629 2008-09-13  Bruno Haible  <bruno@clisp.org>
88631         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
88632         (ETIMEDOUT): Remove macro.
88633         (glthread_cond_timedwait_multithreaded): New declaration.
88634         (glthread_cond_timedwait): Use it.
88635         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
88636         (glthread_cond_timedwait_multithreaded): New function.
88638 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
88640         * modules/poll-tests: Do not check for io.h.
88641         * tests/test-poll.c: Check for __MSVCRT__ instead.
88643 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
88645         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
88646         * modules/poll-tests: Add inet_pton, stdbool, sockets.
88647         * tests/test-poll.c: Use them.  Use _pipe on Windows.
88649 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
88651         * modules/poll-tests: New.
88652         * tests/test-poll.c: New.
88654 2008-09-12  Eric Blake  <ebb9@byu.net>
88656         frexp: test for NetBSD failure on -0.0
88657         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
88658         not all, bugs from NetBSD 3.0 have been fixed.
88659         * doc/posix-functions/frexp.texi (frexp): Document bug.
88660         Reported by Thomas Klausner.
88662         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
88663         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
88664         literal -0.0.
88665         Reported by Jonathan C. Patschke <jp@centtech.com>.
88667 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88669         * lib/glthread/cond.h: Use dummy implementation also if
88670         USE_WIN32_THREADS.
88672 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88674         * modules/fnmatch-posix (License): Change to LGPLv2+.
88675         * modules/fnmatch-gnu (License): Likewise.
88677 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88679         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
88681 2008-09-11  Jim Meyering  <meyering@redhat.com>
88683         * users.txt: Add gtk-vnc.
88685 2008-09-08  Simon Josefsson  <simon@josefsson.org>
88687         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
88688         rotate amounts.
88690         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
88691         required for 16-bit and 8-bit rotates.
88692         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
88693         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
88694         UINT8_MAX instead of hard-coded constants.
88695         Suggested by Paul Eggert.
88697 2008-09-07  Bruno Haible  <bruno@clisp.org>
88699         * tests/test-striconveh.c (main): Check behaviour when converting from
88700         UTF-7.
88702         Make striconveh work better with stateful encodings.
88703         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
88704         that iconv does not increment the inptr when returning -1/EINVAL.
88706 2008-09-07  Bruno Haible  <bruno@clisp.org>
88708         * build-aux/config.rpath: Update according to libtool-2.2.6.
88709         * build-aux/config.libpath: Likewise.
88711 2008-09-06  Bruno Haible  <bruno@clisp.org>
88713         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
88714         * lib/freadptr.c (freadptr): Likewise.
88715         * lib/freadseek.c (freadptrinc): Likewise.
88716         Reported by Simon Josefsson.
88718 2008-09-06  Bruno Haible  <bruno@clisp.org>
88720         * modules/freadptr (License): Change to LGPLv2+.
88721         * modules/freadseek (License): Likewise.
88722         Suggested by Eric Blake.
88724         * modules/memchr2 (License): Change to LGPLv2+.
88725         Approved by Eric Blake.
88727 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88728             Bruno Haible  <bruno@clisp.org>
88730         Make gnulib-tool work with native 'sed' on AIX.
88731         * gnulib-tool (sed_noop): New variable.
88732         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
88733         func_add_or_update, func_create_testdir): Use it to initialize sed
88734         script variables.
88735         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
88737 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
88738             Bruno Haible  <bruno@clisp.org>
88740         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
88741         also works after #include directives.
88743 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
88745         getdate.y: reject an out-of-range timezone value
88746         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
88747         the range [-24...+24].  When specified with only one or two digits,
88748         * tests/test-getdate.c: Tests for the fix.
88749         * doc/getdate.texi: Document this change.
88751 2008-09-03  Bruno Haible  <bruno@clisp.org>
88753         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
88755 2008-09-02  Simon Josefsson  <simon@josefsson.org>
88757         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
88758         <bruce.korb@gmail.com> with ideas from Ben Pfaff
88759         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
88760         Blake <ebb9@byu.net>.
88762         * tests/test-bitrotate.c: Add more test vectors.
88764 2008-09-02  Eric Blake  <ebb9@byu.net>
88766         vasnprintf-posix: handle large precision via %.*d
88767         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
88768         when handling it ourselves.
88769         * tests/test-vasnprintf-posix.c (test_function): Add test.
88770         * tests/test-snprintf-posix.h (test_function): Likewise.
88771         * tests/test-sprintf-posix.h (test_function): Likewise.
88772         * tests/test-vasprintf-posix.c (test_function): Likewise.
88773         Reported by Alain Guibert.
88775 2008-09-01  Eric Blake  <ebb9@byu.net>
88777         c-stack: make configure-time check more robust
88778         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
88779         successful sigaction call.
88780         Reported by Tom G. Christensen.
88782 2008-09-01  Bruno Haible  <bruno@clisp.org>
88784         New module 'findprog-lgpl'.
88785         * modules/findprog-lgpl: New file.
88786         * lib/findprog-lgpl.c: New file.
88787         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
88788         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
88789         to decide whether to use strdup or xstrdup, concatenated_filename or
88790         xconcatenated_filename.
88792 2008-09-01  Bruno Haible  <bruno@clisp.org>
88794         Split module 'concat-filename' into 'concat-filename' (LGPL) and
88795         'xconcat-filename' (GPL).
88796         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
88797         (License): Change to LGPLv2+.
88798         * modules/xconcat-filename: New file.
88799         * lib/concat-filename.h (concatenated_filename): Change specification.
88800         (xconcatenated_filename): New declaration.
88801         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
88802         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
88803         memory situations.
88804         * lib/xconcat-filename.c: New file.
88805         * NEWS: Mention the change.
88806         * lib/findprog.c: Include concat-filename.h, not filename.h.
88807         (find_in_path): Use xconcatenated_filename instead of
88808         concatenated_filename.
88809         * lib/javacomp.c: Include concat-filename.h, not filename.h.
88810         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
88811         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
88812         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
88813         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
88814         instead of concatenated_filename.
88815         * lib/javaexec.c: Include concat-filename.h, not filename.h.
88816         (execute_java_class): Use xconcatenated_filename instead of
88817         concatenated_filename.
88818         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
88819         * modules/javacomp (Depends-on): Likewise.
88820         * modules/javaexec (Depends-on): Likewise.
88822 2008-09-01  Bruno Haible  <bruno@clisp.org>
88824         Split module 'filename' into 'filename' and 'concat-filename'.
88825         * modules/filename: Keep only lib/filename.h.
88826         (License): Change to LGPLv2+.
88827         * modules/concat-filename: New file, extracted from modules/filename.
88828         * lib/filename.h (concatenated_filename): Remove declaration.
88829         * lib/concat-filename.h: New file, extracted from lib/filename.h.
88830         * lib/concat-filename.c: Include concat-filename.h.
88831         * NEWS: Mention the change.
88833 2008-09-01  Simon Josefsson  <simon@josefsson.org>
88835         * lib/bitrotate.h (rotl8, rotr8): Add.
88837         * modules/bitrotate (configure.ac): Need
88838         AC_REQUIRE([AC_C_INLINE]).
88839         (Description): Mention stdint.h.  Reported by Bruno Haible
88840         <bruno@clisp.org>.
88842         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
88843         Paolo Bonzini <bonzini@gnu.org>.
88845 2008-08-31  Bruno Haible  <bruno@clisp.org>
88847         Assume Solaris specific bi-arch conventions on Solaris systems.
88848         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
88849         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
88850         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
88851         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
88852         like acl_libdirstem.
88853         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
88854         acl_libdirstem.
88855         * NEWS: Mention the change.
88856         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
88858 2008-08-31  Jim Meyering  <meyering@redhat.com>
88860         * lib/strftime.h: Add comments describing the two added arguments.
88862         remove duplicate #include directives
88863         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
88864         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
88866 2008-08-31  Bruno Haible  <bruno@clisp.org>
88868         New module 'sigpipe-die'.
88869         * modules/sigpipe-die: New file.
88870         * lib/sigpipe-die.h: New file.
88871         * lib/sigpipe-die.c: New file.
88872         * MODULES.html.sh (Signal handling): Add sigpipe-die.
88874 2008-08-31  Bruno Haible  <bruno@clisp.org>
88876         Don't override previously installed signal handlers.
88877         * lib/fatal-signal.c (saved_sigactions): New variable.
88878         (uninstall_handlers): Reset the signal to the saved handler, not
88879         to SIG_DFL (except when ignored).
88880         (install_handlers): Save the previous handlers.
88882 2008-08-30  Bruno Haible  <bruno@clisp.org>
88884         * gnulib-tool (func_reset_sigpipe): New function.
88885         (func_get_automake_snippet, func_modules_transitive_closure,
88886         func_import): Invoke it before a join command that reads from stdin,
88887         to avoid "echo: write error: Broken pipe" error messages on stderr.
88888         Reported by Sam Steingold <sds@gnu.org>.
88890 2008-08-30  Bruno Haible  <bruno@clisp.org>
88892         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
88893         Code copied from m4/open.m4.
88894         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
88895         access and the filename ends in a slash. Code copied from lib/open.c.
88896         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
88897         * tests/test-fopen.c (main): Check against bug with trailing slash.
88899 2008-08-29  Bruno Haible  <bruno@clisp.org>
88901         Avoid some "gcc -pedantic" warnings.
88902         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
88903         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
88904         * lib/dirent.in.h: Likewise.
88905         * lib/fcntl.in.h: Likewise.
88906         * lib/float.in.h: Likewise.
88907         * lib/iconv.in.h: Likewise.
88908         * lib/inttypes.in.h: Likewise.
88909         * lib/locale.in.h: Likewise.
88910         * lib/math.in.h: Likewise.
88911         * lib/netinet_in.in.h: Likewise.
88912         * lib/search.in.h: Likewise.
88913         * lib/signal.in.h: Likewise.
88914         * lib/stdarg.in.h: Likewise.
88915         * lib/stdint.in.h: Likewise.
88916         * lib/stdio.in.h: Likewise.
88917         * lib/stdlib.in.h: Likewise.
88918         * lib/string.in.h: Likewise.
88919         * lib/strings.in.h: Likewise.
88920         * lib/sys_select.in.h: Likewise.
88921         * lib/sys_socket.in.h: Likewise.
88922         * lib/sys_stat.in.h: Likewise.
88923         * lib/sys_time.in.h: Likewise.
88924         * lib/sysexits.in.h: Likewise.
88925         * lib/time.in.h: Likewise.
88926         * lib/unistd.in.h: Likewise.
88927         * lib/wchar.in.h: Likewise.
88928         * lib/wctype.in.h: Likewise.
88929         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
88930         * modules/fchdir (Makefile.am): Likewise.
88931         * modules/fcntl (Makefile.am): Likewise.
88932         * modules/float (Makefile.am): Likewise.
88933         * modules/iconv_open (Makefile.am): Likewise.
88934         * modules/inttypes (Makefile.am): Likewise.
88935         * modules/locale (Makefile.am): Likewise.
88936         * modules/math (Makefile.am): Likewise.
88937         * modules/netinet_in (Makefile.am): Likewise.
88938         * modules/search (Makefile.am): Likewise.
88939         * modules/signal (Makefile.am): Likewise.
88940         * modules/stdarg (Makefile.am): Likewise.
88941         * modules/stdint (Makefile.am): Likewise.
88942         * modules/stdio (Makefile.am): Likewise.
88943         * modules/stdlib (Makefile.am): Likewise.
88944         * modules/string (Makefile.am): Likewise.
88945         * modules/strings (Makefile.am): Likewise.
88946         * modules/sys_select (Makefile.am): Likewise.
88947         * modules/sys_socket (Makefile.am): Likewise.
88948         * modules/sys_stat (Makefile.am): Likewise.
88949         * modules/sys_time (Makefile.am): Likewise.
88950         * modules/sysexits (Makefile.am): Likewise.
88951         * modules/time (Makefile.am): Likewise.
88952         * modules/unistd (Makefile.am): Likewise.
88953         * modules/wchar (Makefile.am): Likewise.
88954         * modules/wctype (Makefile.am): Likewise.
88955         Reported by Reuben Thomas <rrt@sc3d.org>.
88957 2008-08-29  Bruno Haible  <bruno@clisp.org>
88959         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
88960         any more.
88962 2008-08-29  Simon Josefsson  <simon@josefsson.org>
88964         * MODULES.html.sh (Misc): Add bitrotate.
88966         * modules/bitrotate: New file.
88968         * lib/bitrotate.h: New file.
88970         * modules/bitrotate-tests: New file.
88972         * tests/test-bitrotate.c: New file.
88974         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
88975         on the bitrotate module.
88977         * lib/arctwo.c: Use new bitrotate module.
88979 2008-08-29  Jim Meyering  <meyering@redhat.com>
88981         bootstrap: merge changes from coreutils
88982         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
88983         of copied files.  Remove a kludge, now that this is fixed.
88984         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
88985         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
88986         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
88988 2008-08-29  Bruno Haible  <bruno@clisp.org>
88990         * MODULES.html.sh: Remove --cvs-urls option.
88992 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
88994         maint.mk: adjust to file name change
88995         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
88997 2008-08-28  Jim Meyering  <meyering@redhat.com>
88999         * modules/getndelim2 (License): Relicense to LGPLv2+.
89000         Approved by Richard Stallman for the version of 1995, and by
89001         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
89003 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
89005         * lib/getdelim.c (flockfile, funlockfile): Make all of them
89006         dummy if one is not available.  Do not touch them if
89007         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
89008         (getc_maybe_unlocked): New.
89009         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
89011 2008-08-26  Eric Blake  <ebb9@byu.net>
89013         doc/INSTALL: resync from autoconf
89014         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
89015         (INSTALL_PRELUDE): Delete; this is done more efficiently by
89016         moving...
89017         * install.texi [!autoconf]: ...here.  Resync from autoconf.
89018         * INSTALL: Regenerate.
89019         * INSTALL.ISO: New file.
89020         * INSTALL.UTF-8: Likewise.
89022 2008-08-26  Jim Meyering  <meyering@redhat.com>
89024         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
89025         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
89026         these definitions conditional, so that they may be overridden, too.
89028 2008-08-26  Bruno Haible  <bruno@clisp.org>
89030         Generate INSTALL file variants with prettier quotes.
89031         * doc/Makefile (INSTALL_PRELUDE): New macro.
89032         (INSTALL): Use it.
89033         (INSTALL.ISO, INSTALL.UTF-8): New rules.
89035 2008-08-26  Bruno Haible  <bruno@clisp.org>
89037         Run makeinfo in an English locale.
89038         * doc/Makefile (MAKEINFO): New variable.
89040 2008-08-26  Bruno Haible  <bruno@clisp.org>
89042         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
89043         Suggested by Eric Blake.
89045 2008-08-25  Bruno Haible  <bruno@clisp.org>
89047         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
89049 2008-08-25  Eric Blake  <ebb9@byu.net>
89051         c-stack: test that stack overflow can be caught
89052         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
89053         that platform allows handling stack overflow; at least OS/2 EMX
89054         has sigaltstack, but crashes before transferring control to
89055         handler on stack overflow.
89056         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
89057         check for HAVE_STACK_OVERFLOW_HANDLING.
89058         Reported by Elbert Pol.
89060 2008-08-25  Bruno Haible  <bruno@clisp.org>
89062         * doc/posix-functions/strftime.texi: Fix description of strftime
89063         module.
89065 2008-08-24  Bruno Haible  <bruno@clisp.org>
89067         * tests/uniwidth/test-uc_width2.c: New file.
89068         * tests/uniwidth/test-uc_width2.sh: New file.
89069         * modules/uniwidth/width-tests (Files): Add the new files.
89070         (TESTS): Add uniwidth/test-uc_width2.sh.
89071         (TESTS_ENVIRONMENT): New variable.
89072         (check_PROGRAMS): Add test-uc_width2.
89073         (test_uc_width2_SOURCES): New variable.
89075         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
89076         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
89077         not 0x00AB.
89078         Reported by Alexander V. Lukyanov <lav@netis.ru>.
89080 2008-08-22  Eric Blake  <ebb9@byu.net>
89082         test-lock, test-tls: mention why a test is skipped
89083         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
89084         skipped.
89085         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
89087         count-one-bits: relax license
89088         * modules/count-one-bits (License): Relicense to LGPLv2+.
89089         Suggested by Ludovic Courtès, approved by Ben Pfaff.
89091 2008-08-22  Andreas Schwab  <schwab@suse.de>
89093         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
89094         Remove spurious space in assignment.
89096 2008-08-21  Simon Josefsson  <simon@josefsson.org>
89098         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
89099         Paul Eggert <eggert@CS.UCLA.EDU>.
89101 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
89103         * modules/gettext: Add m4/threadlib.m4.
89105 2008-08-19  Eric Blake  <ebb9@byu.net>
89107         test-c-stack: fix compilation failure on FreeBSD 5.0
89108         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
89109         headers before <sys/resource.h>.
89110         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
89111         the bug.
89112         Reported by Nelson H. F. Beebe.
89114         strverscmp: migrate from "strverscmp.h" to <string.h>
89115         * modules/string (Makefile.am): Add new hooks.
89116         * modules/strverscmp (Files): Remove strverscmp.h.
89117         (Depends-on): Add string.
89118         (configure.ac): Add indicator.
89119         (Include): Mention new header.
89120         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
89121         defaults.
89122         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
89123         results.
89124         * lib/strverscmp.h: Delete.
89125         * lib/string.in.h (strverscmp): Provide declaration, when needed.
89126         * tests/test-strverscmp.c (includes): Adjust client.
89127         * lib/check-version.c (includes): Likewise.
89128         * NEWS: Document the change.
89130         strverscmp: add unit test
89131         * modules/strverscmp-tests: New file.
89132         * tests/test-strverscmp.c: Likewise.
89134 2008-08-19  Simon Josefsson  <simon@josefsson.org>
89136         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
89137         regarding Windows crypto stuff, from Mono.
89139 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
89141         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
89142         if present, for intel RND.  Return error on failures.
89144 2008-08-18  Ben Pfaff  <blp@gnu.org>
89146         gitlog-to-changelog: give better diagnostic for failed pipe-open
89147         * build-aux/gitlog-to-changelog: Improve error message: suggest
89148         that the version of Git may be too old.
89150 2008-08-18  Simon Josefsson  <simon@josefsson.org>
89152         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
89153         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
89155 2008-08-18  Bruno Haible  <bruno@clisp.org>
89157         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
89158         pthread_in_use().
89160 2008-08-18  Bruno Haible  <bruno@clisp.org>
89162         * lib/glthread/threadlib.c: Include <pthread.h>.
89164 2008-08-18  Bruno Haible  <bruno@clisp.org>
89166         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
89167         glthread_recursive_lock_* macros.
89168         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
89169         Fix syntax error.
89171 2008-08-18  Bruno Haible  <bruno@clisp.org>
89173         * lib/glthread/thread.c: Avoid forcing a context switch right after
89174         thread creation.
89176 2008-08-17  Bruno Haible  <bruno@clisp.org>
89178         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
89179         * lib/glthread/thread.h: Provide Win32 specific implementation.
89180         * modules/thread (Files): Add lib/glthread/thread.c.
89181         (Depends-on): Add lock.
89182         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
89184 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89186         New module 'yield'.
89187         * modules/yield: New file.
89188         * lib/glthread/yield.h: New file.
89189         * m4/yield.m4: New file.
89190         * MODULES.html.sh (Multithreading): Add yield.
89192 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89194         New module 'thread'.
89195         * modules/thread: New file.
89196         * lib/glthread/thread.h: New file.
89197         * m4/thread.m4: New file.
89198         * MODULES.html.sh (Multithreading): Add thread.
89200 2008-08-17  Bruno Haible  <bruno@clisp.org>
89202         * lib/glthread/lock.h: Include <stdlib.h> always.
89203         * lib/glthread/tls.h: Likewise.
89204         * lib/glthread/cond.h: Likewise.
89206 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89208         New module 'cond'.
89209         * modules/cond: New file.
89210         * lib/glthread/cond.h: New file.
89211         * lib/glthread/cond.c: New file.
89212         * m4/cond.m4: New file.
89213         * MODULES.html.sh (Multithreading): Add cond.
89215 2008-08-16  Eric Blake  <ebb9@byu.net>
89217         c-stack: fix regression on Irix 5.3 from 2008-06-21
89218         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
89219         sa_sigaction...
89220         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
89221         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
89222         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
89223         * modules/signal (Makefile.am): Use the value.
89224         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
89225         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
89226         * doc/posix-headers/signal.texi (signal.h): Document this
89227         portability issue.
89228         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
89229         Reported by Tom G. Christensen.
89231 2008-08-17  Bruno Haible  <bruno@clisp.org>
89233         New module 'threadlib'.
89234         * modules/threadlib: New file.
89235         * lib/glthread/threadlib.c: New file, extracted from
89236         lib/glthread/lock.c.
89237         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
89238         functions.
89239         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
89240         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
89241         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
89242         macros.
89243         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
89244         (gl_DISABLE_THREADS): Remove macro.
89245         * modules/lock (Files): Remove build-aux/config.rpath.
89246         (Depends-on): Remove havelib. Add threadlib.
89247         (configure.ac-early): Remove section.
89248         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
89249         * modules/tls (Depends-on): Remove lock. Add threadlib.
89250         (Link): New section, copied from threadlib.
89251         * MODULES.html.sh (Multithreading): Add threadlib.
89253 2008-08-14  Bruno Haible  <bruno@clisp.org>
89255         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
89256         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
89257         glthread_rwlock_unlock, glthread_rwlock_destroy,
89258         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
89259         glthread_recursive_lock_destroy): Define as macros always.
89260         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
89261         glthread_lock_lock.
89262         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
89263         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
89264         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
89265         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
89266         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
89267         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
89268         (glthread_recursive_lock_lock_func): Renamed from
89269         glthread_recursive_lock_lock.
89270         (glthread_recursive_lock_unlock_func): Renamed from
89271         glthread_recursive_lock_unlock.
89272         (glthread_recursive_lock_destroy_func): Renamed from
89273         glthread_recursive_lock_destroy.
89275 2008-08-14  Bruno Haible  <bruno@clisp.org>
89277         * lib/glthread/lock.h: Renamed from lib/lock.h.
89278         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
89279         * lib/glthread/tls.h: Renamed from lib/tls.h.
89280         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
89281         * lib/fstrcmp.c: Update includes.
89282         * lib/strsignal.c: Update includes.
89283         * modules/lock (Files, Makefile.am): Update.
89284         (Include): Change to "glthread/lock.h".
89285         * modules/tls (Files, Makefile.am): Update.
89286         (Include): Change to "glthread/tls.h".
89287         * tests/test-lock.c: Update includes.
89288         * tests/test-tls.c: Update includes.
89289         * NEWS: Mention the renamed header files.
89291 2008-08-11  Jim Meyering  <meyering@redhat.com>
89293         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
89295 2008-08-11  Eric Blake  <ebb9@byu.net>
89297         test-c-stack: avoid C99-ism
89298         * tests/test-c-stack.c (main): Fix whitespace, move declaration
89299         before statement.
89300         Reported by Alain Guibert.
89302 2008-08-10  Jim Meyering  <meyering@redhat.com>
89304         ensure that return value of uinttostr et al are not ignored
89305         * lib/inttostr.h (__GNUC_PREREQ): Define.
89306         (__attribute_warn_unused_result__): Define.
89307         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
89309 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
89311         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
89312         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
89314 2008-08-07  Jim Meyering  <meyering@redhat.com>
89316         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
89318         * modules/mkstemp (License): Relicense under LGPLv2+.
89319         * modules/tempname (License): Likewise.
89321 2008-08-06  Bruno Haible  <bruno@clisp.org>
89323         * lib/poll.c (poll): Further micro-optimization.
89325 2008-08-06  Jim Meyering  <meyering@redhat.com>
89327         inet_pton.c: use locale-independent tolower
89328         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
89329         (inet_pton6): Use c_tolower rather than tolower.
89330         * modules/inet_pton (Depends-on): Add c-ctype.
89332 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
89334         * lib/poll.c (poll): Avoid division when timeout is 0, cache
89335         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
89337 2008-08-06  Jim Meyering  <meyering@redhat.com>
89339         * modules/inet_pton (License): Relicense under LGPLv2+.
89341 2008-08-03  Bruno Haible  <bruno@clisp.org>
89343         Additional non-aborting API for lock and tls.
89344         * lib/lock.h: Include <errno.h>.
89345         (glthread_lock_init): New macro/function.
89346         (gl_lock_init): Define as wrapper around glthread_lock_init.
89347         (glthread_lock_lock): New macro/function.
89348         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
89349         (glthread_lock_unlock): New macro/function.
89350         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
89351         (glthread_lock_destroy): New macro/function.
89352         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
89353         (glthread_rwlock_init): New macro/function.
89354         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
89355         (glthread_rwlock_rdlock): New macro/function.
89356         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
89357         (glthread_rwlock_wrlock): New macro/function.
89358         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
89359         (glthread_rwlock_unlock): New macro/function.
89360         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
89361         (glthread_rwlock_destroy): New macro/function.
89362         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
89363         (glthread_recursive_lock_init): New macro/function.
89364         (gl_recursive_lock_init): Define as wrapper around
89365         glthread_recursive_lock_init.
89366         (glthread_recursive_lock_lock): New macro/function.
89367         (gl_recursive_lock_lock): Define as wrapper around
89368         glthread_recursive_lock_lock.
89369         (glthread_recursive_lock_unlock): New macro/function.
89370         (gl_recursive_lock_unlock): Define as wrapper around
89371         glthread_recursive_lock_unlock.
89372         (glthread_recursive_lock_destroy): New macro/function.
89373         (gl_recursive_lock_destroy): Define as wrapper around
89374         glthread_recursive_lock_destroy.
89375         (glthread_once): New macro/function.
89376         (gl_once): Define as wrapper around glthread_once.
89377         Update function declarations.
89378         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
89379         glthread_rwlock_init. Return error code.
89380         (glthread_rwlock_rdlock_multithreaded): Renamed from
89381         glthread_rwlock_rdlock. Return error code.
89382         (glthread_rwlock_wrlock_multithreaded): Renamed from
89383         glthread_rwlock_wrlock. Return error code.
89384         (glthread_rwlock_unlock_multithreaded): Renamed from
89385         glthread_rwlock_unlock. Return error code.
89386         (glthread_rwlock_destroy_multithreaded): Renamed from
89387         glthread_rwlock_destroy. Return error code.
89388         (glthread_recursive_lock_init_multithreaded): Renamed from
89389         glthread_recursive_lock_init. Return error code.
89390         (glthread_recursive_lock_lock_multithreaded): Renamed from
89391         glthread_recursive_lock_lock. Return error code.
89392         (glthread_recursive_lock_unlock_multithreaded): Renamed from
89393         glthread_recursive_lock_unlock. Return error code.
89394         (glthread_recursive_lock_destroy_multithreaded): Renamed from
89395         glthread_recursive_lock_destroy. Return error code.
89396         (glthread_once_call): Make static.
89397         (glthread_once_multithreaded): Renamed from glthread_once.
89398         * lib/tls.h: Include <errno.h>.
89399         (glthread_tls_key_init): New macro/function.
89400         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
89401         (glthread_tls_set): New macro/function.
89402         (gl_tls_set): Define as wrapper around glthread_tls_set.
89403         (glthread_tls_key_destroy): New macro/function.
89404         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
89405         Update function declarations.
89406         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
89407         glthread_tls_get.
89408         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
89410 2008-08-04  Eric Blake  <ebb9@byu.net>
89412         gnumakefile: use space, not TAB, outside of targets
89413         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
89415 2008-08-02  Jim Meyering  <meyering@redhat.com>
89417         getdate.y: avoid locale-dependent date parsing failure
89418         In Turkish locales, getdate would fail to recognize keywords
89419         containing a lowercase "i".  The solution is not to rely on
89420         locale-sensitive case-conversion.
89421         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
89422         (lookup_word): Use c_toupper in place of toupper.
89423         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
89424         Reported by Vefa Bicakci <bicave@superonline.com> in
89425         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
89426         * modules/getdate (Depends-on): Add c-ctype.
89428 2008-08-02  Bruno Haible  <bruno@clisp.org>
89430         * gnulib-tool (func_import): When updating or creating a .gitignore
89431         file, prepend each added line with a slash, and ignore leading slashes
89432         from the existing lines.
89433         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
89435 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89437         Portability fix for GNU make 3.79.1.
89438         * top/GNUmakefile: Avoid 'else COND', which older GNU make
89439         versions do not understand.
89441 2008-08-01  Bruno Haible  <bruno@clisp.org>
89443         Work around bug of HP-UX 10.20 cc with -0.0 literal.
89444         * tests/test-isnanf.h (zero): New variable.
89445         (main): Avoid literal -0.0f.
89446         * tests/test-isnand.h (zero): New variable.
89447         (main): Avoid literal -0.0.
89448         * tests/test-isnanl.h (zero): New variable.
89449         (main): Avoid literal -0.0L.
89450         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
89451         (test_float, test_double, test_long_double): Avoid literals -0.0f,
89452         -0.0, -0.0L.
89453         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
89454         (test_signbitd): Avoid literal -0.0.
89455         (test_signbitl): Avoid literal -0.0L.
89456         * tests/test-ceilf1.c (zero): New variable.
89457         (main): Avoid literal -0.0f.
89458         * tests/test-ceill.c (zero): New variable.
89459         (main): Avoid literal -0.0L.
89460         * tests/test-floorf1.c (zero): New variable.
89461         (main): Avoid literal -0.0f.
89462         * tests/test-floorl.c (zero): New variable.
89463         (main): Avoid literal -0.0L.
89464         * tests/test-roundf1.c (zero): New variable.
89465         (main): Avoid literal -0.0f.
89466         * tests/test-round1.c (zero): New variable.
89467         (main): Avoid literal -0.0.
89468         * tests/test-roundl.c (zero): New variable.
89469         (main): Avoid literal -0.0L.
89470         * tests/test-truncf1.c (zero): New variable.
89471         (main): Avoid literal -0.0f.
89472         * tests/test-trunc1.c (zero): New variable.
89473         (main): Avoid literal -0.0.
89474         * tests/test-truncl.c (zero): New variable.
89475         (main): Avoid literal -0.0L.
89476         * tests/test-frexp.c (zero): New variable.
89477         (main): Avoid literal -0.0.
89478         * tests/test-frexpl.c (zero): New variable.
89479         (main): Avoid literal -0.0L.
89480         * tests/test-ldexpl.c (zero): New variable.
89481         (main): Avoid literal -0.0L.
89482         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
89483         (zerod, zerol): New variables.
89484         (test_function): Avoid literals -0.0, -0.0L.
89485         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
89486         (zerod, zerol): New variables.
89487         (test_function): Avoid literals -0.0, -0.0L.
89488         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
89489         (zerod, zerol): New variables.
89490         (test_function): Avoid literals -0.0, -0.0L.
89491         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
89492         (zerod, zerol): New variables.
89493         (test_function): Avoid literals -0.0, -0.0L.
89494         * tests/test-strtod.c (zero): New variable.
89495         (main): Avoid literal -0.0.
89496         Reported by Jonathan C. Patschke <jp@centtech.com>.
89498 2008-07-31  Jim Meyering  <meyering@redhat.com>
89500         sha256.h: correct definition of SHA224_DIGEST_SIZE
89501         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
89502         Reported by Paulie Pena IV <paulie4@gmail.com>.
89503         Define as 224 / 8, rather than as a literal.
89504         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
89505         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
89506         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
89508 2008-07-31  Bruno Haible  <bruno@clisp.org>
89510         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
89511         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
89512         Reported by Jonathan Patschke <jp@centtech.com>.
89514 2008-07-31  Bruno Haible  <bruno@clisp.org>
89516         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
89517         Reported by Paolo Bonzini <bonzini@gnu.org>.
89519 2008-07-30  Eric Blake  <ebb9@byu.net>
89521         test-strtod: allow compilation without -lm
89522         * tests/test-strtod.c (main): Avoid link dependence on fabs.
89523         Reported by Dennis Clarke <blastwave@gmail.com>.
89525 2008-07-28  Jim Meyering  <meyering@redhat.com>
89527         bootstrap: work also when there are no .po files in po/
89528         * build-aux/bootstrap (update_po_files): Complete the change
89529         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
89531 2008-07-27  Jim Meyering  <meyering@redhat.com>
89533         * users.txt: Add zile.
89535 2008-07-26  Ben Pfaff  <blp@gnu.org>
89537         Add missing dependencies on new m4/exponent[fdl].m4 files.
89538         * modules/isnanf-nolibm: Add m4/exponentf.m4.
89539         * modules/isnand-nolibm: Add m4/exponentd.m4.
89540         * modules/isnanl-nolibm: Add m4/exponentl.m4.
89541         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
89542         m4/isnan[fdl].m4, because the macros actually used moved.
89543         Reported by Jim Meyering.
89545 2008-07-14  Ben Pfaff  <blp@gnu.org>
89547         Add isinf module.
89548         * lib/isinf.c: New file.
89549         * lib/math.in.h: Define isinf macro if we have decided to replace
89550         it.
89551         * m4/isinf.m4: New file.
89552         * m4/math_h.m4: Initialize and substitute variables for isinf
89553         module.
89554         * modules/isinf: New file.
89555         * modules/isinf-tests: New file.
89556         * modules/math: Add substitutions for new module.
89557         * tests/test-isinf.c: New file.
89558         * doc/posix-functions/isinf.texi: Mention new module.
89559         * MODULES.html.sh: Mention new module.
89561 2008-07-14  Ben Pfaff  <blp@gnu.org>
89563         Factor out some macros for use by additional modules.
89564         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
89565         exponentf.m4.
89566         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
89567         exponentd.m4.
89568         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
89569         file exponentl.m4.
89570         * m4/exponentf.m4: New file.
89571         * m4/exponentd.m4: New file.
89572         * m4/exponentl.m4: New file.
89573         * modules/isnanf: Use new file m4/exponentf.m4.
89574         * modules/isnand: Use new file m4/exponentd.m4.
89575         * modules/isnanl: Use new file m4/exponentl.m4.
89577 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
89579         mktime.c: normalize tp->tm_isdst value to -1/0/1.
89580         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
89581         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
89582         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
89584         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
89585         readlink on platforms without PATH_MAX.
89587 2008-07-21  Eric Blake  <ebb9@byu.net>
89589         Warn, not fail, on stale version.
89590         * top/GNUmakefile (_curr-ver): Tone down previous patch.
89592         Don't allow installation with stale devel version number.
89593         * top/GNUmakefile (_is-install-target): New macro.
89594         (_curr-ver): Forbid installation with stale version number.
89596 2008-07-20  Bruno Haible  <bruno@clisp.org>
89598         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
89599         TESTS_ENVIRONMENT.
89600         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
89602 2008-07-20  Bruno Haible  <bruno@clisp.org>
89604         * lib/c-stack.h (c_stack_action): Add documentation.
89605         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
89607 2008-07-20  Bruno Haible  <bruno@clisp.org>
89609         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
89610         * modules/readlink (License): Likewise.
89612 2008-07-17  Eric Blake  <ebb9@byu.net>
89614         * modules/c-stack (Link): Fix typo.
89616         Make c-stack use libsigsegv, when available.
89617         * modules/c-stack (Depends-on): Add libsigsegv.
89618         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
89619         needed.
89620         * lib/c-stack.c (SIGSTKSZ): Define fallback.
89621         (segv_handler, overflow_handler, c_stack_action)
89622         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
89623         implementation when libsigsegv is available, but only when using
89624         the library is necessary.
89625         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
89626         comment, explaining why XSI check fails on Linux.
89627         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
89628         * tests/test-c-stack2.sh: Tweak skip message.
89629         * NEWS: Document new link-time requirements.
89631 2008-07-16  Eric Blake  <ebb9@byu.net>
89633         c-stack: Expose false positives when not using libsigsegv.
89634         * modules/c-stack-tests (Files): Expand test.
89635         * tests/test-c-stack.c (main): Add means to conditionally trigger
89636         non-overflow SIGSEGV.
89637         * tests/test-c-stack2.sh: New file.
89639 2008-07-14  Bruno Haible  <bruno@clisp.org>
89641         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
89642         Reported by Eric Blake.
89644 2008-07-14  Sam Steingold  <sds@gnu.org>
89645             Bruno Haible  <bruno@clisp.org>
89647         New module libsigsegv.
89648         * modules/libsigsegv: New file.
89649         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
89650         modifications.
89651         * MODULES.html.sh (Signal handling): New section.
89653 2008-07-14  Bruno Haible  <bruno@clisp.org>
89655         * modules/unictype/ctype-* (Description): Add the word "function".
89656         Improves the resulting doc in MODULES.html.
89658 2008-07-12  Ben Pfaff  <blp@gnu.org>
89660         Add longlong module.
89661         * modules/longlong: New file.
89663 2008-07-12  Bruno Haible  <bruno@clisp.org>
89665         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
89666         to empty.
89668 2008-07-10  Ben Pfaff  <blp@gnu.org>
89670         Add isnan module.
89671         * doc/posix-functions/isnan.texi: Mention new module.
89672         * lib/math.in.h: Define isnan macro if we have decided to replace
89673         it.
89674         * m4/isnan.m4: New file.
89675         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
89676         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
89677         also.
89678         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
89679         redundancy.
89680         * m4/math_h.m4: Initialize and substitute variables for isnan
89681         module.
89682         * modules/isnan: New file.
89683         * modules/isnan-tests: New file.
89684         * modules/math: Add substitutions for new module.
89685         * tests/test-isnan.c: New file.
89686         * MODULES.html.sh: Mention new module.
89688 2008-07-10  Ben Pfaff  <blp@gnu.org>
89690         Add isnanf module.
89691         * lib/isnanf.m4: New file.
89692         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
89693         (gl_HAVE_ISNANF_IN_LIBM): New macro.
89694         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
89695         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
89696         * modules/isnanf: New file.
89697         * modules/isnanf-tests: New file.
89698         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
89699         files.
89700         * tests/test-isnanf-nolibm.c: factored most of its contents into
89701         new file tests/test-isnanf.h.
89702         * tests/test-isnanf.h: New file.
89703         * tests/test-isnanf.c: New file.
89704         * MODULES.html.sh: Mention new module.
89705         * doc/glibc-functions/isnanf.texi: Mention new module.
89707 2008-07-10  Ben Pfaff  <blp@gnu.org>
89709         Add isnand module.
89710         * lib/isnand.h: New file.
89711         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
89712         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
89713         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
89714         functionality also.
89715         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
89716         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
89717         (gl_HAVE_ISNAND_IN_LIBM): New macro.
89718         * modules/isnand: New file.
89719         * modules/isnand-tests: New file.
89720         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
89721         files.
89722         * tests/test-isnand-nolibm.c: factored most of its contents into
89723         new file tests/test-isnand.h.
89724         * tests/test-isnand.h: New file.
89725         * tests/test-isnand.c: New file.
89726         * MODULES.html.sh: Mention new module.
89728 2008-07-10  Ben Pfaff  <blp@gnu.org>
89730         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
89731         * lib/isnand.h: Rename lib/isnand-nolibm.h.
89732         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
89733         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
89734         * modules/isnanf-nolibm: Update references to renamed files.
89735         * modules/isnand-nolibm: Likewise.
89736         * modules/isnanf-nolibm-tests: Likewise.
89737         * modules/isnand-nolibm-tests: Likewise.
89738         * lib/frexp.c: Likewise.
89739         * lib/isfinite.c: Likewise.
89740         * lib/signbitd.c: Likewise.
89741         * lib/signbitf.c: Likewise.
89742         * lib/vasnprintf.c: Likewise.
89743         * tests/test-ceilf1.c: Likewise.
89744         * tests/test-ceilf2.c: Likewise.
89745         * tests/test-floorf1.c: Likewise.
89746         * tests/test-floorf2.c: Likewise.
89747         * tests/test-frexp.c: Likewise.
89748         * tests/test-round1.c: Likewise.
89749         * tests/test-round2.c: Likewise.
89750         * tests/test-roundf1.c: Likewise.
89751         * tests/test-strtod.c: Likewise.
89752         * tests/test-trunc1.c: Likewise.
89753         * tests/test-trunc2.c: Likewise.
89754         * tests/test-truncf1.c: Likewise.
89755         * tests/test-truncf2.c: Likewise.
89756         * NEWS: Mention the renamed header files.
89758 2008-07-11  Jim Meyering  <meyering@redhat.com>
89760         vc-list-files: make the last-resort awk code more portable
89761         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
89762         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
89763         does not support it.
89765 2008-07-10  Eric Blake  <ebb9@byu.net>
89767         Work with tar's bootstrap.
89768         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
89769         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
89770         an m4 comment.
89772 2008-07-09  Jim Meyering  <meyering@redhat.com>
89774         posix-shell.m4: fix typo that made this test malfunction
89775         * m4/posix-shell.m4: Remove capitalization in variable name.
89777 2008-07-08  Bruno Haible  <bruno@clisp.org>
89779         * m4/onceonly.m4: Update comments.
89780         Reported by Ben Pfaff <blp@cs.stanford.edu>.
89782 2008-07-04  Jim Meyering  <meyering@redhat.com>
89784         * users.txt: Add vc-dwim.
89785         (bison, coreutils): Use the gitweb URL.
89787 2008-07-03  Jim Meyering  <meyering@redhat.com>
89789         * users.txt: Add libffcall.  From Sam Steingold.
89791 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
89793         getdate.y: do not ignore TZ with relative day, month or year offset
89794         * lib/getdate.y (get_date): Move the tz-handling block to follow the
89795         relative-date-handling, since otherwise, the latter would clobber the
89796         sole output (an updated Start value) of the tz-handling block.
89797         * tests/test-getdate.c: Tests for the fix
89799 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89801         Recognize 'foo_LIBRARIES += libgnu.a'.
89802         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
89803         makefile snippet has already specified an installation location,
89804         also using '+='.
89806 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
89808         getdate.y: factor out common actions
89809         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
89810         Use them in place of open-coded actions.
89812 2008-07-01  Simon Josefsson  <simon@josefsson.org>
89814         Add self-test for getdate module.
89815         * modules/getdate-tests: New file.
89816         * tests/test-getdate.c: New file.
89818 2008-06-29  Bruno Haible  <bruno@clisp.org>
89820         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
89821         .gitignore.
89822         Reported by Sylvain Beucler <beuc@beuc.net>.
89824 2008-06-29  Bruno Haible  <bruno@clisp.org>
89826         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
89827         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
89829 2008-06-29  Bruno Haible  <bruno@clisp.org>
89831         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
89832         EXTRA_DIST.
89833         Reported by Sylvain Beucler <beuc@beuc.net>.
89835 2008-06-26  Jim Meyering  <meyering@redhat.com>
89837         make several modules depend on the "open" module
89838         This provides slightly increased consistency when opening-for-write
89839         the name of a non-directory spelled with a trailing slash.
89840         * modules/chdir-safer: Likewise.
89841         * modules/chown: Likewise.
89842         * modules/clean-temp: Likewise.
89843         * modules/copy-file: Likewise.
89844         * modules/fchdir: Likewise.
89845         * modules/fcntl-safer: Likewise.
89846         * modules/pipe: Likewise.
89847         * modules/utime: Likewise.
89848         Prompted by Eric Blake and Bruno Haible.
89850 2008-06-24  Andreas Schwab  <schwab@suse.de>
89852         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
89853         literals can be used as initializers for global variables.
89855 2008-06-23  Eric Blake  <ebb9@byu.net>
89857         Make gnulib-cache.m4 easier to diff.
89858         * gnulib-tool (func_import): Allow newlines when reading cached
89859         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
89861 2008-06-23  Bruno Haible  <bruno@clisp.org>
89863         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
89864         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
89865         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
89866         m4/signalblocking.m4.
89867         (gl_PREREQ_SIGACTION): Don't invoke it.
89868         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
89869         gl_PREREQ_SIG_HANDLER_H.
89870         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
89871         Don't check for sigaction here.
89873 2008-06-23  Bruno Haible  <bruno@clisp.org>
89875         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
89876         (install_handlers): Don't set the SA_RESETHAND flag.
89878 2008-06-23  Bruno Haible  <bruno@clisp.org>
89880         * m4/sigaction.m4: Comment fixes.
89881         * lib/signal.in.h: Likewise.
89883 2008-06-23  Eric Blake  <ebb9@byu.net>
89885         Fix typo.
89886         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
89888         Avoid SA_ namespace.
89889         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
89890         Reported by Ralf Wildenhues.
89892         Avoid test failure due to SA_RESTORER.
89893         * tests/test-sigaction.c (SA_MASK): New macro.
89894         (main): Avoid failing due to extension flags being set.
89895         Reported by Jim Meyering.
89897         Revert use of sig-handler.h in sigprocmask.c.
89898         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
89899         it requires the existence of struct sigaction.
89900         * lib/sigprocmask.c (handler_t): Restore typedef.
89901         (rpl_signal, old_handlers): Use local type.
89903 2008-06-22  Bruno Haible  <bruno@clisp.org>
89905         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
89906         conditionally.
89907         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
89909 2008-06-22  Bruno Haible  <bruno@clisp.org>
89911         * doc/posix-functions/siginterrupt.texi: Move note.
89913         * lib/signal.in.h (SA_RESTART): New macro.
89914         * lib/sigaction.c: Update comment.
89916         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
89918         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
89919         (gl_PREREQ_SIGPROCMASK): Invoke it.
89920         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
89922         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
89924         * lib/sigprocmask.c: Update a comment.
89926 2008-06-21  Eric Blake  <ebb9@byu.net>
89928         Use sigaction module rather than signal().
89929         * modules/c-stack (Depends-on): Add sigaction.
89930         * modules/fatal-signal (Depends-on): Likewise.
89931         * modules/nanosleep (Depends-on): Likewise.
89932         * modules/sigprocmask (Files): Add sig-handler.h.
89933         * modules/sigaction (Files): Likewise.
89934         * lib/sig-handler.h (get_handler): New file, suggested by Paul
89935         Eggert.
89936         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
89937         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
89938         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
89939         (init_fatal_signals): Likewise.
89940         * lib/nanosleep.c (rpl_nanosleep): Likewise.
89941         (siginterrupt): Delete fallback.
89942         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
89943         instead.
89944         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
89945         siginterrupt.
89947         New module sigaction, for mingw.
89948         * modules/sigaction: New module...
89949         * modules/sigaction-tests: ...and its test.
89950         * m4/sigaction.m4: New file.
89951         * lib/sigaction.c: Likewise.
89952         * tests/test-sigaction.c: Likewise.
89953         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
89954         * modules/signal (Makefile.am): Likewise.
89955         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
89956         needed.
89957         * doc/posix-headers/signal.texi (signal.h): Mention provided
89958         types.
89959         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
89960         that sigaction is preferable.
89961         * doc/posix-functions/sigaction.texi (sigaction): Mention new
89962         module.
89963         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89964         sigaction.
89966         Improve robustness of sigprocmask by overriding signal.
89967         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
89968         is in use.
89969         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
89970         (SIGKILL, SIGSTOP): Provide fallbacks.
89971         (rpl_signal): Implement.
89972         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
89973         signal can be called inside handlers.
89975         Fix nanosleep module on mingw.
89976         * modules/nanosleep (Depends-on): Add sys_select.
89977         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
89979         Fix licensing of sigprocmask.
89980         * modules/raise (License): Relicense as LGPL.
89982 2008-06-21  Bruno Haible  <bruno@clisp.org>
89984         * lib/propername.c (proper_name_utf8): Don't use the transliterated
89985         result if it contains question marks.
89986         Reported by Michael Geng <linux@michaelgeng.de>.
89988 2008-06-19  Bruno Haible  <bruno@clisp.org>
89990         Fix CVS-ism.
89991         * doc/gnulib.texi: Include updated-stamp.texi.
89992         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
89993         (updated-stamp.texi): New rule.
89994         (gnulib.info): Depend on it.
89995         * doc/.gitignore: Add updated-stamp.texi.
89996         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
89998 2008-06-19  Bruno Haible  <bruno@clisp.org>
90000         * doc/Makefile (gnulib.info): Update and simplify dependencies.
90001         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
90003 2008-06-19  Eric Blake  <ebb9@byu.net>
90005         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
90006         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
90007         Reported by Stepan Kasal.
90009 2008-06-18  Bruno Haible  <bruno@clisp.org>
90011         * lib/fatal-signal.c (init_fatal_signals): Add comment.
90012         Reported by Eric Blake.
90014 2008-06-18  Eric Blake  <ebb9@byu.net>
90016         Work around cygwin 1.5.25 strsignal bug.
90017         * tests/test-strsignal.c: Allow for const char *.
90018         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
90020 2008-06-18  Simon Josefsson  <simon@josefsson.org>
90022         * users.txt: Update URL to article and add author/date
90023         information.
90025 2008-06-17  Bruno Haible  <bruno@clisp.org>
90027         New macro gl_DISABLE_THREADS.
90028         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
90029         if the user did not pass --enable-threads or --disable-threads option.
90030         (gl_DISABLE_THREADS): New macro.
90031         Reported by Eric Blake <ebb9@byu.net>.
90033 2008-06-17  Bruno Haible  <bruno@clisp.org>
90035         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
90036         when the macro ignores it.
90037         Based on a patch by Eric Blake <ebb9@byu.net>.
90039 2008-06-17  Bruno Haible  <bruno@clisp.org>
90041         * modules/tls (License): Change to LGPLv2+.
90042         Reported by Eric Blake.
90044 2008-06-17  Eric Blake  <ebb9@byu.net>
90046         Simplify c-stack prerequisites.
90047         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
90048         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
90049         no longer requires <ucontext.h> to exist.  Optimize setrlimit
90050         check.
90051         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
90052         <sys/resource.h>.
90054         Move c-stack test into testsuite.
90055         * modules/c-stack-tests: New file.
90056         * lib/c-stack.c [DEBUG]: Move test program...
90057         * tests/test-c-stack.c: ...into this new file.  Skip rather than
90058         fail test if sigaltstack is lacking.
90059         * tests/test-c-stack.sh: New driver file.
90061 2008-06-16  Eric Blake  <ebb9@byu.net>
90063         Use raise module consistently.
90064         * modules/fatal-signal (Depends-on): Add raise.
90065         * modules/sigprocmask (Depends-on): Likewise.
90066         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
90067         * lib/sigprocmask.c (sigprocmask): Likewise.
90068         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
90069         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
90071         Fix compliance bug in sigpending.
90072         * lib/sigprocmask.c (sigpending): Return pending array via
90073         parameter, not return value.
90075 2008-06-14  Eric Blake  <ebb9@byu.net>
90077         Improve obstack-printf test code.
90078         * tests/test-obstack-printf.c (test_function): Fix comment, and
90079         simplify usage of obstack_* in macros.  Add a test for coverage.
90080         Reported by Bruno Haible.
90082 2008-06-14  Bruno Haible  <bruno@clisp.org>
90084         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
90085         array size as a constant, not as a const variable.
90086         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
90087         AC_USE_SYSTEM_EXTENSIONS.
90088         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
90089         Test whether the obstack_printf function actually exists.
90090         * modules/obstack-printf (Depends-on): Add extensions.
90091         (Include): Remove obstack.h.
90092         * modules/obstack-printf-posix (Depends-on): Add extensions.
90093         (Include): Remove obstack.h.
90095 2008-06-13  Eric Blake  <ebb9@byu.net>
90097         Add obstack-printf and obstack-printf-posix modules.
90098         * modules/obstack-printf: New file.
90099         * modules/obstack-printf-posix: Likewise.
90100         * MODULES.html.sh (Misc): Mention them.
90101         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
90102         Likewise.
90103         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
90104         Likewise.
90105         * modules/stdio (Makefile.am): Accomodate new modules.
90106         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
90107         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
90108         Declare.
90109         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
90110         functions.
90111         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
90112         (gl_REPLACE_OBSTACK_PRINTF): New macros
90113         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
90114         * tests/test-obstack-printf.c: New file.
90115         * modules/obstack-printf-tests: Likewise.
90116         * modules/obstack-printf-posix-tests: Likewise.
90118 2008-06-11  Bruno Haible  <bruno@clisp.org>
90120         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
90121         * lib/open.c: Include errno.h.
90122         (open): Fail when attempting to write to a file that has a trailing
90123         slash.
90124         * tests/test-open.c (main): Test against trailing slash bug.
90125         * doc/posix-functions/open.texi: Mention the trailing slash bug.
90127 2008-06-10  Bruno Haible  <bruno@clisp.org>
90129         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
90130         for $? to work inside the trap command, with various /bin/sh-s.
90131         * tests/test-vc-list-files-cvs.sh: Likewise.
90133 2008-06-10  Bruno Haible  <bruno@clisp.org>
90135         * lib/acl-internal.h: Don't include gettext.h here.
90136         * lib/set-mode-acl.c: Include gettext.h here.
90137         * lib/copy-acl.c: Likewise.
90139 2008-06-10  Bruno Haible  <bruno@clisp.org>
90141         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
90142         * lib/wait-process.c (wait_subprocess): Likewise.
90143         * lib/execute.h (execute): Add termsigp argument.
90144         * lib/execute.c (execute): Likewise.
90145         * lib/csharpcomp.c (compile_csharp_using_pnet,
90146         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
90147         * lib/csharpexec.c (execute_csharp_using_pnet,
90148         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
90149         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
90150         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
90151         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
90152         is_jikes_present): Update.
90153         * lib/javaexec.c (execute_java_class): Update.
90154         * lib/javaversion.c (execute_and_read_line): Update.
90155         * NEWS: Document the changes.
90156         Reported by Eric Blake.
90158 2008-06-10  Eric Blake  <ebb9@byu.net>
90160         Add missing include.
90161         * tests/test-strstr.c (includes): Add <signal.h>.
90162         * tests/test-strcasestr.c (includes): Likewise.
90163         * tests/test-memmem.c (includes): Likewise.
90165 2008-06-10  Bruno Haible  <bruno@clisp.org>
90167         * lib/wait-process.c (wait_subprocess): Add an assertion.
90169 2008-06-10  Bruno Haible  <bruno@clisp.org>
90171         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
90173 2008-06-10  Bruno Haible  <bruno@clisp.org>
90175         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
90176         using alarm().
90177         * tests/test-strcasestr.c (main): Likewise.
90178         * tests/test-strstr.c (main): Likewise.
90180 2008-06-09  Bruno Haible  <bruno@clisp.org>
90182         Work around the Solaris 10 ACE ACLs ABI change.
90183         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
90184         declare if ACL_NO_TRIVIAL is present.
90185         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
90186         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
90187         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
90188         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
90189         define if ACL_NO_TRIVIAL is present.
90190         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
90191         and use the current ABI.
90192         (file_has_acl): Use same #if condition as elsewhere.
90193         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
90194         in use, and use the current ABI.
90195         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
90196         Reported by Jim Meyering.
90198 2008-06-09  Eric Blake  <ebb9@byu.net>
90200         Work around environments that (stupidly) ignore SIGALRM.
90201         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
90202         before using alarm().
90203         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
90204         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
90205         Reported by Ian Beckwith <ianb@erislabs.net>.
90207         Produce autobuild blurb earlier in log.
90208         * modules/autobuild (configure.ac-early): Move AB_INIT here.
90210 2008-06-09  Jim Meyering  <meyering@redhat.com>
90211         and Ondřej Vašík  <ovasik@redhat.com>
90213         utimens.c: correct kernel bug work-around
90214         Ondřej Vašík found that the invalid return value of 280 indicates
90215         failure, not success, and the kernel bug we're trying to work
90216         around affects not just the utimensat call, but also the fallback
90217         futimens call.
90218         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
90219         not success.
90220         [HAVE_FUTIMENS]: Use the same work-around, here.
90222 2008-06-09  Jim Meyering  <meyering@redhat.com>
90224         add more guards around definition of ACE_-related code
90225         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
90226         ALLOW and ACE_OWNER are also defined.
90228 2008-06-08  Bruno Haible  <bruno@clisp.org>
90230         * lib/acl-internal.h: Add me as co-author.
90231         * lib/file-has-acl.c: Likewise.
90232         * lib/set-mode-acl.c: Likewise.
90233         * lib/copy-acl.c: Likewise.
90235 2008-06-08  Bruno Haible  <bruno@clisp.org>
90237         Add support for AIX ACLs.
90238         * lib/acl-internal.h (acl_nontrivial): New declaration.
90239         * lib/file-has-acl.c (acl_nontrivial): New function.
90240         (file_has_acl): Add implementation using AIX 4 ACL API.
90241         * lib/set-mode-acl.c (qset_acl): Likewise.
90242         * lib/copy-acl.c (qcopy_acl): Likewise.
90244 2008-06-08  Bruno Haible  <bruno@clisp.org>
90246         Add support for HP-UX ACLs.
90247         * lib/acl-internal.h (acl_nontrivial): New declaration.
90248         * lib/file-has-acl.c (acl_nontrivial): New function.
90249         (file_has_acl): Add implementation using HP-UX 11 ACL API.
90250         * lib/set-mode-acl.c (qset_acl): Likewise.
90251         * lib/copy-acl.c (qcopy_acl): Likewise.
90253 2008-06-08  Bruno Haible  <bruno@clisp.org>
90255         Add support for Cygwin ACLs.
90256         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
90257         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
90258         the chmod_or_fchmod call.
90259         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
90261 2008-06-08  Bruno Haible  <bruno@clisp.org>
90263         Fix bug with setuid modes in Solaris 10+ code.
90264         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
90265         succeeded, when the mode contains some special bits.
90267 2008-06-08  Bruno Haible  <bruno@clisp.org>
90269         Add support for Solaris 7..10 ACLs.
90270         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
90271         declarations.
90272         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
90273         functions.
90274         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
90275         * lib/set-mode-acl.c (qset_acl): Likewise.
90276         * lib/copy-acl.c (qcopy_acl): Likewise.
90278 2008-06-08  Bruno Haible  <bruno@clisp.org>
90280         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
90281         declaration.
90282         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
90283         (acl_access_nontrivial): Remove MacOS X case.
90284         (file_has_acl): Use acl_extended_nontrivial.
90285         * lib/copy-acl.c (qcopy_acl): Likewise.
90287 2008-06-08  Bruno Haible  <bruno@clisp.org>
90289         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
90291 2008-06-08  Jim Meyering  <meyering@redhat.com>
90293         * modules/acl (Maintainer): Add Bruno Haible.
90295 2008-06-07  Bruno Haible  <bruno@clisp.org>
90297         Improve support for Tru64 ACLs.
90298         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
90299         ACL on OSF/1.
90301 2008-06-07  Bruno Haible  <bruno@clisp.org>
90303         Add support for MacOS X ACLs.
90304         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
90305         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
90306         * lib/set-mode-acl.c (qset_acl): Likewise.
90307         * lib/copy-acl.c (qcopy_acl): Likewise.
90309 2008-06-07  Bruno Haible  <bruno@clisp.org>
90311         Fix memory leak introduced on 2008-05-22.
90312         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
90313         use.
90315 2008-06-07  Bruno Haible  <bruno@clisp.org>
90317         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
90318         to construct an empty ACL.
90320 2008-06-07  Bruno Haible  <bruno@clisp.org>
90322         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
90323         precisely.
90324         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
90326 2008-06-07  Bruno Haible  <bruno@clisp.org>
90328         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
90329         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
90331 2008-06-07  Bruno Haible  <bruno@clisp.org>
90333         * doc/posix-functions/_setjmp.texi: Explain the use of this function
90334         regardless of POSIX.
90335         * doc/posix-functions/_longjmp.texi: Likewise.
90336         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
90337         SystemV platform in this case.
90339 2008-06-06  Eric Blake  <ebb9@byu.net>
90341         Document abort() bugs.
90342         * doc/posix-functions/abort.texi (abort): Mention anomalies.
90344         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
90345         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
90346         sigsetjmp.
90347         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
90348         siglongjmp, but only as a macro.
90349         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
90350         is obsolete.
90351         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
90353         Tweak documentation to cover cygwin argz bugs.
90354         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
90355         argz bug fix; no code change needed since no cygwin releases
90356         occurred between the last fix and the bug being tested.
90357         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
90358         module and recently fixed cygwin bugs.
90359         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
90360         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
90361         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
90362         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
90363         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
90364         Likewise.
90365         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
90366         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
90367         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
90368         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
90369         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
90370         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
90371         Likewise.
90373         Avoid gcc warning on cygwin.
90374         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
90375         !ACL_NO_TRIVIAL]: Avoid unused variable.
90377 2008-06-05  Eric Blake  <ebb9@byu.net>
90379         Be tolerant of UNKNOWN version in gnulib-tool test dir.
90380         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
90381         git-version-gen fails to come up with a version.
90382         Reported by Simon Josefsson.
90384 2008-06-05  Jim Meyering  <meyering@redhat.com>
90385             Paul Eggert  <eggert@cs.ucla.edu>
90387         utimens.c: work around a probable Linux kernel bug
90388         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
90389         appears to be a kernel bug that causes utimensat to return 280
90390         instead of 0, indicating success.
90392 2008-06-04  Bruno Haible  <bruno@clisp.org>
90394         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
90395         2008-06-01 commit.
90397 2008-06-04  Bruno Haible  <bruno@clisp.org>
90399         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
90400         * lib/file-has-acl.c (acl_access_nontrivial): New function.
90401         (file_has_acl): Use it. Save errno afterwards.
90402         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
90404 2008-06-03  Bruno Haible  <bruno@clisp.org>
90406         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
90407         draft code. Simplify #ifs.
90408         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
90409         Put Solaris code after POSIX-draft code. Fix comments regarding
90410         Solaris 10, HP-UX. Mention Cygwin.
90411         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
90413 2008-06-03  Eric Blake  <ebb9@byu.net>
90415         Provide fallback for older kernels.
90416         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
90417         Provide runtime fallback if kernel lacks support.
90418         Reported by Mike Frysinger.
90420 2008-06-02  Bruno Haible  <bruno@clisp.org>
90422         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
90423         it exists.
90425 2008-06-02  Bruno Haible  <bruno@clisp.org>
90427         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
90428         * lib/copy-acl.c (qcopy_acl): Update comment.
90430 2008-06-02  Bruno Haible  <bruno@clisp.org>
90432         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
90433         like ACL APIs.
90435 2008-06-02  Bruno Haible  <bruno@clisp.org>
90437         * tests/test-file-has-acl.sh: Use different code for Cygwin.
90438         * tests/test-set-mode-acl.sh: Likewise.
90439         * tests/test-copy-acl.sh: Likewise.
90440         * tests/test-copy-file.sh: Likewise.
90442 2008-06-02  Bruno Haible  <bruno@clisp.org>
90444         * tests/test-file-has-acl.sh: Remove unused code.
90446 2008-06-01  Bruno Haible  <bruno@clisp.org>
90448         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
90449         (copy_acl): Just a wrapper around qcopy_acl that emits the error
90450         messages.
90451         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
90453 2008-06-01  Bruno Haible  <bruno@clisp.org>
90455         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
90456         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
90457         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
90458         APIs.
90459         * modules/acl-tests (configure.ac): Remove tests now contained in
90460         m4/acl.m4.
90462 2008-06-02  Jim Meyering  <meyering@redhat.com>
90464         announce-gen: use a better key-server host name
90465         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
90466         it may be more consistently reliable.  Suggested by Werner Koch
90467         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
90469 2008-06-01  Bruno Haible  <bruno@clisp.org>
90471         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
90472         Reported by Voroskoi Andras <voroskoi@gmail.com>.
90474 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
90476         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
90478 2008-06-01  Bruno Haible  <bruno@clisp.org>
90480         New ACL tests.
90481         * tests/test-file-has-acl.sh: New file.
90482         * tests/test-file-has-acl.c: New file.
90483         * tests/test-set-mode-acl.sh: New file.
90484         * tests/test-set-mode-acl.c: New file.
90485         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
90486         * tests/test-copy-acl.c: New file.
90487         * modules/acl-tests: New file, based on modules/copy-file-tests.
90488         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
90489         (Depends-on): Add acl-tests.
90490         (configure.ac): Remove checks.
90491         (Makefile.am): Don't create test-sameacls program here any more.
90493 2008-06-01  Bruno Haible  <bruno@clisp.org>
90495         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
90496         * tests/test-sameacls.c: Include progname.h.
90497         (main): Invoke set_program_name. Portability fixes for MacOS X,
90498         Solaris, HP-UX.
90500 2008-06-01  Bruno Haible  <bruno@clisp.org>
90502         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
90503         function.
90504         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
90506 2008-06-01  Bruno Haible  <bruno@clisp.org>
90508         * modules/rpmatch (Depends-on): Add strdup.
90510 2008-06-01  Bruno Haible  <bruno@clisp.org>
90512         * lib/pipe.c: Include unistd-safer.h.
90513         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
90514         * modules/pipe (Depends-on): Add unistd-safer.
90516 2008-05-30  Simon Josefsson  <simon@josefsson.org>
90518         * modules/autobuild (configure.ac): Call AB_INIT.
90520 2008-05-30  Simon Josefsson  <simon@josefsson.org>
90522         * tests/test-getaddrinfo.c: Don't print debug messages by default.
90523         Suggested by Bruno Haible <bruno@clisp.org>.
90525 2008-05-30  Simon Josefsson  <simon@josefsson.org>
90527         * tests/test-base64.c: Cast size_t to unsigned long when invoking
90528         printf.  Use %lu instead of %d.  Reported by Bruno Haible
90529         <bruno@clisp.org>.
90531 2008-05-29  Eric Blake  <ebb9@byu.net>
90533         Prefer new POSIX 200x interfaces over futimesat.
90534         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
90535         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
90536         when available.
90537         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
90539 2008-05-28  Bruno Haible  <bruno@clisp.org>
90541         * modules/stpcpy (License): Change to LGPLv2+.
90542         Requested by David Lutterkort <dlutter@redhat.com>.
90544 2008-05-27  Bruno Haible  <bruno@clisp.org>
90546         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
90547         current mingw.
90548         Reported by Jose E. Marchesi <jemarch@gnu.org>.
90550 2008-05-27  Bruno Haible  <bruno@clisp.org>
90552         * modules/iconv_open (Link): New section, from module 'iconv'.
90553         * modules/striconv (Link): Likewise.
90554         * modules/striconveh (Link): Likewise.
90555         * modules/xstriconv (Link): Likewise.
90556         * modules/unicodeio (Link): Likewise.
90557         * modules/propername (Link): Likewise.
90558         Reported by Jim Meyering.
90560 2008-05-26  Jim Meyering  <meyering@redhat.com>
90562         sha256: do not artificially restrict buffer length to be < 2^32
90563         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
90564         uint32_t to size_t.
90565         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
90566         to match.
90568         avoid unaligned access errors, e.g., on sparc
90569         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
90570         direct access through a possibly-unaligned uint64* pointer.
90571         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
90572         direct access through a possibly-unaligned uint32* pointer.
90573         Prompted by this patch from Tom "spot" Callaway:
90574         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
90576         sha512.c: fix typo in comment
90577         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
90579 2008-05-25  Bruno Haible  <bruno@clisp.org>
90581         * lib/set-mode-acl.c: Renamed from lib/acl.c.
90582         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
90583         (Makefile.am): Update lib_SOURCES.
90585 2008-05-25  Bruno Haible  <bruno@clisp.org>
90587         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
90589 2008-05-25  Jim Meyering  <meyering@redhat.com>
90591         useless-if-before-free: freed expr may have white-space differences
90592         * build-aux/useless-if-before-free: Recognize cases in which the
90593         freed expression differs from the tested one in embedded white
90594         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
90595         $1 was used, so we can't make any regexp shy.  Improved tests now
90596         detect this.
90598         useless-if-before-free: accept white space in the expression.
90599         * build-aux/useless-if-before-free: For now, any white space
90600         in the expression must be identical in the free argument.
90602         useless-if-before-free: efficiency tweak
90603         * build-aux/useless-if-before-free: Make the expression-matching
90604         regexp "shy".
90605         Make the *outer* regexp shy, not the expr-matching one.
90607         update code-in-comment to accept cast of free arg
90608         * build-aux/useless-if-before-free: Update regexp.
90610 2008-05-25  Bruno Haible  <bruno@clisp.org>
90612         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
90613         * modules/copy-file-tests (Files, Makefile.am): Update.
90614         * tests/test-copy-file.c (func_test_copy): Update.
90616 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
90618         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
90620 2008-05-23  Bruno Haible  <bruno@clisp.org>
90622         Improve support for ACLs on OSF/1.
90623         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
90624         Remove fallback for unknown flavors of ACLs.
90626 2008-05-22  Bruno Haible  <bruno@clisp.org>
90628         Add support for ACLs on OSF/1.
90629         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
90630         replacements.
90631         (acl_free_text): New macro fallback.
90632         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
90633         acl_free.
90634         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
90635         acl_free_text function. Require AC_C_INLINE.
90637 2008-05-22  Bruno Haible  <bruno@clisp.org>
90639         Make copy_acl work on MacOS X 10.5.
90640         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
90641         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
90642         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
90643         If MODE_INSIDE_ACL, don't assume that every system has the same text
90644         representation for ACLs as FreeBSD.
90645         * lib/copy-acl.c (copy_acl): Add support for platforms with
90646         !MODE_INSIDE_ACL.
90647         * lib/file-has-acl.c (file_has_acl): Likewise.
90648         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
90649         FreeBSD, MacOS X, or IRIX, respectively.
90651 2008-05-22  Bruno Haible  <bruno@clisp.org>
90653         * lib/acl.h: Don't include <sys/acl.h>.
90654         (GETACLCNT): Move fallback to lib/acl-internal.h.
90655         * lib/acl-internal.h: Include <sys/acl.h> here.
90656         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
90658 2008-05-22  Bruno Haible  <bruno@clisp.org>
90660         Split off copy_acl function to separate file.
90661         * lib/copy-acl.c: New file, extracted from lib/acl.c.
90662         * lib/acl.c (copy_acl): Moved function to separate file.
90663         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
90664         * modules/acl (Files): Add lib/copy-acl.c.
90665         (Makefiles.am): Augment lib_SOURCES.
90667 2008-05-22  Bruno Haible  <bruno@clisp.org>
90669         * modules/copy-file-tests: New file.
90670         * tests/test-copy-file.sh: New file.
90671         * tests/test-copy-file.c: New file.
90672         * tests/test-copy-file-sameacls.c: New file.
90674 2008-05-22  Eric Blake  <ebb9@byu.net>
90676         Avoid gcc warning.
90677         * tests/test-memcmp.c (main): Pass NULL indirectly.
90679 2008-05-21  Bruno Haible  <bruno@clisp.org>
90681         Add reference doc about ACLs.
90682         * doc/acl-resources.txt: New file.
90683         * doc/acl-cygwin.txt: New file.
90685 2008-05-21  Bruno Haible  <bruno@clisp.org>
90687         Avoid one more warning from gcc.
90688         * lib/vasnprintf.c (IF_LINT): Update comments.
90689         (VASNPRINTF): Use it also for the 'prefix' array initializer.
90691 2008-05-21  Jim Meyering  <meyering@redhat.com>
90693         avoid a warning from gcc
90694         * lib/vasnprintf.c (IF_LINT): Define.
90695         (scale10_round_decimal_long_double):
90696         Use it to avoid a "may be used uninitialized" warning.
90697         (scale10_round_decimal_double): Likewise.
90699 2008-05-21  Simon Josefsson  <simon@josefsson.org>
90701         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
90702         declared.
90704 2008-05-20  Bruno Haible  <bruno@clisp.org>
90706         * tests/test-memcmp.c (main): Test also the sign of the result. Test
90707         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
90709 2008-05-20  Simon Josefsson  <simon@josefsson.org>
90711         * modules/memcmp-tests: New file.
90712         * tests/test-memcmp.c: New file.
90714 2008-05-19  Bruno Haible  <bruno@clisp.org>
90716         * modules/propername (Notice, configure.ac): Put quoted "..." into
90717         --keyword option.
90718         * lib/propername.h: Update comments accordingly.
90719         Reported by Eric Blake.
90721 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
90723         * modules/getpass-gnu (Depends-on): Add fseeko.
90725 2008-05-19  Simon Josefsson  <simon@josefsson.org>
90727         * modules/base64-tests: New file.
90729 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
90731         * lib/base64.c (base64_decode_ctx): If a decode context structure
90732         was passed in use it to ignore newlines.  If a context structure
90733         was _not_ passed in, continue to treat newlines as garbage (this
90734         is the historical behavior).  Formerly base64_decode.
90735         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
90736         takes a decode context structure.
90737         * lib/base64.h (base64_decode): Macro for four-argument calls.
90738         (base64_decode_alloc): Likewise.
90739         * lib/base64.c (base64_decode_ctx): If a decode context structure
90740         was passed in use it to ignore newlines.  If a context structure
90741         was _not_ passed in, continue to treat newlines as garbage (this
90742         is the historical behavior).  Formerly base64_decode.
90743         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
90744         takes a decode context structure.
90745         * lib/base64.h (base64_decode): Macro for four-argument calls.
90746         (base64_decode_alloc): Likewise.
90748 2008-05-19  Jim Meyering  <meyering@redhat.com>
90750         avoid a warning from gcc
90751         * lib/trim.c (IF_LINT): Define.
90752         (trim2): Use it to avoid a "may be used uninitialized" warning.
90754         Fix doc typo.
90755         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
90757 2008-05-19  Bruno Haible  <bruno@clisp.org>
90759         * doc/glibc-functions/getpass.texi: Document limits of other
90760         implementations.
90762 2008-05-19  Simon Josefsson  <simon@josefsson.org>
90763             Bruno Haible <bruno@clisp.org>
90765         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
90767 2008-05-18  Bruno Haible  <bruno@clisp.org>
90769         * modules/propername: New file, from GNU gettext.
90770         * lib/propername.h: New file, from GNU gettext.
90771         * lib/propername.c: New file, from GNU gettext.
90772         * MODULES.html.sh (Internationalization functions): Add propername.
90774 2008-05-16  Jim Meyering  <meyering@redhat.com>
90775             Bruno Haible  <bruno@clisp.org>
90777         Avoid some warnings from "gcc -Wshadow".
90778         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
90780 2008-05-15  Eric Blake  <ebb9@byu.net>
90782         Extend previous patch to cygwin 1.7.0.
90783         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
90784         fast implementation in cygwin >= 1.7.0.
90785         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
90786         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
90788 2008-05-15  Bruno Haible  <bruno@clisp.org>
90790         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
90791         implementation in glibc >= 2.9.
90792         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
90793         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
90795 2008-05-15  Bruno Haible  <bruno@clisp.org>
90797         * MODULES.html.sh (Internationalization functions): Remove linebreak.
90798         (Unicode string functions): Add unilbrk/*.
90799         Reported by Karl Berry.
90801 2008-05-15  Eric Blake  <ebb9@byu.net>
90803         Fix violation of <stdbool.h> replacement in regex.
90804         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
90805         * lib/regexec.c (re_search_internal): Likewise.
90806         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
90808 2008-05-15  Jim Meyering  <meyering@redhat.com>
90810         avoid distracting test output when git or cvs is not found
90811         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
90812         * tests/test-vc-list-files-git.sh: Likewise.
90814 2008-05-15  Eric Blake  <ebb9@byu.net>
90816         Glibc finally accepted the memmem speedup code, bugzilla #5514.
90817         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
90818         glibc version.
90819         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
90820         * doc/posix-functions/strstr.texi (strstr): Likewise.
90821         * lib/str-two-way.h (MAX): Sychronize with glibc.
90823 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
90825         * lib/regcomp.c (optimize_utf8): Add a note on why we test
90826         opr.ctx_type.
90827         (calc_first): Initialize constraint field.
90828         (duplicate_node_closure): Use it instead of special casing ANCHORS.
90829         Fix grammar.
90830         (duplicate_node): Merge constraint field for all node types.
90831         (calc_eclosure_iter): Look at constraint field for all node types.
90832         * lib/regex_internal.c (create_cd_newstate): Don't look at
90833         opr.ctx_type.
90835 2008-05-14  Bruno Haible  <bruno@clisp.org>
90837         Help GCC to do better code generation.
90838         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
90839         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
90840         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
90841         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
90842         Declare with attribute 'malloc' if supported.
90844 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
90846         use "echo STR|wc -c" rather than unportable "expr length STR"
90847         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
90848         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
90850 2008-05-14  Jim Meyering  <meyering@redhat.com>
90852         use dd ibs=$n count=1 ... rather than less-portable head -c$n
90853         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
90854         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
90855         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
90856         via Collin Lasse.
90858 2008-05-14  Eric Blake  <ebb9@byu.net>
90860         Avoid quadratic growth in gl_LIBSOURCES.
90861         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
90862         Suggested by Bruno Haible.
90864         Test xmemdup0.
90865         * modules/xmemdup0-tests: New file.
90866         * tests/test-xmemdup0.c: Likewise.
90868 2008-05-13  Eric Blake  <ebb9@byu.net>
90870         Split xmemdup0 into its own module.
90871         * modules/xmemdup0: New file.
90872         * lib/xmemdup0.h: Likewise.
90873         * lib/xmemdup0.c: Likewise.
90874         * MODULES.html.sh (Memory management functions): Add xmemdup0.
90875         * lib/xalloc.h (xmemdup0): Remove.
90876         * lib/xmalloc.c (xmemdup0): Likewise.
90878 2008-05-13  Eric Blake  <ebb9@byu.net>
90879             Bruno Haible  <bruno@clisp.org>
90881         Reduce number of forks required during autoconf.
90882         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
90883         and gl_LIBSOURCES_DIR.
90884         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
90885         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
90886         m4_syscmd per file.
90887         <m4_foreach_w>: Move...
90888         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
90890 2008-05-13  Eric Blake  <ebb9@byu.net>
90892         * gnulib-tool: Fix various comment typos.
90894 2008-05-12  Bruno Haible  <bruno@clisp.org>
90896         Tailor the linebreaking algorithm.
90897         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
90899 2008-05-12  Bruno Haible  <bruno@clisp.org>
90901         Update to Unicode 5.0.0.
90902         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
90903         LBP_JV, LBP_JT. Redistribute values.
90904         (unilbrk_table): Change size.
90905         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
90906         Unicode TR#14 rev. 22.
90907         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
90908         LBP_JV, LBP_JT. Redistribute values.
90909         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
90910         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
90911         Update.
90912         * lib/unilbrk/lbrkprop1.h: Regenerated.
90913         * lib/unilbrk/lbrkprop2.h: Regenerated.
90914         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
90915         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
90916         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
90917         Likewise.
90918         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
90919         Likewise.
90920         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
90921         result.
90922         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
90923         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
90924         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
90925         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
90926         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
90927         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
90929 2008-05-11  Bruno Haible  <bruno@clisp.org>
90931         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
90933 2008-05-11  Bruno Haible  <bruno@clisp.org>
90935         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
90936         * modules/unilbrk/gen-lbrk: New file.
90938 2008-05-11  Bruno Haible  <bruno@clisp.org>
90940         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
90941         * m4/sha512.m4 (gl_SHA512): Likewise.
90943 2008-05-11  Jim Meyering  <meyering@redhat.com>
90945         New modules: crypto/sha256, crypto/sha512 (from coreutils)
90946         * modules/crypto/sha256: New file.
90947         * modules/crypto/sha512: Likewise.
90948         * lib/sha256.c: Likewise.
90949         * lib/sha256.h: Likewise.
90950         * lib/sha512.c: Likewise.
90951         * lib/sha512.h: Likewise.
90952         * lib/u64.h: Likewise.
90953         * m4/sha256.m4: Likewise.
90954         * m4/sha512.m4: Likewise.
90955         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
90957 2008-05-10  Bruno Haible  <bruno@clisp.org>
90959         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
90960         (Input/Output <stdio.h>): Add xprintf.
90961         (Signal handling <signal.h>): Add strsignal.
90962         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
90963         (Core language properties): Add func.
90964         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
90965         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
90966         strings.
90967         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
90968         (Input/output): New section.
90969         (File system functions): Add openat-die, stat-macros.
90970         (Networking functions): Add sockets.
90971         (Unicode string functions): Add unictype/*.
90972         (Support for building libraries and executables): Add gperf.
90973         (Support for building documentation): Add agpl-3.0.
90974         (Misc): Add nocrash.
90976 2008-05-10  Bruno Haible  <bruno@clisp.org>
90978         * modules/unictype/gen-ctype: New file.
90980 2008-05-10  Jim Meyering  <meyering@redhat.com>
90982         Make chdir-safer.c more efficient on a system with no symlinks.
90983         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
90984         also if ELOOP is zero.  Suggested by Bruno Haible.
90986         Make chdir-safer.c slightly safer.
90987         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
90988         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
90990         Avoid compile failure on systems without ELOOP (like mingw).
90991         * lib/chdir-safer.c (ELOOP): Define if not already defined.
90992         Reported by Bruno Haible.
90994 2008-05-10  Bruno Haible  <bruno@clisp.org>
90996         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
90997         (is_utf8_encoding): Use a case-insensitive comparison.
90998         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
90999         streq.
91001 2008-05-10  Bruno Haible  <bruno@clisp.org>
91003         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
91004         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
91005         * lib/unilbrk/ulc-common.h (iconv_string_length,
91006         iconv_string_keeping_offsets): Remove declarations.
91007         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
91008         Don't include <iconv.h>, streq.h, xsize.h.
91009         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
91010         conversion.
91011         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
91012         <iconv.h>, streq.h, xsize.h.
91013         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
91014         conversion.
91015         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
91016         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
91017         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
91018         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
91020 2008-05-10  Bruno Haible  <bruno@clisp.org>
91022         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
91023         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
91025         * modules/unilbrk/u32-width-linebreaks-tests: New file.
91026         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
91028         * modules/unilbrk/u16-width-linebreaks-tests: New file.
91029         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
91031         * modules/unilbrk/u8-width-linebreaks-tests: New file.
91032         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
91034         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
91035         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
91037         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
91038         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
91040         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
91041         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
91043         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
91044         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
91046 2008-05-10  Bruno Haible  <bruno@clisp.org>
91048         Split up 'linebreak' module.
91049         * lib/unilbrk.h: New file, based on lib/linebreak.h.
91050         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
91051         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
91052         modifications.
91053         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
91054         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
91055         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
91056         lib/linebreak.c.
91057         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
91058         lib/linebreak.c.
91059         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
91060         lib/linebreak.c.
91061         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
91062         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
91063         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
91064         lib/linebreak.c.
91065         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
91066         lib/linebreak.c.
91067         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
91068         lib/linebreak.c.
91069         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
91070         lib/linebreak.c.
91071         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
91072         lib/linebreak.c.
91073         * modules/unilbrk/base: New file.
91074         * modules/unilbrk/tables: New file.
91075         * modules/unilbrk/u8-possible-linebreaks: New file.
91076         * modules/unilbrk/u16-possible-linebreaks: New file.
91077         * modules/unilbrk/u32-possible-linebreaks: New file.
91078         * modules/unilbrk/ulc-common: New file.
91079         * modules/unilbrk/ulc-possible-linebreaks: New file.
91080         * modules/unilbrk/u8-width-linebreaks: New file.
91081         * modules/unilbrk/u16-width-linebreaks: New file.
91082         * modules/unilbrk/u32-width-linebreaks: New file.
91083         * modules/unilbrk/ulc-width-linebreaks: New file.
91084         * lib/linebreak.h: Remove file.
91085         * lib/linebreak.c: Remove file.
91086         * m4/linebreak.m4: Remove file.
91087         * modules/linebreak: Remove file.
91088         * NEWS: Mention the changes.
91090 2008-05-09  Eric Blake  <ebb9@byu.net>
91092         Add xmemdup0.
91093         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
91094         implementation.
91095         * lib/xmalloc.c (xmemdup0): New C implementation.
91097 2008-05-08  Bruno Haible  <bruno@clisp.org>
91099         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
91101 2008-05-07  Eric Blake  <ebb9@byu.net>
91103         Support cross-compilation of <wctype.h>.
91104         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
91105         AC_CACHE_CHECK.
91107 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
91109         * build-aux/vc-list-files: Add support for bzr.
91111 2008-05-03  Jim Meyering  <meyering@redhat.com>
91113         avoid failed assertion with tight malloc
91114         * tests/test-getndelim2.c: Correct an off-by-one assertion.
91116 2008-05-03  Simon Josefsson  <simon@josefsson.org>
91118         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
91119         are needed from arpa/inet.h.
91120         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
91121         Reported by Bruno Haible.
91123 2008-05-02  Jim Meyering  <meyering@redhat.com>
91125         avoid compilation error on FreeBSD 6
91126         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
91128 2008-05-01  Jim Meyering  <meyering@redhat.com>
91130         useless-if-before-free: correct --help's exit status description
91131         * build-aux/useless-if-before-free (usage): Like grep, exit 0
91132         for one or more matches, etc.  Reported by Bruno Haible.
91134         vc-list-files: make the stand-alone gnulib test work
91135         * modules/vc-list-files-tests (configure.ac):
91136         Define and AC_SUBST abs_aux_dir.
91137         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
91138         $(abs_top_srcdir) to each script and having each of them
91139         duplicate the work of setting PATH, set PATH here, using
91140         the new variable, abs_aux_dir instead.
91141         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
91142         * tests/test-vc-list-files-git.sh: Likewise.
91143         Reported by Bruno Haible.
91145 2008-05-01  Bruno Haible  <bruno@clisp.org>
91147         * lib/getndelim2.c (getndelim2): Fix newsize computation during
91148         reallocation. Rename 'done' to 'found_delimiter'.
91150 2008-05-01  Jim Meyering  <meyering@redhat.com>
91152         vc-list-files: accommodate /bin/sh like the one from Solaris 10
91153         * build-aux/vc-list-files: Use `...`, not $(...).
91155 2008-04-30  Jim Meyering  <meyering@redhat.com>
91157         add tests for vc-list-files
91158         * modules/vc-list-files-tests: New module.
91159         * tests/test-vc-list-files-cvs.sh: New file.
91160         * tests/test-vc-list-files-git.sh: New file.
91162         avoid a warning from gcc
91163         * lib/getndelim2.c (IF_LINT): Define.
91164         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
91166         vc-list-files: work properly with build-aux/cvsu, too
91167         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
91168         to all cvs-based clauses.
91170         vc-list-files: work properly in the CVS+awk case, too
91171         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
91173         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
91174         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
91175         take more than one file argument, so .  Add quotes, just in case $dir
91176         ever contains a shell meta-character.  Prompted by Soren Hansen in
91177         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
91179 2008-04-29  Eric Blake  <ebb9@byu.net>
91181         Optimize getndelim2 to use block operations when possible.
91182         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
91183         freadseek, and memchr2.
91184         * lib/getndelim2.c (getndelim2): Use them for block reads.
91186 2008-04-29  Bruno Haible  <bruno@clisp.org>
91188         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
91189         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
91190         * modules/inet_ntop (Depends-on): Add extensions.
91191         * modules/inet_pton (Depends-on): Likewise.
91192         Reported by Simon Josefsson.
91194 2008-04-29  Jim Meyering  <meyering@redhat.com>
91196         When the is more than one match in a block, match all of them.
91197         * build-aux/useless-if-before-free: Iterate through each block
91198         until there are no more matches.
91200         Fix broken useless-if-before-free script.
91201         * build-aux/useless-if-before-free: Fix typo: missing "?" after
91202         the expression to match cast of argument to free-like function.
91204 2008-04-29  Eric Blake  <ebb9@byu.net>
91206         Use new header.
91207         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
91209 2008-04-29  Jim Meyering  <meyering@redhat.com>
91211         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
91212         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
91213         by gnulib to exist and to declare e.g., inet_ntop.
91214         Don't include "inet_ntop.h", now removed.
91216         * m4/arpa_inet_h.m4: Remove trailing blanks.
91218 2008-04-29  Eric Blake  <ebb9@byu.net>
91220         Silence valgrind on safe reads beyond potential array bounds.
91221         * lib/rawmemchr.valgrind: New file.
91222         * lib/strchrnul.valgrind: Likewise.
91223         * modules/rawmemchr (Files): Distribute new file.
91224         * modules/strchrnul (Files): Likewise.
91225         Suggested by Bruno Haible.
91227 2008-04-29  Bruno Haible  <bruno@clisp.org>
91229         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
91230         (inet_ntop, inet_pton): Change portability warning's wording.
91231         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
91232         Invoke gl_CHECK_NEXT_HEADERS.
91233         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
91234         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
91235         set ARPA_INET_H.
91236         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
91237         * modules/arpa_inet (Description): No longer only for systems that
91238         lack it.
91239         (Depends-on): Add include_next.
91240         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
91241         HAVE_ARPA_INET_H.
91243 2008-04-29  Jim Meyering  <meyering@redhat.com>
91245         * modules/mkdir (License): Re-license as LGPLv2+.
91247 2008-04-29  Bruno Haible  <bruno@clisp.org>
91249         * modules/rawmemchr (Maintainer): Set to Eric.
91250         * modules/strchrnul (Maintainer): Likewise.
91252 2008-04-29  Simon Josefsson  <simon@josefsson.org>
91254         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
91255         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
91257         * modules/arpa_inet (arpa/inet.h): Use them.
91259 2008-04-28  Eric Blake  <ebb9@byu.net>
91261         Test getndelim2.
91262         * modules/getndelim2-tests: New file.
91263         * tests/test-getndelim2.c: Likewise.
91264         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
91265         stream.
91266         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
91268         * MODULES.html.sh: Document new module.
91270 2008-04-20  Bruno Haible  <bruno@clisp.org>
91272         * lib/c-stack.c (die): Use raise.
91273         * modules/c-stack (Depends-on): Add raise.
91275 2008-04-28  Bruno Haible  <bruno@clisp.org>
91277         Expect rpmatch to be declared.
91278         * lib/yesno.c (rpmatch): Remove declaration.
91280         Declare rpmatch.
91281         * lib/stdlib.in.h (rpmatch): New declaration.
91282         * lib/rpmatch.c: Include <stdlib.h> first.
91283         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
91284         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
91285         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
91286         HAVE_RPMATCH.
91287         * modules/rpmatch (Depends-on): Add stdlib, extensions.
91288         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
91289         (Include): Set to <stdlib.h>.
91290         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
91291         HAVE_RPMATCH.
91292         * NEWS: Document the change.
91294 2008-04-28  Bruno Haible  <bruno@clisp.org>
91296         Change rpmatch to use nl_langinfo when appropriate.
91297         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
91298         (N_): New macro.
91299         (localized_pattern): New function/macro.
91300         (try): Remove match, nomatch arguments. Copy the pattern into safe
91301         memory before caching it.
91302         (rpmatch): Use localized_pattern. Add translator comments.
91303         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
91304         Suggested by Eric Blake.
91305         * modules/rpmatch (Depends-on): Add stdbool.
91307 2008-04-28  Eric Blake  <ebb9@byu.net>
91309         Add rawmemchr module, matching glibc.
91310         * modules/string (Makefile.am): New indicator.
91311         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
91312         * lib/string.in.h (rawmemchr): Declare when appropriate.
91313         * modules/rawmemchr: New file.
91314         * m4/rawmemchr.m4: Likewise.
91315         * lib/rawmemchr.c: Likewise.
91316         * modules/rawmemchr-tests: Likewise.
91317         * tests/test-rawmemchr.c: Likewise.
91318         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
91319         module.
91320         * modules/strchrnul (Depends-on): Add rawmemchr.
91321         * lib/strchrnul.c (strchrnul): Optimize a corner case.
91323         Whitespace cleanup.
91324         * tests/test-strchrnul.c: Reindent.
91325         * lib/strchrnul.c: Likewise.
91327         Optimize and test strchrnul.
91328         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
91329         * modules/strchrnul-tests: New file.
91330         * tests/test-strchrnul.c: Likewise.
91332         Remove intprops dependency.
91333         * modules/memchr (Depends-on): Remove intprops.
91334         * modules/memrchr (Depends-on): Likewise.
91335         * modules/memchr2 (Depends-on): Likewise.
91336         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
91337         * lib/memrchr.c (__memrchr): Likewise.
91338         * lib/memrchr2.c (memchr2): Likewise.
91339         Reported by Simon Josefsson.
91341 2008-04-28  Simon Josefsson  <simon@josefsson.org>
91343         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
91344         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
91346 2008-04-28  Simon Josefsson  <simon@josefsson.org>
91348         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
91350         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
91352         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
91354         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
91355         declarations.
91356         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
91358         * m4/inet_pton.m4: Don't check for header files.
91360         * m4/inet_ntop.m4: Don't check for header files.
91362 2008-04-28  Simon Josefsson  <simon@josefsson.org>
91364         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
91365         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
91366         trigger for cygwin).
91367         Reported by Bruno Haible  <bruno@clisp.org>.
91369 2008-04-28  Bruno Haible  <bruno@clisp.org>
91371         * doc/posix-functions/strdup.texi: Mention mingw problem.
91373 2008-04-27  Bruno Haible  <bruno@clisp.org>
91375         * modules/stat-time-tests (Depends-on): Add sleep.
91376         * tests/test-stat-time.c (force_unlink): New function.
91377         (cleanup): Use it.
91378         (test_mtime): Remove the ctime related tests.
91379         (test_ctime): New function, containing the ctime related tests.
91380         (main): Call test_ctime, except on native Windows platforms.
91382 2008-04-27  Bruno Haible  <bruno@clisp.org>
91384         * lib/rpmatch.c (rpmatch): Add some comments.
91385         Reported by James Youngman <jay@gnu.org>.
91387 2008-04-27  Bruno Haible  <bruno@clisp.org>
91389         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
91390         quiet NaNs.
91392 2008-04-27  Bruno Haible  <bruno@clisp.org>
91394         Make test-yesno.sh work on mingw.
91395         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
91396         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
91397         (main): Set stdin to binary mode.
91398         * modules/yesno-tests (Depends-on): Add binary-io.
91400 2008-04-27  Bruno Haible  <bruno@clisp.org>
91402         Fix 'isfinite' on x86, x86_64, ia64 platforms.
91403         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
91404         argument that lie outside the IEEE 854 domain.
91405         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
91406         (gl_ISFINITE): Use it.
91407         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
91409 2008-04-27  Bruno Haible  <bruno@clisp.org>
91411         Allow local renaming in config.h.
91412         * lib/memrchr.c (memrchr): Don't undefine outside libc.
91414 2008-04-27  Bruno Haible  <bruno@clisp.org>
91416         * lib/memchr.c (__memchr): Change type of 'i'.
91417         * lib/memchr2.c (memchr2): Likewise.
91419 2008-04-26  Eric Blake  <ebb9@byu.net>
91420         and Bruno Haible  <bruno@clisp.org>
91422         Optimize and test memrchr.
91423         * modules/memrchr (Depends-on): Add intprops.
91424         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
91425         * modules/memrchr-tests: New file.
91426         * tests/test-memrchr.c: New file.
91428 2008-04-26  Bruno Haible  <bruno@clisp.org>
91430         Add tentative support for DragonFly BSD.
91431         * lib/stdio-impl.h: Add macros for DragonFly BSD.
91432         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
91433         fp.
91434         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
91435         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
91436         * lib/fpurge.c (fpurge): Likewise.
91437         * lib/freadable.c (freaadable): Likewise.
91438         * lib/freadahead.c (freadahead): Likewise.
91439         * lib/freading.c (freading): Likewise.
91440         * lib/freadptr.c (freadptr): Likewise.
91441         * lib/freadseek.c (freadptrinc): Likewise.
91442         * lib/fseeko.c (fseeko): Likewise.
91443         * lib/fseterr.c (fseterr): Likewise.
91444         * lib/fwritable.c (fwritable): Likewise.
91445         * lib/fwriting.c (fwriting): Likewise.
91447 2008-04-26  Bruno Haible  <bruno@clisp.org>
91449         * lib/stdio-impl.h: New file.
91450         * lib/fbufmode.c: Include stdio-impl.h.
91451         (fbufmode): Use fp_, remove redundant #defines.
91452         * lib/fflush.c: Include stdio-impl.h.
91453         (clear_ungetc_buffer): Remove redundant #defines.
91454         * lib/fpurge.c: Include stdio-impl.h.
91455         (fpurge): Remove redundant #defines.
91456         * lib/freadable.c: Include stdio-impl.h.
91457         (freadable): Remove redundant #defines.
91458         * lib/freadahead.c: Include stdio-impl.h.
91459         (freadahead): Remove redundant #defines.
91460         * lib/freading.c: Include stdio-impl.h.
91461         (freading): Remove redundant #defines.
91462         * lib/freadptr.c: Include stdio-impl.h.
91463         (freadptr): Remove redundant #defines.
91464         * lib/freadseek.c: Include stdio-impl.h.
91465         (freadptrinc): Remove redundant #defines.
91466         * lib/fseeko.c: Include stdio-impl.h.
91467         (rpl_fseeko): Remove redundant #defines.
91468         * lib/fseterr.c: Include stdio-impl.h.
91469         (fseterr): Remove redundant #defines.
91470         * lib/fwritable.c: Include stdio-impl.h.
91471         (fwritable: Remove redundant #defines.
91472         * lib/fwriting.c: Include stdio-impl.h.
91473         (fwriting): Remove redundant #defines.
91474         * modules/fbufmode (Files): Add lib/stdio-impl.h.
91475         * modules/fflush (Files): Likewise.
91476         * modules/fpurge (Files): Likewise.
91477         * modules/freadable (Files): Likewise.
91478         * modules/freadahead (Files): Likewise.
91479         * modules/freading (Files): Likewise.
91480         * modules/freadptr (Files): Likewise.
91481         * modules/freadseek (Files): Likewise.
91482         * modules/fseeko (Files): Likewise.
91483         * modules/fseterr (Files): Likewise.
91484         * modules/fwritable (Files): Likewise.
91485         * modules/fwriting (Files): Likewise.
91487 2008-04-26  Bruno Haible  <bruno@clisp.org>
91489         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
91490         restore_seek_optimization, update_fpos_cache): New functions, extracted
91491         from rpl_fflush.
91492         (rpl_fflush): Use them.
91493         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
91494         (gl_REPLACE_FFLUSH): Use it.
91496 2008-04-26  Bruno Haible  <bruno@clisp.org>
91498         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
91499         on Solaris.
91500         * tests/test-xstrtoimax.sh: Likewise.
91501         * tests/test-xstrtoumax.sh: Likewise.
91502         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
91504 2008-04-26  Bruno Haible  <bruno@clisp.org>
91506         * modules/memchr-tests: New file.
91507         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
91509 2008-04-26  Eric Blake  <ebb9@byu.net>
91510             Bruno Haible  <bruno@clisp.org>
91512         * lib/memchr.c: Include intprops.h.
91513         (__memchr): Optimize parallel detection of matching bytes. Rename local
91514         variables. Add explanatory comments.
91516 2008-04-26  Bruno Haible  <bruno@clisp.org>
91518         Fix module 'memchr', broken since 2000-10-28.
91519         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
91521 2008-04-26  Bruno Haible  <bruno@clisp.org>
91523         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
91524         comments.
91526 2008-04-25  Eric Blake  <ebb9@byu.net>
91528         Use native fstatat on cygwin 1.7.0.
91529         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
91530         first.
91532 2008-04-23  Eric Blake  <ebb9@byu.net>
91534         Improve memchr2 performance.
91535         * lib/memchr2.c (memchr2): Further optimize parallel detection of
91536         NUL bytes.
91537         * modules/memchr2 (Depends-on): Use intprops.h.
91539 2008-04-23  Simon Josefsson  <simon@josefsson.org>
91541         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
91542         an inline function instead of a CPP macro.  Patch by Ben Pfaff
91543         <blp@cs.stanford.edu>.
91545 2008-04-23  Simon Josefsson  <simon@josefsson.org>
91547         * lib/arpa_inet.in.h: New file.
91549         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
91550         (Makefile.am): Sed in substitute header file.
91552         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
91553         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
91555         * modules/inet_ntop (configure.ac): Use
91556         gl_ARPA_INET_MODULE_INDICATOR.
91558         * modules/inet_pton (configure.ac): Use
91559         gl_ARPA_INET_MODULE_INDICATOR.
91561 2008-04-22  Jim Meyering  <meyering@redhat.com>
91563         * modules/verify (License): Re-license as LGPLv2+.
91565 2008-04-22  Simon Josefsson  <simon@josefsson.org>
91567         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
91568         parameter to void* as per POSIX standard (MinGW uses char*).
91570 2008-04-21  Bruno Haible  <bruno@clisp.org>
91572         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
91573         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
91574         Define to replacements if REPLACE_ISWCNTRL is 1.
91575         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
91576         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
91577         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
91578         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
91579         what it fixes.
91580         * doc/posix-functions/iswalpha.texi: Likewise.
91581         * doc/posix-functions/iswblank.texi: Likewise.
91582         * doc/posix-functions/iswcntrl.texi: Likewise.
91583         * doc/posix-functions/iswdigit.texi: Likewise.
91584         * doc/posix-functions/iswgraph.texi: Likewise.
91585         * doc/posix-functions/iswlower.texi: Likewise.
91586         * doc/posix-functions/iswprint.texi: Likewise.
91587         * doc/posix-functions/iswpunct.texi: Likewise.
91588         * doc/posix-functions/iswspace.texi: Likewise.
91589         * doc/posix-functions/iswupper.texi: Likewise.
91590         * doc/posix-functions/iswxdigit.texi: Likewise.
91591         Reported by Alain Guibert.
91593 2008-04-21  Bruno Haible  <bruno@clisp.org>
91595         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
91596         Patch by Alain Guibert.
91598 2008-04-21  Bruno Haible  <bruno@clisp.org>
91600         Fix test failures on mingw.
91601         * tests/test-xstrtol.c (print_no_progname): New function.
91602         (main): Install it in error_print_progname hook.
91603         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
91604         * tests/test-xstrtoimax.sh: Likewise.
91605         * tests/test-xstrtoumax.sh: Likewise.
91607 2008-04-21  Bruno Haible  <bruno@clisp.org>
91609         Fix test failure on mingw.
91610         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
91612 2008-04-21  Bruno Haible  <bruno@clisp.org>
91614         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
91615         Actually assign a value.
91617 2008-04-20  Bruno Haible  <bruno@clisp.org>
91619         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
91620         take 2.
91621         * lib/canonicalize.c (canonicalize_file_name): Elide if the
91622         'canonicalize-lgpl' module is also used.
91623         * lib/canonicalize-lgpl.c: Undo last change.
91624         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
91626 2008-04-20  Bruno Haible  <bruno@clisp.org>
91628         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
91629         config.h. Provide _mkdir based fallback for mingw.
91630         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
91631         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
91632         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
91633         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
91634         rather than defining mkdir in config.h.
91635         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
91636         (gl_SYS_STAT_H_DEFAULTS): New macro.
91637         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
91638         HAVE_IO_H any more.
91639         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
91640         HAVE_DECL_MKDIR and HAVE_IO_H.
91642 2008-04-20  Bruno Haible  <bruno@clisp.org>
91644         * lib/isapipe.c: Port to native Windows platforms.
91646 2008-04-20  Bruno Haible  <bruno@clisp.org>
91648         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
91650 2008-04-21  Eric Blake  <ebb9@byu.net>
91652         Work around preprocessors that don't handle UINTMAX_MAX.
91653         * lib/memchr2.c (memchr2): Avoid embedded #if.
91654         Reported by Alain Guibert, fix suggested by Bruno Haible.
91656 2008-04-21  Simon Josefsson  <simon@josefsson.org>
91658         * doc/posix-functions/strftime.texi (strftime): Explain better
91659         Windows incompatibility.  Suggested by Micah Cowan
91660         <micah@cowan.name>.
91662 2008-04-20  Bruno Haible  <bruno@clisp.org>
91664         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
91665         unistr/u8-mblen.
91667 2008-04-20  Bruno Haible  <bruno@clisp.org>
91669         Fix test failure on platforms with non-GNU iconv.
91670         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
91671         (U_TO_U8): Use it, rather than u16_to_u8.
91672         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
91673         units at the end of the input string.
91674         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
91676 2008-04-20  Bruno Haible  <bruno@clisp.org>
91678         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
91679         when the resulting length is 0.
91680         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
91682 2008-04-20  Bruno Haible  <bruno@clisp.org>
91684         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
91685         works.
91686         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
91688 2008-04-20  Bruno Haible  <bruno@clisp.org>
91690         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
91691         * modules/tsearch-tests (configure.ac): Test for initstate function.
91693 2008-04-20  Bruno Haible  <bruno@clisp.org>
91695         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
91696         for nlink_t if missing.
91697         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
91699 2008-04-19  Bruno Haible  <bruno@clisp.org>
91701         Work around snprintf bug on Linux libc5.
91702         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
91703         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
91704         gl_SNPRINTF_SIZE1.
91705         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
91706         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
91707         that test failed.
91708         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
91709         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
91710         * modules/snprintf (Files): Add m4/printf.m4.
91711         * modules/vsnprintf (Files): Likewise.
91712         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
91713         * doc/posix-functions/vsnprintf.texi: Likewise.
91715 2008-04-19  Bruno Haible  <bruno@clisp.org>
91717         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
91718         from 0.0058 to less than 10^-7.
91720 2008-04-19  Bruno Haible  <bruno@clisp.org>
91722         Fix rounding when a precision is given.
91723         * lib/vasnprintf.c (is_borderline): New function.
91724         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
91725         9...9x.
91726         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
91727         %e, %g.
91728         * tests/test-vasprintf-posix.c (test_function): Likewise.
91729         * tests/test-snprintf-posix.h (test_function): Likewise.
91730         * tests/test-sprintf-posix.h (test_function): Likewise.
91731         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
91732         * tests/test-printf-posix.h (test_function): Likewise.
91733         * tests/test-printf-posix.output: Update.
91734         Reported by John Darrington <john@darrington.wattle.id.au> via
91735         Ben Pfaff <blp@cs.stanford.edu>.
91737 2008-04-18  Simon Josefsson  <simon@josefsson.org>
91739         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
91740         Suggested by Bruno Haible <bruno@clisp.org>.
91742 2008-04-17  Bruno Haible  <bruno@clisp.org>
91744         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
91745         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
91746         implementation.
91747         Patch by Bruce Merry <bmerry@gmail.com>.
91749 2008-04-17  Simon Josefsson  <simon@josefsson.org>
91751         * doc/posix-functions/strftime.texi (strftime): Mention that %e
91752         doesn't work under Windows.
91754 2008-04-16  Bruno Haible  <bruno@clisp.org>
91756         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
91757         New macros.
91758         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
91759         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
91760         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
91761         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
91762         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
91763         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
91764         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
91765         macros.
91766         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
91767         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
91768         Northern Sotho, Uighur.
91770 2008-04-16  Bruno Haible  <bruno@clisp.org>
91772         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
91773         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
91774         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
91775         Reported by Daniel Bergström <daniel@octocode.com>.
91777 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
91778             Bruno Haible  <bruno@clisp.org>
91780         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
91781         function.
91782         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
91783         New functions, mostly extracted from gl_locale_name_default.
91784         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
91786 2008-04-16  Eric Blake  <ebb9@byu.net>
91788         Adjust strtod detection to catch glibc 2.7 bug.
91789         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
91790         Reported by John Gatewood Ham.
91792 2008-04-16  Bruno Haible  <bruno@clisp.org>
91794         Add tentative support for Linux libc5.
91795         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
91796         * lib/fpurge.c (fpurge): Likewise.
91797         * lib/freadable.c (freadable): Likewise.
91798         * lib/freadahead.c (freadahead): Likewise.
91799         * lib/freading.c (freading): Likewise.
91800         * lib/freadptr.c (freadptr): Likewise.
91801         * lib/freadseek.c (freadptrinc): Likewise.
91802         * lib/fseeko.c (rpl_fseeko): Likewise.
91803         * lib/fseterr.c (fseterr): Likewise.
91804         * lib/fwritable.c (fwritable): Likewise.
91805         * lib/fwriting.c (fwriting): Likewise.
91806         Reported by Alain Guibert <alguibert+bts@free.fr>.
91808 2008-04-15  Bruno Haible  <bruno@clisp.org>
91810         * modules/mathl (configure.ac): Define module indicator.
91812 2008-04-15  Bruno Haible  <bruno@clisp.org>
91814         * lib/logl.c (logl): Remove unused variables.
91816 2008-04-15  Bruno Haible  <bruno@clisp.org>
91818         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
91819         fails.
91821 2008-04-15  Bruno Haible  <bruno@clisp.org>
91823         * lib/trim.c (trim2): Fix argument of isspace() macro.
91825 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
91827         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
91828         to 0.
91829         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
91831 2008-04-14  Bruno Haible  <bruno@clisp.org>
91833         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
91834         AC_LANG_PROGRAM argument.
91835         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
91836         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
91837         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
91838         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
91839         * m4/math_h.m4 (gl_MATH_H): Likewise.
91840         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
91841         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
91842         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
91843         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
91844         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
91845         * m4/regex.m4 (gl_REGEX): Likewise.
91846         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
91847         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
91848         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
91849         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
91850         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
91851         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
91852         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
91853         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
91855 2008-04-14  Jim Meyering  <meyering@redhat.com>
91857         test-strtod: fix typos: s/abs/fabs/
91858         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
91860 2008-04-13  Bruno Haible  <bruno@clisp.org>
91862         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
91863         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
91864         module is also used and while not building the reloc-wrapper.
91866 2008-04-13  Bruno Haible  <bruno@clisp.org>
91868         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
91870 2008-04-13  Bruno Haible  <bruno@clisp.org>
91872         Fix AIX compilation failure introduced on 2008-04-02.
91873         * tests/test-frexp.c (exp): Undefine before redefining.
91874         * tests/test-frexpl.c (exp): Likewise.
91876 2008-04-13  Bruno Haible  <bruno@clisp.org>
91878         Work around a HP-UX stdio bug.
91879         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
91880         * tests/test-ftello.c (main): Likewise.
91881         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
91882         * doc/posix-functions/ftello.texi: Likewise.
91884 2008-04-13  Bruno Haible  <bruno@clisp.org>
91886         Make test-signbit pass on HP-UX/hppa.
91887         * tests/test-signbit.c (minus_zerol): New variable.
91888         (test_signbitl): Use it.
91890 2008-04-13  Bruno Haible  <bruno@clisp.org>
91892         Make truncl work on OSF/1 4.0.
91893         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
91894         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
91895         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
91896         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
91897         HAVE_DECL_TRUNCL.
91898         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
91899         HAVE_DECL_TRUNCL.
91900         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
91902 2008-04-13  Bruno Haible  <bruno@clisp.org>
91904         * lib/unictype.h: Remove trailing comma from enumeration definitions.
91906 2008-04-13  Bruno Haible  <bruno@clisp.org>
91908         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
91909         expression, so as to avoid HP-UX 11 cc compiler bug.
91911 2008-04-13  Bruno Haible  <bruno@clisp.org>
91913         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
91915 2008-04-13  Bruno Haible  <bruno@clisp.org>
91917         * lib/git-merge-changelog.c: Remove empty declaration outside of
91918         functions.
91920 2008-04-13  Bruno Haible  <bruno@clisp.org>
91922         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
91924 2008-04-13  Bruno Haible  <bruno@clisp.org>
91926         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
91927         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
91928         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
91929         also if it exists but lacks definitions of the SHUT_* macros.
91930         * modules/sys_socket (Description): Update.
91931         Reported by Elbert Pol <e.pol@chello.nl>.
91933 2008-04-13  Bruno Haible  <bruno@clisp.org>
91935         * lib/localcharset.c (OS2): Don't redefine if already defined.
91936         Reported by Elbert Pol <e.pol@chello.nl>.
91938 2008-04-13  Bruno Haible  <bruno@clisp.org>
91940         * lib/binary-io.h [__EMX__]: Include <io.h>.
91941         Reported by Elbert Pol <e.pol@chello.nl>.
91943 2008-04-12  Bruno Haible  <bruno@clisp.org>
91945         * lib/fpucw.h: Enable the definitions also for x86_64.
91946         Needed for NetBSD/x86_64.
91947         Reported by Thomas Klausner <tk@giga.or.at>.
91949 2008-04-12  Bruno Haible  <bruno@clisp.org>
91951         * tests/test-strtod.c: Include isnand.h.
91952         (main): Use isnand instead of isnan.
91953         Reported by Jim Meyering.
91955 2008-04-12  Bruno Haible  <bruno@clisp.org>
91957         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
91958         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
91960 2008-04-12  Jim Meyering  <meyering@redhat.com>
91962         * m4/math_h.m4 (gl_MATH_H): Fix typos.
91964 2008-04-12  Bruno Haible  <bruno@clisp.org>
91966         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
91967         Reported by Elbert Pol <e.pol@chello.nl>.
91969 2008-04-12  Eric Blake  <ebb9@byu.net>
91971         Work around Solaris 10 math.h bug.
91972         * m4/math_h.m4 (gl_MATH_H): Check for bug.
91973         (gl_MATH_H_DEFAULTS): Set up default.
91974         * modules/math (Makefile.am): Replace new indicators.
91975         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
91976         * tests/test-math.c (main): Test this.
91977         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
91978         * doc/posix-headers/math.texi (math.h): Mention bug.
91979         Reported by Nelson H. F. Beebe and Jim Meyering.
91981 2008-04-11  Bruno Haible  <bruno@clisp.org>
91983         Adapt to future versions of Apple GCC.
91984         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
91985         Reported by Peter O'Gorman <peter@pogma.com>.
91987 2008-04-11  Bruno Haible  <bruno@clisp.org>
91989         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
91991 2008-04-11  Bruno Haible  <bruno@clisp.org>
91993         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
91995         * modules/getaddrinfo-tests (Makefile.am): Define
91996         test_getaddrinfo_LDADD.
91998 2008-04-11  Bruno Haible  <bruno@clisp.org>
92000         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
92001         (init): Fix syntax error.
92002         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
92003         is declared.
92005 2008-04-11  Bruno Haible  <bruno@clisp.org>
92007         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
92008         * modules/glob (Depends-on): Add stdbool.
92010 2008-04-11  Bruno Haible  <bruno@clisp.org>
92012         * lib/trim.c: Include <string.h>.
92014 2008-04-11  Eric Blake  <ebb9@byu.net>
92016         Avoid compile failure on OS/2.
92017         * lib/regex_internal.h (internal_function): Disable optimization
92018         on OS/2 (__EMX__), where it caused compiler error.
92019         Reported by Elbert Pol.
92021 2008-04-11  Bruno Haible  <bruno@clisp.org>
92023         Flush the standard error stream before aborting. Needed on mingw.
92024         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
92025         * tests/test-array_list.c (ASSERT): Likewise.
92026         * tests/test-array_oset.c (ASSERT): Likewise.
92027         * tests/test-avltree_list.c (ASSERT): Likewise.
92028         * tests/test-avltree_oset.c (ASSERT): Likewise.
92029         * tests/test-avltreehash_list.c (ASSERT): Likewise.
92030         * tests/test-binary-io.c (ASSERT): Likewise.
92031         * tests/test-byteswap.c (ASSERT): Likewise.
92032         * tests/test-c-ctype.c (ASSERT): Likewise.
92033         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
92034         * tests/test-c-strcasestr.c (ASSERT): Likewise.
92035         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
92036         * tests/test-c-strstr.c (ASSERT): Likewise.
92037         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
92038         * tests/test-canonicalize.c (ASSERT): Likewise.
92039         * tests/test-carray_list.c (ASSERT): Likewise.
92040         * tests/test-ceilf1.c (ASSERT): Likewise.
92041         * tests/test-ceilf2.c (ASSERT): Likewise.
92042         * tests/test-ceill.c (ASSERT): Likewise.
92043         * tests/test-count-one-bits.c (ASSERT): Likewise.
92044         * tests/test-fbufmode.c (ASSERT): Likewise.
92045         * tests/test-fflush2.c (ASSERT): Likewise.
92046         * tests/test-floorf1.c (ASSERT): Likewise.
92047         * tests/test-floorf2.c (ASSERT): Likewise.
92048         * tests/test-floorl.c (ASSERT): Likewise.
92049         * tests/test-fopen.c (ASSERT): Likewise.
92050         * tests/test-fpending.c (ASSERT): Likewise.
92051         * tests/test-fprintf-posix.c (ASSERT): Likewise.
92052         * tests/test-fpurge.c (ASSERT): Likewise.
92053         * tests/test-freadable.c (ASSERT): Likewise.
92054         * tests/test-freadahead.c (ASSERT): Likewise.
92055         * tests/test-freading.c (ASSERT): Likewise.
92056         * tests/test-freadptr.c (ASSERT): Likewise.
92057         * tests/test-freadptr2.c (ASSERT): Likewise.
92058         * tests/test-freadseek.c (ASSERT): Likewise.
92059         * tests/test-freopen.c (ASSERT): Likewise.
92060         * tests/test-frexp.c (ASSERT): Likewise.
92061         * tests/test-frexpl.c (ASSERT): Likewise.
92062         * tests/test-fseek.c (ASSERT): Likewise.
92063         * tests/test-fseeko.c (ASSERT): Likewise.
92064         * tests/test-fstrcmp.c (ASSERT): Likewise.
92065         * tests/test-ftell.c (ASSERT): Likewise.
92066         * tests/test-ftello.c (ASSERT): Likewise.
92067         * tests/test-func.c (ASSERT): Likewise.
92068         * tests/test-fwritable.c (ASSERT): Likewise.
92069         * tests/test-fwriting.c (ASSERT): Likewise.
92070         * tests/test-getdelim.c (ASSERT): Likewise.
92071         * tests/test-getline.c (ASSERT): Likewise.
92072         * tests/test-i-ring.c (ASSERT): Likewise.
92073         * tests/test-iconv-utf.c (ASSERT): Likewise.
92074         * tests/test-iconv.c (ASSERT): Likewise.
92075         * tests/test-isfinite.c (ASSERT): Likewise.
92076         * tests/test-isnand.c (ASSERT): Likewise.
92077         * tests/test-isnanf.c (ASSERT): Likewise.
92078         * tests/test-isnanl.h (ASSERT): Likewise.
92079         * tests/test-ldexpl.c (ASSERT): Likewise.
92080         * tests/test-linked_list.c (ASSERT): Likewise.
92081         * tests/test-linkedhash_list.c (ASSERT): Likewise.
92082         * tests/test-localename.c (ASSERT): Likewise.
92083         * tests/test-lseek.c (ASSERT): Likewise.
92084         * tests/test-mbscasecmp.c (ASSERT): Likewise.
92085         * tests/test-mbscasestr1.c (ASSERT): Likewise.
92086         * tests/test-mbscasestr2.c (ASSERT): Likewise.
92087         * tests/test-mbscasestr3.c (ASSERT): Likewise.
92088         * tests/test-mbscasestr4.c (ASSERT): Likewise.
92089         * tests/test-mbschr.c (ASSERT): Likewise.
92090         * tests/test-mbscspn.c (ASSERT): Likewise.
92091         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
92092         * tests/test-mbspbrk.c (ASSERT): Likewise.
92093         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
92094         * tests/test-mbsrchr.c (ASSERT): Likewise.
92095         * tests/test-mbsspn.c (ASSERT): Likewise.
92096         * tests/test-mbsstr1.c (ASSERT): Likewise.
92097         * tests/test-mbsstr2.c (ASSERT): Likewise.
92098         * tests/test-mbsstr3.c (ASSERT): Likewise.
92099         * tests/test-memchr2.c (ASSERT): Likewise.
92100         * tests/test-memmem.c (ASSERT): Likewise.
92101         * tests/test-open.c (ASSERT): Likewise.
92102         * tests/test-printf-frexp.c (ASSERT): Likewise.
92103         * tests/test-printf-frexpl.c (ASSERT): Likewise.
92104         * tests/test-printf-posix.c (ASSERT): Likewise.
92105         * tests/test-quotearg.c (ASSERT): Likewise.
92106         * tests/test-rbtree_list.c (ASSERT): Likewise.
92107         * tests/test-rbtree_oset.c (ASSERT): Likewise.
92108         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
92109         * tests/test-round1.c (ASSERT): Likewise.
92110         * tests/test-roundf1.c (ASSERT): Likewise.
92111         * tests/test-roundl.c (ASSERT): Likewise.
92112         * tests/test-signbit.c (ASSERT): Likewise.
92113         * tests/test-sleep.c (ASSERT): Likewise.
92114         * tests/test-snprintf-posix.c (ASSERT): Likewise.
92115         * tests/test-snprintf.c (ASSERT): Likewise.
92116         * tests/test-sprintf-posix.c (ASSERT): Likewise.
92117         * tests/test-stat-time.c (ASSERT): Likewise.
92118         * tests/test-strcasestr.c (ASSERT): Likewise.
92119         * tests/test-strerror.c (ASSERT): Likewise.
92120         * tests/test-striconv.c (ASSERT): Likewise.
92121         * tests/test-striconveh.c (ASSERT): Likewise.
92122         * tests/test-striconveha.c (ASSERT): Likewise.
92123         * tests/test-strsignal.c (ASSERT): Likewise.
92124         * tests/test-strstr.c (ASSERT): Likewise.
92125         * tests/test-strtod.c (ASSERT): Likewise.
92126         * tests/test-trunc1.c (ASSERT): Likewise.
92127         * tests/test-trunc2.c (ASSERT): Likewise.
92128         * tests/test-truncf1.c (ASSERT): Likewise.
92129         * tests/test-truncf2.c (ASSERT): Likewise.
92130         * tests/test-truncl.c (ASSERT): Likewise.
92131         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
92132         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
92133         * tests/test-vasnprintf.c (ASSERT): Likewise.
92134         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
92135         * tests/test-vasprintf.c (ASSERT): Likewise.
92136         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
92137         * tests/test-vprintf-posix.c (ASSERT): Likewise.
92138         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
92139         * tests/test-vsnprintf.c (ASSERT): Likewise.
92140         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
92141         * tests/test-wcwidth.c (ASSERT): Likewise.
92142         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
92143         * tests/test-xprintf-posix.c (ASSERT): Likewise.
92144         * tests/test-xvasprintf.c (ASSERT): Likewise.
92145         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
92146         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
92147         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
92148         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
92149         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
92150         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
92151         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
92152         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
92153         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
92154         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
92155         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
92156         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
92157         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
92158         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
92159         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
92160         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
92161         * tests/unictype/test-block_list.c (ASSERT): Likewise.
92162         * tests/unictype/test-block_of.c (ASSERT): Likewise.
92163         * tests/unictype/test-block_test.c (ASSERT): Likewise.
92164         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
92165         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
92166         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
92167         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
92168         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
92169         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
92170         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
92171         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
92172         * tests/unictype/test-combining.c (ASSERT): Likewise.
92173         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
92174         * tests/unictype/test-digit.c (ASSERT): Likewise.
92175         * tests/unictype/test-mirror.c (ASSERT): Likewise.
92176         * tests/unictype/test-numeric.c (ASSERT): Likewise.
92177         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
92178         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
92179         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
92180         * tests/unictype/test-scripts.c (ASSERT): Likewise.
92181         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
92182         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
92183         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
92184         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
92185         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
92186         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
92187         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
92188         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
92189         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
92190         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
92191         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
92192         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
92193         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
92194         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
92195         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
92196         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
92197         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
92198         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
92199         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
92200         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
92201         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
92202         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
92203         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
92204         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
92205         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
92206         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
92207         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
92208         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
92209         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
92210         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
92211         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
92212         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
92213         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
92214         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
92215         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
92216         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
92217         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
92218         Reported by Eric Blake.
92220 2008-04-11  Bruno Haible  <bruno@clisp.org>
92222         * lib/wchar.in.h: Tweak comment.
92224 2008-04-11  Bruno Haible  <bruno@clisp.org>
92226         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
92227         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
92228         gl_COMMON.
92229         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
92231 2008-04-11  Bruno Haible  <bruno@clisp.org>
92233         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
92235 2008-04-11  Simon Josefsson  <simon@josefsson.org>
92237         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
92238         of attempting to use non-existing /dev/*random.  Based on patch
92239         from Adam Strzelecki <ono@java.pl> in
92240         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
92242 2008-04-08  Bruno Haible  <bruno@clisp.org>
92244         Add tentative support for emx+gcc.
92245         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
92246         * lib/fpurge.c (fpurge): Likewise.
92247         * lib/freadable.c (freadable): Likewise.
92248         * lib/freadahead.c (freadahead): Likewise.
92249         * lib/freading.c (freading): Likewise.
92250         * lib/freadptr.c (freadptr): Likewise.
92251         * lib/freadseek.c (freadptrinc): Likewise.
92252         * lib/fseeko.c (rpl_fseeko): Likewise.
92253         * lib/fseterr.c (fseterr): Likewise.
92254         * lib/fwritable.c (fwritable): Likewise.
92255         * lib/fwriting.c (fwriting): Likewise.
92256         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
92258 2008-04-09  Eric Blake  <ebb9@byu.net>
92260         Avoid some autoconf warnings.
92261         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
92262         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
92263         * m4/afs.m4 (gl_AFS): Likewise.
92264         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
92265         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
92266         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
92267         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
92268         (gl_INTEGER_TYPE_SUFFIX): Likewise.
92269         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
92270         (AC_CHECK_DECLS_ONCE): Likewise.
92271         Rename file...
92272         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
92273         gnulib-tool requires autoconf 2.59 or better.
92274         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
92276 2008-04-08  Eric Blake  <ebb9@byu.net>
92278         Use 'git describe --match' if present (added in git 1.5.5).
92279         * build-aux/git-version-gen: Limit result to tags that match 'v*'
92280         if possible.
92282 2008-04-08  Bruno Haible  <bruno@clisp.org>
92284         Add tentative support for OpenServer.
92285         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
92286         _ptr, _cnt.
92287         * lib/fpurge.c (fpurge): Likewise.
92288         * lib/freadable.c (freadable): Likewise.
92289         * lib/freadahead.c (freadahead): Likewise.
92290         * lib/freading.c (freading): Likewise.
92291         * lib/freadptr.c (freadptr): Likewise.
92292         * lib/freadseek.c (freadptrinc): Likewise.
92293         * lib/fseeko.c (rpl_fseeko): Likewise.
92294         * lib/fseterr.c (fseterr): Likewise.
92295         * lib/fwritable.c (fwritable): Likewise.
92296         * lib/fwriting.c (fwriting): Likewise.
92297         Reported by Roger Cornelius <rac@tenzing.org> and
92298         Brian K. White <brian@aljex.com>.
92300 2008-04-06  Jim Meyering  <meyering@redhat.com>
92302         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
92304 2008-04-06  Bruno Haible  <bruno@clisp.org>
92306         Avoid possible error with non-ASCII bytes in UTF-8 locales.
92307         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
92308         * tests/test-printf-posix.sh: Likewise.
92309         * tests/test-vfprintf-posix.sh: Likewise.
92310         * tests/test-vprintf-posix.sh: Likewise.
92311         * tests/test-xprintf-posix.sh: Likewise.
92313 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92315         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
92316         hide error from 'ls', needed on OS/2.
92317         Report by Elbert Pol <elbert.pol@gmail.com>.
92319 2008-04-04  Eric Blake  <ebb9@byu.net>
92321         Make test-fseeko.c failures meaningful.
92322         * tests/test-fseeko.c: Print line number on failure.
92323         * tests/test-fseek.c: Likewise.
92324         Reported by Nelson H. F. Beebe.
92326         Improve strtod bug detection check.
92327         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
92328         required for Solaris 10.
92329         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
92331 2008-04-04  Bruno Haible  <bruno@clisp.org>
92333         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
92334         by m4/setenv.m4.
92336 2008-04-03  Eric Blake  <ebb9@byu.net>
92338         Ensure sane .version contents.
92339         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
92340         version string.
92341         * build-aux/git-version-gen: Improve documentation.
92343         Make GNU make output nicer.
92344         * top/GNUmakefile [!_have-Makefile]: Add dependency on
92345         MAKECMDGOALS to enforce message for all command line targets.  Set
92346         srcdir for use in maint.mk.
92348         Another maintainer tweak.
92349         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
92350         a target that regenerates version.
92352 2008-04-03  Jim Meyering  <meyering@redhat.com>
92354         vc-list-files: don't cause coreutils "make po-check" failure
92355         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
92357 2008-04-03  Eric Blake  <ebb9@byu.net>
92359         Allow VPATH usage of vc-list-files.
92360         * build-aux/vc-list-files (scriptversion): Add timestamp.
92361         (options): Add --help, --version, -C.
92362         (CVS): Support installed cvsu.
92364 2008-04-02  Bruno Haible  <bruno@clisp.org>
92366         Avoid some "statement with no effect" warnings from gcc.
92367         * tests/test-wctype.c (main): Explicitly ignore unused values.
92368         Reported by Jim Meyering.
92370 2008-04-02  Jim Meyering  <meyering@redhat.com>
92372         Avoid some warnings from "gcc -Wshadow".
92373         * tests/test-frexp.c (exp): Define to a different identifier.
92374         * tests/test-frexpl.c (exp): Likewise.
92376 2008-04-03  Jim Meyering  <meyering@redhat.com>
92378         bootstrap: remove dangling *.[ch] symlinks from lib
92379         * build-aux/bootstrap [dangling symlink removal]: Move find's
92380         -depth option to precede all others, to avoid a warning.
92381         Remove *.[ch] files too, and from "$source_base" (usually lib/).
92383 2008-04-02  Bruno Haible  <bruno@clisp.org>
92385         Avoid some warnings from "gcc -Wshadow".
92386         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
92387         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
92388         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
92389         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
92390         Reported by Jim Meyering.
92392 2008-04-01  Bruno Haible  <bruno@clisp.org>
92394         Fix test to work on IRIX 6.5 with cc.
92395         * tests/test-math.c (numeric_equal): New function.
92396         (main): Use it.
92398 2008-04-01  Bruno Haible  <bruno@clisp.org>
92400         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
92402 2008-04-01  Bruno Haible  <bruno@clisp.org>
92404         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
92405         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
92406         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
92407         (Depends-on): Remove math.
92409         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
92410         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
92411         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
92412         (Depends-on): Remove math.
92414         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
92415         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
92416         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
92417         (Depends-on): Remove math.
92418         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
92419         (Depends-on): Remove math.
92421         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
92422         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
92423         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
92424         (Depends-on): Remove math.
92425         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
92426         (Depends-on): Remove math.
92428         * tests/test-round1.c: Include nan.h.
92429         (main): Use NaNd instead of NAN.
92430         * modules/round-tests (Files): Add tests/nan.h.
92432         * tests/test-trunc1.c: Include nan.h.
92433         (main): Use NaNd instead of NAN.
92434         * modules/trunc-tests (Files): Add tests/nan.h.
92436         * tests/test-roundf1.c: Include nan.h.
92437         (main): Use NaNf instead of NAN.
92438         * modules/roundf-tests (Files): Add tests/nan.h.
92440         * tests/test-truncf1.c: Include nan.h.
92441         (main): Use NaNf instead of NAN.
92442         * modules/truncf-tests (Files): Add tests/nan.h.
92444         * tests/test-ceilf1.c: Include nan.h.
92445         (main): Use NaNf instead of NAN.
92446         * modules/ceilf-tests (Files): Add tests/nan.h.
92448         * tests/test-floorf1.c: Include nan.h.
92449         (main): Use NaNf instead of NAN.
92450         * modules/floorf-tests (Files): Add tests/nan.h.
92452         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
92453         (main): Use NaNf instead of NAN.
92454         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
92456         * tests/test-isnand.c: Include nan.h instead of <math.h>.
92457         (main): Use NaNd instead of NAN.
92458         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
92460         * tests/test-frexp.c: Include nan.h.
92461         (main): Use NaNd instead of NAN.
92462         * modules/frexp-tests (Files): Add tests/nan.h.
92464         * lib/isnan.c: Don't include <math.h>.
92465         (FUNC): Don't use NAN macro.
92466         * modules/isnand-nolibm (Depends-on): Remove math.
92467         * modules/isnanf-nolibm (Depends-on): Remove math.
92468         * modules/isnanl (Depends-on): Remove math.
92469         * modules/isnanl-nolibm (Depends-on): Remove math.
92471         * tests/nan.h: New file.
92473 2008-04-01  Eric Blake  <ebb9@byu.net>
92475         Fix typos.
92476         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
92477         values to be the right type.
92479         For now, cater to gnulib strtod inaccuracies.
92480         * tests/test-strtod.c (main): Allow 1-ulp error on expected
92481         fractional results.  While not as nice from a QoI perspective, it
92482         is a quicker patch than correctly implementing decimal to binary
92483         rounding.
92485 2008-03-31  Eric Blake  <ebb9@byu.net>
92487         Guarantee a definition of NAN.
92488         * lib/math.in.h (NAN): Define if missing.
92489         * tests/test-math.c (main): Test it.
92490         * doc/posix-headers/math.texi (math.h): Document this.
92491         * lib/isnan.c (rpl_isnand): Use it.
92492         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
92493         * tests/test-floorf1.c (NaN): Likewise.
92494         * tests/test-frexp.c (NaN): Likewise.
92495         * tests/test-isnand.c (NaN): Likewise.
92496         * tests/test-isnanf.c (NaN): Likewise.
92497         * tests/test-round1.c (NaN): Likewise.
92498         * tests/test-roundf1.c (NaN): Likewise.
92499         * tests/test-snprintf-posix.h (NaN): Likewise.
92500         * tests/test-sprintf-posix.h (NaN): Likewise.
92501         * tests/test-trunc1.c (NaN): Likewise.
92502         * tests/test-truncf1.c (NaN): Likewise.
92503         * tests/test-vasnprintf-posix.c (NaN): Likewise.
92504         * tests/test-vasprintf-posix.c (NaN): Likewise.
92505         * modules/isnand-nolibm (Depends-on): Add math.
92506         * modules/isnanf-nolibm (Depends-on): Likewise.
92507         * modules/isnanl (Depends-on): Likewise.
92508         * modules/isnanl-nolibm (Depends-on): Likewise.
92509         * modules/snprintf-posix-tests (Depends-on): Likewise.
92510         * modules/sprintf-posix-tests (Depends-on): Likewise.
92511         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
92512         * modules/vsprintf-posix-tests (Depends-on): Likewise.
92513         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
92514         * modules/vasprintf-posix-tests (Depends-on): Likewise.
92516 2008-03-31  Bruno Haible  <bruno@clisp.org>
92518         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
92519         * doc/posix-functions/strtod.texi: Likewise.
92521 2008-03-31  Bruno Haible  <bruno@clisp.org>
92523         * tests/test-strtod.c (main): Don't use C99 syntax.
92525 2008-03-31  Bruno Haible  <bruno@clisp.org>
92527         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
92528         Reported by Eric Blake.
92530 2008-03-31  Jim Meyering  <meyering@redhat.com>
92532         Don't compare actual signbit return values.
92533         * tests/test-strtod.c (main): Rather, compare only their
92534         zero/non-zero nature.
92536 2008-03-31  Eric Blake  <ebb9@byu.net>
92538         More strtod documentation.
92539         * doc/posix-functions/strtod.texi (strtod): Interpret more test
92540         failures as distinct bugs.
92542 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
92544         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
92545         Problem reported by Erik Benada in
92546         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
92548 2008-03-30  Bruno Haible  <bruno@clisp.org>
92550         * tests/test-strtod.c: Add comments about which assertion fails on which
92551         platform.
92552         * doc/posix-functions/strtod.texi: Add info about many more platforms.
92554 2008-03-30  Eric Blake  <ebb9@byu.net>
92556         Test signbit behavior on zeros.
92557         * tests/test-signbit.c (test_signbitf): Add tests for zero.
92558         (test_signbitd, test_signbitl): Likewise.
92560         More strtod touchups.
92561         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
92562         sign of negative underflow, for now.  Use .5, not .1.
92563         * doc/posix-functions/strtod.texi (strtod): Mention these
92564         limitations.
92565         Reported by Jim Meyering.
92567 2008-03-30  Bruno Haible  <bruno@clisp.org>
92569         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
92570         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
92572 2008-03-30  Bruno Haible  <bruno@clisp.org>
92574         Avoid failure when attempting to return empty iconv results on some
92575         platforms.
92576         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
92577         allocation, don't report ENOMEM when the resulting string is empty.
92579 2008-03-30  Bruno Haible  <bruno@clisp.org>
92581         Fix buffer overrun.
92582         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
92583         Don't consider the width for tmp_length. Check count against tmp_length
92584         before doing the padding. Ensure enough allocation during padding.
92586 2008-03-30  Eric Blake  <ebb9@byu.net>
92588         strtod touchups.
92589         * lib/strtod.c (strtod): Avoid compiler warnings.
92590         Reported by Jim Meyering.
92592 2008-03-30  Bruno Haible  <bruno@clisp.org>
92594         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
92595         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
92596         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
92597         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
92598         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
92599         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
92600         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
92601         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
92603         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
92604         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
92605         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
92606         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
92607         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
92608         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
92609         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
92610         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
92612         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
92613         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
92614         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
92615         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
92616         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
92617         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
92618         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
92619         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
92621         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
92622         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
92624         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
92625         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
92627         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
92628         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
92630         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
92631         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
92632         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
92634         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
92635         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
92636         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
92638         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
92639         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
92640         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
92642         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
92643         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
92644         * modules/vasprintf (Depends-on): Add EOVERFLOW.
92646         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
92647         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
92648         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
92649         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
92650         (Depends-on): Add EOVERFLOW.
92651         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
92652         (Depends-on): Add EOVERFLOW.
92653         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
92654         (Depends-on): Add EOVERFLOW.
92655         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
92656         (Depends-on): Add EOVERFLOW.
92657         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
92658         (Depends-on): Add EOVERFLOW.
92659         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
92660         (Depends-on): Add EOVERFLOW.
92661         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
92662         (Depends-on): Add EOVERFLOW.
92663         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
92664         (Depends-on): Add EOVERFLOW.
92666         * lib/sprintf.c (EOVERFLOW): Remove fallback.
92667         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
92668         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
92670         * lib/snprintf.c (EOVERFLOW): Remove fallback.
92671         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
92672         * modules/snprintf (Depends-on): Add EOVERFLOW.
92674         * lib/poll.c (EOVERFLOW): Remove fallback.
92675         * modules/poll (Depends-on): Add EOVERFLOW.
92677         * lib/getugroups.c (EOVERFLOW): Remove fallback.
92678         * modules/getugroups (Depends-on): Add EOVERFLOW.
92680         * lib/getdelim.c (EOVERFLOW): Remove fallback.
92681         * modules/getdelim (Depends-on): Add EOVERFLOW.
92683         * lib/ftell.c (EOVERFLOW): Remove fallback.
92684         * modules/ftell (Depends-on): Add EOVERFLOW.
92686         * lib/fprintf.c (EOVERFLOW): Remove fallback.
92687         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
92688         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
92690         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
92692         * modules/EOVERFLOW-tests: New file.
92693         * tests/test-EOVERFLOW.c: New file.
92695         * modules/EOVERFLOW: New file.
92696         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
92698 2008-03-30  Bruno Haible  <bruno@clisp.org>
92700         Fix bug introduced on 2007-06-10.
92701         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
92702         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
92704 2008-03-30  Bruno Haible  <bruno@clisp.org>
92706         Improve freadseek's efficiency after ungetc.
92707         * lib/freadseek.c: Include freadahead.h.
92708         (freadptrinc): New function, extracted from freadseek.
92709         (freadseek): Use it in a loop. Use freadahead to determine the number
92710         of loop iterations.
92711         * modules/freadseek (Depends-on): Add freadahead.
92712         (configure.ac): Require AC_C_INLINE.
92714 2008-03-30  Bruno Haible  <bruno@clisp.org>
92716         * lib/freadseek.c (freadseek): Don't ignore the return value of
92717         freadptr.
92719 2008-03-29  Eric Blake  <ebb9@byu.net>
92721         Add hex float support.
92722         * modules/strtod (Depends-on): Add c-ctype.
92723         (Link): Mention POW_LIB.
92724         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
92725         whitespace between 'e' and exponent.
92726         * tests/test-strtod.c (main): Enable hex float tests.
92727         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
92728         now provides.
92730         Document various strtod bugs, with some fixes.
92731         * doc/posix-functions/strtod.texi (strtod): Document bugs with
92732         "-0x", "inf", "nan", and hex constants.
92733         * doc/posix-functions/atof.texi (atof): Likewise.
92734         * modules/stdlib (Makefile.am): Support strtod.
92735         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
92736         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
92737         detect additional strtod bugs.
92738         * lib/stdlib.in.h (rpl_strtod): Add declarations.
92739         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
92740         bool where appropriate.  Parse 'inf' and 'nan'.
92741         * tests/test-strtod.c: New file.
92742         * modules/strtod (Depends-on): Add stdbool, stdlib.
92743         (configure.ac): Turn on module indicator.
92744         * modules/strtod-tests: New module.
92746 2008-03-29  Eric Blake  <ebb9@byu.net>
92748         Fix ftell on mingw.
92749         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
92750         * modules/ftell-tests (Depends-on): Add binary-io.
92751         * modules/ftello-tests (Depends-on): Likewise.
92752         * tests/test-ftell.c (main): Enhance test to cover behavior after
92753         ungetc.  Enforce binary mode.
92754         * tests/test-ftello.c (main): Likewise.
92756         Pass test-freadseek on cygwin.
92757         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
92758         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
92759         ungetc buffer.
92761         * tests/test-fflush2.c (main): Fix typo.
92763 2008-03-29  Bruno Haible  <bruno@clisp.org>
92765         * tests/test-fflush2.c (main): Temporarily disable the contents of
92766         this test.
92767         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
92768         Reported by Eric Blake.
92770 2008-03-28  Simon Josefsson  <simon@josefsson.org>
92772         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
92773         (GC_SHA224_DIGEST_SIZE): Add.
92775         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
92776         (gc_hash_digest_length): Likewise.
92777         (gc_hash_buffer): Likewise.
92779 2008-03-25  Bruno Haible  <bruno@clisp.org>
92781         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
92782         detail which gettext release to use.
92783         Reported by Simon Josefsson.
92785 2008-03-26  Jim Meyering  <meyering@redhat.com>
92787         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
92788         * modules/gnumakefile (clean-GNUmakefile): Also, use
92789         test ... && ... || : syntax rather than if-then ... fi.
92791         gnumakefile: Don't double-quote-expand $(VPATH) value.
92792         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
92794 2008-03-24  Eric Blake  <ebb9@byu.net>
92796         Alter GNUmakefile to install into top directory.
92797         * modules/maintainer-makefile: Split, and add dependency...
92798         * modules/gnumakefile: to this new module.
92799         * build-aux/GNUmakefile: Move...
92800         * top/GNUmakefile: ...here.
92801         * build-aux/maint.mk: Move...
92802         * top/maint.mk: ...here.
92803         * MODULES.html.sh (Support for maintaining...): Document new
92804         module.
92806 2008-03-23  Bruno Haible  <bruno@clisp.org>
92808         * gnulib-tool: New options --vc-files, --no-vc-files.
92809         (func_usage): Document them.
92810         (vc_files): New variable.
92811         (func_import): Consider vc_files.
92812         (func_create_testdir): Set vc_files to empty.
92813         Suggested by Jim Meyering and Karl Berry.
92815 2008-03-23  Bruno Haible  <bruno@clisp.org>
92817         Fix regex compilation error on HP-UX 11.
92818         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
92819         * modules/regex (Files): Add m4/mbstate_t.m4.
92820         Reported by Ton Voon <ton.voon@altinity.com>.
92822 2008-03-23  Bruno Haible  <bruno@clisp.org>
92824         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
92826 2008-03-23  Eric Blake  <ebb9@byu.net>
92827             Bruno Haible  <bruno@clisp.org>
92829         Install files from top/ in the destination directory.
92830         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
92831         augmentation also for the files from top/.
92832         (func_import, func_create_testdir): Rewrite file names:
92833         top/filename -> filename.
92835 2008-03-23  Bruno Haible  <bruno@clisp.org>
92837         Tweak "gnulib --version" output.
92838         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
92840 2008-03-23  Bruno Haible  <bruno@clisp.org>
92842         Tweak "gnulib --version" output.
92843         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
92844         rather than contents of ChangeLog, when possible.
92846 2008-03-21  Eric Blake  <ebb9@byu.net>
92848         More --version tweaks.
92849         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
92850         date of last ChangeLog entry.
92852 2008-03-21  Jim Meyering  <meyering@redhat.com>
92854         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
92856 2008-03-20  Eric Blake  <ebb9@byu.net>
92858         VPATH fix.
92859         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
92861 2008-03-20  Simon Josefsson  <simon@josefsson.org>
92863         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
92864         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
92866 2008-03-20  Eric Blake  <ebb9@byu.net>
92868         Sync GNUmakefile with coreutils.
92869         * build-aux/GNUmakefile (have-Makefile): Rename...
92870         (_have-Makefile): ...to this, for namespace consideration.
92871         (GNUmakefile.cfg): Include, if present.
92872         (_autoreconf): Define a default.
92873         (_is-dist-target): New rule for rebuilds to pick up intra-release
92874         version.
92875         (maint-cfg.mk): Rename...
92876         (cfg.mk): ...to this.
92878 2008-03-18  Jim Meyering  <meyering@redhat.com>
92880         New script and module: mktempd
92881         * MODULES.html.sh (maint+release support): Add mktempd.
92882         * build-aux/mktempd: New file.
92883         * modules/mktempd: New file.
92885 2008-03-15  Jim Meyering  <meyering@redhat.com>
92887         Undo last change.
92888         * lib/sha1.c, lib/md5.c: 63 != ~63.
92889         Reported by Andreas Schwab.
92891         sha1.c, md5.c: Hoist a redundant expression.
92892         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
92893         "ctx->buflen" only once, before calling *_process_block.
92894         * lib/md5.c (md5_process_bytes): Likewise.
92896 2008-03-14  Eric Blake  <ebb9@byu.net>
92898         Bump copyright year in files generated by gnulib-tool.
92899         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
92900         gnulib-tool, rather than hard-coding it.
92902         Fix 'gnulib-tool --version' output to work with git.
92903         * gnulib-tool (func_gnulib_dir): New function, extracted from...
92904         (startup): ...here.
92905         (func_version): Use it to invoke git-version-gen, rather than
92906         relying on CVS keyword expansion.  Modernize wording.
92907         (cvsdatestamp, last_checkin_date, version): Kill unused
92908         variables.
92910 2008-03-12  Jim Meyering  <meyering@redhat.com>
92912         Recognize optional cast of the argument to free.
92913         * build-aux/useless-if-before-free: Update regexps.
92915         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
92917 2008-03-11  Bruno Haible  <bruno@clisp.org>
92919         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
92920         by a single package.
92921         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
92922         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
92923         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
92924         Reported by Sam Steingold <sds@gnu.org>.
92926 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
92928         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
92929         repositories.
92931 2008-03-11  Bruno Haible  <bruno@clisp.org>
92933         Avoid conflicts between local macro definitions.
92934         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
92935         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
92937 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
92938             Bruno Haible  <bruno@clisp.org>
92940         Make va_copy work with some version of xlc on AIX 5.1.
92941         * lib/stdarg.in.h: New file.
92942         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
92943         On AIX, use a <stdarg.h> file substitute.
92944         * modules/stdarg (Files): Add lib/stdarg.in.h.
92945         (Depends-on): Add include_next.
92946         (Makefile.am): Build a stdarg.h substitute if requested.
92947         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
92949 2008-03-10  Bruno Haible  <bruno@clisp.org>
92951         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
92952         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
92953         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
92955 2008-03-10  Bruno Haible  <bruno@clisp.org>
92957         * modules/stdlib (Depends-on): Add include_next, remove
92958         absolute-header.
92960 2008-03-09  Bruno Haible  <bruno@clisp.org>
92962         * lib/freadahead.h (freadahead): Document more precisely.
92963         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
92964         the sum of both buffer sizes.
92965         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
92966         * NEWS: Document the change.
92968 2008-03-09  Bruno Haible  <bruno@clisp.org>
92970         Extend freadptr to return also the buffer size.
92971         * lib/freadptr.h (freadptr): Add sizep argument.
92972         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
92973         (freadptr): Add sizep argument. Determine buffer size like freadahead
92974         does.
92975         * tests/test-freadptr.c: Don't include freadahead.h.
92976         (main): Adapt for new calling convention of freadptr.
92977         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
92978         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
92979         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
92980         tests/test-freadptr2.sh.
92981         (Depends): Remove freadahead.
92982         (TESTS): Add test-freadptr2.sh.
92983         (check_PROGRAMS): Add test-freadptr2.
92985 2008-03-09  Bruno Haible  <bruno@clisp.org>
92987         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
92988         Report and solution by Simon Josefsson.
92990 2008-03-06  Bruno Haible  <bruno@clisp.org>
92992         Make fflush after ungetc work on BSD platforms.
92993         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
92994         * tests/test-fflush2.c: New file.
92995         * tests/test-fflush2.sh: New file.
92996         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
92997         tests/test-fflush2.c.
92998         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
92999         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
93001 2008-03-06  Eric Blake  <ebb9@byu.net>
93003         Likewise for ftello.
93004         * modules/ftello (Dependencies): Add extensions.
93005         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
93007 2008-03-06  Bruno Haible  <bruno@clisp.org>
93009         * modules/fseeko (Dependencies): Add extensions.
93010         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
93011         Needed on glibc systems.
93013 2008-03-06  Bruno Haible  <bruno@clisp.org>
93015         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
93016         email address.
93017         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
93019 2008-03-06  Bruno Haible  <bruno@clisp.org>
93021         * users.txt: Add libgnupdf.
93023 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
93025         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
93026         (Header File Substitutes, Function Substitutes,
93027         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
93028         (Build robot for gnulib): Fix typo.
93030 2008-03-06  Bruno Haible  <bruno@clisp.org>
93032         * doc/gnulib-tool.texi (VCS Issues): Small updates.
93033         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
93035 2008-03-06  Bruno Haible  <bruno@clisp.org>
93037         * doc/func.texi: New file, extracted from doc/gnulib.texi.
93038         * doc/gnulib.texi: Include it.
93040 2008-03-06  Simon Josefsson  <simon@josefsson.org>
93042         * modules/func (License): Change license to unlimited; there was
93043         no LGPL parts in the module anyway.
93045 2008-03-06  Simon Josefsson  <simon@josefsson.org>
93047         * modules/__func__: Renamed to modules/func.
93048         * modules/__func__-tests: Renamed to modules/func-tests.
93049         * tests/test-__func__.c: Renamed to tests/test-func.c.
93050         * m4/__func__.m4: Renamed to m4/func.m4.
93051         * doc/gnulib.texi (__func__): Section renamed to func.
93052         Suggested by Eric Blake <ebb9@byu.net>.
93054 2008-03-06  Simon Josefsson  <simon@josefsson.org>
93056         * doc/gnulib.texi (__func__): Use C99 terminology when talking
93057         about __func__.  Make example self-contained.  Suggested by Eric
93058         Blake <ebb9@byu.net>.
93060         * tests/test-__func__.c (main): Avoid extraneous () around __func.
93061         Suggested by Eric Blake <ebb9@byu.net>.
93063 2008-03-06  Simon Josefsson  <simon@josefsson.org>
93065         * modules/__func__: New file.
93066         * modules/__func__-tests: New file.
93067         * tests/test-__func__.c: New file.
93068         * m4/__func__.m4: New file.
93069         * doc/gnulib.texi (__func__): Document __func__ module.
93071 2008-03-05  Simon Josefsson  <simon@josefsson.org>
93073         * modules/byteswap (License): Re-license as LGPLv2+.
93075 2008-03-05  Simon Josefsson  <simon@josefsson.org>
93077         * doc/Makefile: Add pdf target.
93079 2008-03-05  Simon Josefsson  <simon@josefsson.org>
93081         * modules/inline (License): Use 'unlimited', since there are only
93082         *.m4 files in this module.
93084 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
93085             Bruno Haible  <bruno@clisp.org>
93087         Add support for HP C 7.1 on OpenVMS 8.3.
93088         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
93090 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
93092         Update VMS specifics.
93093         * lib/getopt.c [VMS]: Remove include of unixlib.h.
93095 2008-03-02  Jim Meyering  <meyering@redhat.com>
93097         Remove the last dependency on the "free" module.
93098         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
93099         Reported by Bob Proulx.
93101         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
93103         Remove useless "if" tests before free.  Deprecate "free" module.
93104         * doc/posix-functions/free.texi: Mention that this
93105         module is no longer useful.
93106         * modules/free (Notice): Say this module is obsolete.
93107         * modules/readutmp (Depends-on): Remove free.
93108         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
93109         * lib/putenv.c (putenv): Likewise.
93110         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
93111         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
93112         * tests/test-c-strcasestr.c (main): Likewise.
93113         * tests/test-c-strstr.c (main): Likewise.
93114         * tests/test-mbscasestr1.c (main): Likewise.
93115         * tests/test-mbscasestr2.c (main): Likewise.
93116         * tests/test-mbsstr1.c (main): Likewise.
93117         * tests/test-mbsstr2.c (main): Likewise.
93118         * tests/test-memmem.c (main): Likewise.
93119         * tests/test-strcasestr.c (main): Likewise.
93120         * tests/test-striconv.c (main): Likewise.
93121         * tests/test-striconveh.c (main): Likewise.
93122         * tests/test-striconveha.c (main): Likewise.
93123         * tests/test-strstr.c (main): Likewise.
93125         * build-aux/git-version-gen: Adjust a comment and the Usage string.
93127         bootstrap: sync from coreutils again
93128         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
93130 2008-03-01  Jim Meyering  <meyering@redhat.com>
93132         bootstrap: sync from coreutils
93133         * build-aux/bootstrap (update_po_files): Copy a .po file into place
93134         also when the target doesn't exist.
93136 2008-03-01  Eric Blake  <ebb9@byu.net>
93138         Fix bugs in last patch.
93139         * lib/memchr2.c (memchr2): Fix typo.
93140         * tests/test-memchr2.c: Test previous bug, and don't use GNU
93141         extension.
93142         Reported by Bruce Korb.
93144         New module 'memchr2'.
93145         * modules/memchr2: New file.
93146         * modules/memchr2-tests: Likewise.
93147         * lib/memchr2.h: Likewise.
93148         * lib/memchr2.c: Likewise, based on memchr.c.
93149         * tests/test-memchr2.c: New test.
93150         * MODULES.html.sh (String handling): Add memchr2.
93152 2008-02-29  Bruno Haible  <bruno@clisp.org>
93154         * modules/freadseek-tests: New file.
93155         * tests/test-freadseek.sh: New file.
93156         * tests/test-freadseek.c: New file.
93158         New module 'freadseek'.
93159         * modules/freadseek: New file.
93160         * lib/freadseek.h: New file.
93161         * lib/freadseek.c: New file.
93162         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
93164 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
93166         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
93167         wydawca.
93169         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
93170         program_invocation_name and program_invocation_short_name are
93171         present.
93173 2008-02-28  Bruno Haible  <bruno@clisp.org>
93175         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
93176         * tests/test-freadptr.sh: Also test non-seekable stdin.
93178 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
93180         * build-aux/bootstrap (source_base, m4_base)
93181         (doc_base, tests_base): New variables.
93182         (gnulib_tool_options): Do not hardcode base directories, use
93183         the above variables instead.
93185 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
93187         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
93189 2008-02-28  Bruno Haible  <bruno@clisp.org>
93191         * modules/freadptr-tests: New file.
93192         * tests/test-freadptr.sh: New file.
93193         * tests/test-freadptr.c: New file.
93195         New module 'freadptr'.
93196         * modules/freadptr: New file.
93197         * lib/freadptr.h: New file.
93198         * lib/freadptr.c: New file.
93199         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
93201 2008-02-26  Karl Berry  <karl@freefriends.org>
93203         Sync from Libtool:
93204         * libltdl/argz.c (argz_add, argz_count): New functions.
93205         * libltdl/argz.in.h: Declare them.
93206         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
93208 2008-02-22  Bruno Haible  <bruno@clisp.org>
93210         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
93211         is a pointer type.  Needed for HP-UX 10.
93212         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
93213         * doc/posix-functions/gmtime_r.texi: Likewise.
93214         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
93216 2008-02-24  Bruno Haible  <bruno@clisp.org>
93218         * modules/environ-tests: New file.
93219         * tests/test-environ.c: New file.
93221         New module 'environ'.
93222         * modules/environ: New file.
93223         * lib/unistd.in.h (environ): New declaration.
93224         * m4/environ.m4: New file.
93225         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
93226         after use.
93227         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
93228         HAVE_DECL_ENVIRON.
93229         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
93230         HAVE_DECL_ENVIRON.
93231         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
93232         wrong claim that 'environ' is missing on some systems.
93233         * modules/execute (Depends-on): Add environ.
93234         * lib/execute.c (environ): Remove fallback declaration.
93235         * modules/pipe (Depends-on): Add environ.
93236         * lib/pipe.c (environ): Remove fallback declaration.
93237         * modules/setenv (Depends-on): Add environ.
93238         * lib/setenv.c (environ): Remove fallback declaration.
93239         * modules/unsetenv (Depends-on): Add environ.
93240         * lib/unsetenv.c (environ): Remove fallback declaration.
93241         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
93242         m4/environ.m4.
93243         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
93244         (gl_PREREQ_UNSETENV): Likewise.
93246 2008-02-24  Bruno Haible  <bruno@clisp.org>
93248         * doc/posix-functions/environ.texi: Document the MacOS X problem.
93250 2008-02-20  Bob Proulx  <bob@proulx.com>
93252         Enable use of older two part flavor 'git describe'.
93253         * build-aux/git-version-gen: If using the older two part flavor of
93254         git version then recreate the third part now present in the
93255         newer three part flavor of git describe.
93257 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
93259         * lib/fts.c (fts_build): Typo correction to comment.
93261 2008-02-17  Bruno Haible  <bruno@clisp.org>
93263         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
93264         generating no-op conflicts.
93266 2008-02-17  Bruno Haible  <bruno@clisp.org>
93268         Speed up by 10%.
93269         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
93270         result_entries, rather than an index-based loop.
93272 2008-02-17  Bruno Haible  <bruno@clisp.org>
93274         Speed up by 25%.
93275         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
93276         'hashcode_cached'.
93277         (entry_create): New function.
93278         (entry_hashcode): Use the cached hashcode if possible.
93279         (read_changelog_file, try_split_merged_entry): Use entry_create.
93281 2008-02-17  Bruno Haible  <bruno@clisp.org>
93283         Speed up from O(n^2) to O(n) for long ChangeLog files.
93284         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
93285         (read_changelog_file): Change implementation of entries_reversed list
93286         to rbtreehash.
93287         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
93289 2008-02-17  Bruno Haible  <bruno@clisp.org>
93291         New option --split-merged-entry.
93292         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
93293         (find_paragraph_end, try_split_merged_entry): New functions.
93294         (long_options): Add option --split-merged-entry.
93295         (usage): Document option --split-merged-entry.
93296         (main): Implement option --split-merged-entry.
93297         Reported by Eric Blake.
93299 2008-02-17  Bruno Haible  <bruno@clisp.org>
93301         * lib/git-merge-changelog.c: Include c-strstr.h.
93302         (main): Support the "git pull --rebase" situation.
93303         * modules/git-merge-changelog (Depends-on): Add c-strstr.
93304         Reported by Eric Blake.
93306 2008-02-16  Eric Blake  <ebb9@byu.net>
93308         Avoid doubling \ in common case of "c-maybe" quoting style.
93309         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
93310         eliding outer quotes.
93311         * lib/quotearg.h: Document this.
93312         * tests/test-quotearg.c (result_strings, inputs, results_g)
93313         (flag_results, locale_results): Test it by adding a new string to
93314         each test group.
93315         (compare_strings): Test new string.
93317 2008-02-13  Eric Blake  <ebb9@byu.net>
93319         Avoid trigraph quoting in default output.
93320         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
93321         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
93322         unless explicitly requested.
93323         * tests/test-quotearg.c (flag_results, main): Add additional tests.
93325 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
93327         Don't rely on signed integer overflowing to negative value.
93328         * lib/getugroups.c (getugroups): Include <limits.h>.
93329         Instead, compare against INT_MAX, and increment only if the test passes.
93331 2008-02-13  Jim Meyering  <meyering@redhat.com>
93332         and Eric Blake  <ebb9@byu.net>
93334         Avoid shadowing warning and compile errors on Linux.
93335         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
93336         forwarding macros on Linux.
93337         (dcgettext): Define a stub, for Linux.
93338         (results_g, main): Avoid warnings.
93340 2008-02-12  Eric Blake  <ebb9@byu.net>
93342         Silence warning in last patch.
93343         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
93345         Quotearg part 4: add tests, fix c-maybe colon quoting.
93346         * lib/quotearg.h: Improve documentation.
93347         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
93348         escapes when adding outer quotes.  When quoting trigraphs, use
93349         valid C notation.  When quoting NUL, omit extra characters if next
93350         character is not digit.  Alter prototype.
93351         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
93352         callers.
93353         * modules/quotearg-tests: New module.
93354         * tests/test-quotearg.c: New test.
93356 2008-02-07  Eric Blake  <ebb9@byu.net>
93358         Quotearg part 3: add flag to control outer quote elision.
93359         * lib/quotearg.h (c_maybe_quoting_style): New style.
93360         (enum quoting_flags): Better documentation of flags.
93361         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
93362         c-maybe style.
93363         (quotearg_buffer_restyled): Handle new flag to elide outer
93364         quotes.
93366         Quotearg part 2: add flag that can control NUL elision.
93367         * lib/quotearg.h (set_quoting_flags): New prototype.
93368         * lib/quotearg.c (struct quoting_options): Add flag field.
93369         (set_quoting_flags): New function.
93370         (quotearg_buffer_restyled): Add flags parameter.
93371         (quotearg_alloc_mem): Set the flag if length cannot be returned.
93372         (quotearg_n_options): Set the flag, since length cannot be
93373         returned.
93374         (quoting_options_from_style): Default flags correctly.
93376         Quotearg part 1: more wrappers, restore quotearg_char state.
93377         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
93378         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
93379         (quotearg_colon_mem): New wrappers.
93380         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
93381         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
93382         functions.
93383         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
93384         (quotearg_colon_mem): New functions.
93386 2008-02-11  Bruno Haible  <bruno@clisp.org>
93388         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
93389         library in the current directory: it does not work with parallel make.
93390         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
93392 2008-02-11  Bruno Haible  <bruno@clisp.org>
93394         * .gitattributes: New file.
93396 2008-02-11  Jim Meyering  <meyering@redhat.com>
93398         useless-if-before-free: Fix reversed exit values.
93399         * build-aux/useless-if-before-free: Use correct values
93400         for EXIT_MATCH and EXIT_NO_MATCH.
93402         * build-aux/useless-if-before-free: Close stdout carefully.
93404 2008-02-10  Bruno Haible  <bruno@clisp.org>
93406         New module 'git-merge-changelog'.
93407         * modules/git-merge-changelog: New file.
93408         * lib/git-merge-changelog.c: New file.
93410 2008-02-10  Jim Meyering  <meyering@redhat.com>
93412         useless-if-before-free: New option: --list (-l).
93414         useless-if-before-free: Don't exit immediately upon open failure.
93415         * build-aux/useless-if-before-free: Exit 2 for errors.
93416         Upon failure to open a file, don't exit immediately.
93417         Rather, just warn and continue with any remaining files.
93419 2008-02-10  Bruno Haible  <bruno@clisp.org>
93421         New abstract list operation 'node_set_value'.
93422         * lib/gl_list.h (gl_list_node_set_value): New function.
93423         (struct gl_list_implementation): New field node_set_value.
93424         * lib/gl_list.c (gl_list_node_set_value): New function.
93425         * lib/gl_array_list.c (gl_array_node_set_value): New function.
93426         (gl_array_list_implementation): Update.
93427         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
93428         (gl_carray_list_implementation): Update.
93429         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
93430         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
93431         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
93432         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
93433         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
93434         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
93435         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
93436         Update.
93437         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
93438         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
93439         (gl_sublist_list_implementation): Update.
93441 2008-02-10  Bruno Haible  <bruno@clisp.org>
93443         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
93444         Needed when ELEMENT is #defined to 'some_type *'.
93446 2008-02-10  Jim Meyering  <meyering@redhat.com>
93448         New script and module: useless-if-before-free
93449         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
93450         * build-aux/useless-if-before-free: New file.
93451         * modules/useless-if-before-free: New file.
93453         * build-aux/gitlog-to-changelog: Use committer date, not author date.
93455         xstrtol_error: Fix typo.
93456         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
93457         s/exit_failure/exit_status/.
93459 2008-02-09  Jim Meyering  <meyering@redhat.com>
93461         New script and module: gitlog-to-changelog
93462         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
93463         * modules/gitlog-to-changelog: New file.
93464         * build-aux/gitlog-to-changelog: New file.
93466 2008-02-08  Jim Meyering  <meyering@redhat.com>
93468         Avoid two "parameter unused" warnings.
93469         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
93470         Mark "st" as used.
93472         Use "git COMMAND", not "git-COMMAND".
93473         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
93474         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
93475         * build-aux/git-version-gen: Use "git status", not "git-status".
93477 2008-02-07  Bruno Haible  <bruno@clisp.org>
93479         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
93480         Avoids a crash on Windows Vista.
93481         Reported by Adam Strzelecki <ono@java.pl> via
93482         Simon Josefsson <simon@josefsson.org>.
93484 2008-02-06  Bruno Haible  <bruno@clisp.org>
93486         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
93487         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
93488         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
93489         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
93490         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
93491         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
93492         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
93493         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
93494         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
93495         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
93496         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
93497         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
93498         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
93499         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
93500         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
93501         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
93502         left-adjust flag.
93503         * tests/test-snprintf-posix.h (test_function): Likewise.
93504         * tests/test-sprintf-posix.h (test_function): Likewise.
93505         * tests/test-vasprintf-posix.c (test_function): Likewise.
93506         * doc/posix-functions/fprintf.texi: Update.
93507         * doc/posix-functions/printf.texi: Update.
93508         * doc/posix-functions/snprintf.texi: Update.
93509         * doc/posix-functions/sprintf.texi: Update.
93510         * doc/posix-functions/vfprintf.texi: Update.
93511         * doc/posix-functions/vprintf.texi: Update.
93512         * doc/posix-functions/vsnprintf.texi: Update.
93513         * doc/posix-functions/vsprintf.texi: Update.
93514         Reported by Peter Fales <psfales@alcatel-lucent.com>.
93516 2008-02-06  Bruno Haible  <bruno@clisp.org>
93518         Fix bug introduced on 2008-01-26.
93519         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
93521 2008-02-06  Bruno Haible  <bruno@clisp.org>
93523         Fix bug introduced on 2007-06-10.
93524         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
93525         !NEED_PRINTF_FLAG_ZERO.
93527 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
93529         getloadavg: use libperfstat on AIX5
93530         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
93532 2008-02-03  Bruno Haible  <bruno@clisp.org>
93534         * lib/diffseq.h: Add comments about required #includes.
93535         Reported by Michael Biggs <gnulib@doubleplum.net>.
93537 2008-02-01  Bruno Haible  <bruno@clisp.org>
93539         * users.txt: Add gnuit.
93541 2008-01-31  Bruno Haible  <bruno@clisp.org>
93543         * lib/md4.c (set_uint32): Mark as inline.
93544         * lib/md5.c (set_uint32): Likewise.
93545         * lib/sha1.c (set_uint32): Likewise.
93546         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
93547         * m4/md5.m4 (gl_MD5): Likewise.
93548         * m4/sha1.m4 (gl_SHA1): Likewise.
93550 2008-01-31  Jim Meyering  <meyering@redhat.com>
93552         Use "sizeof VAR", rather than a literal "4".
93553         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
93554         * lib/md4.c (md4_read_ctx): Likewise.
93555         * lib/sha1.c (sha1_read_ctx): Likewise.
93557 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93559         * tests/test-sha1.c: New file, based on test-md5.c.
93561         * modules/crypto/sha1-tests: New file.
93563 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93565         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
93567 2008-01-31  Jim Meyering  <meyering@redhat.com>
93569         Prefer "sizeof v" over the equivalent "4".
93570         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
93571         * lib/md5.c (set_uint32): Likewise.
93572         * lib/sha1.c (set_uint32): Likewise.
93574 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93576         * lib/sha1.c (set_uint32): Mark function as static.
93578 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93580         md2: clarify comments to say that alignment is not required.
93581         * lib/md2.h: Remove warning about alignment in comment.
93582         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
93583         never been required.
93585 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93587         md4: adapt alignment constraint fix from sha1.
93588         * lib/md4.c (set_uint32): New function, from sha1.c
93589         (md4_read_ctx): Use it.
93590         (md4_finish_ctx): Doc fix.
93591         * lib/md4.h: Doc fix.
93593 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93595         md5: adapt alignment constraint fix from sha1.
93596         * lib/md5.c (set_uint32): New function, from sha1.c
93597         (md5_read_ctx): Use it.
93598         (md5_finish_ctx): Doc fix.
93599         * lib/md5.h: Doc fix.
93601 2008-01-30  Peter Palfrader  <weasel@debian.org>
93603         sha1: remove the result buffer alignment constraint
93604         * lib/sha1.c (set_uint32): New function.
93605         (sha1_read_ctx): Rewrite to remove the result buffer alignment
93606         constraint.
93607         (sha1_finish_ctx): Remove comment warning about alignment constraint.
93608         * lib/sha1.h: Likewise.
93610 2008-01-30  Andreas Schwab  <schwab@suse.de>
93611             Bruno Haible  <bruno@clisp.org>
93613         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
93614         correct definition of LDBL_MIN_EXP.
93616 2008-01-30  Karl Berry  <karl@gnu.org>
93618         * config/srclist-update: try to preserve x bit on updates.
93619         * config/srclistvars.sh: update for karl.
93621 2008-01-29  Jim Meyering  <meyering@redhat.com>
93623         vasnprintf.c: Avoid warning about unused label
93624         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
93625         "overflow" label definition and associated code with the
93626         same cpp condition that guards the sole use of that label.
93628 2008-01-26  Bruno Haible  <bruno@clisp.org>
93630         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
93631         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
93632         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
93633         * lib/isnanl-nolibm.h (isnanl): Likewise.
93634         Reported by Paul Eggert <eggert@cs.ucla.edu>.
93636 2008-01-26  Bruno Haible  <bruno@clisp.org>
93638         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
93639         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
93641 2008-01-26  Bruno Haible  <bruno@clisp.org>
93643         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
93644         GCC >= 4.0 built-in.
93645         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
93647 2008-01-26  Bruno Haible  <bruno@clisp.org>
93649         Rename isnan, applicable to 'double' only, to isnand.
93650         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
93651         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
93652         (configure.ac): Update.
93653         (Include): Replace "isnan.h" with "isnand.h".
93654         * m4/isnand.m4: Renamed from m4/isnan.m4.
93655         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
93656         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
93657         instead of isnan.c.
93658         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
93659         instead of HAVE_ISNAN_IN_LIBC.
93660         (isnand): Renamed from isnan.
93661         * lib/isnand.c: New file.
93662         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
93663         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
93664         (Makefile.am): Update.
93665         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
93666         Include isnand.h instead of isnan.h.
93667         (main): Test isnand instead of isnan.
93668         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
93669         isnan-nolibm.
93670         * modules/frexp (Depends-on): Likewise.
93671         * modules/frexp-tests (Depends-on): Likewise.
93672         * modules/frexp-nolibm (Depends-on): Likewise.
93673         * modules/frexp-nolibm-tests (Depends-on): Likewise.
93674         * modules/isfinite (Depends-on): Likewise.
93675         * modules/round-tests (Depends-on): Likewise.
93676         * modules/signbit (Depends-on): Likewise.
93677         * modules/signbit-tests (Depends-on): Likewise.
93678         * modules/snprintf-posix (Depends-on): Likewise.
93679         * modules/sprintf-posix (Depends-on): Likewise.
93680         * modules/trunc-tests (Depends-on): Likewise.
93681         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
93682         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
93683         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
93684         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
93685         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
93686         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
93687         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
93688         * modules/vasnprintf-posix (Depends-on): Likewise.
93689         * modules/vasprintf-posix (Depends-on): Likewise.
93690         * modules/vfprintf-posix (Depends-on): Likewise.
93691         * modules/vsnprintf-posix (Depends-on): Likewise.
93692         * modules/vsprintf-posix (Depends-on): Likewise.
93693         * lib/frexp.c: Include isnand.h instead of isnan.h.
93694         (ISNAN): Set to isnand instead of isnan.
93695         * lib/isfinite.c: Include isnand.h instead of isnan.h.
93696         (gl_isfinited): Use isnand instead of isnan.
93697         * lib/signbitd.c: Include isnand.h instead of isnan.h.
93698         (gl_signbitd): Use isnand instead of isnan.
93699         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
93700         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
93701         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
93702         (main): Use isnand instead of isnan.
93703         * tests/test-round1.c: Include isnand.h.
93704         (main): Use isnand instead of isnan.
93705         * tests/test-round2.c: Include isnand.h instead of isnan.h.
93706         (ISNAN): Set to isnand instead of isnan.
93707         * tests/test-trunc1.c: Include isnand.h.
93708         (main): Use isnand instead of isnan.
93709         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
93710         (equal): Use isnand instead of isnan.
93711         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
93712         isnand-nolibm.
93713         * NEWS: Mention the change.
93715 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
93716             Bruno Haible  <bruno@clisp.org>
93718         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
93719         the GCC builtins for signbits are present and set
93720         REPLACE_SIGNBIT_USING_GCC if so.
93721         * lib/math.in.h (signbit): Define using GCC builtins if
93722         REPLACE_SIGNBIT_USING_GCC is set.
93723         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
93724         REPLACE_SIGNBIT_USING_GCC.
93725         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
93727 2008-01-25  Jim Meyering  <meyering@redhat.com>
93729         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
93730         * lib/poll.c: Include <config.h>, not "config.h".
93731         * tests/test-getaddrinfo.c: Likewise.
93733 2008-01-25  Simon Josefsson  <simon@josefsson.org>
93735         * modules/sockets-tests: New file.
93737 2008-01-24  Simon Josefsson  <simon@josefsson.org>
93739         * modules/sockets: New module, can be used to call WSA_Startup and
93740         WSA_Cleanup when needed.
93742         * lib/sockets.h, lib/sockets.c: New files.
93744         * m4/sockets.m4: New file.
93746         * tests/test-sockets.c: New file.
93748 2008-01-19  Bruno Haible  <bruno@clisp.org>
93750         * doc/posix-headers: Renamed from doc/headers.
93751         * doc/posix-functions: Renamed from doc/functions.
93752         * doc/gnulib.texi: Update.
93754 2008-01-19  Bruno Haible  <bruno@clisp.org>
93756         * doc/glibc-functions/strcasestr.texi: Include contents of
93757         doc/functions/strcasestr.texi, fixing the list of platforms.
93758         * doc/functions/strcasestr.texi: Remove file.
93760 2008-01-19  Bruno Haible  <bruno@clisp.org>
93762         * doc/glibc-functions/memmem.texi: Include contents of
93763         doc/functions/memmem.texi.
93764         * doc/functions/memmem.texi: Remove file.
93766 2008-01-18  Bruno Haible  <bruno@clisp.org>
93768         * doc/glibc-functions/*.texi: New files.
93769         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
93770         to use the new files.
93772 2008-01-17  Bruno Haible  <bruno@clisp.org>
93774         * tests/test-gethostname.c (main): Fix printf statement.
93776 2008-01-17  Simon Josefsson  <simon@josefsson.org>
93778         * modules/gethostname-tests: New file.
93780         * tests/test-gethostname.c: New file.
93782 2008-01-17  Simon Josefsson  <simon@josefsson.org>
93784         * lib/gethostname.c: Include string.h unconditionally, strncpy is
93785         used by the UNAME case.  Reported by Bruno Haible
93786         <bruno@clisp.org>.
93788 2008-01-17  Eric Blake  <ebb9@byu.net>
93790         Convert c-strcasestr to be more efficient.
93791         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
93792         (Depends-on): Add c-strcase, remove malloca, strnlen.
93793         * tests/test-c-strcasestr.c (main): Enhance test.
93794         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
93796 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
93798         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
93799         Use it in creating po/Makevars.
93801 2008-01-15  Simon Josefsson  <simon@josefsson.org>
93803         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
93804         Applications that requires it should initialize libgcrypt
93805         manually.
93807 2008-01-16  Simon Josefsson  <simon@josefsson.org>
93809         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
93811 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
93813         Fix problem with getdate on mingw32 reported by Simon Josefsson
93814         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
93815         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
93816         tzname", when deciding whether to declare tzname.
93817         * lib/strftime.c (tzname): Likewise.
93819 2008-01-15  Bruno Haible  <bruno@clisp.org>
93821         Work around a MacOS X 10.5 bug in frexpl().
93822         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
93823         * doc/functions/frexpl.texi: Document the bug.
93824         Reported by Elias Pipping <pipping@gentoo.org>.
93826 2008-01-14  Eric Blake  <ebb9@byu.net>
93828         Touch up previous patch.
93829         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
93830         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
93832         Convert strcasestr module to use Two-Way algorithm.
93833         * modules/strcasestr-simple: New module, based on the old
93834         strcasestr, but with Two-Way rather than KMP.
93835         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
93836         * lib/string.in.h (rpl_strcasestr): Declare.
93837         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
93838         performance.
93839         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
93840         * modules/string (Makefile.am): Support strcasestr.
93841         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
93842         * modules/strcasestr-tests (Depends-on): Check for alarm.
93843         * tests/test-strcasestr.c: Augment test.
93844         * lib/str-two-way.h: Clean up stray macro.
93845         * NEWS: Document new module.
93846         * MODULES.html.sh (string handling): Likewise.
93847         * doc/functions/strcasestr.texi: New file.
93848         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
93849         here, since it is not a POSIX function.
93851 2008-01-14  Colin Watson  <cjwatson@debian.org>
93852             Bruno Haible  <bruno@clisp.org>
93854         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
93855         works fine; if not, set REPLACE_STRSIGNAL.
93856         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
93857         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
93858         REPLACE_STRSIGNAL.
93859         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
93860         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
93861         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
93863 2008-01-14  Bruno Haible  <bruno@clisp.org>
93865         * modules/strsignal (Include): Change to <string.h>.
93867 2008-01-14  Colin Watson  <cjwatson@debian.org>
93869         * modules/argp (Notice): Add a notice recommending to change
93870         XGETTEXT_OPTIONS.
93871         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
93873 2008-01-13  Colin Watson  <cjwatson@debian.org>
93875         * modules/strsignal-tests: New file.
93876         * tests/test-strsignal.c: New file.
93878         * lib/strsignal.c: New file, from glibc with modifications.
93879         * lib/siglist.h: New file, from glibc with modifications.
93880         * lib/string.in.h (strsignal): New declaration.
93881         * m4/strsignal.m4: New file.
93882         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
93883         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
93884         * modules/strsignal: New file.
93885         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
93886         HAVE_DECL_STRSIGNAL.
93888 2008-01-13  Bruno Haible  <bruno@clisp.org>
93890         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
93891         locale encoding is not ASCII. Needed for OpenBSD 4.0.
93892         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
93893         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
93895 2008-01-13  Bruno Haible  <bruno@clisp.org>
93897         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
93898         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
93899         * lib/argp.h (__attribute__): Likewise.
93900         * lib/c-stack.c (__attribute__): Likewise.
93901         * lib/error.h (__attribute__): Likewise.
93902         * lib/fts.c (__attribute__): Likewise.
93903         * lib/openat.h (__attribute__): Likewise.
93904         * lib/stdio.in.h (__attribute__): Likewise.
93905         * lib/string.in.h (__attribute__): Likewise.
93906         * lib/utimens.c (__attribute__): Likewise.
93907         * lib/vasnprintf.h (__attribute__): Likewise.
93908         * lib/xalloc.h (__attribute__): Likewise.
93909         * lib/xprintf.h (__attribute__): Likewise.
93910         * lib/xstrtol.h (__attribute__): Likewise.
93911         * lib/xvasprintf.h (__attribute__): Likewise.
93913 2008-01-12  Bruno Haible  <bruno@clisp.org>
93915         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
93916         * doc/glibc-headers/a.out.texi: New file.
93917         * doc/glibc-headers/aliases.texi: New file.
93918         * doc/glibc-headers/alloca.texi: New file.
93919         * doc/glibc-headers/ar.texi: New file.
93920         * doc/glibc-headers/argp.texi: New file.
93921         * doc/glibc-headers/argz.texi: New file.
93922         * doc/glibc-headers/byteswap.texi: New file.
93923         * doc/glibc-headers/crypt.texi: New file.
93924         * doc/glibc-headers/endian.texi: New file.
93925         * doc/glibc-headers/envz.texi: New file.
93926         * doc/glibc-headers/err.texi: New file.
93927         * doc/glibc-headers/error.texi: New file.
93928         * doc/glibc-headers/execinfo.texi: New file.
93929         * doc/glibc-headers/fpu_control.texi: New file.
93930         * doc/glibc-headers/fstab.texi: New file.
93931         * doc/glibc-headers/fts.texi: New file.
93932         * doc/glibc-headers/getopt.texi: New file.
93933         * doc/glibc-headers/ieee754.texi: New file.
93934         * doc/glibc-headers/ifaddrs.texi: New file.
93935         * doc/glibc-headers/libintl.texi: New file.
93936         * doc/glibc-headers/mcheck.texi: New file.
93937         * doc/glibc-headers/mntent.texi: New file.
93938         * doc/glibc-headers/obstack.texi: New file.
93939         * doc/glibc-headers/paths.texi: New file.
93940         * doc/glibc-headers/printf.texi: New file.
93941         * doc/glibc-headers/pty.texi: New file.
93942         * doc/glibc-headers/resolv.texi: New file.
93943         * doc/glibc-headers/shadow.texi: New file.
93944         * doc/glibc-headers/sysexits.texi: New file.
93945         * doc/glibc-headers/ttyent.texi: New file.
93947 2008-01-12  Jim Meyering  <meyering@redhat.com>
93949         announce-gen: emit Gnulib's git-based version string.
93950         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
93951         New option --gnulib-version=V, where V is expected to be
93952         the output of running git describe in the gnulib directory.
93953         (get_tool_versions): Request feedback on xdelta.  I suspect it's
93954         not useful, and plan to stop publishing an xdelta file with each
93955         coreutils release.
93957         * build-aux/announce-gen: Also check for lzma-compressed files.
93959 2008-01-11  Bruno Haible  <bruno@clisp.org>
93961         * tests/test-memmem.c (main): Increase maximum allowed time.
93962         * tests/test-strstr.c (main): Likewise.
93964 2008-01-11  Bruno Haible  <bruno@clisp.org>
93966         * doc/functions/memmem.texi: Add more precisions about platforms.
93967         * doc/functions/strstr.texi: Likewise.
93969 2008-01-10  Eric Blake  <ebb9@byu.net>
93971         * m4/strstr.m4: Delete cruft from copy-n-paste.
93972         Reported by Bruno Haible.
93974 2008-01-10  Bruno Haible  <bruno@clisp.org>
93976         Make c-strstr rely on strstr.
93977         * lib/c-strstr.c: Don't include str-kmp.h.
93978         (c_strstr): Define in terms of strstr.
93979         * modules/c-strstr (Files): Remove lib/str-kmp.h.
93980         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
93982 2008-01-10  Bruno Haible  <bruno@clisp.org>
93984         * doc/gnulib.texi (String Functions in C Locale): New section.
93985         * doc/c-ctype.texi: New file.
93986         * doc/c-strcase.texi: New file.
93987         * doc/c-strcaseeq.texi: New file.
93988         * doc/c-strcasestr.texi: New file.
93989         * doc/c-strstr.texi: New file.
93990         * doc/c-strtod.texi: New file.
93991         * doc/c-strtold.texi: New file.
93993 2008-01-10  Eric Blake  <ebb9@byu.net>
93995         * lib/relocatable.h: Fix a comment.
93997 2008-01-10  Eric Blake  <ebb9@byu.net>
93999         Share two-way algorithm.
94000         * lib/str-two-way.h: New file, merged from...
94001         * lib/memmem.c: ...here...
94002         * lib/strstr.c: ...and here.
94003         * modules/memmem (Files): Use it.
94004         * modules/strstr (Files): Likewise.
94006         Avoid quadratic strstr implementations.
94007         * lib/strstr.c: New file.
94008         * m4/strstr.m4: Likewise.
94009         * modules/strstr: Likewise.
94010         * modules/strstr-tests: Likewise.
94011         * tests/test-strstr.c: Likewise.
94012         * lib/string.in.h (rpl_strstr): Declare.
94013         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
94014         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
94015         * modules/string (Makefile.am): Likewise.
94016         * MODULES.html.sh (string handling): Mention new module.
94017         * doc/functions/strstr.texi (strstr): Document the bug.
94019 2008-01-10  Bruno Haible  <bruno@clisp.org>
94021         * lib/relocatable.h (relocate): State whether result is freshly
94022         allocated or not.
94023         * lib/relocatable.c (relocate): Return a freshly allocated string
94024         instead of a pointer to a privately held string.
94025         Reported by Sylvain Beucler <beuc@gnu.org>.
94027 2008-01-10  Colin Watson  <cjwatson@debian.org>
94029         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
94030         s/S_ISNLK/S_ISLNK/.
94032 2008-01-09  Bruno Haible  <bruno@clisp.org>
94034         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
94035         and other files.
94036         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
94037         if it's only a guess.
94038         * modules/memmem: Simplify by depending on memmem-simple.
94040 2008-01-09  Bruno Haible  <bruno@clisp.org>
94042         Work around OpenBSD 4.0 tdelete() bug.
94043         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
94044         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
94045         macros and don't redefine the enum values.
94046         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
94047         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
94048         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
94050 2008-01-09  Bruno Haible  <bruno@clisp.org>
94052         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
94053         (main): Don't perform the tests if setlocale did not install a UTF-8
94054         locale. Needed on OpenBSD 4.0.
94055         * modules/wcwidth-tests (Depends-on): Add localcharset.
94057 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
94059         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
94060         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
94061         * NEWS: announce this.
94062         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
94064 2008-01-09  Simon Josefsson  <simon@josefsson.org>
94065         and Eric Blake  <ebb9@byu.net>
94067         Add memmem-simple module.
94068         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
94069         (gl_FUNC_MEMMEM): Separate performance from presence checks.
94070         * modules/memmem-simple: New file.
94071         * modules/memmem (Description): Tweak.
94072         * MODULES.html.sh (string handling): Mention new module.
94073         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
94074         addressed by memmem-simple.
94075         * NEWS: Document the difference.
94077 2008-01-09  Eric Blake  <ebb9@byu.net>
94079         Give gcc some memmem optimization hints.
94080         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
94081         (strcasestr): Declare as pure.
94082         * modules/memmem (Maintainer): Claim my implementation.
94084 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94086         Support AIX 6.1 and higher.
94087         * build-aux/config.libpath: Likewise.
94088         * build-aux/config.rpath: Likewise.
94090 2008-01-08  Jim Meyering  <meyering@redhat.com>
94091             Bruno Haible  <bruno@clisp.org>
94093         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
94094         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
94095         Reported by Peter Fales in
94096         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
94098 2008-01-08  Bruno Haible  <bruno@clisp.org>
94100         * modules/unictype/category-of (Depends-on): Add
94101         unictype/category-none.
94102         * modules/unictype/category-and-tests (Depends-on): Add
94103         unictype/category-{L,N,Lu,Nd}.
94104         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
94105         * modules/unictype/category-or-tests (Depends-on): Add
94106         unictype/category-{L,N}.
94107         * modules/unictype/category-name-tests (Depends-on): Add
94108         unictype/category-{Z,Nl}.
94109         Reported by Simon Josefsson.
94111 2008-01-08  Bruno Haible  <bruno@clisp.org>
94113         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
94114         convention better.
94115         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
94116         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
94117         Reported by Peter Miller <millerp@canb.auug.org.au>.
94119 2008-01-08  Eric Blake  <ebb9@byu.net>
94121         Rewrite memmem to guarantee linear complexity without malloc.
94122         * lib/memmem.c (memmem): Use Two-Way rather than
94123         Knuth-Morris-Pratt, to allow O(1) space usage.
94124         (critical_factorization, two_way_short_needle)
94125         (two_way_long_needle): New functions.
94126         (knuth_morris_pratt): Delete.
94127         * modules/memmem (Depends-on): No longer need malloca or stdbool.
94128         Add stdint.
94129         * tests/test-memmem.c (main): Add tests for periodic needle and
94130         sublinear performance.
94131         * doc/functions/memmem.texi (memmem): Document other deficiencies
94132         in cygwin and older glibc.
94134 2008-01-08  Bruno Haible  <bruno@clisp.org>
94136         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
94137         augmentation.
94139 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
94141         Add a configure time option: --disable-acl.
94142         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
94143         AC_ARG_ENABLE(acl).
94145 2008-01-06  Simon Josefsson  <simon@josefsson.org>
94147         * tests/test-localename.c: Don't include obsolete "setenv.h".
94149         * modules/localename-tests (Depends-on): Need unsetenv.
94151 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94153         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
94155 2008-01-06  Colin Watson  <cjwatson@debian.org>
94157         * users.txt: Add man-db.
94159 2008-01-07  Bruno Haible  <bruno@clisp.org>
94161         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
94162         previous section name.
94164 2008-01-07  Bruno Haible  <bruno@clisp.org>
94166         * lib/progname.c (set_program_name): Don't strip off a leading
94167         "lt-" prefix outside a .libs directory.
94168         Suggested by Paul Eggert.
94170 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
94171             Bruno Haible  <bruno@clisp.org>
94173         Improve memory cleanup in 'relocatable' module.
94174         * lib/relocatable.h (compute_curr_prefix): Change return type to
94175         'char *'.
94176         * lib/relocatable.c (compute_curr_prefix): Change return type to
94177         'char *'. Free curr_installdir after use.
94178         (relocate): Free curr_prefix_better after use.
94179         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
94181 2008-01-01  Bruno Haible  <bruno@clisp.org>
94183         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
94184         failure on older glibc systems.
94185         Reported by Peter Fales <psfales@alcatel-lucent.com>.
94187 2008-01-05  Eric Blake  <ebb9@byu.net>
94189         Avoid quadratic system memmem.
94190         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
94191         Reported by Ralf Wildenhues.
94193         Fix memmem test for mingw.
94194         * modules/memmem-tests (configure.ac): Check for alarm.
94195         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
94196         it.
94197         * doc/functions/memmem.texi: New file.
94198         * doc/gnulib.texi (Function Substitutes): Add memmem.
94199         Reported by Bruno Haible.
94201 2008-01-04  Bruno Haible  <bruno@clisp.org>
94203         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
94204         Require gl_HEADER_STRINGS_H_DEFAULTS, not
94205         gl_HEADER_STRING_H_DEFAULTS.
94207 2008-01-04  Eric Blake  <ebb9@byu.net>
94209         Shorten duration of memmem test.
94210         * tests/test-memmem.c (main): Use alarm to declare failure if test
94211         is taking too long.
94212         Reported by Ralf Wildenhues.
94214 2007-12-21  Simon Josefsson  <simon@josefsson.org>
94216         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
94217         string, needed by strerror.
94219 2008-01-03  Colin Watson  <cjwatson@debian.org>
94220             Bruno Haible  <bruno@clisp.org>
94222         * doc/gnulib-tool.texi (Localization): New section.
94224 2008-01-02  Bruno Haible  <bruno@clisp.org>
94226         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
94227         variables to 'unsigned char *' type.
94228         Reported by Paul Eggert.
94230 2008-01-02  Jim Meyering  <jim@meyering.net>
94232         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
94234 2007-12-31  Jim Meyering  <jim@meyering.net>
94236         Avoid use of private FTS type name.
94237         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
94239 2007-12-30  Karl Berry  <karl@gnu.org>
94241         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
94242         work around defect in Texinfo and/or the standalone Info browser.
94244 2007-12-30  Bruno Haible  <bruno@clisp.org>
94246         Unify 5 copies of the KMP code.
94247         * lib/str-kmp.h: New file.
94248         * lib/c-strcasestr.c: Include str-kmp.h.
94249         (knuth_morris_pratt): Remove function.
94250         (c_strcasestr): Update.
94251         * lib/c-strstr.c: Include str-kmp.h.
94252         (knuth_morris_pratt): Remove function.
94253         (c_strcasestr): Update.
94254         * lib/mbscasestr.c: Include str-kmp.h.
94255         (knuth_morris_pratt_unibyte): Remove function.
94256         * lib/mbsstr.c: Include str-kmp.h.
94257         (knuth_morris_pratt_unibyte): Remove function.
94258         * lib/strcasestr.c: Include str-kmp.h.
94259         (knuth_morris_pratt): Remove function.
94260         (strcasestr): Update.
94261         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
94262         * modules/c-strstr (Files): Likewise.
94263         * modules/mbscasestr (Files): Likewise.
94264         * modules/mbsstr (Files): Likewise.
94265         * modules/strcasestr (Files): Likewise.
94266         Suggested by Paul Eggert.
94268 2007-12-30  Bruno Haible  <bruno@clisp.org>
94270         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
94271         defined.
94273 2007-12-30  Bruno Haible  <bruno@clisp.org>
94275         * lib/xmalloca.h: Include xalloc.h.
94276         (xnmalloca): New macro.
94278 2007-12-30  Bruno Haible  <bruno@clisp.org>
94280         * lib/malloca.h (nmalloca): New macro.
94281         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
94282         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
94283         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
94284         knuth_morris_pratt_multibyte): Likewise.
94285         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
94286         knuth_morris_pratt_multibyte): Likewise.
94287         * lib/memmem.c (knuth_morris_pratt): Likewise.
94288         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
94290 2007-12-25  Bruno Haible  <bruno@clisp.org>
94292         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
94293         * lib/glob.c: Don't include openat.h.
94294         (link_exists2_p): Add back the code that deals with the
94295         !GLOB_ALTDIRFUNC case.
94296         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
94297         let it do the filename concatenation.
94298         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
94299         * modules/glob (Depends-on): Remove openat.
94301 2007-12-31  Bruno Haible  <bruno@clisp.org>
94303         * modules/dirfd (License): Change to LGPLv2+.
94304         Approved by Jim Meyering.
94306 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
94308         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
94309         when multiplying M by sizeof (size_t).
94311 2007-12-10  Martin Lambers  <marlam@marlam.de>
94313         Override getpagesize on mingw.
94314         * lib/getpagesize.c: New file.
94315         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
94316         * modules/getpagesize (Files): Add lib/getpagesize.c.
94317         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
94318         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
94319         REPLACE_GETPAGESIZE.
94320         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
94322 2007-12-25  Bruno Haible  <bruno@clisp.org>
94324         * modules/localcharset (Notice): New field.
94325         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
94326         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
94328 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
94329             Bruno Haible  <bruno@clisp.org>
94331         Avoid using the syntax symbol() in formatted documentation.
94332         * MODULES.html.sh (func_module): When replacing symbol() with a
94333         hyperlink, remove the parentheses. Show an error if some remain.
94334         Recognize and render the '...' syntax.
94335         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
94336         Rework. Add paragraph about GCC's inlining.
94337         * doc/alloca.texi: Likewise.
94338         * doc/error.texi: Remove parentheses from symbol reference.
94339         * doc/gnulib-intro.texi: Likewise.
94340         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
94341         * modules/fnmatch (Description): Reword to say "the ... function".
94342         * modules/full-read (Description): Likewise.
94343         * modules/full-write (Description): Likewise.
94344         * modules/safe-read (Description): Likewise.
94345         * modules/safe-write (Description): Likewise.
94346         * modules/strchrnul (Description): Likewise.
94347         * modules/trim (Description): Likewise.
94348         * modules/error (Description): Remove parentheses from symbol
94349         references.
94350         * modules/verror (Description): Likewise.
94351         Reported by Karl Berry.
94353 2007-12-25  Bruno Haible  <bruno@clisp.org>
94355         Fixup after 2007-10-16 commit.
94356         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
94358 2007-12-24  Bruno Haible  <bruno@clisp.org>
94360         Make --enable-relocatable work with DESTDIR.
94361         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
94362         to compute installdir from destprog.
94363         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
94364         also set the RELOC_DESTDIR variable.
94365         Reported by Левашев Иван <octagram@bluebottle.com>.
94367 2007-12-24  Bruno Haible  <bruno@clisp.org>
94369         Fix link error due to xalloc_die().
94370         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
94371         of xreadlink.
94372         * lib/relocwrapper.c: Update comments.
94373         * build-aux/install-reloc: Remove xreadlink.c from file list.
94374         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
94375         xreadlink.c.
94376         Reported by Левашев Иван <octagram@bluebottle.com>.
94378 2007-12-24  Bruno Haible  <bruno@clisp.org>
94380         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
94381         * lib/setenv.h: Remove file.
94382         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
94383         lib/setenv.h.
94384         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
94385         (Depends-on): Add stdlib.
94386         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
94387         gl_FUNC_UNSETENV.
94388         (Include): Replace setenv.h with <stdlib.h>.
94389         * modules/unsetenv: New file.
94390         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
94391         * lib/unsetenv.c: Include <stdlib.h> first.
94392         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
94393         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
94394         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
94395         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
94396         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
94397         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
94398         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
94399         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
94400         * doc/functions/unsetenv.texi: Update.
94401         * modules/xsetenv (Depends-on): Add unsetenv.
94402         * modules/getdate (Depends-on): Likewise.
94403         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
94404         * lib/xsetenv.c: Don't include setenv.h.
94405         * lib/getdate.y: Likewise.
94406         * lib/relocwrapper.c: Likewise.
94407         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
94408         (Depends-on): Add stdlib.
94409         * NEWS: Mention the changes.
94410         Reported by Левашев Иван <octagram@bluebottle.com>.
94412 2007-12-23  Bruno Haible  <bruno@clisp.org>
94414         * lib/memmem.c (memmem): Use lowercase variable names. Tab
94415         indentation.
94417 2007-12-23  Bruno Haible  <bruno@clisp.org>
94419         * lib/c-strcasestr.c: Add more comments.
94420         * lib/c-strstr.c: Likewise.
94421         * lib/mbscasestr.c: Likewise.
94422         * lib/mbsstr.c: Likewise.
94423         * lib/strcasestr.c: Likewise.
94424         * lib/memmem.c: Likewise.
94426 2007-12-23  Bruno Haible  <bruno@clisp.org>
94428         * tests/test-memmem.c: Include <string.h> first.
94430 2007-12-22  Bruno Haible  <bruno@clisp.org>
94432         * gnulib-tool (func_create_testdir): Change $auxdir while generating
94433         the contents of $testsbase.
94434         Reported by Ralf Wildenhues.
94436 2007-12-22  Bruno Haible  <bruno@clisp.org>
94438         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
94439         two variables local_ldadd_before, local_ldadd_last.
94441 2007-12-20  Eric Blake  <ebb9@byu.net>
94443         Work around circular library issue when cross-compiling.
94444         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
94445         that progname.o does not need to pull in rpl_memcmp.
94447 2007-12-19  Eric Blake  <ebb9@byu.net>
94449         Fix memmem to avoid O(n^2) worst-case complexity.
94450         * lib/memmem.c (knuth_morris_pratt): New function.
94451         (memmem): Use it if first few naive iterations fail.
94452         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
94453         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
94454         * modules/memchr (License): Likewise.
94455         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
94456         malloca.
94457         * tests/test-memmem.c: Rewrite, borrowing ideas from
94458         test-mbsstr1.c; the old version wouldn't even compile!
94459         * modules/memmem-tests: New file.
94460         * lib/string.in.h (rpl_memmem): Add declaration.
94461         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
94462         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
94463         REPLACE_MEMMEM.
94465 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
94467         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
94468         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
94469         before any system include files, and undef after them all.  This
94470         should fix a problem on VMS reported by John E. Malmberg in
94471         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
94473 2007-12-17  Eric Blake  <ebb9@byu.net>
94475         Revert addition of verify, for BSD/OS.
94476         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
94477         can't handle large files, for the sake of obsolete platforms.
94478         * modules/fseeko (Depends-on): Remove verify.
94479         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
94480         * doc/functions/ftello.texi (ftello): Likewise.
94481         * doc/functions/fgetpos.texi (fgetpos): Likewise.
94482         Reported by Larry Jones.
94484 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
94486         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
94487         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
94489 2007-12-17  Jim Meyering  <meyering@redhat.com>
94491         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
94492         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
94493         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
94494         * modules/getcwd (Depends-on): Add openat.
94495         Reported by Petr Salinger.
94497 2007-12-17  Bruno Haible  <bruno@clisp.org>
94499         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
94500         avoid a segmentation fault of the configure test on x86_64 systems.
94502 2007-12-15  Jim Meyering  <meyering@redhat.com>
94504         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
94506 2007-12-13  Eric Blake  <ebb9@byu.net>
94508         Another fseek test.
94509         * tests/test-fseek.c (main): Also test ungetc handling.
94510         * tests/test-fseeko.c (main): Likewise.
94511         * modules/fseeko (Depends-on): Add verify.
94512         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
94513         large.
94514         Reported by Larry Jones.
94516         Fix fseeko on mingw.
94517         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
94518         seek.
94520         Beef up fseek tests.
94521         * tests/test-fseek.c (main): Also test eof handling.
94522         * tests/test-fseeko.c (main): Likewise.
94523         Reported by Larry Jones.
94525 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
94527         Fix fseeko on BSD-based platforms.
94528         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
94529         successful seek.
94531 2007-12-12  Eric Blake  <ebb9@byu.net>
94533         Allow circular dependency of separate libtests.a
94534         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
94535         when use_libtests.
94537 2007-12-11  Eric Blake  <ebb9@byu.net>
94539         Fix bug with -0.0L in previous patch.
94540         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
94541         * tests/test-isnan.c (main): Also test on zeroes.
94542         * tests/test-isnanf.c (main): Likewise.
94543         * tests/test-isnanl.h (main): Likewise.
94545         Detect pseudo-denormals on x86 even when cross-compiling.
94546         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
94547         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
94548         invalid bit patterns that happen to satisfy ==.
94550         Avoid link failures with separate libtests.a.
94551         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
94552         last, to satisfy circular dependencies.
94554 2007-12-11  Eric Blake  <ebb9@byu.net>
94555         and Bruno Haible  <bruno@clisp.org>
94557         Fix OpenBSD 4.0 <float.h> handling of long double.
94558         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
94559         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
94560         * doc/headers/float.texi (float.h): Document OpenBSD bug.
94562 2007-12-11  Jim Meyering  <meyering@redhat.com>
94564         * users.txt: Add libvirt.
94566         Support versions of autoconf prior to 2.59c.
94567         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
94568         if it is not already defined.
94570 2007-12-09  Bruno Haible  <bruno@clisp.org>
94572         Let 'gnulib-tool --import' collect sources needed for the tests in
94573         tests/ rather than in lib/.
94574         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
94575         argument. If true, add rules to generate libtests.a, and put libtests.a
94576         into $(LDADD). Consider source files in subdirectories and set
94577         uses_subdirs.
94578         (func_emit_initmacro_start, func_emit_initmacro_end,
94579         func_emit_initmacro_done): Pass all arguments explicitly.
94580         (func_import): Determine two module lists main_modules,
94581         testsrelated_modules. Determine use_libtests. Determine two variables
94582         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
94583         instead of just sed_transform_lib_file. Determine two variables
94584         main_files and testsrelated_files. Compute 'files' as the union of
94585         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
94586         func_add_or_update. In the generated gnulib-comp.m4, collect the
94587         object files for tests/ in different variables than those for lib/.
94588         Substitute LIBTESTS_LIBDEPS.
94589         (func_create_testdir): Combine the uses_subdirs results from
94590         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
94592 2007-12-09  Bruno Haible  <bruno@clisp.org>
94594         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
94595         the build-aux directory.
94597 2007-12-09  Bruno Haible  <bruno@clisp.org>
94599         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
94600         introduced on 2006-09-09.
94602 2007-12-07  Jim Meyering  <meyering@redhat.com>
94604         Let these macros work also with autoconf-2.59.
94605         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
94606         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
94607         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
94609 2007-12-06  Jim Meyering  <meyering@redhat.com>
94611         Avoid a configure-time syntax error in gl_FUNC_ACL.
94612         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
94613         function in each branch, before testing the cache variable.
94615 2007-12-04  Eric Blake  <ebb9@byu.net>
94617         Make scripts executable.
94618         * build-aux/config.guess: Add execute permissions.
94619         * build-aux/config.sub: Likewise.
94620         * build-aux/gendocs.sh: Likewise.
94622         Fix frexp on mingw.
94623         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
94624         cross-compiling.
94625         * doc/functions/frexp.texi (frexp): Document the bug.
94627         Make cygwin fseeko check more reliable.
94628         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
94629         version numbers, rather than unrelated feature check.
94630         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
94631         * doc/functions/ftello.texi (ftello): Likewise.
94632         Reported by Bruno Haible.
94634         * m4/strerror.m4: Bump version number.
94636 2007-12-03  Bruno Haible  <bruno@clisp.org>
94638         * doc/functions/mprotect.texi: Mention the mingw problem.
94640 2007-12-03  Eric Blake  <ebb9@byu.net>
94642         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
94643         REPLACE_STRERROR is initialized before this macro.
94645 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
94647         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
94648         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
94649         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
94650         put -lsec in even for programs other than 'ls'.  This fixes a problem
94651         for gettext reported by Bruno Haible in
94652         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
94653         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
94654         Add support for Solaris 10.  This isn't efficient, but should get the
94655         job done for now.
94657 2007-12-03  James Youngman  <jay@gnu.org>
94659         * doc/regexprops-generic.texi: change "an close-group" to "a
94660         close-group" and "illegal" to "not allowed".
94662 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94664         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
94665         pr_byname.h. Needed for the rare case when the maintainer has done
94666         "make maintainer-clean" in the source directory and then attempts a
94667         build outside the source directory.
94668         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
94669         scripts_byname.h.
94671 2007-12-02  Martin Lambers  <marlam@marlam.de>
94672             Bruno Haible  <bruno@clisp.org>
94674         * lib/getpagesize.h: Remove file.
94675         * lib/unistd.in.h: Include declaration of getpagesize here.
94676         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
94677         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
94678         HAVE_SYS_PARAM_H.
94679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
94680         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
94681         * modules/getpagesize (Files): Remove lib/getpagesize.h.
94682         (Depends-on): Add unistd.
94683         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
94684         (Include): Use <unistd.h> instead of getpagesize.h.
94685         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
94686         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
94687         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
94688         gl_GETPAGESIZE invocation, already handled by module dependency.
94689         * lib/pagealign_alloc.c: Don't include getpagesize.h.
94691 2007-12-02  Bruno Haible  <bruno@clisp.org>
94693         * modules/strings-tests: New file.
94694         * tests/test-strings.c: New file.
94696         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
94697         * lib/strings.in.h: New file.
94698         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
94699         * m4/strings_h.m4: New file.
94700         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
94701         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
94702         * modules/strings: New file.
94703         * modules/string (Makefile.am): Update.
94704         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
94705         Reported by Karl Berry.
94707 2007-12-01  Eric Blake  <ebb9@byu.net>
94709         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
94710         accommodate fix in cygwin 1.5.25.
94712 2007-12-01  Jim Meyering  <meyering@redhat.com>
94714         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
94715         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
94716         that would inhibit utf8-optimization of a regexp containing line-
94717         or buffer-anchors, e.g., `^', `$'.
94719 2007-11-30  Bruno Haible  <bruno@clisp.org>
94721         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
94722         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
94723         glthread_recursive_lock_init.
94724         * lib/lock.c (glthread_recursive_lock_init)
94725         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
94726         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
94728 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
94730         New function qset_acl, like set_acl but with syscall semantics.
94731         * lib/acl.h (qset_acl): New decl.
94732         * lib/acl.c (qset_acl): New function.
94733         (set_acl): Use new function.  Use more-consistent diagnostics.
94735 2007-11-28  Jim Meyering  <meyering@redhat.com>
94737         * modules/physmem (License): Change from GPL to LGPLv2+.
94739 2007-11-26  Bruno Haible  <bruno@clisp.org>
94741         * lib/vasnprintf.c (decode_long_double): Don't abort if the
94742         'long double' type has excess precision.
94743         Reported by Jim Meyering in
94744         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
94746 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94748         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
94749         Sync from <http://gnu.org/licenses>.
94750         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
94751         with license text from same location.
94752         * doc/maintain.texi, doc/standards.texi:  Sync from
94753         <http://savannah.gnu.org/projects/gnustandards>.
94755 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
94756         and Jim Meyering  <meyering@redhat.com>
94758         Adjust getdate' grammar to accept a slightly more regular language.
94759         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
94760         Before, the former was rejected.
94761         * lib/getdate.y (digits_to_date_time): New function, factored
94762         out of ...
94763         (number): ...here.  Just call digits_to_date_time.
94764         (hybrid): New non-terminal to handle an <unsigned number,
94765         signed relative offset> sequence consistently.
94767 2007-11-18  Jim Meyering  <meyering@redhat.com>
94769         Pull my changes from coreutils:
94770         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
94771         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
94772         use of $gnulib_tool_option_extras, so that it's separated from the
94773         preceding argument.
94775         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
94776         * build-aux/bootstrap (cp_mark_as_generated): Create any required
94777         parent destination directories before copying a file into place.
94779 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
94781         bootstrap: work also with 4-argument variant of AC_INIT
94782         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
94784 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
94786         Port test-getaddrinfo to Solaris.
94787         Problem reported by Bruno Haible in
94788         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
94789         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
94790         explanation of setting 'hints'.
94791         Don't reject an implementation merely because it returns EAI_SERVICE.
94792         (EAI_SERVICE): Define to 0 if not defined.
94794 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
94796         The license of gnu-make and posix-shell is now "GPLed build tool".
94797         * modules/gnu-make (License): Likewise.
94798         * modules/posix-shell (License): Likewise.
94800         New module posix-shell, for determining a POSIX shell
94801         or perhaps something that is close enough to a POSIX shell.
94802         * m4/posix-shell.m4: New file.
94803         * modules/posix-shell: New file.
94805         * MODULES.html.sh: Mention new module.
94807         New module gnu-make, for determining whether we're using GNU Make.
94808         * m4/gnu-make.m4: New file.
94809         * modules/gnu-make: New file.
94810         * MODULES.html.sh: Mention new module.
94812 2007-11-14  Jim Meyering  <meyering@redhat.com>
94814         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
94815         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
94816         use this macro to create a function _definition_.
94817         Remove useless "#undef ARGMATCH_DIE".
94819 2007-11-14  Bruno Haible  <bruno@clisp.org>
94821         * lib/config.charset: Update for OpenBSD 4.1.
94822         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
94824 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
94826         Document 64-bit #if problems in stdint.texi.
94827         * doc/headers/stdint.texi (stdint.h): Mention problems with
94828         64-bit-#if, and how to work around them.
94830         Don't insist on 'long long int' support in the preprocessor.  It
94831         breaks too many things.  For example, PRIdMAX still uses a 'long
94832         long int' format with the latest Sun compiler, even though
94833         HAVE_LONG_LONG_INT isn't defined due to that compiler's
94834         preprocessor problem.  This causes the latest coreutils to dump
94835         core on Solaris 10 sparc with the Sun C compiler.
94836         Instead, fix the 2007-10-16 problem in a different way, by evaluating
94837         the troublesome expressions at configure-time, not at #if-time.
94838         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
94839         preprocessor.
94840         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
94841         compile-time C checks, done at 'configure'-time.
94842         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
94843         * modules/inttypes (Makefile): Substitute the new symbols that
94844         gl_INTTYPES_H now generates.
94845         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
94847 2007-11-12  Bruno Haible  <bruno@clisp.org>
94849         Tests for Unicode character classification functions.
94851         * modules/unictype/bidicategory-byname-tests: New file.
94852         * modules/unictype/bidicategory-name-tests: New file.
94853         * modules/unictype/bidicategory-of-tests: New file.
94854         * modules/unictype/bidicategory-test-tests: New file.
94855         * modules/unictype/block-list-tests: New file.
94856         * modules/unictype/block-of-tests: New file.
94857         * modules/unictype/block-test-tests: New file.
94858         * modules/unictype/category-C-tests: New file.
94859         * modules/unictype/category-Cc-tests: New file.
94860         * modules/unictype/category-Cf-tests: New file.
94861         * modules/unictype/category-Cn-tests: New file.
94862         * modules/unictype/category-Co-tests: New file.
94863         * modules/unictype/category-Cs-tests: New file.
94864         * modules/unictype/category-L-tests: New file.
94865         * modules/unictype/category-Ll-tests: New file.
94866         * modules/unictype/category-Lm-tests: New file.
94867         * modules/unictype/category-Lo-tests: New file.
94868         * modules/unictype/category-Lt-tests: New file.
94869         * modules/unictype/category-Lu-tests: New file.
94870         * modules/unictype/category-M-tests: New file.
94871         * modules/unictype/category-Mc-tests: New file.
94872         * modules/unictype/category-Me-tests: New file.
94873         * modules/unictype/category-Mn-tests: New file.
94874         * modules/unictype/category-N-tests: New file.
94875         * modules/unictype/category-Nd-tests: New file.
94876         * modules/unictype/category-Nl-tests: New file.
94877         * modules/unictype/category-No-tests: New file.
94878         * modules/unictype/category-P-tests: New file.
94879         * modules/unictype/category-Pc-tests: New file.
94880         * modules/unictype/category-Pd-tests: New file.
94881         * modules/unictype/category-Pe-tests: New file.
94882         * modules/unictype/category-Pf-tests: New file.
94883         * modules/unictype/category-Pi-tests: New file.
94884         * modules/unictype/category-Po-tests: New file.
94885         * modules/unictype/category-Ps-tests: New file.
94886         * modules/unictype/category-S-tests: New file.
94887         * modules/unictype/category-Sc-tests: New file.
94888         * modules/unictype/category-Sk-tests: New file.
94889         * modules/unictype/category-Sm-tests: New file.
94890         * modules/unictype/category-So-tests: New file.
94891         * modules/unictype/category-Z-tests: New file.
94892         * modules/unictype/category-Zl-tests: New file.
94893         * modules/unictype/category-Zp-tests: New file.
94894         * modules/unictype/category-Zs-tests: New file.
94895         * modules/unictype/category-and-not-tests: New file.
94896         * modules/unictype/category-and-tests: New file.
94897         * modules/unictype/category-byname-tests: New file.
94898         * modules/unictype/category-name-tests: New file.
94899         * modules/unictype/category-none-tests: New file.
94900         * modules/unictype/category-of-tests: New file.
94901         * modules/unictype/category-or-tests: New file.
94902         * modules/unictype/category-test-withtable-tests: New file.
94903         * modules/unictype/combining-class-tests: New file.
94904         * modules/unictype/ctype-alnum-tests: New file.
94905         * modules/unictype/ctype-alpha-tests: New file.
94906         * modules/unictype/ctype-blank-tests: New file.
94907         * modules/unictype/ctype-cntrl-tests: New file.
94908         * modules/unictype/ctype-digit-tests: New file.
94909         * modules/unictype/ctype-graph-tests: New file.
94910         * modules/unictype/ctype-lower-tests: New file.
94911         * modules/unictype/ctype-print-tests: New file.
94912         * modules/unictype/ctype-punct-tests: New file.
94913         * modules/unictype/ctype-space-tests: New file.
94914         * modules/unictype/ctype-upper-tests: New file.
94915         * modules/unictype/ctype-xdigit-tests: New file.
94916         * modules/unictype/decimal-digit-tests: New file.
94917         * modules/unictype/digit-tests: New file.
94918         * modules/unictype/mirror-tests: New file.
94919         * modules/unictype/numeric-tests: New file.
94920         * modules/unictype/property-alphabetic-tests: New file.
94921         * modules/unictype/property-ascii-hex-digit-tests: New file.
94922         * modules/unictype/property-bidi-arabic-digit-tests: New file.
94923         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
94924         * modules/unictype/property-bidi-block-separator-tests: New file.
94925         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
94926         * modules/unictype/property-bidi-common-separator-tests: New file.
94927         * modules/unictype/property-bidi-control-tests: New file.
94928         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
94929         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
94930         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
94931         * modules/unictype/property-bidi-european-digit-tests: New file.
94932         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
94933         * modules/unictype/property-bidi-left-to-right-tests: New file.
94934         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
94935         * modules/unictype/property-bidi-other-neutral-tests: New file.
94936         * modules/unictype/property-bidi-pdf-tests: New file.
94937         * modules/unictype/property-bidi-segment-separator-tests: New file.
94938         * modules/unictype/property-bidi-whitespace-tests: New file.
94939         * modules/unictype/property-byname-tests: New file.
94940         * modules/unictype/property-combining-tests: New file.
94941         * modules/unictype/property-composite-tests: New file.
94942         * modules/unictype/property-currency-symbol-tests: New file.
94943         * modules/unictype/property-dash-tests: New file.
94944         * modules/unictype/property-decimal-digit-tests: New file.
94945         * modules/unictype/property-default-ignorable-code-point-tests: New file.
94946         * modules/unictype/property-deprecated-tests: New file.
94947         * modules/unictype/property-diacritic-tests: New file.
94948         * modules/unictype/property-extender-tests: New file.
94949         * modules/unictype/property-format-control-tests: New file.
94950         * modules/unictype/property-grapheme-base-tests: New file.
94951         * modules/unictype/property-grapheme-extend-tests: New file.
94952         * modules/unictype/property-grapheme-link-tests: New file.
94953         * modules/unictype/property-hex-digit-tests: New file.
94954         * modules/unictype/property-hyphen-tests: New file.
94955         * modules/unictype/property-id-continue-tests: New file.
94956         * modules/unictype/property-id-start-tests: New file.
94957         * modules/unictype/property-ideographic-tests: New file.
94958         * modules/unictype/property-ids-binary-operator-tests: New file.
94959         * modules/unictype/property-ids-trinary-operator-tests: New file.
94960         * modules/unictype/property-ignorable-control-tests: New file.
94961         * modules/unictype/property-iso-control-tests: New file.
94962         * modules/unictype/property-join-control-tests: New file.
94963         * modules/unictype/property-left-of-pair-tests: New file.
94964         * modules/unictype/property-line-separator-tests: New file.
94965         * modules/unictype/property-logical-order-exception-tests: New file.
94966         * modules/unictype/property-lowercase-tests: New file.
94967         * modules/unictype/property-math-tests: New file.
94968         * modules/unictype/property-non-break-tests: New file.
94969         * modules/unictype/property-not-a-character-tests: New file.
94970         * modules/unictype/property-numeric-tests: New file.
94971         * modules/unictype/property-other-alphabetic-tests: New file.
94972         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
94973         * modules/unictype/property-other-grapheme-extend-tests: New file.
94974         * modules/unictype/property-other-id-continue-tests: New file.
94975         * modules/unictype/property-other-id-start-tests: New file.
94976         * modules/unictype/property-other-lowercase-tests: New file.
94977         * modules/unictype/property-other-math-tests: New file.
94978         * modules/unictype/property-other-uppercase-tests: New file.
94979         * modules/unictype/property-paired-punctuation-tests: New file.
94980         * modules/unictype/property-paragraph-separator-tests: New file.
94981         * modules/unictype/property-pattern-syntax-tests: New file.
94982         * modules/unictype/property-pattern-white-space-tests: New file.
94983         * modules/unictype/property-private-use-tests: New file.
94984         * modules/unictype/property-punctuation-tests: New file.
94985         * modules/unictype/property-quotation-mark-tests: New file.
94986         * modules/unictype/property-radical-tests: New file.
94987         * modules/unictype/property-sentence-terminal-tests: New file.
94988         * modules/unictype/property-soft-dotted-tests: New file.
94989         * modules/unictype/property-space-tests: New file.
94990         * modules/unictype/property-terminal-punctuation-tests: New file.
94991         * modules/unictype/property-test-tests: New file.
94992         * modules/unictype/property-titlecase-tests: New file.
94993         * modules/unictype/property-unassigned-code-value-tests: New file.
94994         * modules/unictype/property-unified-ideograph-tests: New file.
94995         * modules/unictype/property-uppercase-tests: New file.
94996         * modules/unictype/property-variation-selector-tests: New file.
94997         * modules/unictype/property-white-space-tests: New file.
94998         * modules/unictype/property-xid-continue-tests: New file.
94999         * modules/unictype/property-xid-start-tests: New file.
95000         * modules/unictype/property-zero-width-tests: New file.
95001         * modules/unictype/scripts-tests: New file.
95002         * modules/unictype/syntax-c-ident-tests: New file.
95003         * modules/unictype/syntax-c-whitespace-tests: New file.
95004         * modules/unictype/syntax-java-ident-tests: New file.
95005         * modules/unictype/syntax-java-whitespace-tests: New file.
95006         * tests/unictype/test-bidi_byname.c: New file.
95007         * tests/unictype/test-bidi_name.c: New file.
95008         * tests/unictype/test-bidi_of.c: New file.
95009         * tests/unictype/test-bidi_test.c: New file.
95010         * tests/unictype/test-block_list.c: New file.
95011         * tests/unictype/test-block_of.c: New file.
95012         * tests/unictype/test-block_test.c: New file.
95013         * tests/unictype/test-categ_and.c: New file.
95014         * tests/unictype/test-categ_and_not.c: New file.
95015         * tests/unictype/test-categ_byname.c: New file.
95016         * tests/unictype/test-categ_name.c: New file.
95017         * tests/unictype/test-categ_none.c: New file.
95018         * tests/unictype/test-categ_of.c: New file.
95019         * tests/unictype/test-categ_or.c: New file.
95020         * tests/unictype/test-categ_test_withtable.c: New file.
95021         * tests/unictype/test-combining.c: New file.
95022         * tests/unictype/test-decdigit.c: New file.
95023         * tests/unictype/test-digit.c: New file.
95024         * tests/unictype/test-mirror.c: New file.
95025         * tests/unictype/test-numeric.c: New file.
95026         * tests/unictype/test-pr_byname.c: New file.
95027         * tests/unictype/test-pr_test.c: New file.
95028         * tests/unictype/test-predicate-part1.h: New file.
95029         * tests/unictype/test-predicate-part2.h: New file.
95030         * tests/unictype/test-scripts.c: New file.
95031         * tests/unictype/test-sy_c_ident.c: New file.
95032         * tests/unictype/test-sy_java_ident.c: New file.
95034         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
95035         for Unicode 5.0.0.
95036         * tests/unictype/test-categ_Cc.c: Likewise.
95037         * tests/unictype/test-categ_Cf.c: Likewise.
95038         * tests/unictype/test-categ_Cn.c: Likewise.
95039         * tests/unictype/test-categ_Co.c: Likewise.
95040         * tests/unictype/test-categ_Cs.c: Likewise.
95041         * tests/unictype/test-categ_L.c: Likewise.
95042         * tests/unictype/test-categ_Ll.c: Likewise.
95043         * tests/unictype/test-categ_Lm.c: Likewise.
95044         * tests/unictype/test-categ_Lo.c: Likewise.
95045         * tests/unictype/test-categ_Lt.c: Likewise.
95046         * tests/unictype/test-categ_Lu.c: Likewise.
95047         * tests/unictype/test-categ_M.c: Likewise.
95048         * tests/unictype/test-categ_Mc.c: Likewise.
95049         * tests/unictype/test-categ_Me.c: Likewise.
95050         * tests/unictype/test-categ_Mn.c: Likewise.
95051         * tests/unictype/test-categ_N.c: Likewise.
95052         * tests/unictype/test-categ_Nd.c: Likewise.
95053         * tests/unictype/test-categ_Nl.c: Likewise.
95054         * tests/unictype/test-categ_No.c: Likewise.
95055         * tests/unictype/test-categ_P.c: Likewise.
95056         * tests/unictype/test-categ_Pc.c: Likewise.
95057         * tests/unictype/test-categ_Pd.c: Likewise.
95058         * tests/unictype/test-categ_Pe.c: Likewise.
95059         * tests/unictype/test-categ_Pf.c: Likewise.
95060         * tests/unictype/test-categ_Pi.c: Likewise.
95061         * tests/unictype/test-categ_Po.c: Likewise.
95062         * tests/unictype/test-categ_Ps.c: Likewise.
95063         * tests/unictype/test-categ_S.c: Likewise.
95064         * tests/unictype/test-categ_Sc.c: Likewise.
95065         * tests/unictype/test-categ_Sk.c: Likewise.
95066         * tests/unictype/test-categ_Sm.c: Likewise.
95067         * tests/unictype/test-categ_So.c: Likewise.
95068         * tests/unictype/test-categ_Z.c: Likewise.
95069         * tests/unictype/test-categ_Zl.c: Likewise.
95070         * tests/unictype/test-categ_Zp.c: Likewise.
95071         * tests/unictype/test-categ_Zs.c: Likewise.
95072         * tests/unictype/test-ctype_alnum.c: Likewise.
95073         * tests/unictype/test-ctype_alpha.c: Likewise.
95074         * tests/unictype/test-ctype_blank.c: Likewise.
95075         * tests/unictype/test-ctype_cntrl.c: Likewise.
95076         * tests/unictype/test-ctype_digit.c: Likewise.
95077         * tests/unictype/test-ctype_graph.c: Likewise.
95078         * tests/unictype/test-ctype_lower.c: Likewise.
95079         * tests/unictype/test-ctype_print.c: Likewise.
95080         * tests/unictype/test-ctype_punct.c: Likewise.
95081         * tests/unictype/test-ctype_space.c: Likewise.
95082         * tests/unictype/test-ctype_upper.c: Likewise.
95083         * tests/unictype/test-ctype_xdigit.c: Likewise.
95084         * tests/unictype/test-decdigit.h: Likewise.
95085         * tests/unictype/test-digit.h: Likewise.
95086         * tests/unictype/test-numeric.h: Likewise.
95087         * tests/unictype/test-pr_alphabetic.c: Likewise.
95088         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
95089         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
95090         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
95091         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
95092         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
95093         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
95094         * tests/unictype/test-pr_bidi_control.c: Likewise.
95095         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
95096         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
95097         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
95098         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
95099         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
95100         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
95101         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
95102         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
95103         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
95104         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
95105         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
95106         * tests/unictype/test-pr_combining.c: Likewise.
95107         * tests/unictype/test-pr_composite.c: Likewise.
95108         * tests/unictype/test-pr_currency_symbol.c: Likewise.
95109         * tests/unictype/test-pr_dash.c: Likewise.
95110         * tests/unictype/test-pr_decimal_digit.c: Likewise.
95111         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
95112         * tests/unictype/test-pr_deprecated.c: Likewise.
95113         * tests/unictype/test-pr_diacritic.c: Likewise.
95114         * tests/unictype/test-pr_extender.c: Likewise.
95115         * tests/unictype/test-pr_format_control.c: Likewise.
95116         * tests/unictype/test-pr_grapheme_base.c: Likewise.
95117         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
95118         * tests/unictype/test-pr_grapheme_link.c: Likewise.
95119         * tests/unictype/test-pr_hex_digit.c: Likewise.
95120         * tests/unictype/test-pr_hyphen.c: Likewise.
95121         * tests/unictype/test-pr_id_continue.c: Likewise.
95122         * tests/unictype/test-pr_id_start.c: Likewise.
95123         * tests/unictype/test-pr_ideographic.c: Likewise.
95124         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
95125         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
95126         * tests/unictype/test-pr_ignorable_control.c: Likewise.
95127         * tests/unictype/test-pr_iso_control.c: Likewise.
95128         * tests/unictype/test-pr_join_control.c: Likewise.
95129         * tests/unictype/test-pr_left_of_pair.c: Likewise.
95130         * tests/unictype/test-pr_line_separator.c: Likewise.
95131         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
95132         * tests/unictype/test-pr_lowercase.c: Likewise.
95133         * tests/unictype/test-pr_math.c: Likewise.
95134         * tests/unictype/test-pr_non_break.c: Likewise.
95135         * tests/unictype/test-pr_not_a_character.c: Likewise.
95136         * tests/unictype/test-pr_numeric.c: Likewise.
95137         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
95138         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
95139         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
95140         * tests/unictype/test-pr_other_id_continue.c: Likewise.
95141         * tests/unictype/test-pr_other_id_start.c: Likewise.
95142         * tests/unictype/test-pr_other_lowercase.c: Likewise.
95143         * tests/unictype/test-pr_other_math.c: Likewise.
95144         * tests/unictype/test-pr_other_uppercase.c: Likewise.
95145         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
95146         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
95147         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
95148         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
95149         * tests/unictype/test-pr_private_use.c: Likewise.
95150         * tests/unictype/test-pr_punctuation.c: Likewise.
95151         * tests/unictype/test-pr_quotation_mark.c: Likewise.
95152         * tests/unictype/test-pr_radical.c: Likewise.
95153         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
95154         * tests/unictype/test-pr_soft_dotted.c: Likewise.
95155         * tests/unictype/test-pr_space.c: Likewise.
95156         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
95157         * tests/unictype/test-pr_titlecase.c: Likewise.
95158         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
95159         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
95160         * tests/unictype/test-pr_uppercase.c: Likewise.
95161         * tests/unictype/test-pr_variation_selector.c: Likewise.
95162         * tests/unictype/test-pr_white_space.c: Likewise.
95163         * tests/unictype/test-pr_xid_continue.c: Likewise.
95164         * tests/unictype/test-pr_xid_start.c: Likewise.
95165         * tests/unictype/test-pr_zero_width.c: Likewise.
95166         * tests/unictype/test-sy_c_whitespace.c: Likewise.
95167         * tests/unictype/test-sy_java_whitespace.c: Likewise.
95169 2007-11-12  Bruno Haible  <bruno@clisp.org>
95171         Unicode character classification functions.
95172         * lib/unictype.h: New file.
95173         * modules/unictype/base: New file.
95174         * modules/unictype/category-L: New file.
95175         * modules/unictype/category-Lu: New file.
95176         * modules/unictype/category-Ll: New file.
95177         * modules/unictype/category-Lt: New file.
95178         * modules/unictype/category-Lm: New file.
95179         * modules/unictype/category-Lo: New file.
95180         * modules/unictype/category-M: New file.
95181         * modules/unictype/category-Mn: New file.
95182         * modules/unictype/category-Mc: New file.
95183         * modules/unictype/category-Me: New file.
95184         * modules/unictype/category-N: New file.
95185         * modules/unictype/category-Nd: New file.
95186         * modules/unictype/category-Nl: New file.
95187         * modules/unictype/category-No: New file.
95188         * modules/unictype/category-P: New file.
95189         * modules/unictype/category-Pc: New file.
95190         * modules/unictype/category-Pd: New file.
95191         * modules/unictype/category-Ps: New file.
95192         * modules/unictype/category-Pe: New file.
95193         * modules/unictype/category-Pi: New file.
95194         * modules/unictype/category-Pf: New file.
95195         * modules/unictype/category-Po: New file.
95196         * modules/unictype/category-S: New file.
95197         * modules/unictype/category-Sm: New file.
95198         * modules/unictype/category-Sc: New file.
95199         * modules/unictype/category-Sk: New file.
95200         * modules/unictype/category-So: New file.
95201         * modules/unictype/category-Z: New file.
95202         * modules/unictype/category-Zs: New file.
95203         * modules/unictype/category-Zl: New file.
95204         * modules/unictype/category-Zp: New file.
95205         * modules/unictype/category-C: New file.
95206         * modules/unictype/category-Cc: New file.
95207         * modules/unictype/category-Cf: New file.
95208         * modules/unictype/category-Cs: New file.
95209         * modules/unictype/category-Co: New file.
95210         * modules/unictype/category-Cn: New file.
95211         * modules/unictype/category-or: New file.
95212         * modules/unictype/category-of: New file.
95213         * modules/unictype/category-test: New file.
95214         * modules/unictype/category-test-withtable: New file.
95215         * modules/unictype/category-byname: New file.
95216         * modules/unictype/category-none: New file.
95217         * modules/unictype/category-and: New file.
95218         * modules/unictype/category-and-not: New file.
95219         * modules/unictype/category-name: New file.
95220         * modules/unictype/combining-class: New file.
95221         * modules/unictype/category-all: New file.
95222         * modules/unictype/bidicategory-all: New file.
95223         * modules/unictype/bidicategory-byname: New file.
95224         * modules/unictype/bidicategory-name: New file.
95225         * modules/unictype/bidicategory-of: New file.
95226         * modules/unictype/bidicategory-test: New file.
95227         * modules/unictype/decimal-digit: New file.
95228         * modules/unictype/digit: New file.
95229         * modules/unictype/numeric: New file.
95230         * modules/unictype/mirror: New file.
95231         * modules/unictype/property-white-space: New file.
95232         * modules/unictype/property-alphabetic: New file.
95233         * modules/unictype/property-other-alphabetic: New file.
95234         * modules/unictype/property-not-a-character: New file.
95235         * modules/unictype/property-default-ignorable-code-point: New file.
95236         * modules/unictype/property-other-default-ignorable-code-point: New
95237         file.
95238         * modules/unictype/property-deprecated: New file.
95239         * modules/unictype/property-logical-order-exception: New file.
95240         * modules/unictype/property-variation-selector: New file.
95241         * modules/unictype/property-private-use: New file.
95242         * modules/unictype/property-unassigned-code-value: New file.
95243         * modules/unictype/property-uppercase: New file.
95244         * modules/unictype/property-other-uppercase: New file.
95245         * modules/unictype/property-lowercase: New file.
95246         * modules/unictype/property-other-lowercase: New file.
95247         * modules/unictype/property-titlecase: New file.
95248         * modules/unictype/property-soft-dotted: New file.
95249         * modules/unictype/property-id-start: New file.
95250         * modules/unictype/property-other-id-start: New file.
95251         * modules/unictype/property-id-continue: New file.
95252         * modules/unictype/property-other-id-continue: New file.
95253         * modules/unictype/property-xid-start: New file.
95254         * modules/unictype/property-xid-continue: New file.
95255         * modules/unictype/property-pattern-white-space: New file.
95256         * modules/unictype/property-pattern-syntax: New file.
95257         * modules/unictype/property-join-control: New file.
95258         * modules/unictype/property-grapheme-base: New file.
95259         * modules/unictype/property-grapheme-extend: New file.
95260         * modules/unictype/property-other-grapheme-extend: New file.
95261         * modules/unictype/property-grapheme-link: New file.
95262         * modules/unictype/property-bidi-control: New file.
95263         * modules/unictype/property-bidi-left-to-right: New file.
95264         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
95265         * modules/unictype/property-bidi-arabic-right-to-left: New file.
95266         * modules/unictype/property-bidi-european-digit: New file.
95267         * modules/unictype/property-bidi-eur-num-separator: New file.
95268         * modules/unictype/property-bidi-eur-num-terminator: New file.
95269         * modules/unictype/property-bidi-arabic-digit: New file.
95270         * modules/unictype/property-bidi-common-separator: New file.
95271         * modules/unictype/property-bidi-block-separator: New file.
95272         * modules/unictype/property-bidi-segment-separator: New file.
95273         * modules/unictype/property-bidi-whitespace: New file.
95274         * modules/unictype/property-bidi-non-spacing-mark: New file.
95275         * modules/unictype/property-bidi-boundary-neutral: New file.
95276         * modules/unictype/property-bidi-pdf: New file.
95277         * modules/unictype/property-bidi-embedding-or-override: New file.
95278         * modules/unictype/property-bidi-other-neutral: New file.
95279         * modules/unictype/property-hex-digit: New file.
95280         * modules/unictype/property-ascii-hex-digit: New file.
95281         * modules/unictype/property-ideographic: New file.
95282         * modules/unictype/property-unified-ideograph: New file.
95283         * modules/unictype/property-radical: New file.
95284         * modules/unictype/property-ids-binary-operator: New file.
95285         * modules/unictype/property-ids-trinary-operator: New file.
95286         * modules/unictype/property-zero-width: New file.
95287         * modules/unictype/property-space: New file.
95288         * modules/unictype/property-non-break: New file.
95289         * modules/unictype/property-iso-control: New file.
95290         * modules/unictype/property-format-control: New file.
95291         * modules/unictype/property-dash: New file.
95292         * modules/unictype/property-hyphen: New file.
95293         * modules/unictype/property-punctuation: New file.
95294         * modules/unictype/property-line-separator: New file.
95295         * modules/unictype/property-paragraph-separator: New file.
95296         * modules/unictype/property-quotation-mark: New file.
95297         * modules/unictype/property-sentence-terminal: New file.
95298         * modules/unictype/property-terminal-punctuation: New file.
95299         * modules/unictype/property-currency-symbol: New file.
95300         * modules/unictype/property-math: New file.
95301         * modules/unictype/property-other-math: New file.
95302         * modules/unictype/property-paired-punctuation: New file.
95303         * modules/unictype/property-left-of-pair: New file.
95304         * modules/unictype/property-combining: New file.
95305         * modules/unictype/property-composite: New file.
95306         * modules/unictype/property-decimal-digit: New file.
95307         * modules/unictype/property-numeric: New file.
95308         * modules/unictype/property-diacritic: New file.
95309         * modules/unictype/property-extender: New file.
95310         * modules/unictype/property-ignorable-control: New file.
95311         * modules/unictype/property-test: New file.
95312         * modules/unictype/property-byname: New file.
95313         * modules/unictype/property-all: New file.
95314         * modules/unictype/scripts: New file.
95315         * modules/unictype/scripts-all: New file.
95316         * modules/unictype/block-of: New file.
95317         * modules/unictype/block-test: New file.
95318         * modules/unictype/block-list: New file.
95319         * modules/unictype/block-all: New file.
95320         * modules/unictype/syntax-c-whitespace: New file.
95321         * modules/unictype/syntax-java-whitespace: New file.
95322         * modules/unictype/syntax-c-ident: New file.
95323         * modules/unictype/syntax-java-ident: New file.
95324         * modules/unictype/ctype-alnum: New file.
95325         * modules/unictype/ctype-alpha: New file.
95326         * modules/unictype/ctype-cntrl: New file.
95327         * modules/unictype/ctype-digit: New file.
95328         * modules/unictype/ctype-graph: New file.
95329         * modules/unictype/ctype-lower: New file.
95330         * modules/unictype/ctype-print: New file.
95331         * modules/unictype/ctype-punct: New file.
95332         * modules/unictype/ctype-space: New file.
95333         * modules/unictype/ctype-upper: New file.
95334         * modules/unictype/ctype-xdigit: New file.
95335         * modules/unictype/ctype-blank: New file.
95336         * lib/unictype/bidi_byname.c: New file.
95337         * lib/unictype/bidi_name.c: New file.
95338         * lib/unictype/bidi_of.c: New file.
95339         * lib/unictype/bidi_test.c: New file.
95340         * lib/unictype/bitmap.h: New file.
95341         * lib/unictype/block_test.c: New file.
95342         * lib/unictype/blocks.c: New file.
95343         * lib/unictype/categ_C.c: New file.
95344         * lib/unictype/categ_Cc.c: New file.
95345         * lib/unictype/categ_Cf.c: New file.
95346         * lib/unictype/categ_Cn.c: New file.
95347         * lib/unictype/categ_Co.c: New file.
95348         * lib/unictype/categ_Cs.c: New file.
95349         * lib/unictype/categ_L.c: New file.
95350         * lib/unictype/categ_Ll.c: New file.
95351         * lib/unictype/categ_Lm.c: New file.
95352         * lib/unictype/categ_Lo.c: New file.
95353         * lib/unictype/categ_Lt.c: New file.
95354         * lib/unictype/categ_Lu.c: New file.
95355         * lib/unictype/categ_M.c: New file.
95356         * lib/unictype/categ_Mc.c: New file.
95357         * lib/unictype/categ_Me.c: New file.
95358         * lib/unictype/categ_Mn.c: New file.
95359         * lib/unictype/categ_N.c: New file.
95360         * lib/unictype/categ_Nd.c: New file.
95361         * lib/unictype/categ_Nl.c: New file.
95362         * lib/unictype/categ_No.c: New file.
95363         * lib/unictype/categ_P.c: New file.
95364         * lib/unictype/categ_Pc.c: New file.
95365         * lib/unictype/categ_Pd.c: New file.
95366         * lib/unictype/categ_Pe.c: New file.
95367         * lib/unictype/categ_Pf.c: New file.
95368         * lib/unictype/categ_Pi.c: New file.
95369         * lib/unictype/categ_Po.c: New file.
95370         * lib/unictype/categ_Ps.c: New file.
95371         * lib/unictype/categ_S.c: New file.
95372         * lib/unictype/categ_Sc.c: New file.
95373         * lib/unictype/categ_Sk.c: New file.
95374         * lib/unictype/categ_Sm.c: New file.
95375         * lib/unictype/categ_So.c: New file.
95376         * lib/unictype/categ_Z.c: New file.
95377         * lib/unictype/categ_Zl.c: New file.
95378         * lib/unictype/categ_Zp.c: New file.
95379         * lib/unictype/categ_Zs.c: New file.
95380         * lib/unictype/categ_and.c: New file.
95381         * lib/unictype/categ_and_not.c: New file.
95382         * lib/unictype/categ_byname.c: New file.
95383         * lib/unictype/categ_name.c: New file.
95384         * lib/unictype/categ_none.c: New file.
95385         * lib/unictype/categ_of.c: New file.
95386         * lib/unictype/categ_or.c: New file.
95387         * lib/unictype/categ_test.c: New file.
95388         * lib/unictype/combining.c: New file.
95389         * lib/unictype/ctype_alnum.c: New file.
95390         * lib/unictype/ctype_alpha.c: New file.
95391         * lib/unictype/ctype_blank.c: New file.
95392         * lib/unictype/ctype_cntrl.c: New file.
95393         * lib/unictype/ctype_digit.c: New file.
95394         * lib/unictype/ctype_graph.c: New file.
95395         * lib/unictype/ctype_lower.c: New file.
95396         * lib/unictype/ctype_print.c: New file.
95397         * lib/unictype/ctype_punct.c: New file.
95398         * lib/unictype/ctype_space.c: New file.
95399         * lib/unictype/ctype_upper.c: New file.
95400         * lib/unictype/ctype_xdigit.c: New file.
95401         * lib/unictype/decdigit.c: New file.
95402         * lib/unictype/digit.c: New file.
95403         * lib/unictype/identsyntaxmap.h: New file.
95404         * lib/unictype/mirror.c: New file.
95405         * lib/unictype/numeric.c: New file.
95406         * lib/unictype/pr_alphabetic.c: New file.
95407         * lib/unictype/pr_ascii_hex_digit.c: New file.
95408         * lib/unictype/pr_bidi_arabic_digit.c: New file.
95409         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
95410         * lib/unictype/pr_bidi_block_separator.c: New file.
95411         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
95412         * lib/unictype/pr_bidi_common_separator.c: New file.
95413         * lib/unictype/pr_bidi_control.c: New file.
95414         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
95415         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
95416         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
95417         * lib/unictype/pr_bidi_european_digit.c: New file.
95418         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
95419         * lib/unictype/pr_bidi_left_to_right.c: New file.
95420         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
95421         * lib/unictype/pr_bidi_other_neutral.c: New file.
95422         * lib/unictype/pr_bidi_pdf.c: New file.
95423         * lib/unictype/pr_bidi_segment_separator.c: New file.
95424         * lib/unictype/pr_bidi_whitespace.c: New file.
95425         * lib/unictype/pr_byname.c: New file.
95426         * lib/unictype/pr_byname.gperf: New file.
95427         * lib/unictype/pr_combining.c: New file.
95428         * lib/unictype/pr_composite.c: New file.
95429         * lib/unictype/pr_currency_symbol.c: New file.
95430         * lib/unictype/pr_dash.c: New file.
95431         * lib/unictype/pr_decimal_digit.c: New file.
95432         * lib/unictype/pr_default_ignorable_code_point.c: New file.
95433         * lib/unictype/pr_deprecated.c: New file.
95434         * lib/unictype/pr_diacritic.c: New file.
95435         * lib/unictype/pr_extender.c: New file.
95436         * lib/unictype/pr_format_control.c: New file.
95437         * lib/unictype/pr_grapheme_base.c: New file.
95438         * lib/unictype/pr_grapheme_extend.c: New file.
95439         * lib/unictype/pr_grapheme_link.c: New file.
95440         * lib/unictype/pr_hex_digit.c: New file.
95441         * lib/unictype/pr_hyphen.c: New file.
95442         * lib/unictype/pr_id_continue.c: New file.
95443         * lib/unictype/pr_id_start.c: New file.
95444         * lib/unictype/pr_ideographic.c: New file.
95445         * lib/unictype/pr_ids_binary_operator.c: New file.
95446         * lib/unictype/pr_ids_trinary_operator.c: New file.
95447         * lib/unictype/pr_ignorable_control.c: New file.
95448         * lib/unictype/pr_iso_control.c: New file.
95449         * lib/unictype/pr_join_control.c: New file.
95450         * lib/unictype/pr_left_of_pair.c: New file.
95451         * lib/unictype/pr_line_separator.c: New file.
95452         * lib/unictype/pr_logical_order_exception.c: New file.
95453         * lib/unictype/pr_lowercase.c: New file.
95454         * lib/unictype/pr_math.c: New file.
95455         * lib/unictype/pr_non_break.c: New file.
95456         * lib/unictype/pr_not_a_character.c: New file.
95457         * lib/unictype/pr_numeric.c: New file.
95458         * lib/unictype/pr_other_alphabetic.c: New file.
95459         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
95460         * lib/unictype/pr_other_grapheme_extend.c: New file.
95461         * lib/unictype/pr_other_id_continue.c: New file.
95462         * lib/unictype/pr_other_id_start.c: New file.
95463         * lib/unictype/pr_other_lowercase.c: New file.
95464         * lib/unictype/pr_other_math.c: New file.
95465         * lib/unictype/pr_other_uppercase.c: New file.
95466         * lib/unictype/pr_paired_punctuation.c: New file.
95467         * lib/unictype/pr_paragraph_separator.c: New file.
95468         * lib/unictype/pr_pattern_syntax.c: New file.
95469         * lib/unictype/pr_pattern_white_space.c: New file.
95470         * lib/unictype/pr_private_use.c: New file.
95471         * lib/unictype/pr_punctuation.c: New file.
95472         * lib/unictype/pr_quotation_mark.c: New file.
95473         * lib/unictype/pr_radical.c: New file.
95474         * lib/unictype/pr_sentence_terminal.c: New file.
95475         * lib/unictype/pr_soft_dotted.c: New file.
95476         * lib/unictype/pr_space.c: New file.
95477         * lib/unictype/pr_terminal_punctuation.c: New file.
95478         * lib/unictype/pr_test.c: New file.
95479         * lib/unictype/pr_titlecase.c: New file.
95480         * lib/unictype/pr_unassigned_code_value.c: New file.
95481         * lib/unictype/pr_unified_ideograph.c: New file.
95482         * lib/unictype/pr_uppercase.c: New file.
95483         * lib/unictype/pr_variation_selector.c: New file.
95484         * lib/unictype/pr_white_space.c: New file.
95485         * lib/unictype/pr_xid_continue.c: New file.
95486         * lib/unictype/pr_xid_start.c: New file.
95487         * lib/unictype/pr_zero_width.c: New file.
95488         * lib/unictype/scripts.c: New file.
95489         * lib/unictype/sy_c_ident.c: New file.
95490         * lib/unictype/sy_c_whitespace.c: New file.
95491         * lib/unictype/sy_java_ident.c: New file.
95492         * lib/unictype/sy_java_whitespace.c: New file.
95494         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
95495         Unicode 5.0.0.
95496         * lib/unictype/blocks.h: Likewise.
95497         * lib/unictype/categ_C.h: Likewise.
95498         * lib/unictype/categ_Cc.h: Likewise.
95499         * lib/unictype/categ_Cf.h: Likewise.
95500         * lib/unictype/categ_Cn.h: Likewise.
95501         * lib/unictype/categ_Co.h: Likewise.
95502         * lib/unictype/categ_Cs.h: Likewise.
95503         * lib/unictype/categ_L.h: Likewise.
95504         * lib/unictype/categ_Ll.h: Likewise.
95505         * lib/unictype/categ_Lm.h: Likewise.
95506         * lib/unictype/categ_Lo.h: Likewise.
95507         * lib/unictype/categ_Lt.h: Likewise.
95508         * lib/unictype/categ_Lu.h: Likewise.
95509         * lib/unictype/categ_M.h: Likewise.
95510         * lib/unictype/categ_Mc.h: Likewise.
95511         * lib/unictype/categ_Me.h: Likewise.
95512         * lib/unictype/categ_Mn.h: Likewise.
95513         * lib/unictype/categ_N.h: Likewise.
95514         * lib/unictype/categ_Nd.h: Likewise.
95515         * lib/unictype/categ_Nl.h: Likewise.
95516         * lib/unictype/categ_No.h: Likewise.
95517         * lib/unictype/categ_P.h: Likewise.
95518         * lib/unictype/categ_Pc.h: Likewise.
95519         * lib/unictype/categ_Pd.h: Likewise.
95520         * lib/unictype/categ_Pe.h: Likewise.
95521         * lib/unictype/categ_Pf.h: Likewise.
95522         * lib/unictype/categ_Pi.h: Likewise.
95523         * lib/unictype/categ_Po.h: Likewise.
95524         * lib/unictype/categ_Ps.h: Likewise.
95525         * lib/unictype/categ_S.h: Likewise.
95526         * lib/unictype/categ_Sc.h: Likewise.
95527         * lib/unictype/categ_Sk.h: Likewise.
95528         * lib/unictype/categ_Sm.h: Likewise.
95529         * lib/unictype/categ_So.h: Likewise.
95530         * lib/unictype/categ_Z.h: Likewise.
95531         * lib/unictype/categ_Zl.h: Likewise.
95532         * lib/unictype/categ_Zp.h: Likewise.
95533         * lib/unictype/categ_Zs.h: Likewise.
95534         * lib/unictype/categ_of.h: Likewise.
95535         * lib/unictype/combining.h: Likewise.
95536         * lib/unictype/ctype_alnum.h: Likewise.
95537         * lib/unictype/ctype_alpha.h: Likewise.
95538         * lib/unictype/ctype_blank.h: Likewise.
95539         * lib/unictype/ctype_cntrl.h: Likewise.
95540         * lib/unictype/ctype_digit.h: Likewise.
95541         * lib/unictype/ctype_graph.h: Likewise.
95542         * lib/unictype/ctype_lower.h: Likewise.
95543         * lib/unictype/ctype_print.h: Likewise.
95544         * lib/unictype/ctype_punct.h: Likewise.
95545         * lib/unictype/ctype_space.h: Likewise.
95546         * lib/unictype/ctype_upper.h: Likewise.
95547         * lib/unictype/ctype_xdigit.h: Likewise.
95548         * lib/unictype/decdigit.h: Likewise.
95549         * lib/unictype/digit.h: Likewise.
95550         * lib/unictype/mirror.h: Likewise.
95551         * lib/unictype/numeric.h: Likewise.
95552         * lib/unictype/pr_alphabetic.h: Likewise.
95553         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
95554         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
95555         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
95556         * lib/unictype/pr_bidi_block_separator.h: Likewise.
95557         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
95558         * lib/unictype/pr_bidi_common_separator.h: Likewise.
95559         * lib/unictype/pr_bidi_control.h: Likewise.
95560         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
95561         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
95562         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
95563         * lib/unictype/pr_bidi_european_digit.h: Likewise.
95564         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
95565         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
95566         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
95567         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
95568         * lib/unictype/pr_bidi_pdf.h: Likewise.
95569         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
95570         * lib/unictype/pr_bidi_whitespace.h: Likewise.
95571         * lib/unictype/pr_combining.h: Likewise.
95572         * lib/unictype/pr_composite.h: Likewise.
95573         * lib/unictype/pr_currency_symbol.h: Likewise.
95574         * lib/unictype/pr_dash.h: Likewise.
95575         * lib/unictype/pr_decimal_digit.h: Likewise.
95576         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
95577         * lib/unictype/pr_deprecated.h: Likewise.
95578         * lib/unictype/pr_diacritic.h: Likewise.
95579         * lib/unictype/pr_extender.h: Likewise.
95580         * lib/unictype/pr_format_control.h: Likewise.
95581         * lib/unictype/pr_grapheme_base.h: Likewise.
95582         * lib/unictype/pr_grapheme_extend.h: Likewise.
95583         * lib/unictype/pr_grapheme_link.h: Likewise.
95584         * lib/unictype/pr_hex_digit.h: Likewise.
95585         * lib/unictype/pr_hyphen.h: Likewise.
95586         * lib/unictype/pr_id_continue.h: Likewise.
95587         * lib/unictype/pr_id_start.h: Likewise.
95588         * lib/unictype/pr_ideographic.h: Likewise.
95589         * lib/unictype/pr_ids_binary_operator.h: Likewise.
95590         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
95591         * lib/unictype/pr_ignorable_control.h: Likewise.
95592         * lib/unictype/pr_iso_control.h: Likewise.
95593         * lib/unictype/pr_join_control.h: Likewise.
95594         * lib/unictype/pr_left_of_pair.h: Likewise.
95595         * lib/unictype/pr_line_separator.h: Likewise.
95596         * lib/unictype/pr_logical_order_exception.h: Likewise.
95597         * lib/unictype/pr_lowercase.h: Likewise.
95598         * lib/unictype/pr_math.h: Likewise.
95599         * lib/unictype/pr_non_break.h: Likewise.
95600         * lib/unictype/pr_not_a_character.h: Likewise.
95601         * lib/unictype/pr_numeric.h: Likewise.
95602         * lib/unictype/pr_other_alphabetic.h: Likewise.
95603         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
95604         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
95605         * lib/unictype/pr_other_id_continue.h: Likewise.
95606         * lib/unictype/pr_other_id_start.h: Likewise.
95607         * lib/unictype/pr_other_lowercase.h: Likewise.
95608         * lib/unictype/pr_other_math.h: Likewise.
95609         * lib/unictype/pr_other_uppercase.h: Likewise.
95610         * lib/unictype/pr_paired_punctuation.h: Likewise.
95611         * lib/unictype/pr_paragraph_separator.h: Likewise.
95612         * lib/unictype/pr_pattern_syntax.h: Likewise.
95613         * lib/unictype/pr_pattern_white_space.h: Likewise.
95614         * lib/unictype/pr_private_use.h: Likewise.
95615         * lib/unictype/pr_punctuation.h: Likewise.
95616         * lib/unictype/pr_quotation_mark.h: Likewise.
95617         * lib/unictype/pr_radical.h: Likewise.
95618         * lib/unictype/pr_sentence_terminal.h: Likewise.
95619         * lib/unictype/pr_soft_dotted.h: Likewise.
95620         * lib/unictype/pr_space.h: Likewise.
95621         * lib/unictype/pr_terminal_punctuation.h: Likewise.
95622         * lib/unictype/pr_titlecase.h: Likewise.
95623         * lib/unictype/pr_unassigned_code_value.h: Likewise.
95624         * lib/unictype/pr_unified_ideograph.h: Likewise.
95625         * lib/unictype/pr_uppercase.h: Likewise.
95626         * lib/unictype/pr_variation_selector.h: Likewise.
95627         * lib/unictype/pr_white_space.h: Likewise.
95628         * lib/unictype/pr_xid_continue.h: Likewise.
95629         * lib/unictype/pr_xid_start.h: Likewise.
95630         * lib/unictype/pr_zero_width.h: Likewise.
95631         * lib/unictype/scripts.h: Likewise.
95632         * lib/unictype/scripts_byname.gperf: Likewise.
95633         * lib/unictype/sy_c_ident.h: Likewise.
95634         * lib/unictype/sy_c_whitespace.h: Likewise.
95635         * lib/unictype/sy_java_ident.h: Likewise.
95636         * lib/unictype/sy_java_whitespace.h: Likewise.
95638         * lib/unictype/Makefile: New file.
95639         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
95640         glibc.
95641         * lib/unictype/3level.h: New file, copied from glibc.
95642         * lib/unictype/3levelbit.h: New file.
95644 2007-11-11  Bruno Haible  <bruno@clisp.org>
95646         * modules/gperf: New file.
95647         * modules/iconv_open (Depends-on): Add it.
95648         (Makefile.am): Remove the GPERF definition.
95650 2007-11-11  Bruno Haible  <bruno@clisp.org>
95652         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
95653         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
95655 2007-11-11  Bruno Haible  <bruno@clisp.org>
95657         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
95658         (usage): Remove function.
95660 2007-11-11  Bruno Haible  <bruno@clisp.org>
95662         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
95663         gl_FUNC_CEILF_LIBS.
95664         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
95665         gl_FUNC_CEIL_LIBS.
95666         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
95667         gl_FUNC_CEILL_LIBS.
95668         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
95669         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
95670         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
95672 2007-11-11  Bruno Haible  <bruno@clisp.org>
95674         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
95675         roundf were declared but do not exist on functions.
95676         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
95677         roundl were declared but do not exist on functions.
95678         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
95679         HAVE_FLOORL_AND_CEILL, respectively.
95680         Needed for Sun C on Solaris 10.
95682 2007-11-11  Bruno Haible  <bruno@clisp.org>
95684         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
95685         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
95686         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
95687         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
95688         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
95689         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
95690         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
95691         HAVE_DECL_ROUNDF.
95692         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
95693         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
95694         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
95695         of HAVE_DECL_ROUND*.
95696         * modules/math (Makefile.am): Update.
95698 2007-11-10  Bruno Haible  <bruno@clisp.org>
95700         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
95701         ptrdiff_t as m4/intl.m4.
95703 2007-11-10  Jim Meyering  <meyering@redhat.com>
95705         Avoid link failure for the argmatch test.
95706         * tests/test-argmatch.c (usage): Define function to avoid a link
95707         failure: argmatch_die requires a usage function.
95709 2007-11-09  Bruno Haible  <bruno@clisp.org>
95711         * doc/functions/snprintf.texi: Mention BeOS deficiency.
95712         * doc/functions/vsnprintf.texi: Likewise.
95713         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
95714         with a size argument < 2.
95716 2007-11-09  Bruno Haible  <bruno@clisp.org>
95718         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
95719         buffer. Fixes an inefficiency introduced on 2007-11-03.
95721 2007-11-09  Bruno Haible  <bruno@clisp.org>
95723         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
95724         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
95726 2007-11-08  Jim Meyering  <meyering@redhat.com>
95728         Change cache variable name prefix "jm_" to "gl_" everywhere.
95729         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
95730         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
95731         * m4/uptime.m4: s/gl_/jm_/
95733 2007-11-07  Bruno Haible  <bruno@clisp.org>
95735         Update to GNU gettext 0.17.
95736         * m4/intl.m4: Update to GNU gettext 0.17.
95737         * m4/po.m4: Likewise.
95738         * modules/gettext (Files): Remove m4/ulonglong.m4.
95739         (configure.ac): Require gettext infrastructure from version 0.17.
95741 2007-11-06  Bruno Haible  <bruno@clisp.org>
95743         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
95744         symbolic values are not defined in a public header.
95745         * lib/freadable.c (freadable) [QNX]: Likewise.
95746         * lib/freadahead.c (freadahead) [QNX]: Likewise.
95747         * lib/freading.c (freading) [QNX]: Likewise.
95748         * lib/fseterr.c (fseterr) [QNX]: Likewise.
95749         * lib/fwritable.c (fwritable) [QNX]: Likewise.
95750         * lib/fwriting.c (fwriting) [QNX]: Likewise.
95751         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
95752         Reported by Alain Magloire.
95754         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
95756 2007-11-05  Bruno Haible  <bruno@clisp.org>
95758         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
95759         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
95760         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
95761         Reported by Eric Blake.
95763 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95764             Bruno Haible  <bruno@clisp.org>
95766         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
95767         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
95768         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
95769         (malloc): Undefine also before including <stdlib.h>.
95770         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
95771         Needed on OSF/1 4.0.
95773 2007-11-05  Jim Meyering  <meyering@redhat.com>
95775         git-version-gen: sync from coreutils.
95776         * build-aux/git-version-gen: Add comments.
95777         Change the first '-' to '.' in the snapshot version string,
95778         e.g., 6.9-377-08144 -> 6.9.377-08144
95779         Remove first parameter.
95780         Don't declare a version "-dirty" merely because a time
95781         stamp has changed.
95783 2007-11-04  Bruno Haible  <bruno@clisp.org>
95785         * lib/lock.h: Protect all macro definitions containing an 'if'
95786         statement through a "do { ... } while (0)".
95787         * lib/tls.h: Likewise.
95789 2007-11-04  Bruno Haible  <bruno@clisp.org>
95791         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
95793 2007-11-04  Bruno Haible  <bruno@clisp.org>
95795         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
95796         * modules/fprintf-posix (Depends-on): Add nocrash.
95797         * modules/snprintf-posix (Depends-on): Likewise.
95798         * modules/sprintf-posix (Depends-on): Likewise.
95799         * modules/vasnprintf-posix (Depends-on): Likewise.
95800         * modules/vasprintf-posix (Depends-on): Likewise.
95801         * modules/vfprintf-posix (Depends-on): Likewise.
95802         * modules/vsnprintf-posix (Depends-on): Likewise.
95803         * modules/vsprintf-posix (Depends-on): Likewise.
95804         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
95805         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
95806         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
95807         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
95808         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
95809         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
95810         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
95812 2007-11-04  Bruno Haible  <bruno@clisp.org>
95814         * modules/nocrash: New file.
95815         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
95816         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
95818 2007-11-04  Bruno Haible  <bruno@clisp.org>
95820         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
95821         precision handling.
95822         * tests/test-vasprintf-posix.c (test_function): Likewise.
95823         * tests/test-snprintf-posix.h (test_function): Likewise.
95824         * tests/test-sprintf-posix.h (test_function): Likewise.
95826         Fix *printf behaviour for large precisions on mingw and BeOS.
95827         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
95828         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
95829         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
95830         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
95831         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
95832         gl_PRINTF_PRECISION and test its result. Invoke
95833         gl_PREREQ_VASNPRINTF_PRECISION.
95834         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
95835         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
95836         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
95837         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
95838         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
95839         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
95840         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
95841         * doc/functions/fprintf.texi: Update.
95842         * doc/functions/printf.texi: Update.
95843         * doc/functions/snprintf.texi: Update.
95844         * doc/functions/sprintf.texi: Update.
95845         * doc/functions/vfprintf.texi: Update.
95846         * doc/functions/vprintf.texi: Update.
95847         * doc/functions/vsnprintf.texi: Update.
95848         * doc/functions/vsprintf.texi: Update.
95850 2007-11-04  Bruno Haible  <bruno@clisp.org>
95852         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
95854 2007-11-04  Bruno Haible  <bruno@clisp.org>
95856         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
95857         Reported by Sylvain Beucler <beuc@gnu.org>.
95859 2007-11-03  Bruno Haible  <bruno@clisp.org>
95861         * tests/test-fprintf-posix2.sh: New file.
95862         * tests/test-fprintf-posix2.c: New file.
95863         * modules/fprintf-posix-tests (Files): Add them.
95864         (TESTS): Add test-fprintf-posix2.sh.
95865         (configure.ac): Check for getrlimit and setrlimit.
95866         (check_PROGRAMS): Add test-fprintf-posix2.
95868         * tests/test-printf-posix2.sh: New file.
95869         * tests/test-printf-posix2.c: New file.
95870         * modules/printf-posix-tests (Files): Add them.
95871         (TESTS): Add test-printf-posix2.sh.
95872         (configure.ac): Check for getrlimit and setrlimit.
95873         (check_PROGRAMS): Add test-printf-posix2.
95875         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
95876         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
95877         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
95878         (decode_double): New function, copied from decode_long_double.
95879         (scale10_round_decimal_decoded): New function, extracted from
95880         scale10_round_decimal_long_double.
95881         (scale10_round_decimal_long_double): Use it.
95882         (scale10_round_decimal_double): New function.
95883         (floorlog10): New function.
95884         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
95885         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
95886         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
95887         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
95888         gl_PRINTF_ENOMEM and test its result. Invoke
95889         gl_PREREQ_VASNPRINTF_ENOMEM.
95890         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
95891         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
95892         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
95893         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
95894         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
95895         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
95896         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
95897         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
95898         * modules/snprintf-posix (Depends-on): Likewise.
95899         * modules/sprintf-posix (Depends-on): Likewise.
95900         * modules/vasnprintf-posix (Depends-on): Likewise.
95901         * modules/vasprintf-posix (Depends-on): Likewise.
95902         * modules/vfprintf-posix (Depends-on): Likewise.
95903         * modules/vsnprintf-posix (Depends-on): Likewise.
95904         * modules/vsprintf-posix (Depends-on): Likewise.
95905         * doc/functions/fprintf.texi: Update.
95906         * doc/functions/printf.texi: Update.
95907         * doc/functions/snprintf.texi: Update.
95908         * doc/functions/sprintf.texi: Update.
95909         * doc/functions/vfprintf.texi: Update.
95910         * doc/functions/vprintf.texi: Update.
95911         * doc/functions/vsnprintf.texi: Update.
95912         * doc/functions/vsprintf.texi: Update.
95914 2007-11-03  Bruno Haible  <bruno@clisp.org>
95916         * modules/frexp-nolibm-tests: New file.
95918         * modules/frexp-nolibm: New file.
95919         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
95921 2007-11-03  Bruno Haible  <bruno@clisp.org>
95923         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
95924         value is C99 compliant.
95925         Needed for OSF/1 5.1.
95927 2007-11-03  Bruno Haible  <bruno@clisp.org>
95929         Fix out-of-memory handling of vasnprintf.
95930         * lib/printf-parse.c: Include <errno.h>.
95931         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
95932         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
95933         is already set.
95935 2007-11-02  Eric Blake  <ebb9@byu.net>
95937         Fix tests on cygwin.
95938         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
95940 2007-11-01  Bruno Haible  <bruno@clisp.org>
95942         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
95943         warning.
95944         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
95945         needed for POSIX compatibility.
95947 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
95949         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
95950         for compatibility with GNU.
95952 2007-11-01  Bruno Haible  <bruno@clisp.org>
95954         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
95955         (putenv): Renamed from rpl_putenv. Change argument type from
95956         'const char *' to 'char *'.
95957         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
95958         of defining putenv in config.h, just set REPLACE_PUTENV.
95959         * modules/putenv (Depends-on): Add stdlib.
95960         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
95961         (Include): Use <stdlib.h>.
95962         * lib/stdlib.in.h (putenv): New declaration.
95963         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
95964         REPLACE_PUTENV.
95965         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
95966         REPLACE_PUTENV.
95967         Needed for MacOS X 10.5.0.
95968         Reported by Peter O'Gorman <peter@pogma.com>.
95970 2007-11-01  Jim Meyering  <meyering@redhat.com>
95972         Treat an empty date string exactly like "0".
95973         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
95974         if the remaining date string (to be parsed) is empty, use "0".
95975         Reported by Mischa Molhoek and discussed in this thread:
95976         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
95978 2007-10-31  Bruno Haible  <bruno@clisp.org>
95980         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
95981         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
95982         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
95983         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
95984         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
95985         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
95987 2007-10-31  Bruno Haible  <bruno@clisp.org>
95989         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
95990         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
95991         (AC_TYPE_LONG_LONG_INT): Use it.
95992         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
95993         it as well.
95994         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
95995         to m4/longlong.m4.
95996         * modules/stdint (Files): Remove m4/ulonglong.m4.
95997         * modules/strtoull (Files): Use m4/longlong.m4 instead of
95998         m4/ulonglong.m4.
95999         * modules/strtoumax (Files): Likewise.
96001 2007-10-30  Bruno Haible  <bruno@clisp.org>
96003         * modules/xvasprintf-posix: New file.
96004         Suggested by Eric Blake.
96006 2007-10-30  Bruno Haible  <bruno@clisp.org>
96008         * modules/xprintf-posix-tests: New file.
96009         * tests/test-xprintf-posix.sh: New file.
96010         * tests/test-xprintf-posix.c: New file.
96011         * tests/test-xfprintf-posix.c: New file.
96013         * modules/xprintf-posix: New file.
96015 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96017         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
96018         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
96019         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
96021 2007-10-29  Bruno Haible  <bruno@clisp.org>
96023         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
96024         contain the special marker '_cv_'.
96025         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
96026         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
96027         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
96028         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
96029         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
96030         Reported by Ralf Wildenhues.
96032 2007-10-29  Bruno Haible  <bruno@clisp.org>
96034         * gnulib-tool (func_import): When --lgpl is not specified, set
96035         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
96036         GPLv3.
96037         Reported by Simon Josefsson.
96039 2007-10-28  Bruno Haible  <bruno@clisp.org>
96041         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
96042         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
96043         HAVE_DECL_ISFINITE.
96044         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
96045         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
96046         HAVE_DECL_ISFINITE.
96048 2007-10-28  Bruno Haible  <bruno@clisp.org>
96050         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
96051         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
96053 2007-10-28  Bruno Haible  <bruno@clisp.org>
96055         Fix link errors with Sun C 5.0 on Solaris 10.
96056         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
96057         function is declared but not present in the compiler's libm.
96058         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
96059         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
96060         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
96061         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
96062         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
96063         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
96064         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
96065         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
96066         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
96067         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
96068         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
96069         HAVE_DECL_FLOORL.
96071 2007-10-28  Bruno Haible  <bruno@clisp.org>
96073         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
96074         gl_FUNC_FLOORL. Cache the result.
96075         (gl_FUNC_FLOORL): Use it.
96076         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
96077         gl_FUNC_CEILL. Cache the result.
96078         (gl_FUNC_CEILL): Use it.
96080         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
96081         gl_FUNC_FLOOR. Cache the result.
96082         (gl_FUNC_FLOOR): Use it.
96083         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
96084         gl_FUNC_CEIL. Cache the result.
96085         (gl_FUNC_CEIL): Use it.
96087         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
96088         gl_FUNC_FLOORF. Cache the result.
96089         (gl_FUNC_FLOORF): Use it.
96090         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
96091         gl_FUNC_CEILF. Cache the result.
96092         (gl_FUNC_CEILF): Use it.
96094 2007-10-28  Bruno Haible  <bruno@clisp.org>
96096         * gnulib-tool: Allow specifying the LGPL version number through
96097         --lgpl=2 or --lgpl=3.
96098         (func_usage): Document --lgpl with argument.
96099         Handle --lgpl=... arguments.
96100         (func_import): Recognize also gl_LGPL calls with an argument. When
96101         --lgpl=2 is used and the module's license is just LGPL, report an
96102         error. Set sed_transform_lib_file according to the lgpl variable. In
96103         the generated files, use --lgpl or gl_LGPL invocations with argument,
96104         if necessary.
96105         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
96106         an LGPv2+ license.
96107         * doc/gnulib-tool.texi (Modified imports): Update explanation of
96108         gl_LGPL macro.
96110 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96111             Bruno Haible  <bruno@clisp.org>
96113         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
96114         (u16_uctomb_aux): Likewise.
96115         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
96116         !HAVE_INLINE.
96117         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
96119 2007-10-28  Bruno Haible  <bruno@clisp.org>
96121         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
96122         Invoke AM_GETTEXT_OPTION if it exists.
96123         * modules/vasprintf: Likewise.
96124         * modules/verror: Likewise.
96125         * modules/xprintf: Likewise.
96126         * modules/xvasprintf: Likewise.
96128 2007-10-27  Ben Pfaff  <blp@gnu.org>
96130         * lib/math.in.h: Define isfinite macro and prototypes for
96131         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
96132         implementations.
96133         * m4/math_h.m4: New substitutions for isfinite module.
96134         * lib/isfinite.c: New file.
96135         * m4/isfinite.m4: New file.
96136         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
96137         * modules/isfinite: New file.
96138         * modules/isfinite-tests: New file.
96139         * tests/tests-isfinite.c: New file.
96140         * doc/functions/isfinite.texi: Mention isfinite module.
96141         * MODULES.html.sh: Mention new module.
96143 2007-10-27  Ben Pfaff  <blp@gnu.org>
96145         Ralf Wildenhues reported that Tru64 4.0D declares the round
96146         functions but does not have definitions.
96147         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
96148         cannot be found in any library, set the output variable to
96149         "missing" instead of "".
96150         * m4/round.m4: Also use our substitute if we cannot find round in
96151         any library, even if it is declared.
96152         * m4/roundf.m4: Likewise for roundf.
96153         * m4/roundl.m4: Likewise for roundl.
96154         * lib/math.in.h: Undefine roundf, round, roundl before defining
96155         their replacements, to allow for hypothetical systems where these
96156         may be defined as macros but not available in libraries.
96158 2007-10-27  Bruno Haible  <bruno@clisp.org>
96160         * doc/gnulib.texi: Invoke @firstparagraphindent.
96161         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
96162         changes in gnulib.
96163         (Source changes): New section.
96165 2007-10-26  Bruno Haible  <bruno@clisp.org>
96167         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
96168         borrowed from autoconf.
96170 2007-10-26  Bruno Haible  <bruno@clisp.org>
96172         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
96173         strerror returned the empty string. Needed on HP-UX 11.00.
96175 2007-10-24  Micah Cowan  <micah@cowan.name>
96177         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
96178         * build-aux/bootstrap: Remove support for now-unnecessary option,
96179         --cvs-user, and envvars CVS_USER, CVS_RSH.
96181 2007-10-24  Jim Meyering  <meyering@redhat.com>
96183         Avoid diagnostics from sha1sum when there is no cached checksum.
96184         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
96185         if the po.s1 file hasn't been created yet.
96187         * build-aux/bootstrap: Sync from coreutils:
96188         2007-10-24  Jim Meyering  <meyering@redhat.com>
96189         Get gnulib from the git repository, not from an obsolete cvs one.
96190         * build-aux/bootstrap: Suggestion from Micah Cowan.
96191         2007-10-04  Jim Meyering  <jim@meyering.net>
96192         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
96193         (update_po_files): Work also when there are no .po files in po/.
96195 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
96197         * README: Append ".git" to git and cg examples.
96198         Problem reported by Benoit Sigoure.
96200 2007-10-23  Micah Cowan  <micah@cowan.name>
96202         * users.txt: Add wget.
96204 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96206         Fix linking of some unistdio tests on FreeBSD.
96207         * modules/unistdio/u16-vsnprintf-tests
96208         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
96209         * modules/unistdio/u16-vsprintf-tests
96210         (test_u16_vsnprintf1_LDADD): Likewise.
96211         * modules/unistdio/u32-vsnprintf-tests
96212         (test_u32_vsnprintf1_LDADD): Likewise.
96213         * modules/unistdio/u32-vsprintf-tests
96214         (test_u32_vsprintf1_LDADD): Likewise.
96215         * modules/unistdio/u8-vsnprintf-tests
96216         (test_u8_vsnprintf1_LDADD): Likewise.
96217         * modules/unistdio/u8-vsprintf-tests
96218         (test_u8_vsprintf1_LDADD): Likewise.
96219         * modules/unistdio/ulc-vsnprintf-tests
96220         (test_ulc_vsnprintf1_LDADD): Likewise.
96221         * modules/unistdio/ulc-vsprintf-tests
96222         (test_ulc_vsprintf1_LDADD): Likewise.
96224         Fix linking of some uniconv tests on FreeBSD.
96225         * modules/uniconv/u16-conv-from-enc-tests
96226         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
96227         * modules/uniconv/u16-conv-to-enc-tests
96228         (test_u16_conv_to_enc_LDADD): Likewise.
96229         * modules/uniconv/u16-strconv-from-enc-tests
96230         (test_u16_strconv_from_enc_LDADD): Likewise.
96231         * modules/uniconv/u16-strconv-to-enc-tests
96232         (test_u16_strconv_to_enc_LDADD): Likewise.
96233         * modules/uniconv/u32-conv-from-enc-tests
96234         (test_u32_conv_from_enc_LDADD): Likewise.
96235         * modules/uniconv/u32-conv-to-enc-tests
96236         (test_u32_conv_to_enc_LDADD): Likewise.
96237         * modules/uniconv/u32-strconv-from-enc-tests
96238         (test_u32_strconv_from_enc_LDADD): Likewise.
96239         * modules/uniconv/u32-strconv-to-enc-tests
96240         (test_u32_strconv_to_enc_LDADD): Likewise.
96241         * modules/uniconv/u8-conv-from-enc-tests
96242         (test_u8_conv_from_enc_LDADD): Likewise.
96243         * modules/uniconv/u8-conv-to-enc-tests
96244         (test_u8_conv_to_enc_LDADD): Likewise.
96245         * modules/uniconv/u8-strconv-from-enc-tests
96246         (test_u8_strconv_from_enc_LDADD): Likewise.
96247         * modules/uniconv/u8-strconv-to-enc-tests
96248         (test_u8_strconv_to_enc_LDADD): Likewise.
96250 2007-10-22  Bruno Haible  <bruno@clisp.org>
96252         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
96253         size.
96255 2007-10-22  Eric Blake  <ebb9@byu.net>
96257         Tweak x*printf documentation.
96258         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
96259         variable name and comments.
96260         Suggested by Bruno Haible.
96262 2007-10-22  Bruno Haible  <bruno@clisp.org>
96264         * lib/acl.c (copy_acl): Fix file name in comment.
96266 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
96268         Fix Tru64 problem with stdbool.h.
96269         * lib/stdbool.in.h (false, true):
96270         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
96271         Don't declare as an enum in this situation; it runs afoul of Tru64.
96272         Problem reported by Steven M. Schweda in
96273         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
96275 2007-10-22  Eric Blake  <ebb9@byu.net>
96277         Also wrap vf?printf.
96278         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
96279         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
96280         (xvprintf, xvfprintf): New functions.
96282 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96284         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
96285         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
96287         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
96288         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
96290 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
96292         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
96293         by Bruno Haible.
96295 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96297         * lib/getloadavg.c
96298         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
96299         Undef `sys' after including sys/table.h, for Tru64 4.0D.
96301         * tests/test-i-ring.c: Work for C89.
96303 2007-10-22  Bruno Haible  <bruno@clisp.org>
96305         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
96306         -1u, in preprocessor expression, so that we don't test for the bug
96307         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
96308         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
96310 2007-10-22  Eric Blake  <ebb9@byu.net>
96312         * tests/test-yesno.sh: Silence stderr during test.
96314 2007-10-22  Simon Josefsson  <simon@josefsson.org>
96316         * modules/crypto/gc-camellia: New file.
96318         * m4/gc-camellia.m4: New file.
96320         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
96322         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
96324 2007-10-22  Simon Josefsson  <simon@josefsson.org>
96326         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
96327         --help to stdout.  Reported by sms@antinode.org (Steven
96328         M. Schweda).
96330 2007-10-22  Simon Josefsson  <simon@josefsson.org>
96332         * users.txt: Fix link to libksba.
96334 2007-10-21  Ben Pfaff  <blp@gnu.org>
96336         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
96337         round.c roundf implementation that depends on floorf and ceilf to
96338         be tested unconditionally.
96340 2007-10-21  Ben Pfaff  <blp@gnu.org>
96342         * m4/check-libm-func.m4: Removed.
96343         * m4/check-math-lib.m4: New file.
96344         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
96345         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
96346         definition and lack of AC_LIBOBJ([roundf]).
96347         * m4/roundl.m4: Ditto, and similarly for roundl.
96348         * modules/round: Reference new m4 file.
96349         * modules/roundf: Ditto.
96350         * modules/roundl: Ditto.
96351         * tests/test-round2.c (main): Use ROUND instead of round.
96352         Bug report from Bruno Haible.
96354 2007-10-21  Bruno Haible  <bruno@clisp.org>
96356         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
96357         context.
96359 2007-10-21  Bruno Haible  <bruno@clisp.org>
96361         * tests/test-wcwidth.c (main): Allow negative result for some control
96362         characters.
96364         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
96365         Needed on OSF/1 5.1.
96367 2007-10-21  Bruno Haible  <bruno@clisp.org>
96369         * tests/test-floorf1.c: Include isnanf.h.
96370         (main): Use isnanf() instead of isnan().
96371         * tests/test-ceilf1.c: Include isnanf.h.
96372         (main): Use isnanf() instead of isnan().
96373         * tests/test-truncf1.c: Include isnanf.h.
96374         (main): Use isnanf() instead of isnan().
96375         * tests/test-roundf1.c: Include isnanf.h.
96376         (main): Use isnanf() instead of isnan().
96378 2007-10-21  Eric Blake  <ebb9@byu.net>
96380         * users.txt: Update URL for m4.
96382 2007-10-21  Bruno Haible  <bruno@clisp.org>
96384         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
96386 2007-10-21  Bruno Haible  <bruno@clisp.org>
96388         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
96389         Git's management files if the CVS files are not present.
96391 2007-10-20  Bruno Haible  <bruno@clisp.org>
96393         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
96394         gcc-3.4.x.
96396 2007-10-20  Ben Pfaff  <blp@gnu.org>
96398         * lib/math.in.h: Declare round, roundf, roundl if we are providing
96399         implementations.
96400         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
96401         * lib/round.c: New file.
96402         * lib/roundf.c: New file.
96403         * lib/roundl.c: New file.
96404         * m4/round.m4: New file.
96405         * m4/roundf.m4: New file.
96406         * m4/roundl.m4: New file.
96407         * m4/check-libm-func-m4: New file.
96408         * modules/math: Replace round, roundf, roundl related @VARS@ in
96409         math.in.h.
96410         * modules/round: New file.
96411         * modules/round-tests: New file.
96412         * modules/roundf: New file.
96413         * modules/roundf-tests: New file.
96414         * modules/roundl: New file.
96415         * modules/roundl-tests: New file.
96416         * tests/test-round1.c: New file.
96417         * tests/test-round2.c: New file.
96418         * tests/test-roundf1.c: New file.
96419         * tests/test-roundf2.c: New file.
96420         * tests/test-roundl.c: New file.
96421         * doc/functions/round.texi: Mention round module.
96422         * doc/functions/roundf.texi: Mention roundf module.
96423         * doc/functions/roundl.texi: Mention roundl module.
96424         * MODULES.html.sh: Mention new modules.
96425         Thanks to Bruno Haible for suggestions.
96427 2007-10-20  Jim Meyering  <meyering@redhat.com>
96429         * lib/xprintf.c: Include <config.h> unconditionally.
96431         Change xprintf's license to GPL.
96432         * modules/xprintf (License): s/LGPL/GPL/, since this module
96433         depends on modules (exit and exitfail) which are GPL.
96434         Suggestion from Bruno Haible.
96436         xprintf fixes.
96437         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
96438         Use a clearer diagnostic.
96439         Patch from Bruno Haible.
96441 2007-10-20  Bruno Haible  <bruno@clisp.org>
96443         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
96444         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
96445         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
96447 2007-10-20  Bruno Haible  <bruno@clisp.org>
96449         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
96450         precision in the comparison result > x - 1 or similar.
96451         * tests/test-ceilf2.c (correct_result_p): Likewise.
96452         * tests/test-truncf2.c (correct_result_p): Likewise.
96453         * tests/test-trunc2.c (correct_result_p): Likewise.
96454         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
96456 2007-10-20  Bruno Haible  <bruno@clisp.org>
96458         * modules/ceil: New file.
96459         * m4/ceil.m4: New file.
96460         * doc/functions/ceil.texi: Mention the 'ceil' module.
96462 2007-10-20  Bruno Haible  <bruno@clisp.org>
96464         * modules/floor: New file.
96465         * m4/floor.m4: New file.
96466         * doc/functions/floor.texi: Mention the 'floor' module.
96468 2007-10-20  Bruno Haible  <bruno@clisp.org>
96470         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
96471         of %a.
96472         * modules/floorf-tests (Depends-on): Likewise.
96473         * modules/truncf-tests (Depends-on): Likewise.
96474         * modules/trunc-tests (Depends-on): Likewise.
96475         Reported by Ben Pfaff.
96477 2007-10-19  Jim Meyering  <meyering@redhat.com>
96479         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
96480         Don't bother testing specific errno values.  Just test ferror.
96482         New module: xprintf
96483         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
96485 2007-10-19  Bruno Haible  <bruno@clisp.org>
96487         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
96488         syntax.
96489         * modules/javaexec (Makefile.am): Likewise.
96490         * modules/relocatable-prog (Makefile.am): Likewise.
96491         Suggested by Jim Meyering.
96493 2007-10-18  Bruno Haible  <bruno@clisp.org>
96495         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
96496         Reported by Jim Meyering.
96498 2007-10-18  Eric Blake  <ebb9@byu.net>
96500         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
96502 2007-10-18  Bruno Haible  <bruno@clisp.org>
96504         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
96505         the format string into writable memory. Needed in Fortify conditions.
96507 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
96508             Bruno Haible  <bruno@clisp.org>
96510         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
96511         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
96512         * modules/trim (Depends-on): Add mbchar.
96513         (configure.ac): Add gl_FUNC_MBRTOWC.
96514         (Makefile.am): Augment lib_SOURCES.
96516 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
96518         Modify glob.c to use fstatat and dirfd, to simplify it.
96519         Suggested by Eric Blake.
96520         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
96521         Don't include <stdbool.h>; not used.
96522         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
96523         (link_exists_p): Simplify implementation, since we can now assume
96524         dirfd and fstatat.
96525         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
96527 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96529         * gnulib-tool (func_get_dependencies): Fix sed script to
96530         match only tests.
96532 2007-10-17  Bruno Haible  <bruno@clisp.org>
96534         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
96535         allow locale names without encoding suffix.
96536         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
96537         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
96539 2007-10-16  Bruno Haible  <bruno@clisp.org>
96541         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
96542         * lib/getgroups.c (getgroups): Likewise.
96543         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
96545 2007-10-16  Bruno Haible  <bruno@clisp.org>
96547         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
96548         * modules/malloc-posix (License): Likewise.
96549         * modules/realloc-posix (License): Likewise.
96550         * modules/calloc-posix (License): Likewise.
96551         * modules/intprops (License): Change from GPL to LGPL, with
96552         Paul Eggert's approval.
96554 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
96556         Merge glibc changes into lib/glob.c.
96558         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
96559         2007-10-15 04:59:03 UTC.  Here are the changes:
96561         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
96563         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
96565         * lib/glob.c: Add some branch prediction throughout.
96567         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
96569         [BZ #5103]
96570         * lib/glob.c (glob): Recognize patterns starting \/.
96572         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
96574         [BZ #3996]
96575         * lib/glob.c (attribute_hidden): Define if not defined.
96576         (glob): Unescape dirname, filename or username when needed and not
96577         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
96578         is NULL.  Handle unescaped [ in pattern without closing ].
96579         Don't pass GLOB_CHECK down to recursive glob for directories.
96580         (__glob_pattern_type): New function.
96581         (__glob_pattern_p): Implement using __glob_pattern_type.
96582         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
96583         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
96584         Remove unreachable code.
96586         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
96588         * lib/glob.c (glob_in_dir): Add some comments and asserts to
96589         explain why there are no leaks.
96591         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
96593         [BZ #3253]
96594         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
96595         time, rather allocate increasingly bigger arrays of pointers, if
96596         possible with alloca, if too large with malloc.
96598 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
96600         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
96601         Problem reported by H.Merijn Brand in
96602         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
96603         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
96604         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
96606 2007-10-15  Bruno Haible  <bruno@clisp.org>
96608         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
96609         with explicit rpl_ prefix.
96610         * lib/fopen.c (fopen): Likewise.
96611         * lib/freopen.c (freopen): Likewise.
96612         * lib/iconv.c (iconv): Likewise.
96613         * lib/iconv_close.c (iconv_close): Likewise.
96615 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96617         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
96619 2007-10-15  Bruno Haible  <bruno@clisp.org>
96621         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
96622         <stddef.h> instead of <stdlib.h> since we only need NULL.
96623         Reported by Ben Pfaff <blp@cs.stanford.edu>.
96625 2007-10-15  Bruno Haible  <bruno@clisp.org>
96627         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
96628         Replace paragraph talking about LIBOBJS.
96629         Reported by Colin Watson <cjwatson@debian.org>.
96631 2007-10-15  Bruno Haible  <bruno@clisp.org>
96633         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
96634         <stdlib.h> before using NULL.
96636 2007-10-15  Simon Josefsson  <simon@josefsson.org>
96638         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
96639         Reported by Albert Chin <china@thewrittenword.com>.
96641 2007-10-14  Bruno Haible  <bruno@clisp.org>
96643         * modules/iconv_open-utf-tests: New file.
96644         * tests/test-iconv-utf.c: New file.
96646         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
96647         * modules/iconv_open-utf: New file.
96648         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
96649         (iconv, iconv_close): New declarations.
96650         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
96651         be defined.
96652         (iconv_open): Add special handling of conversion between UTF-8 and
96653         UTF-{16,32}{BE,LE}.
96654         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
96655         * lib/iconv_close.c: New file.
96656         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
96657         gl_FUNC_ICONV_OPEN.
96658         (gl_FUNC_ICONV_OPEN): Use it.
96659         (gl_FUNC_ICONV_OPEN_UTF): New macro.
96660         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
96661         and REPLACE_ICONV_UTF.
96662         * modules/iconv_open (Depends-on): Add c-strcase.
96663         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
96664         ICONV_CONST.
96665         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
96667 2007-10-13  Albert Chin  <china@thewrittenword.com>
96668             Bruno Haible  <bruno@clisp.org>
96670         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
96671         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
96673 2007-10-13  Bruno Haible  <bruno@clisp.org>
96675         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
96676         defined, use the ISO C99 inline semantics.
96677         * lib/argp.h (ARGP_EI): Likewise.
96679 2007-10-13  Bruno Haible  <bruno@clisp.org>
96681         Handle 'inline' change in gcc 4.3.0.
96682         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
96683         argp_fmtstream_write, argp_fmtstream_set_lmargin,
96684         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
96685         argp_fmtstream_point): Disable 'extern' declaration if the function
96686         definition is going to be provided inline.
96687         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
96688         semantics, not the ISO C99 inline semantics.
96689         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
96690         'extern' declaration if the function definition is going to be provided
96691         inline.
96692         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
96693         the GNU C inline semantics, not the ISO C99 inline semantics. With
96694         GCC 4.2, avoid a warning.
96696 2007-10-13  Bruno Haible  <bruno@clisp.org>
96698         * lib/freading.h (freading): Enable the use of __freading for
96699         glibc >= 2.7.
96700         * lib/freading.c (freading): Likewise.
96702 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
96704         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
96705         "warning: C99 inline functions are not supported; using GNU89".
96707 2007-10-12  Bruno Haible  <bruno@clisp.org>
96709         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
96710         of 2.
96711         * tests/test-ceilf2.c: New file.
96712         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
96714         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
96715         * modules/ceilf-tests: Update.
96717 2007-10-12  Bruno Haible  <bruno@clisp.org>
96719         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
96720         of 2.
96721         * tests/test-floorf2.c: New file.
96722         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
96724         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
96725         * modules/floorf-tests: Update.
96727 2007-10-12  Bruno Haible  <bruno@clisp.org>
96729         * tests/test-trunc2.c: New file.
96730         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
96732         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
96733         * modules/trunc-tests: Update.
96735 2007-10-12  Bruno Haible  <bruno@clisp.org>
96737         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
96738         of 2.
96739         * tests/test-truncf2.c: New file.
96740         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
96742         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
96743         * modules/truncf-tests: Update.
96745 2007-10-11  Eric Blake  <ebb9@byu.net>
96747         Don't claim strerror is broken on Interix.
96748         * doc/functions/strerror.texi (strerror): Known broken systems are
96749         now Solaris 8, and not Interix.
96750         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
96751         Interix on cross-compile.
96752         Reported by Martin Koeppe in
96753         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
96755 2007-10-11  Bruno Haible  <bruno@clisp.org>
96757         * modules/i-ring-tests: New file.
96758         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
96759         instead of assert.
96761 2007-10-11  Bruno Haible  <bruno@clisp.org>
96763         * modules/filenamecat-tests: New file.
96764         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
96765         * lib/filenamecat.c: Remove test code.
96767 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
96769         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
96771         * lib/strerror.c: Include <string.h> always, to test interface,
96772         and to remove the need for the dummy.
96773         Include intprops.h to compute width instead of doing it ourselves
96774         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
96775         (strerror): Define it to return NULL if there's no system strerror.
96776         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
96777         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
96778         ancient pre-strerror Unix systems well any more.  Saying "unknown
96779         system error" is enough.
96780         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
96781         simpler strerror.c implementation.
96782         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
96783         Simplify the tests to reflect the simpler strerror implementation.
96784         * modules/strerror (Depends-on): Add intprops.
96786 2007-10-09  Eric Blake  <ebb9@byu.net>
96788         Silence test-fpending.
96789         * modules/fpending-tests (Files): Add wrapper script.
96790         * tests/test-fpending.sh: New file.
96792 2007-10-09  Bruno Haible  <bruno@clisp.org>
96794         * MODULES.html.sh (func_module): Don't create a hyperlink for
96795         function names like 'printf_frexp'.
96796         (Misc): Add crc, memxor.
96797         (Characteristics of floating types): New section.
96798         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
96799         isnanf-nolibm, signbit, trunc, truncf, truncl.
96800         (Enhancements for ISO C 99 functions): New subsection Input/output.
96801         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
96802         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
96803         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
96804         (Compatibility checks for POSIX:2001 functions): Add clock-time.
96805         (Enhancements for POSIX:2001 functions): Add chdir-long.
96806         (File system functions): Add areadlink, chdir-safer, read-file.
96807         Remove cycle-check.
96808         (File system as inode set): New section.
96809         (Date and time): Add gethrxtime.
96810         (Multithreading): Add openmp.
96811         (Internationalization functions): Add localename.
96812         (Unicode string functions): Add unistr/u*-mbsnlen.
96813         (Support for maintaining and releasing projects): Add git-version-gen.
96814         (Lone files): Remove directories.
96816 2007-10-08  Ben Pfaff  <blp@gnu.org>
96818         * lib/xmalloca.h: Fix typo in comment.
96820 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
96822         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
96823         when avoiding problems with integer overflow.  Use a portable test
96824         instead.
96826 2007-10-08  Simon Josefsson  <simon@josefsson.org>
96828         * modules/dummy (License): Change to LGPLv2+.
96829         * modules/float (License): Likewise
96830         * modules/realloc (License): Likewise
96831         * modules/stdlib (License): Likewise
96833 2007-10-07  Bruno Haible  <bruno@clisp.org>
96835         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
96836         * floor.c (TWO_MANT_DIG): Likewise.
96837         * ceil.c (TWO_MANT_DIG): Likewise.
96838         Reported by Ben Pfaff.
96840 2007-10-07  Bruno Haible  <bruno@clisp.org>
96842         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
96843         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
96844         * lib/frexp.c (FUNC): Likewise.
96845         * lib/printf-frexp.h (printf_frexp): Likewise.
96846         * lib/printf-frexpl.h (printf_frexpl): Likewise.
96847         * lib/printf-frexp.c (FUNC): Likewise.
96848         Suggested by Jim Meyering.
96850 2007-10-07  Jim Meyering  <meyering@redhat.com>
96852         Make xnanosleep's integer overflow test more robust.
96853         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
96854         so that gcc-4.3.0 doesn't optimize away this test for overflow.
96856 2007-10-07  Bruno Haible  <bruno@clisp.org>
96858         * NEWS: Mention the license change.
96860         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
96861         abbreviations in the modules files.
96863         Change copyright notice from GPLv2+ to GPLv3+.
96864         * README: Change copyright notice.
96865         * MODULES.html.sh: Likewise.
96866         * build-aux/bootstrap.conf: Likewise.
96867         * build-aux/config.libpath: Likewise.
96868         * build-aux/csharpcomp.sh.in: Likewise.
96869         * build-aux/csharpexec.sh.in: Likewise.
96870         * build-aux/install-reloc: Likewise.
96871         * build-aux/javacomp.sh.in: Likewise.
96872         * build-aux/javaexec.sh.in: Likewise.
96873         * build-aux/ldd.sh.in: Likewise.
96874         * build-aux/reloc-ldflags: Likewise.
96875         * build-aux/relocatable.sh.in: Likewise.
96876         * build-aux/x-to-1.in: Likewise.
96877         * check-module: Likewise.
96878         * config/srclistvars.sh: Likewise.
96879         * gnulib-tool: Likewise.
96880         * lib/acl-internal.h: Likewise.
96881         * lib/acl.c: Likewise.
96882         * lib/acl.h: Likewise.
96883         * lib/acl_entries.c: Likewise.
96884         * lib/areadlink-with-size.c: Likewise.
96885         * lib/areadlink.c: Likewise.
96886         * lib/areadlink.h: Likewise.
96887         * lib/argmatch.c: Likewise.
96888         * lib/argmatch.h: Likewise.
96889         * lib/argp-ba.c: Likewise.
96890         * lib/argp-eexst.c: Likewise.
96891         * lib/argp-fmtstream.c: Likewise.
96892         * lib/argp-fmtstream.h: Likewise.
96893         * lib/argp-fs-xinl.c: Likewise.
96894         * lib/argp-help.c: Likewise.
96895         * lib/argp-namefrob.h: Likewise.
96896         * lib/argp-parse.c: Likewise.
96897         * lib/argp-pin.c: Likewise.
96898         * lib/argp-pv.c: Likewise.
96899         * lib/argp-pvh.c: Likewise.
96900         * lib/argp-xinl.c: Likewise.
96901         * lib/argp.h: Likewise.
96902         * lib/at-func.c: Likewise.
96903         * lib/atanl.c: Likewise.
96904         * lib/backupfile.c: Likewise.
96905         * lib/backupfile.h: Likewise.
96906         * lib/basename.c: Likewise.
96907         * lib/binary-io.h: Likewise.
96908         * lib/byteswap.in.h: Likewise.
96909         * lib/c-stack.c: Likewise.
96910         * lib/c-stack.h: Likewise.
96911         * lib/c-strcasestr.c: Likewise.
96912         * lib/c-strcasestr.h: Likewise.
96913         * lib/c-strstr.c: Likewise.
96914         * lib/c-strstr.h: Likewise.
96915         * lib/c-strtod.c: Likewise.
96916         * lib/calloc.c: Likewise.
96917         * lib/canon-host.c: Likewise.
96918         * lib/canon-host.h: Likewise.
96919         * lib/canonicalize-lgpl.c: Likewise.
96920         * lib/canonicalize.c: Likewise.
96921         * lib/canonicalize.h: Likewise.
96922         * lib/ceil.c: Likewise.
96923         * lib/ceilf.c: Likewise.
96924         * lib/ceill.c: Likewise.
96925         * lib/chdir-long.c: Likewise.
96926         * lib/chdir-long.h: Likewise.
96927         * lib/chdir-safer.c: Likewise.
96928         * lib/chdir-safer.h: Likewise.
96929         * lib/chown.c: Likewise.
96930         * lib/classpath.c: Likewise.
96931         * lib/classpath.h: Likewise.
96932         * lib/clean-temp.c: Likewise.
96933         * lib/clean-temp.h: Likewise.
96934         * lib/cloexec.c: Likewise.
96935         * lib/close-stream.c: Likewise.
96936         * lib/closein.c: Likewise.
96937         * lib/closein.h: Likewise.
96938         * lib/closeout.c: Likewise.
96939         * lib/closeout.h: Likewise.
96940         * lib/concat-filename.c: Likewise.
96941         * lib/copy-file.c: Likewise.
96942         * lib/copy-file.h: Likewise.
96943         * lib/count-one-bits.h: Likewise.
96944         * lib/crc.c: Likewise.
96945         * lib/crc.h: Likewise.
96946         * lib/creat-safer.c: Likewise.
96947         * lib/csharpcomp.c: Likewise.
96948         * lib/csharpcomp.h: Likewise.
96949         * lib/csharpexec.c: Likewise.
96950         * lib/csharpexec.h: Likewise.
96951         * lib/cycle-check.c: Likewise.
96952         * lib/cycle-check.h: Likewise.
96953         * lib/diacrit.c: Likewise.
96954         * lib/diacrit.h: Likewise.
96955         * lib/diffseq.h: Likewise.
96956         * lib/dirchownmod.c: Likewise.
96957         * lib/dirent.in.h: Likewise.
96958         * lib/dirfd.c: Likewise.
96959         * lib/dirfd.h: Likewise.
96960         * lib/dirname.c: Likewise.
96961         * lib/dirname.h: Likewise.
96962         * lib/dummy.c: Likewise.
96963         * lib/dup-safer.c: Likewise.
96964         * lib/dup2.c: Likewise.
96965         * lib/eealloc.h: Likewise.
96966         * lib/error.c: Likewise.
96967         * lib/error.h: Likewise.
96968         * lib/euidaccess.c: Likewise.
96969         * lib/exclude.c: Likewise.
96970         * lib/exclude.h: Likewise.
96971         * lib/execute.c: Likewise.
96972         * lib/execute.h: Likewise.
96973         * lib/exitfail.c: Likewise.
96974         * lib/exitfail.h: Likewise.
96975         * lib/expl.c: Likewise.
96976         * lib/fatal-signal.c: Likewise.
96977         * lib/fatal-signal.h: Likewise.
96978         * lib/fbufmode.c: Likewise.
96979         * lib/fbufmode.h: Likewise.
96980         * lib/fchdir.c: Likewise.
96981         * lib/fchmodat.c: Likewise.
96982         * lib/fchownat.c: Likewise.
96983         * lib/fcntl--.h: Likewise.
96984         * lib/fcntl-safer.h: Likewise.
96985         * lib/fcntl.in.h: Likewise.
96986         * lib/fd-safer.c: Likewise.
96987         * lib/fflush.c: Likewise.
96988         * lib/file-has-acl.c: Likewise.
96989         * lib/file-set.c: Likewise.
96990         * lib/file-type.c: Likewise.
96991         * lib/file-type.h: Likewise.
96992         * lib/fileblocks.c: Likewise.
96993         * lib/filemode.c: Likewise.
96994         * lib/filemode.h: Likewise.
96995         * lib/filename.h: Likewise.
96996         * lib/filenamecat.c: Likewise.
96997         * lib/filenamecat.h: Likewise.
96998         * lib/findprog.c: Likewise.
96999         * lib/findprog.h: Likewise.
97000         * lib/float.in.h: Likewise.
97001         * lib/floor.c: Likewise.
97002         * lib/floorf.c: Likewise.
97003         * lib/floorl.c: Likewise.
97004         * lib/fopen-safer.c: Likewise.
97005         * lib/fopen.c: Likewise.
97006         * lib/fpending.c: Likewise.
97007         * lib/fpending.h: Likewise.
97008         * lib/fprintf.c: Likewise.
97009         * lib/fprintftime.h: Likewise.
97010         * lib/fpucw.h: Likewise.
97011         * lib/fpurge.c: Likewise.
97012         * lib/fpurge.h: Likewise.
97013         * lib/freadable.c: Likewise.
97014         * lib/freadable.h: Likewise.
97015         * lib/freadahead.c: Likewise.
97016         * lib/freadahead.h: Likewise.
97017         * lib/freading.c: Likewise.
97018         * lib/freading.h: Likewise.
97019         * lib/free.c: Likewise.
97020         * lib/freopen.c: Likewise.
97021         * lib/frexp.c: Likewise.
97022         * lib/frexpl.c: Likewise.
97023         * lib/fseek.c: Likewise.
97024         * lib/fseterr.c: Likewise.
97025         * lib/fseterr.h: Likewise.
97026         * lib/fstatat.c: Likewise.
97027         * lib/fstrcmp.c: Likewise.
97028         * lib/fstrcmp.h: Likewise.
97029         * lib/fsusage.c: Likewise.
97030         * lib/fsusage.h: Likewise.
97031         * lib/ftell.c: Likewise.
97032         * lib/ftello.c: Likewise.
97033         * lib/fts-cycle.c: Likewise.
97034         * lib/fts.c: Likewise.
97035         * lib/fts_.h: Likewise.
97036         * lib/full-read.c: Likewise.
97037         * lib/full-read.h: Likewise.
97038         * lib/full-write.c: Likewise.
97039         * lib/full-write.h: Likewise.
97040         * lib/fwritable.c: Likewise.
97041         * lib/fwritable.h: Likewise.
97042         * lib/fwriteerror.c: Likewise.
97043         * lib/fwriteerror.h: Likewise.
97044         * lib/fwriting.c: Likewise.
97045         * lib/fwriting.h: Likewise.
97046         * lib/gcd.c: Likewise.
97047         * lib/gcd.h: Likewise.
97048         * lib/getcwd.c: Likewise.
97049         * lib/getdate.h: Likewise.
97050         * lib/getdate.y: Likewise.
97051         * lib/getdomainname.c: Likewise.
97052         * lib/getdomainname.h: Likewise.
97053         * lib/getgroups.c: Likewise.
97054         * lib/gethostname.c: Likewise.
97055         * lib/gethrxtime.c: Likewise.
97056         * lib/gethrxtime.h: Likewise.
97057         * lib/getloadavg.c: Likewise.
97058         * lib/getndelim2.c: Likewise.
97059         * lib/getndelim2.h: Likewise.
97060         * lib/getnline.c: Likewise.
97061         * lib/getnline.h: Likewise.
97062         * lib/getopt.c: Likewise.
97063         * lib/getopt.in.h: Likewise.
97064         * lib/getopt1.c: Likewise.
97065         * lib/getopt_int.h: Likewise.
97066         * lib/getpagesize.h: Likewise.
97067         * lib/getsubopt.c: Likewise.
97068         * lib/gettime.c: Likewise.
97069         * lib/getugroups.c: Likewise.
97070         * lib/getugroups.h: Likewise.
97071         * lib/getusershell.c: Likewise.
97072         * lib/gl_anyavltree_list1.h: Likewise.
97073         * lib/gl_anyavltree_list2.h: Likewise.
97074         * lib/gl_anyhash_list1.h: Likewise.
97075         * lib/gl_anyhash_list2.h: Likewise.
97076         * lib/gl_anylinked_list1.h: Likewise.
97077         * lib/gl_anylinked_list2.h: Likewise.
97078         * lib/gl_anyrbtree_list1.h: Likewise.
97079         * lib/gl_anyrbtree_list2.h: Likewise.
97080         * lib/gl_anytree_list1.h: Likewise.
97081         * lib/gl_anytree_list2.h: Likewise.
97082         * lib/gl_anytree_oset.h: Likewise.
97083         * lib/gl_anytreehash_list1.h: Likewise.
97084         * lib/gl_anytreehash_list2.h: Likewise.
97085         * lib/gl_array_list.c: Likewise.
97086         * lib/gl_array_list.h: Likewise.
97087         * lib/gl_array_oset.c: Likewise.
97088         * lib/gl_array_oset.h: Likewise.
97089         * lib/gl_avltree_list.c: Likewise.
97090         * lib/gl_avltree_list.h: Likewise.
97091         * lib/gl_avltree_oset.c: Likewise.
97092         * lib/gl_avltree_oset.h: Likewise.
97093         * lib/gl_avltreehash_list.c: Likewise.
97094         * lib/gl_avltreehash_list.h: Likewise.
97095         * lib/gl_carray_list.c: Likewise.
97096         * lib/gl_carray_list.h: Likewise.
97097         * lib/gl_linked_list.c: Likewise.
97098         * lib/gl_linked_list.h: Likewise.
97099         * lib/gl_linkedhash_list.c: Likewise.
97100         * lib/gl_linkedhash_list.h: Likewise.
97101         * lib/gl_list.c: Likewise.
97102         * lib/gl_list.h: Likewise.
97103         * lib/gl_oset.c: Likewise.
97104         * lib/gl_oset.h: Likewise.
97105         * lib/gl_rbtree_list.c: Likewise.
97106         * lib/gl_rbtree_list.h: Likewise.
97107         * lib/gl_rbtree_oset.c: Likewise.
97108         * lib/gl_rbtree_oset.h: Likewise.
97109         * lib/gl_rbtreehash_list.c: Likewise.
97110         * lib/gl_rbtreehash_list.h: Likewise.
97111         * lib/gl_sublist.c: Likewise.
97112         * lib/gl_sublist.h: Likewise.
97113         * lib/group-member.c: Likewise.
97114         * lib/group-member.h: Likewise.
97115         * lib/hard-locale.c: Likewise.
97116         * lib/hard-locale.h: Likewise.
97117         * lib/hash-pjw.c: Likewise.
97118         * lib/hash-pjw.h: Likewise.
97119         * lib/hash-triple.c: Likewise.
97120         * lib/hash.c: Likewise.
97121         * lib/hash.h: Likewise.
97122         * lib/human.c: Likewise.
97123         * lib/human.h: Likewise.
97124         * lib/i-ring.c: Likewise.
97125         * lib/i-ring.h: Likewise.
97126         * lib/idcache.c: Likewise.
97127         * lib/imaxabs.c: Likewise.
97128         * lib/imaxdiv.c: Likewise.
97129         * lib/inet_pton.c: Likewise.
97130         * lib/inet_pton.h: Likewise.
97131         * lib/intprops.h: Likewise.
97132         * lib/inttostr.c: Likewise.
97133         * lib/inttostr.h: Likewise.
97134         * lib/inttypes.in.h: Likewise.
97135         * lib/isapipe.c: Likewise.
97136         * lib/isdir.c: Likewise.
97137         * lib/isnan.c: Likewise.
97138         * lib/isnan.h: Likewise.
97139         * lib/isnanf.c: Likewise.
97140         * lib/isnanf.h: Likewise.
97141         * lib/isnanl-nolibm.h: Likewise.
97142         * lib/isnanl.c: Likewise.
97143         * lib/isnanl.h: Likewise.
97144         * lib/javacomp.c: Likewise.
97145         * lib/javacomp.h: Likewise.
97146         * lib/javaexec.c: Likewise.
97147         * lib/javaexec.h: Likewise.
97148         * lib/javaversion.c: Likewise.
97149         * lib/javaversion.h: Likewise.
97150         * lib/javaversion.java: Likewise.
97151         * lib/lbrkprop.h: Likewise.
97152         * lib/lchmod.h: Likewise.
97153         * lib/lchown.c: Likewise.
97154         * lib/ldexpl.c: Likewise.
97155         * lib/linebreak.c: Likewise.
97156         * lib/linebreak.h: Likewise.
97157         * lib/linebuffer.c: Likewise.
97158         * lib/linebuffer.h: Likewise.
97159         * lib/locale.in.h: Likewise.
97160         * lib/logl.c: Likewise.
97161         * lib/long-options.c: Likewise.
97162         * lib/long-options.h: Likewise.
97163         * lib/lstat.c: Likewise.
97164         * lib/lstat.h: Likewise.
97165         * lib/math.in.h: Likewise.
97166         * lib/mbchar.c: Likewise.
97167         * lib/mbchar.h: Likewise.
97168         * lib/mbfile.h: Likewise.
97169         * lib/mbiter.h: Likewise.
97170         * lib/mbscasecmp.c: Likewise.
97171         * lib/mbscasestr.c: Likewise.
97172         * lib/mbschr.c: Likewise.
97173         * lib/mbscspn.c: Likewise.
97174         * lib/mbslen.c: Likewise.
97175         * lib/mbsncasecmp.c: Likewise.
97176         * lib/mbsnlen.c: Likewise.
97177         * lib/mbspbrk.c: Likewise.
97178         * lib/mbspcasecmp.c: Likewise.
97179         * lib/mbsrchr.c: Likewise.
97180         * lib/mbssep.c: Likewise.
97181         * lib/mbsspn.c: Likewise.
97182         * lib/mbsstr.c: Likewise.
97183         * lib/mbstok_r.c: Likewise.
97184         * lib/mbswidth.c: Likewise.
97185         * lib/mbswidth.h: Likewise.
97186         * lib/mbuiter.h: Likewise.
97187         * lib/memcasecmp.c: Likewise.
97188         * lib/memcasecmp.h: Likewise.
97189         * lib/memchr.c: Likewise.
97190         * lib/memcmp.c: Likewise.
97191         * lib/memcoll.c: Likewise.
97192         * lib/memcoll.h: Likewise.
97193         * lib/memcpy.c: Likewise.
97194         * lib/memrchr.c: Likewise.
97195         * lib/mkancesdirs.c: Likewise.
97196         * lib/mkdir-p.c: Likewise.
97197         * lib/mkdir-p.h: Likewise.
97198         * lib/mkdir.c: Likewise.
97199         * lib/mkdirat.c: Likewise.
97200         * lib/mkdtemp.c: Likewise.
97201         * lib/mkstemp-safer.c: Likewise.
97202         * lib/mkstemp.c: Likewise.
97203         * lib/modechange.c: Likewise.
97204         * lib/modechange.h: Likewise.
97205         * lib/mountlist.c: Likewise.
97206         * lib/mountlist.h: Likewise.
97207         * lib/mpsort.c: Likewise.
97208         * lib/nanosleep.c: Likewise.
97209         * lib/obstack.c: Likewise.
97210         * lib/obstack.h: Likewise.
97211         * lib/open-safer.c: Likewise.
97212         * lib/open.c: Likewise.
97213         * lib/openat-die.c: Likewise.
97214         * lib/openat-priv.h: Likewise.
97215         * lib/openat-proc.c: Likewise.
97216         * lib/openat.c: Likewise.
97217         * lib/openat.h: Likewise.
97218         * lib/pagealign_alloc.c: Likewise.
97219         * lib/pagealign_alloc.h: Likewise.
97220         * lib/physmem.c: Likewise.
97221         * lib/physmem.h: Likewise.
97222         * lib/pipe-safer.c: Likewise.
97223         * lib/pipe.c: Likewise.
97224         * lib/pipe.h: Likewise.
97225         * lib/posixtm.c: Likewise.
97226         * lib/posixtm.h: Likewise.
97227         * lib/posixver.c: Likewise.
97228         * lib/printf-frexp.c: Likewise.
97229         * lib/printf-frexp.h: Likewise.
97230         * lib/printf-frexpl.c: Likewise.
97231         * lib/printf-frexpl.h: Likewise.
97232         * lib/printf.c: Likewise.
97233         * lib/progname.c: Likewise.
97234         * lib/progname.h: Likewise.
97235         * lib/progreloc.c: Likewise.
97236         * lib/putenv.c: Likewise.
97237         * lib/quote.c: Likewise.
97238         * lib/quote.h: Likewise.
97239         * lib/quotearg.c: Likewise.
97240         * lib/quotearg.h: Likewise.
97241         * lib/raise.c: Likewise.
97242         * lib/readline.c: Likewise.
97243         * lib/readline.h: Likewise.
97244         * lib/readlink.c: Likewise.
97245         * lib/readtokens.c: Likewise.
97246         * lib/readtokens.h: Likewise.
97247         * lib/readtokens0.c: Likewise.
97248         * lib/readtokens0.h: Likewise.
97249         * lib/readutmp.c: Likewise.
97250         * lib/readutmp.h: Likewise.
97251         * lib/realloc.c: Likewise.
97252         * lib/relocwrapper.c: Likewise.
97253         * lib/rename-dest-slash.c: Likewise.
97254         * lib/rename.c: Likewise.
97255         * lib/rmdir.c: Likewise.
97256         * lib/rpmatch.c: Likewise.
97257         * lib/safe-read.c: Likewise.
97258         * lib/safe-read.h: Likewise.
97259         * lib/safe-write.c: Likewise.
97260         * lib/safe-write.h: Likewise.
97261         * lib/same-inode.h: Likewise.
97262         * lib/same.c: Likewise.
97263         * lib/same.h: Likewise.
97264         * lib/save-cwd.c: Likewise.
97265         * lib/save-cwd.h: Likewise.
97266         * lib/savedir.c: Likewise.
97267         * lib/savedir.h: Likewise.
97268         * lib/savewd.c: Likewise.
97269         * lib/savewd.h: Likewise.
97270         * lib/search.in.h: Likewise.
97271         * lib/setenv.c: Likewise.
97272         * lib/setenv.h: Likewise.
97273         * lib/settime.c: Likewise.
97274         * lib/sh-quote.c: Likewise.
97275         * lib/sh-quote.h: Likewise.
97276         * lib/sig2str.c: Likewise.
97277         * lib/sig2str.h: Likewise.
97278         * lib/signal.in.h: Likewise.
97279         * lib/signbitd.c: Likewise.
97280         * lib/signbitf.c: Likewise.
97281         * lib/signbitl.c: Likewise.
97282         * lib/sigprocmask.c: Likewise.
97283         * lib/sincosl.c: Likewise.
97284         * lib/sleep.c: Likewise.
97285         * lib/sprintf.c: Likewise.
97286         * lib/sqrtl.c: Likewise.
97287         * lib/stat-time.h: Likewise.
97288         * lib/stdio--.h: Likewise.
97289         * lib/stdio-safer.h: Likewise.
97290         * lib/stdlib--.h: Likewise.
97291         * lib/stdlib-safer.h: Likewise.
97292         * lib/stdlib.in.h: Likewise.
97293         * lib/stpcpy.c: Likewise.
97294         * lib/stpncpy.c: Likewise.
97295         * lib/strchrnul.c: Likewise.
97296         * lib/strcspn.c: Likewise.
97297         * lib/strerror.c: Likewise.
97298         * lib/strftime.c: Likewise.
97299         * lib/strftime.h: Likewise.
97300         * lib/striconveh.c: Likewise.
97301         * lib/striconveh.h: Likewise.
97302         * lib/striconveha.c: Likewise.
97303         * lib/striconveha.h: Likewise.
97304         * lib/stripslash.c: Likewise.
97305         * lib/strnlen1.c: Likewise.
97306         * lib/strnlen1.h: Likewise.
97307         * lib/strtod.c: Likewise.
97308         * lib/strtoimax.c: Likewise.
97309         * lib/strtok_r.c: Likewise.
97310         * lib/strtol.c: Likewise.
97311         * lib/strtoll.c: Likewise.
97312         * lib/strtoul.c: Likewise.
97313         * lib/strtoull.c: Likewise.
97314         * lib/sysexits.in.h: Likewise.
97315         * lib/tempname.c: Likewise.
97316         * lib/tempname.h: Likewise.
97317         * lib/timespec.h: Likewise.
97318         * lib/tls.c: Likewise.
97319         * lib/tls.h: Likewise.
97320         * lib/tmpdir.c: Likewise.
97321         * lib/tmpdir.h: Likewise.
97322         * lib/tmpfile-safer.c: Likewise.
97323         * lib/tmpfile.c: Likewise.
97324         * lib/trigl.c: Likewise.
97325         * lib/trigl.h: Likewise.
97326         * lib/trim.c: Likewise.
97327         * lib/trim.h: Likewise.
97328         * lib/trunc.c: Likewise.
97329         * lib/truncf.c: Likewise.
97330         * lib/truncl.c: Likewise.
97331         * lib/tsearch.c: Likewise.
97332         * lib/unicodeio.c: Likewise.
97333         * lib/unicodeio.h: Likewise.
97334         * lib/unistd--.h: Likewise.
97335         * lib/unistd-safer.h: Likewise.
97336         * lib/unistdio/ulc-fprintf.c: Likewise.
97337         * lib/unistdio/ulc-vfprintf.c: Likewise.
97338         * lib/unlinkdir.c: Likewise.
97339         * lib/unlinkdir.h: Likewise.
97340         * lib/unlocked-io.h: Likewise.
97341         * lib/unsetenv.c: Likewise.
97342         * lib/userspec.c: Likewise.
97343         * lib/utime.c: Likewise.
97344         * lib/utimecmp.c: Likewise.
97345         * lib/utimecmp.h: Likewise.
97346         * lib/utimens.c: Likewise.
97347         * lib/verify.h: Likewise.
97348         * lib/verror.c: Likewise.
97349         * lib/verror.h: Likewise.
97350         * lib/version-etc-fsf.c: Likewise.
97351         * lib/version-etc.c: Likewise.
97352         * lib/version-etc.h: Likewise.
97353         * lib/vfprintf.c: Likewise.
97354         * lib/vprintf.c: Likewise.
97355         * lib/vsprintf.c: Likewise.
97356         * lib/w32spawn.h: Likewise.
97357         * lib/wait-process.c: Likewise.
97358         * lib/wait-process.h: Likewise.
97359         * lib/wcwidth.c: Likewise.
97360         * lib/write-any-file.c: Likewise.
97361         * lib/xalloc-die.c: Likewise.
97362         * lib/xalloc.h: Likewise.
97363         * lib/xasprintf.c: Likewise.
97364         * lib/xgetcwd.c: Likewise.
97365         * lib/xgetcwd.h: Likewise.
97366         * lib/xgetdomainname.c: Likewise.
97367         * lib/xgetdomainname.h: Likewise.
97368         * lib/xgethostname.c: Likewise.
97369         * lib/xmalloc.c: Likewise.
97370         * lib/xmalloca.c: Likewise.
97371         * lib/xmalloca.h: Likewise.
97372         * lib/xmemcoll.c: Likewise.
97373         * lib/xnanosleep.c: Likewise.
97374         * lib/xreadlink.c: Likewise.
97375         * lib/xreadlink.h: Likewise.
97376         * lib/xsetenv.c: Likewise.
97377         * lib/xsetenv.h: Likewise.
97378         * lib/xstriconv.c: Likewise.
97379         * lib/xstriconv.h: Likewise.
97380         * lib/xstrndup.c: Likewise.
97381         * lib/xstrndup.h: Likewise.
97382         * lib/xstrtod.c: Likewise.
97383         * lib/xstrtod.h: Likewise.
97384         * lib/xstrtol-error.c: Likewise.
97385         * lib/xstrtol.c: Likewise.
97386         * lib/xstrtol.h: Likewise.
97387         * lib/xtime.h: Likewise.
97388         * lib/xvasprintf.c: Likewise.
97389         * lib/xvasprintf.h: Likewise.
97390         * lib/yesno.c: Likewise.
97391         * lib/yesno.h: Likewise.
97392         * posix-modules: Likewise.
97393         * tests/test-alloca-opt.c: Likewise.
97394         * tests/test-arcfour.c: Likewise.
97395         * tests/test-arctwo.c: Likewise.
97396         * tests/test-argmatch.c: Likewise.
97397         * tests/test-argp-2.sh: Likewise.
97398         * tests/test-argp.c: Likewise.
97399         * tests/test-arpa_inet.c: Likewise.
97400         * tests/test-array_list.c: Likewise.
97401         * tests/test-array_oset.c: Likewise.
97402         * tests/test-atexit.c: Likewise.
97403         * tests/test-avltree_list.c: Likewise.
97404         * tests/test-avltree_oset.c: Likewise.
97405         * tests/test-avltreehash_list.c: Likewise.
97406         * tests/test-base64.c: Likewise.
97407         * tests/test-binary-io.c: Likewise.
97408         * tests/test-byteswap.c: Likewise.
97409         * tests/test-c-ctype.c: Likewise.
97410         * tests/test-c-strcasecmp.c: Likewise.
97411         * tests/test-c-strcasestr.c: Likewise.
97412         * tests/test-c-strncasecmp.c: Likewise.
97413         * tests/test-c-strstr.c: Likewise.
97414         * tests/test-canonicalize-lgpl.c: Likewise.
97415         * tests/test-canonicalize.c: Likewise.
97416         * tests/test-carray_list.c: Likewise.
97417         * tests/test-ceilf.c: Likewise.
97418         * tests/test-ceill.c: Likewise.
97419         * tests/test-count-one-bits.c: Likewise.
97420         * tests/test-crc.c: Likewise.
97421         * tests/test-dirname.c: Likewise.
97422         * tests/test-fbufmode.c: Likewise.
97423         * tests/test-fcntl.c: Likewise.
97424         * tests/test-fflush.c: Likewise.
97425         * tests/test-floorf.c: Likewise.
97426         * tests/test-floorl.c: Likewise.
97427         * tests/test-fopen.c: Likewise.
97428         * tests/test-fprintf-posix.c: Likewise.
97429         * tests/test-fprintf-posix.h: Likewise.
97430         * tests/test-fpurge.c: Likewise.
97431         * tests/test-freadable.c: Likewise.
97432         * tests/test-freadahead.c: Likewise.
97433         * tests/test-freading.c: Likewise.
97434         * tests/test-freopen.c: Likewise.
97435         * tests/test-frexp.c: Likewise.
97436         * tests/test-frexpl.c: Likewise.
97437         * tests/test-fseek.c: Likewise.
97438         * tests/test-fseeko.c: Likewise.
97439         * tests/test-fseterr.c: Likewise.
97440         * tests/test-fstrcmp.c: Likewise.
97441         * tests/test-ftell.c: Likewise.
97442         * tests/test-ftello.c: Likewise.
97443         * tests/test-fwritable.c: Likewise.
97444         * tests/test-fwriting.c: Likewise.
97445         * tests/test-getaddrinfo.c: Likewise.
97446         * tests/test-getpass.c: Likewise.
97447         * tests/test-gettimeofday.c: Likewise.
97448         * tests/test-hmac-md5.c: Likewise.
97449         * tests/test-hmac-sha1.c: Likewise.
97450         * tests/test-iconv.c: Likewise.
97451         * tests/test-iconvme.c: Likewise.
97452         * tests/test-inttypes.c: Likewise.
97453         * tests/test-isnan.c: Likewise.
97454         * tests/test-isnanf.c: Likewise.
97455         * tests/test-isnanl-nolibm.c: Likewise.
97456         * tests/test-isnanl.c: Likewise.
97457         * tests/test-isnanl.h: Likewise.
97458         * tests/test-ldexpl.c: Likewise.
97459         * tests/test-linked_list.c: Likewise.
97460         * tests/test-linkedhash_list.c: Likewise.
97461         * tests/test-locale.c: Likewise.
97462         * tests/test-localename.c: Likewise.
97463         * tests/test-lock.c: Likewise.
97464         * tests/test-lseek.c: Likewise.
97465         * tests/test-malloca.c: Likewise.
97466         * tests/test-math.c: Likewise.
97467         * tests/test-mbscasecmp.c: Likewise.
97468         * tests/test-mbscasestr1.c: Likewise.
97469         * tests/test-mbscasestr2.c: Likewise.
97470         * tests/test-mbscasestr3.c: Likewise.
97471         * tests/test-mbscasestr4.c: Likewise.
97472         * tests/test-mbschr.c: Likewise.
97473         * tests/test-mbscspn.c: Likewise.
97474         * tests/test-mbsncasecmp.c: Likewise.
97475         * tests/test-mbspbrk.c: Likewise.
97476         * tests/test-mbspcasecmp.c: Likewise.
97477         * tests/test-mbsrchr.c: Likewise.
97478         * tests/test-mbsspn.c: Likewise.
97479         * tests/test-mbsstr1.c: Likewise.
97480         * tests/test-mbsstr2.c: Likewise.
97481         * tests/test-mbsstr3.c: Likewise.
97482         * tests/test-md5.c: Likewise.
97483         * tests/test-memmem.c: Likewise.
97484         * tests/test-netinet_in.c: Likewise.
97485         * tests/test-open.c: Likewise.
97486         * tests/test-printf-frexp.c: Likewise.
97487         * tests/test-printf-frexpl.c: Likewise.
97488         * tests/test-printf-posix.c: Likewise.
97489         * tests/test-printf-posix.h: Likewise.
97490         * tests/test-rbtree_list.c: Likewise.
97491         * tests/test-rbtree_oset.c: Likewise.
97492         * tests/test-rbtreehash_list.c: Likewise.
97493         * tests/test-read-file.c: Likewise.
97494         * tests/test-rijndael.c: Likewise.
97495         * tests/test-search.c: Likewise.
97496         * tests/test-signbit.c: Likewise.
97497         * tests/test-sleep.c: Likewise.
97498         * tests/test-snprintf-posix.c: Likewise.
97499         * tests/test-snprintf-posix.h: Likewise.
97500         * tests/test-snprintf.c: Likewise.
97501         * tests/test-sprintf-posix.c: Likewise.
97502         * tests/test-sprintf-posix.h: Likewise.
97503         * tests/test-stat-time.c: Likewise.
97504         * tests/test-stdbool.c: Likewise.
97505         * tests/test-stdint.c: Likewise.
97506         * tests/test-stdio.c: Likewise.
97507         * tests/test-stdlib.c: Likewise.
97508         * tests/test-stpncpy.c: Likewise.
97509         * tests/test-strcasestr.c: Likewise.
97510         * tests/test-striconv.c: Likewise.
97511         * tests/test-striconveh.c: Likewise.
97512         * tests/test-striconveha.c: Likewise.
97513         * tests/test-string.c: Likewise.
97514         * tests/test-sys_select.c: Likewise.
97515         * tests/test-sys_socket.c: Likewise.
97516         * tests/test-sys_stat.c: Likewise.
97517         * tests/test-sys_time.c: Likewise.
97518         * tests/test-sysexits.c: Likewise.
97519         * tests/test-time.c: Likewise.
97520         * tests/test-tls.c: Likewise.
97521         * tests/test-trunc.c: Likewise.
97522         * tests/test-truncf.c: Likewise.
97523         * tests/test-truncl.c: Likewise.
97524         * tests/test-unistd.c: Likewise.
97525         * tests/test-vasnprintf-posix.c: Likewise.
97526         * tests/test-vasnprintf-posix2.c: Likewise.
97527         * tests/test-vasnprintf.c: Likewise.
97528         * tests/test-vasprintf-posix.c: Likewise.
97529         * tests/test-vasprintf.c: Likewise.
97530         * tests/test-verify.c: Likewise.
97531         * tests/test-vfprintf-posix.c: Likewise.
97532         * tests/test-vprintf-posix.c: Likewise.
97533         * tests/test-vsnprintf-posix.c: Likewise.
97534         * tests/test-vsnprintf.c: Likewise.
97535         * tests/test-vsprintf-posix.c: Likewise.
97536         * tests/test-wchar.c: Likewise.
97537         * tests/test-wctype.c: Likewise.
97538         * tests/test-wcwidth.c: Likewise.
97539         * tests/test-xstrtol.c: Likewise.
97540         * tests/test-xvasprintf.c: Likewise.
97541         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
97542         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
97543         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
97544         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
97545         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
97546         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
97547         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
97548         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
97549         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
97550         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
97551         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
97552         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
97553         * tests/uniname/test-uninames.c: Likewise.
97554         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
97555         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
97556         * tests/unistdio/test-u16-printf1.h: Likewise.
97557         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
97558         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
97559         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
97560         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
97561         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
97562         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
97563         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
97564         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
97565         * tests/unistdio/test-u32-printf1.h: Likewise.
97566         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
97567         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
97568         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
97569         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
97570         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
97571         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
97572         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
97573         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
97574         * tests/unistdio/test-u8-printf1.h: Likewise.
97575         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
97576         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
97577         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
97578         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
97579         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
97580         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
97581         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
97582         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
97583         * tests/unistdio/test-ulc-printf1.h: Likewise.
97584         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
97585         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
97586         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
97587         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
97588         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
97589         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
97590         * tests/uniwidth/test-u16-strwidth.c: Likewise.
97591         * tests/uniwidth/test-u16-width.c: Likewise.
97592         * tests/uniwidth/test-u32-strwidth.c: Likewise.
97593         * tests/uniwidth/test-u32-width.c: Likewise.
97594         * tests/uniwidth/test-u8-strwidth.c: Likewise.
97595         * tests/uniwidth/test-u8-width.c: Likewise.
97596         * tests/uniwidth/test-uc_width.c: Likewise.
97597         * config/srclist-update: Likewise.
97598         (fixlicense): Update to GPLv3+.
97600         Change copyright notice from LGPLv2.1+ to LGPLv3+.
97601         * tests/test-tsearch.c: Change copyright notice.
97603         Change copyright notice from LGPLv2.0+ to LGPLv3+.
97604         * lib/c-strcaseeq.h: Change copyright notice.
97605         * lib/streq.h: Likewise.
97606         * lib/uniconv.h: Likewise.
97607         * lib/uniconv/u-conv-from-enc.h: Likewise.
97608         * lib/uniconv/u-conv-to-enc.h: Likewise.
97609         * lib/uniconv/u-strconv-from-enc.h: Likewise.
97610         * lib/uniconv/u-strconv-to-enc.h: Likewise.
97611         * lib/uniconv/u16-conv-from-enc.c: Likewise.
97612         * lib/uniconv/u16-conv-to-enc.c: Likewise.
97613         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
97614         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
97615         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
97616         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
97617         * lib/uniconv/u32-conv-from-enc.c: Likewise.
97618         * lib/uniconv/u32-conv-to-enc.c: Likewise.
97619         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
97620         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
97621         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
97622         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
97623         * lib/uniconv/u8-conv-from-enc.c: Likewise.
97624         * lib/uniconv/u8-conv-to-enc.c: Likewise.
97625         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
97626         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
97627         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
97628         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
97629         * lib/uniname.h: Likewise.
97630         * lib/uniname/uniname.c: Likewise.
97631         * lib/unistdio.h: Likewise.
97632         * lib/unistdio/u-asnprintf.h: Likewise.
97633         * lib/unistdio/u-asprintf.h: Likewise.
97634         * lib/unistdio/u-printf-args.c: Likewise.
97635         * lib/unistdio/u-printf-args.h: Likewise.
97636         * lib/unistdio/u-printf-parse.h: Likewise.
97637         * lib/unistdio/u-snprintf.h: Likewise.
97638         * lib/unistdio/u-sprintf.h: Likewise.
97639         * lib/unistdio/u-vasprintf.h: Likewise.
97640         * lib/unistdio/u-vsnprintf.h: Likewise.
97641         * lib/unistdio/u-vsprintf.h: Likewise.
97642         * lib/unistdio/u16-asnprintf.c: Likewise.
97643         * lib/unistdio/u16-asprintf.c: Likewise.
97644         * lib/unistdio/u16-printf-parse.c: Likewise.
97645         * lib/unistdio/u16-snprintf.c: Likewise.
97646         * lib/unistdio/u16-sprintf.c: Likewise.
97647         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
97648         * lib/unistdio/u16-u16-asprintf.c: Likewise.
97649         * lib/unistdio/u16-u16-snprintf.c: Likewise.
97650         * lib/unistdio/u16-u16-sprintf.c: Likewise.
97651         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
97652         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
97653         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
97654         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
97655         * lib/unistdio/u16-vasnprintf.c: Likewise.
97656         * lib/unistdio/u16-vasprintf.c: Likewise.
97657         * lib/unistdio/u16-vsnprintf.c: Likewise.
97658         * lib/unistdio/u16-vsprintf.c: Likewise.
97659         * lib/unistdio/u32-asnprintf.c: Likewise.
97660         * lib/unistdio/u32-asprintf.c: Likewise.
97661         * lib/unistdio/u32-printf-parse.c: Likewise.
97662         * lib/unistdio/u32-snprintf.c: Likewise.
97663         * lib/unistdio/u32-sprintf.c: Likewise.
97664         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
97665         * lib/unistdio/u32-u32-asprintf.c: Likewise.
97666         * lib/unistdio/u32-u32-snprintf.c: Likewise.
97667         * lib/unistdio/u32-u32-sprintf.c: Likewise.
97668         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
97669         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
97670         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
97671         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
97672         * lib/unistdio/u32-vasnprintf.c: Likewise.
97673         * lib/unistdio/u32-vasprintf.c: Likewise.
97674         * lib/unistdio/u32-vsnprintf.c: Likewise.
97675         * lib/unistdio/u32-vsprintf.c: Likewise.
97676         * lib/unistdio/u8-asnprintf.c: Likewise.
97677         * lib/unistdio/u8-asprintf.c: Likewise.
97678         * lib/unistdio/u8-printf-parse.c: Likewise.
97679         * lib/unistdio/u8-snprintf.c: Likewise.
97680         * lib/unistdio/u8-sprintf.c: Likewise.
97681         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
97682         * lib/unistdio/u8-u8-asprintf.c: Likewise.
97683         * lib/unistdio/u8-u8-snprintf.c: Likewise.
97684         * lib/unistdio/u8-u8-sprintf.c: Likewise.
97685         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
97686         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
97687         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
97688         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
97689         * lib/unistdio/u8-vasnprintf.c: Likewise.
97690         * lib/unistdio/u8-vasprintf.c: Likewise.
97691         * lib/unistdio/u8-vsnprintf.c: Likewise.
97692         * lib/unistdio/u8-vsprintf.c: Likewise.
97693         * lib/unistdio/ulc-asnprintf.c: Likewise.
97694         * lib/unistdio/ulc-asprintf.c: Likewise.
97695         * lib/unistdio/ulc-printf-parse.c: Likewise.
97696         * lib/unistdio/ulc-snprintf.c: Likewise.
97697         * lib/unistdio/ulc-sprintf.c: Likewise.
97698         * lib/unistdio/ulc-vasnprintf.c: Likewise.
97699         * lib/unistdio/ulc-vasprintf.c: Likewise.
97700         * lib/unistdio/ulc-vsnprintf.c: Likewise.
97701         * lib/unistdio/ulc-vsprintf.c: Likewise.
97702         * lib/unistr.h: Likewise.
97703         * lib/unistr/u-cpy-alloc.h: Likewise.
97704         * lib/unistr/u-cpy.h: Likewise.
97705         * lib/unistr/u-endswith.h: Likewise.
97706         * lib/unistr/u-move.h: Likewise.
97707         * lib/unistr/u-set.h: Likewise.
97708         * lib/unistr/u-startswith.h: Likewise.
97709         * lib/unistr/u-stpcpy.h: Likewise.
97710         * lib/unistr/u-stpncpy.h: Likewise.
97711         * lib/unistr/u-strcat.h: Likewise.
97712         * lib/unistr/u-strcpy.h: Likewise.
97713         * lib/unistr/u-strcspn.h: Likewise.
97714         * lib/unistr/u-strdup.h: Likewise.
97715         * lib/unistr/u-strlen.h: Likewise.
97716         * lib/unistr/u-strncat.h: Likewise.
97717         * lib/unistr/u-strncpy.h: Likewise.
97718         * lib/unistr/u-strnlen.h: Likewise.
97719         * lib/unistr/u-strpbrk.h: Likewise.
97720         * lib/unistr/u-strspn.h: Likewise.
97721         * lib/unistr/u-strstr.h: Likewise.
97722         * lib/unistr/u-strtok.h: Likewise.
97723         * lib/unistr/u16-check.c: Likewise.
97724         * lib/unistr/u16-chr.c: Likewise.
97725         * lib/unistr/u16-cmp.c: Likewise.
97726         * lib/unistr/u16-cpy-alloc.c: Likewise.
97727         * lib/unistr/u16-cpy.c: Likewise.
97728         * lib/unistr/u16-endswith.c: Likewise.
97729         * lib/unistr/u16-mblen.c: Likewise.
97730         * lib/unistr/u16-mbsnlen.c: Likewise.
97731         * lib/unistr/u16-mbtouc-aux.c: Likewise.
97732         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
97733         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
97734         * lib/unistr/u16-mbtouc.c: Likewise.
97735         * lib/unistr/u16-mbtoucr.c: Likewise.
97736         * lib/unistr/u16-move.c: Likewise.
97737         * lib/unistr/u16-next.c: Likewise.
97738         * lib/unistr/u16-prev.c: Likewise.
97739         * lib/unistr/u16-set.c: Likewise.
97740         * lib/unistr/u16-startswith.c: Likewise.
97741         * lib/unistr/u16-stpcpy.c: Likewise.
97742         * lib/unistr/u16-stpncpy.c: Likewise.
97743         * lib/unistr/u16-strcat.c: Likewise.
97744         * lib/unistr/u16-strchr.c: Likewise.
97745         * lib/unistr/u16-strcmp.c: Likewise.
97746         * lib/unistr/u16-strcpy.c: Likewise.
97747         * lib/unistr/u16-strcspn.c: Likewise.
97748         * lib/unistr/u16-strdup.c: Likewise.
97749         * lib/unistr/u16-strlen.c: Likewise.
97750         * lib/unistr/u16-strmblen.c: Likewise.
97751         * lib/unistr/u16-strmbtouc.c: Likewise.
97752         * lib/unistr/u16-strncat.c: Likewise.
97753         * lib/unistr/u16-strncmp.c: Likewise.
97754         * lib/unistr/u16-strncpy.c: Likewise.
97755         * lib/unistr/u16-strnlen.c: Likewise.
97756         * lib/unistr/u16-strpbrk.c: Likewise.
97757         * lib/unistr/u16-strrchr.c: Likewise.
97758         * lib/unistr/u16-strspn.c: Likewise.
97759         * lib/unistr/u16-strstr.c: Likewise.
97760         * lib/unistr/u16-strtok.c: Likewise.
97761         * lib/unistr/u16-to-u32.c: Likewise.
97762         * lib/unistr/u16-to-u8.c: Likewise.
97763         * lib/unistr/u16-uctomb-aux.c: Likewise.
97764         * lib/unistr/u16-uctomb.c: Likewise.
97765         * lib/unistr/u32-check.c: Likewise.
97766         * lib/unistr/u32-chr.c: Likewise.
97767         * lib/unistr/u32-cmp.c: Likewise.
97768         * lib/unistr/u32-cpy-alloc.c: Likewise.
97769         * lib/unistr/u32-cpy.c: Likewise.
97770         * lib/unistr/u32-endswith.c: Likewise.
97771         * lib/unistr/u32-mblen.c: Likewise.
97772         * lib/unistr/u32-mbsnlen.c: Likewise.
97773         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
97774         * lib/unistr/u32-mbtouc.c: Likewise.
97775         * lib/unistr/u32-mbtoucr.c: Likewise.
97776         * lib/unistr/u32-move.c: Likewise.
97777         * lib/unistr/u32-next.c: Likewise.
97778         * lib/unistr/u32-prev.c: Likewise.
97779         * lib/unistr/u32-set.c: Likewise.
97780         * lib/unistr/u32-startswith.c: Likewise.
97781         * lib/unistr/u32-stpcpy.c: Likewise.
97782         * lib/unistr/u32-stpncpy.c: Likewise.
97783         * lib/unistr/u32-strcat.c: Likewise.
97784         * lib/unistr/u32-strchr.c: Likewise.
97785         * lib/unistr/u32-strcmp.c: Likewise.
97786         * lib/unistr/u32-strcpy.c: Likewise.
97787         * lib/unistr/u32-strcspn.c: Likewise.
97788         * lib/unistr/u32-strdup.c: Likewise.
97789         * lib/unistr/u32-strlen.c: Likewise.
97790         * lib/unistr/u32-strmblen.c: Likewise.
97791         * lib/unistr/u32-strmbtouc.c: Likewise.
97792         * lib/unistr/u32-strncat.c: Likewise.
97793         * lib/unistr/u32-strncmp.c: Likewise.
97794         * lib/unistr/u32-strncpy.c: Likewise.
97795         * lib/unistr/u32-strnlen.c: Likewise.
97796         * lib/unistr/u32-strpbrk.c: Likewise.
97797         * lib/unistr/u32-strrchr.c: Likewise.
97798         * lib/unistr/u32-strspn.c: Likewise.
97799         * lib/unistr/u32-strstr.c: Likewise.
97800         * lib/unistr/u32-strtok.c: Likewise.
97801         * lib/unistr/u32-to-u16.c: Likewise.
97802         * lib/unistr/u32-to-u8.c: Likewise.
97803         * lib/unistr/u32-uctomb.c: Likewise.
97804         * lib/unistr/u8-check.c: Likewise.
97805         * lib/unistr/u8-chr.c: Likewise.
97806         * lib/unistr/u8-cmp.c: Likewise.
97807         * lib/unistr/u8-cpy-alloc.c: Likewise.
97808         * lib/unistr/u8-cpy.c: Likewise.
97809         * lib/unistr/u8-endswith.c: Likewise.
97810         * lib/unistr/u8-mblen.c: Likewise.
97811         * lib/unistr/u8-mbsnlen.c: Likewise.
97812         * lib/unistr/u8-mbtouc-aux.c: Likewise.
97813         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
97814         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
97815         * lib/unistr/u8-mbtouc.c: Likewise.
97816         * lib/unistr/u8-mbtoucr.c: Likewise.
97817         * lib/unistr/u8-move.c: Likewise.
97818         * lib/unistr/u8-next.c: Likewise.
97819         * lib/unistr/u8-prev.c: Likewise.
97820         * lib/unistr/u8-set.c: Likewise.
97821         * lib/unistr/u8-startswith.c: Likewise.
97822         * lib/unistr/u8-stpcpy.c: Likewise.
97823         * lib/unistr/u8-stpncpy.c: Likewise.
97824         * lib/unistr/u8-strcat.c: Likewise.
97825         * lib/unistr/u8-strchr.c: Likewise.
97826         * lib/unistr/u8-strcmp.c: Likewise.
97827         * lib/unistr/u8-strcpy.c: Likewise.
97828         * lib/unistr/u8-strcspn.c: Likewise.
97829         * lib/unistr/u8-strdup.c: Likewise.
97830         * lib/unistr/u8-strlen.c: Likewise.
97831         * lib/unistr/u8-strmblen.c: Likewise.
97832         * lib/unistr/u8-strmbtouc.c: Likewise.
97833         * lib/unistr/u8-strncat.c: Likewise.
97834         * lib/unistr/u8-strncmp.c: Likewise.
97835         * lib/unistr/u8-strncpy.c: Likewise.
97836         * lib/unistr/u8-strnlen.c: Likewise.
97837         * lib/unistr/u8-strpbrk.c: Likewise.
97838         * lib/unistr/u8-strrchr.c: Likewise.
97839         * lib/unistr/u8-strspn.c: Likewise.
97840         * lib/unistr/u8-strstr.c: Likewise.
97841         * lib/unistr/u8-strtok.c: Likewise.
97842         * lib/unistr/u8-to-u16.c: Likewise.
97843         * lib/unistr/u8-to-u32.c: Likewise.
97844         * lib/unistr/u8-uctomb-aux.c: Likewise.
97845         * lib/unistr/u8-uctomb.c: Likewise.
97846         * lib/unitypes.h: Likewise.
97847         * lib/uniwidth.h: Likewise.
97848         * lib/uniwidth/cjk.h: Likewise.
97849         * lib/uniwidth/u16-strwidth.c: Likewise.
97850         * lib/uniwidth/u16-width.c: Likewise.
97851         * lib/uniwidth/u32-strwidth.c: Likewise.
97852         * lib/uniwidth/u32-width.c: Likewise.
97853         * lib/uniwidth/u8-strwidth.c: Likewise.
97854         * lib/uniwidth/u8-width.c: Likewise.
97855         * lib/uniwidth/width.c: Likewise.
97857 2007-10-07  Bruno Haible  <bruno@clisp.org>
97859         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
97860         The file is still under LGPL (see modules/inttypes).
97862 2007-10-06  Bruno Haible  <bruno@clisp.org>
97864         * modules/trunc (Dependencies): Add 'extensions'.
97865         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
97866         Reported by Ben Pfaff <blp@gnu.org>.
97868 2007-10-06  Bruno Haible  <bruno@clisp.org>
97870         * modules/freopen-tests: New file.
97871         * tests/test-freopen.c: New file.
97873         * modules/fopen-tests: New file.
97874         * tests/test-fopen.c: New file.
97876         * modules/fopen: New file.
97877         * lib/fopen.c: New file.
97878         * m4/fopen.m4: New file.
97879         * modules/freopen: New file.
97880         * lib/freopen.c: New file.
97881         * m4/freopen.m4: New file.
97882         * lib/stdio.in.h (fopen, freopen): New declarations.
97883         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
97884         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
97885         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
97886         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
97887         * doc/functions/fopen.texi: Mention the 'fopen' module.
97888         * doc/functions/freopen.texi: Mention the 'freopen' module.
97890 2007-10-06  Bruno Haible  <bruno@clisp.org>
97892         * modules/open-tests: New file.
97893         * tests/test-open.c: New file.
97895         * modules/open: New file.
97896         * lib/open.c: New file.
97897         * m4/open.m4: New file.
97898         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
97899         lib/open.c does.
97900         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
97901         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
97902         macros.
97903         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
97904         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
97905         REPLACE_OPEN.
97906         * doc/functions/open.texi: Mention the 'open' module.
97908 2007-10-04  Bruno Haible  <bruno@clisp.org>
97910         * modules/ceill-tests: New file.
97911         * tests/test-ceill.c: New file.
97913         * modules/ceill: New file.
97914         * lib/ceill.c: Replace entire file.
97915         * m4/ceill.m4: New file.
97916         * lib/math.in.h (ceill): Replace declaration.
97917         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
97918         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
97919         * doc/functions/ceill.texi: Mention the 'ceill' module.
97920         * modules/mathl (Files): Remove lib/ceill.c.
97921         (Depends-on): Add ceill.
97923 2007-10-04  Bruno Haible  <bruno@clisp.org>
97925         * modules/ceilf-tests: New file.
97926         * tests/test-ceilf.c: New file.
97928         * modules/ceilf: New file.
97929         * lib/ceil.c: New file.
97930         * lib/ceilf.c: New file.
97931         * m4/ceilf.m4: New file.
97932         * lib/math.in.h (ceilf): New declaration.
97933         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
97934         HAVE_DECL_CEILF.
97935         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
97936         HAVE_DECL_CEILF.
97937         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
97939 2007-10-04  Bruno Haible  <bruno@clisp.org>
97941         * modules/floorl-tests: New file.
97942         * tests/test-floorl.c: New file.
97944         * modules/floorl: New file.
97945         * lib/floorl.c: Replace entire file.
97946         * m4/floorl.m4: New file.
97947         * lib/math.in.h (floorl): Replace declaration.
97948         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
97949         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
97950         * doc/functions/floorl.texi: Mention the 'floorl' module.
97951         * modules/mathl (Files): Remove lib/floorl.c.
97952         (Depends-on): Add floorl.
97954 2007-10-04  Bruno Haible  <bruno@clisp.org>
97956         * modules/floorf-tests: New file.
97957         * tests/test-floorf.c: New file.
97959         * modules/floorf: New file.
97960         * lib/floor.c: New file.
97961         * lib/floorf.c: New file.
97962         * m4/floorf.m4: New file.
97963         * lib/math.in.h (floorf): New declaration.
97964         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
97965         HAVE_DECL_FLOORF.
97966         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
97967         HAVE_DECL_FLOORF.
97968         * doc/functions/floorf.texi: Mention the 'floorf' module.
97970 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
97971             Bruno Haible  <bruno@clisp.org>
97973         Advertise for the Git server instead of the CVS server.
97974         * doc/gnulib-intro.texi (Steady Development): Mention the Git
97975         repository instead of the CVS one.
97976         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
97977         about all VCS systems generically.
97978         * doc/gnulib.texi (Introduction): Capitalize `Git'.
97980 2007-10-04  Bruno Haible  <bruno@clisp.org>
97982         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
97983         means.
97984         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
97986 2007-10-04  Bruno Haible  <bruno@clisp.org>
97988         * modules/truncl-tests: New file.
97989         * tests/test-truncl.c: New file.
97991         * modules/truncl: New file.
97992         * lib/truncl.c: New file.
97993         * m4/truncl.m4: New file.
97994         * lib/math.in.h (truncl): New declaration.
97995         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
97996         HAVE_DECL_TRUNCL.
97997         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
97998         HAVE_DECL_TRUNCL.
97999         * doc/functions/truncl.texi: Mention the 'truncl' module.
98001 2007-10-04  Bruno Haible  <bruno@clisp.org>
98003         * modules/truncf-tests: New file.
98004         * tests/test-truncf.c: New file.
98006         * modules/truncf: New file.
98007         * lib/trunc.c: Make paramerizable through USE_* macros.
98008         * lib/truncf.c: New file.
98009         * m4/truncf.m4: New file.
98010         * lib/math.in.h (truncf): New declaration.
98011         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
98012         HAVE_DECL_TRUNCF.
98013         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
98014         HAVE_DECL_TRUNCF.
98015         * doc/functions/truncf.texi: Mention the 'truncf' module.
98017 2007-10-03  Bruno Haible  <bruno@clisp.org>
98019         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
98020         augmentation also for tests modules.
98021         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
98022         * modules/atexit-tests (Makefile.am): Likewise.
98023         * modules/binary-io-tests (Makefile.am): Likewise.
98024         * modules/c-strcase-tests (Makefile.am): Likewise.
98025         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
98026         * modules/canonicalize-tests (Makefile.am): Likewise.
98027         * modules/closein-tests (Makefile.am): Likewise.
98028         * modules/fprintf-posix-tests (Makefile.am): Likewise.
98029         * modules/freadahead-tests (Makefile.am): Likewise.
98030         * modules/fseek-tests (Makefile.am): Likewise.
98031         * modules/fseeko-tests (Makefile.am): Likewise.
98032         * modules/ftell-tests (Makefile.am): Likewise.
98033         * modules/ftello-tests (Makefile.am): Likewise.
98034         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
98035         * modules/isnanl-tests (Makefile.am): Likewise.
98036         * modules/lseek-tests (Makefile.am): Likewise.
98037         * modules/mbscasecmp-tests (Makefile.am): Likewise.
98038         * modules/mbscasestr-tests (Makefile.am): Likewise.
98039         * modules/mbschr-tests (Makefile.am): Likewise.
98040         * modules/mbscspn-tests (Makefile.am): Likewise.
98041         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
98042         * modules/mbspbrk-tests (Makefile.am): Likewise.
98043         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
98044         * modules/mbsrchr-tests (Makefile.am): Likewise.
98045         * modules/mbsspn-tests (Makefile.am): Likewise.
98046         * modules/mbsstr-tests (Makefile.am): Likewise.
98047         * modules/printf-posix-tests (Makefile.am): Likewise.
98048         * modules/snprintf-posix-tests (Makefile.am): Likewise.
98049         * modules/sprintf-posix-tests (Makefile.am): Likewise.
98050         * modules/tsearch-tests (Makefile.am): Likewise.
98051         * modules/uniname/uniname-tests (Makefile.am): Likewise.
98052         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
98053         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
98054         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
98055         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
98056         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
98057         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
98058         * modules/vprintf-posix-tests (Makefile.am): Likewise.
98059         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
98060         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
98061         * modules/xstrtoimax-tests (Makefile.am): Likewise.
98062         * modules/xstrtol-tests (Makefile.am): Likewise.
98063         * modules/xstrtoumax-tests (Makefile.am): Likewise.
98064         * modules/yesno-tests (Makefile.am): Likewise.
98066 2007-10-03  Bruno Haible  <bruno@clisp.org>
98068         * modules/trunc-tests: New file.
98069         * tests/test-trunc.c: New file.
98071         * modules/trunc: New file.
98072         * lib/trunc.c: New file.
98073         * m4/trunc.m4: New file.
98074         * lib/math.in.h (trunc): New declaration.
98075         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
98076         HAVE_DECL_TRUNC.
98077         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
98078         HAVE_DECL_TRUNC.
98079         * doc/functions/trunc.texi: Mention the 'trunc' module.
98081 2007-10-03  Bruno Haible  <bruno@clisp.org>
98083         * tests/test-fpending.c: New file, mostly copied
98084         from coreutils/lib/t-fpending.c.
98085         * modules/fpending-tests: New file.
98087 2007-10-03  Bruno Haible  <bruno@clisp.org>
98089         Port the stdio extensions to QNX (untested).
98090         * lib/fseterr.c (fseterr): Add support for QNX.
98091         * lib/fbufmode.c (fbufmode): Likewise.
98092         * lib/freadable.c (freadable): Likewise.
98093         * lib/fwritable.c (fwritable): Likewise.
98094         * lib/freading.c (freading): Likewise.
98095         * lib/fwriting.c (fwriting): Likewise.
98096         * lib/freadahead.c (freadahed): Likewise.
98097         * lib/fpurge.c (fpurge): Likewise.
98098         * lib/fseeko.c (rpl_fseeko): Likewise.
98100 2007-10-03  Bruno Haible  <bruno@clisp.org>
98101             Jim Meyering  <jim@meyering.net>
98102             Eric Blake  <ebb9@byu.net>
98104         * doc/relocatable.texi: Use @command instead of @program.
98106 2007-10-02  Jim Meyering  <jim@meyering.net>
98108         Perform one more "_.h" -> ".in.h" substitution.
98109         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
98110         instead of unistd_.h here, too.
98112 2007-10-01  Bruno Haible  <bruno@clisp.org>
98114         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
98115         Needed for the alloca-opt module.
98117 2007-09-30  Bruno Haible  <bruno@clisp.org>
98119         * lib/alloca.in.h: Renamed from lib/alloca_.h.
98120         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
98121         alloca_.h.
98122         * lib/argz.in.h: Renamed from lib/argz_.h.
98123         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
98124         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
98125         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
98126         byteswap_.h.
98127         * lib/dirent.in.h: Renamed from lib/dirent_.h.
98128         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
98129         dirent_.h.
98130         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
98131         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
98132         fcntl_.h.
98133         * lib/float.in.h: Renamed from lib/float_.h.
98134         * modules/float (Files, Makefile.am): Use float.in.h instead of
98135         float_.h.
98136         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
98137         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
98138         fnmatch_.h.
98139         * lib/getopt.in.h: Renamed from lib/getopt_.h.
98140         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
98141         getopt_.h.
98142         * lib/glob.in.h: Renamed from lib/glob_.h.
98143         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
98144         * lib/iconv.in.h: Renamed from lib/iconv_.h.
98145         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
98146         iconv_.h.
98147         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
98148         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
98149         inttypes_.h.
98150         * lib/locale.in.h: Renamed from lib/locale_.h.
98151         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
98152         locale_.h.
98153         * lib/math.in.h: Renamed from lib/math_.h.
98154         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
98155         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
98156         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
98157         of netinet_in_.h. Add dependency.
98158         * lib/poll.in.h: Renamed from lib/poll_.h.
98159         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
98160         * lib/search.in.h: Renamed from lib/search_.h.
98161         * modules/search (Files, Makefile.am): Use search.in.h instead of
98162         search_.h.
98163         * lib/signal.in.h: Renamed from lib/signal_.h.
98164         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
98165         _signal.h.
98166         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
98167         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
98168         stdbool_.h.
98169         * lib/stdint.in.h: Renamed from lib/stdint_.h.
98170         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
98171         stdint_.h.
98172         * lib/stdio.in.h: Renamed from lib/stdio_.h.
98173         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
98174         stdio_.h.
98175         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
98176         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
98177         stdlib_.h.
98178         * lib/string.in.h: Renamed from lib/string_.h.
98179         * modules/string (Files, Makefile.am): Use string.in.h instead of
98180         string_.h.
98181         * doc/gnulib-tool.texi (Initial import): Update.
98182         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
98183         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
98184         of sys_select_.h. Add dependency.
98185         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
98186         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
98187         of sys_socket_.h.
98188         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
98189         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
98190         sys_stat_.h.
98191         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
98192         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
98193         sys_time_.h.
98194         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
98195         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
98196         sysexits_.h.
98197         * lib/time.in.h: Renamed from lib/time_.h.
98198         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
98199         * lib/unistd.in.h: Renamed from lib/unistd_.h.
98200         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
98201         unistd_.h.
98202         * lib/wchar.in.h: Renamed from lib/wchar_.h.
98203         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
98204         wchar_.h.
98205         * lib/wctype.in.h: Renamed from lib/wctype_.h.
98206         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
98207         wctype_.h.
98208         * build-aux/bootstrap (slurp): Update.
98209         * lib/.cppi-disable: Update.
98211 2007-09-30  Bruno Haible  <bruno@clisp.org>
98213         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
98214         Needed on BeOS.
98216 2007-09-30  Bruno Haible  <bruno@clisp.org>
98218         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
98220 2007-09-29  Bruno Haible  <bruno@clisp.org>
98222         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
98224 2007-09-29  Bruno Haible  <bruno@clisp.org>
98226         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
98227         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
98228         * build-aux/install-reloc: Compile also areadlink.c.
98229         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
98231 2007-09-29  Bruno Haible  <bruno@clisp.org>
98233         * gnulib-tool (func_emit_initmacro_done): Indentation.
98235 2007-09-29  Bruno Haible  <bruno@clisp.org>
98237         * README: Add CVS checkout update instructions.
98238         Info from Bob Proulx <bob@proulx.com>.
98240 2007-09-28  Eric Blake  <ebb9@byu.net>
98242         Provide move-if-change.
98243         * build-aux/move-if-change: New file, based on best practice
98244         rather than any canonical upstream location.
98246 2007-09-28  Jim Meyering  <jim@meyering.net>
98248         Fix canonicalize loop-detection corner case.
98249         Do not attempt to stat the symlink values stored via seen_triple.
98250         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
98251         on linux-2.6.18, (but not 2.6.22).
98252         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
98253         triple_compare.  The former compares dev,ino,filename, while the latter
98254         would actually stat dirname(filename) when dev and ino were equal.
98255         * lib/hash-triple.c: Install <string.h>.
98256         (STREQ): Define.
98257         (triple_compare_ino_str): New function.
98258         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
98260 2007-09-28  Eric Blake  <ebb9@byu.net>
98262         Enforce that AC_REPLACE_FUNCS files exist.
98263         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
98264         override check for typos.
98266         Fix test-closein on Solaris 10.
98267         * tests/test-closein.c (main): Don't assume stdin can be inherited
98268         closed on all systems.
98269         * tests/test-closein.sh: Likewise.
98270         Reported by Piotr Tarnowski.
98272 2007-09-28  Jim Meyering  <jim@meyering.net>
98274         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
98276 2007-09-27  Jim Meyering  <jim@meyering.net>
98278         canonicalize: Avoid a false-positive cycle failure.
98279         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
98280         Sort.  Remove cycle-check.
98281         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
98282         not cycle-check.h.
98283         (seen_triple): New function.
98284         (canonicalize_filename_mode): Use it instead of cycle-check.
98285         * tests/test-canonicalize.c: Add a test for this bug.
98286         * tests/test-canonicalize.sh: Set up and run the test.
98288         New module, file-set, from coreutils.
98289         * modules/file-set: Define it.
98290         * lib/file-set.c, lib/file-set.h: Implement.
98292         New module, hash-triple, from coreutils.
98293         * modules/hash-triple: Define it.
98294         * lib/hash-triple.c, lib/hash-triple.h: Implement.
98296 2007-09-25  Eric Blake  <ebb9@byu.net>
98298         Fix strerror on Interix.
98299         * lib/string_.h (strerror): Declare replacement.
98300         * doc/functions/strerror.texi (strerror): Document the Interix
98301         shortcoming.
98302         * modules/string (Makefile.am): Support new hooks.
98303         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
98304         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
98305         gl_FUNC_STRERROR_SEPARATE.
98306         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
98307         * lib/strerror.c (rpl_strerror): Provide replacement.
98308         * modules/strerror (Depends-on): Add string.
98309         (configure.ac): Detect use of module.
98310         * tests/test-strerror.c: New file.
98311         * modules/strerror-tests: New test module.
98312         * modules/argp (Depends-on): Add strerror.
98313         * modules/error (Depends-on): Likewise.
98314         Reported by Martin Koeppe.
98316 2007-09-24  Bruno Haible  <bruno@clisp.org>
98318         * README: Update git instructions.
98320 2007-09-24  Eric Blake  <ebb9@byu.net>
98322         Revert fpending breakage from 2007-09-08.
98323         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
98324         __fpending.c.
98326 2007-09-24  Jim Meyering  <jim@meyering.net>
98328         filenamecat.c: Add a test.
98329         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
98330         showing how the function works when DIR is the empty string.
98332 2007-09-21  Simon Josefsson  <simon@josefsson.org>
98334         * tests/test-canonicalize.sh: Turn on executable bit.
98336 2007-09-19  Eric Blake  <ebb9@byu.net>
98338         * README: Update CVS instructions.
98340 2007-09-18  Bruno Haible  <bruno@clisp.org>
98342         * modules/areadlink: New file.
98343         * lib/areadlink.h (areadlink): New declaration.
98344         * lib/areadlink.c: New file, based on lib/xreadlink.c.
98346 2007-09-17  Jim Meyering  <jim@meyering.net>
98348         * lib/savewd.c (ESTALE) [!defined]: Define.
98349         Reported to be required on Interix by Martin Koeppe.
98351 2007-09-17  Bruno Haible  <bruno@clisp.org>
98353         * gnulib-tool (func_version): Use $version.
98355 2007-09-16  Bruno Haible  <bruno@clisp.org>
98357         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
98358         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
98359         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
98360         Reported by Greg Schafer <gschafer@zip.com.au>.
98362 2007-09-15  Bruno Haible  <bruno@clisp.org>
98364         * gnulib-tool (sed): Try a little harder to make bash understand the
98365         alias.
98366         Reported by Bruce Korb <bruce.korb@gmail.com>.
98368 2007-09-13  Eric Blake  <ebb9@byu.net>
98370         * ChangeLog: Remove conflict markers.
98372 2007-09-13  Simon Josefsson  <simon@josefsson.org>
98374         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
98375         Reported by Bruno Haible <bruno@clisp.org>.
98377 2007-09-12  Bruno Haible  <bruno@clisp.org>
98379         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
98380         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
98381         is not defined.
98383 2007-09-12  Eric Blake  <ebb9@byu.net>
98385         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
98386         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
98387         Autoconf definition.
98388         * modules/euidaccess (Depends-on): Add extensions, for
98389         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
98390         * modules/fnmatch (Depends-on): Likewise.
98391         * modules/getaddrinfo (Depends-on): Likewise.
98392         * modules/getdelim (Depends-on): Likewise.
98393         * modules/getline (Depends-on): Likewise.
98394         * modules/getsubopt (Depends-on): Likewise.
98395         * modules/gettext (Depends-on): Likewise.
98396         * modules/group-member (Depends-on): Likewise.
98397         * modules/mbchar (Depends-on): Likewise.
98398         * modules/memmem (Depends-on): Likewise.
98399         * modules/mempcpy (Depends-on): Likewise.
98400         * modules/memrchr (Depends-on): Likewise.
98401         * modules/pagealign_alloc (Depends-on): Likewise.
98402         * modules/readutmp (Depends-on): Likewise.
98403         * modules/stpcpy (Depends-on): Likewise.
98404         * modules/stpncpy (Depends-on): Likewise.
98405         * modules/strchrnul (Depends-on): Likewise.
98406         * modules/strndup (Depends-on): Likewise.
98407         * modules/strsep (Depends-on): Likewise.
98408         * modules/strverscmp (Depends-on): Likewise.
98409         * modules/vasprintf (Depends-on): Likewise.
98410         * modules/wcwidth (Depends-on): Likewise.
98411         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
98412         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
98413         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
98414         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
98415         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
98416         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
98417         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
98418         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
98419         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
98420         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
98421         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
98422         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
98423         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
98424         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
98425         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
98426         * m4/readutmp.m4 (gl_READUTMP): Likewise.
98427         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
98428         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
98429         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
98430         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
98431         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
98432         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
98433         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
98434         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
98435         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
98436         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
98437         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
98438         so that lock.m4 can be used in gettext without extensions module.
98440 2007-09-11  Bruno Haible  <bruno@clisp.org>
98442         * m4/isc-posix.m4: Remove file.
98443         Suggested by Eric Blake.
98445 2007-09-11  Eric Blake  <ebb9@byu.net>
98447         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
98449 2007-09-10  Bruno Haible  <bruno@clisp.org>
98451         * posix-modules: Fix typo in error message.
98452         Reported by Matt <mkraai@beckman.com>.
98454 2007-09-09  Bruno Haible  <bruno@clisp.org>
98456         * doc/functions/getdelim.texi: Update list of platforms lacking the
98457         function.
98458         * doc/functions/getline.texi: Likewise.
98460 2007-09-09  Jim Meyering  <jim@meyering.net>
98462         * lib/hash.c (hash_initialize): Detect calloc failure.
98463         Reported by Bruno Haible.
98465 2007-09-09  Bruno Haible  <bruno@clisp.org>
98467         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
98468         malloc or realloc fails.
98470 2007-09-09  Bruno Haible  <bruno@clisp.org>
98472         * modules/getcwd (Depends-on): Add malloc-posix.
98473         * modules/glob (Depends-on): Likewise.
98474         * modules/putenv (Depends-on): Likewise.
98475         * modules/strdup (Depends-on): Likewise.
98476         * modules/getdelim (Depends-on): Add realloc-posix.
98477         * modules/read-file (Depends-on): Likewise.
98479 2007-09-09  Bruno Haible  <bruno@clisp.org>
98481         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
98482         (gl_FUNC_MALLOC_POSIX): Require it.
98483         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
98484         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
98485         * modules/realloc (Files): Add m4/malloc.m4.
98486         * modules/calloc (Files): Likewise.
98488 2007-09-09  Bruno Haible  <bruno@clisp.org>
98490         * modules/malloc-posix: New file.
98491         * modules/malloc (Depends-on): Add malloc-posix.
98492         * lib/malloc.c: Include errno.h.
98493         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
98494         and a POSIX-compatible malloc into a single function. Set ENOMEM
98495         when returning NULL.
98496         * m4/malloc.m4: New file.
98497         * doc/functions/malloc.texi: Mention the malloc-posix module.
98498         * lib/stdlib_.h (malloc): New declaration.
98499         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
98500         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
98501         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
98502         and HAVE_MALLOC_POSIX.
98504 2007-09-09  Bruno Haible  <bruno@clisp.org>
98506         * modules/realloc-posix: New file.
98507         * modules/realloc (Depends-on): Add realloc-posix.
98508         * lib/realloc.c: Include errno.h.
98509         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
98510         and a POSIX-compatible realloc into a single function. Set ENOMEM
98511         when returning NULL.
98512         * m4/realloc.m4: New file.
98513         * doc/functions/realloc.texi: Mention the realloc-posix module.
98514         * lib/stdlib_.h (realloc): New declaration.
98515         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
98516         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
98517         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
98518         and HAVE_REALLOC_POSIX.
98520 2007-09-09  Bruno Haible  <bruno@clisp.org>
98522         * modules/calloc-posix: New file.
98523         * modules/calloc (Depends-on): Add calloc-posix.
98524         * lib/calloc.c: Include errno.h.
98525         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
98526         and a POSIX-compatible calloc into a single function. Set ENOMEM
98527         when returning NULL.
98528         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
98529         * doc/functions/calloc.texi: Mention the calloc-posix module.
98530         * lib/stdlib_.h (calloc): New declaration.
98531         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
98532         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
98533         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
98534         and HAVE_CALLOC_POSIX.
98536 2007-09-09  Bruno Haible  <bruno@clisp.org>
98538         Allow for modules to show an arbitrary notice.
98539         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
98540         * gnulib-tool: New option --extract-notice.
98541         (func_usage): Document it.
98542         (sed_extract_prog): Update.
98543         (func_get_notice): New function.
98544         (func_modules_notice): New function.
98545         (func_import, func_create_testdir): Invoke it.
98546         Suggested by Jim Meyering.
98548 2007-09-09  Bruno Haible  <bruno@clisp.org>
98550         * gnulib-tool: New options --verbose, --quiet.
98551         (func_usage): Document them.
98552         (verbose): New variable.
98553         (func_execute_command): New function.
98554         (func_import): Don't show the module list and the file list if
98555         $verbose < 0.
98556         (func_create_testdir): Likewise. Use func_execute_command.
98557         (func_create_megatestdir): Use func_execute_command.
98559 2007-09-08  Bruno Haible  <bruno@clisp.org>
98561         * gnulib-tool (func_import): Prefer rsync over wget when available,
98562         for fetching the PO files.
98564 2007-09-08  Bruno Haible  <bruno@clisp.org>
98566         * posix-modules: New file. Portions copied from gnulib-tool.
98567         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
98569 2007-09-08  Jim Meyering  <jim@meyering.net>
98571         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
98572         * lib/fpending.h: Rename from __fpending.h.
98573         * lib/fpending.c: Rename from __fpending.c.
98574         Include "fpending.h", not "__fpending.h".
98575         * lib/__fpending.h, lib/__fpending.c: Remove files.
98576         * modules/fpending (Files): Reflect new file names.
98577         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
98579 2007-09-08  Bruno Haible  <bruno@clisp.org>
98581         * m4/inttypes-h.m4: Remove stub file.
98583 2007-09-07  Simon Josefsson  <simon@josefsson.org>
98585         * doc/headers/stdint.texi: Discuss #include_next issue.
98587 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
98589         * build-aux/bootstrap: Remove obsolete comment about wget --help.
98591 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98593         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
98594         in variable name.
98596 2007-09-03  Jim Meyering  <jim@meyering.net>
98598         New module: git-version-gen.
98599         * modules/git-version-gen: New file.
98601         Import changes from coreutils for bootstrap script.
98603         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
98605         bootstrap: uses rsync to download the .po files
98606         * build-aux/bootstrap (po_download_command_format): New global.
98607         (download_po_files): Use rsync.
98608         (update_po_files): Don't remove .po files after download,
98609         so future rsync runs can take advantage of the copies.
98611         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
98613         Solve the unnecessary-.po-file-regeneration problem once and for all.
98614         * build-aux/bootstrap (download_po_files): New function, renamed from
98615         get_translations.  Now, downloads, but doesn't update LINGUAS.
98616         (update_po_files): New function.
98618         bootstrap: Ignore more.
98619         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
98620         uniwidth to e.g., lib/.gitignore.
98621         (slurp): Handle the sys_stat_.h -> sys mapping, too.
98623         * build-aux/bootstrap: New setting: vc_ignore.
98624         (insert_sorted_if_absent): Create $file if absent.
98625         Adapt to new, possibly empty, list: $vc_ignore.
98627         bootstrap: generate more ignorable names
98628         * build-aux/bootstrap (slurp): When generating ignorable names,
98629         also map .sin to .sed, .gperf to .c, and .y to .c.
98631 2007-09-03  Jim Meyering  <jim@meyering.net>
98633         * build-aux/git-version-gen: New file, from coreutils.  For details, see
98634         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
98636 2007-09-02  Bruno Haible  <bruno@clisp.org>
98638         Fix mis-recognition of 'mcs' on QNX 6.
98639         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
98640         output contains the string "Mono".
98641         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
98642         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
98644 2007-09-01  Bruno Haible  <bruno@clisp.org>
98646         Fix collision between uniwidth/* and linebreak modules.
98647         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
98648         u32_width): Remove declarations.
98649         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
98650         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
98651         streq3, streq2, streq1, streq0): Remove functions.
98652         (STREQ): Remove macro.
98653         (is_cjk_encoding): Remove function.
98654         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
98655         (uc_width, u8_width, u16_width, u32_width): Remove functions.
98656         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
98657         * NEWS: Document the change.
98659 2007-09-01  Bruno Haible  <bruno@clisp.org>
98661         * lib/streq.h: Add double-inclusion guard.
98663 2007-09-01  Karl Berry  <karl@gnu.org>
98665         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
98667 2007-08-28  Jim Meyering  <jim@meyering.net>
98669         Rename mreadlink_with_size to areadlink_with_size.
98670         * NEWS: Document the change.
98671         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
98672         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
98673         * lib/mreadlink.h: Rename this to...
98674         * lib/areadlink.h: ...this.
98675         * modules/mreadlink-with-size: Rename this to...
98676         * modules/areadlink-with-size: ...this.
98677         * lib/canonicalize.c: Reflect the renaming.
98678         * modules/canonicalize: Likewise.
98680 2007-08-26  Bruno Haible  <bruno@clisp.org>
98682         * gnulib-tool (func_import): When deciding which files to remove,
98683         consider also dangling symbolic links.
98684         Reported by Eric Blake.
98686 2007-08-26  Bruno Haible  <bruno@clisp.org>
98688         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
98690 2007-08-23  Simon Josefsson  <simon@josefsson.org>
98692         * lib/readline.c: Don't include getline.h, the prototype is now
98693         found in stdio.h.
98695 2007-08-23  Jim Meyering  <jim@meyering.net>
98697         Getdelim touchup.
98698         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
98699         around the funlockfile call, since funlockfile never sets errno.
98700         Don't set errno upon failed realloc.
98702 2007-08-22  Eric Blake  <ebb9@byu.net>
98704         Getline touchups.
98705         * lib/getdelim.c (getdelim): Revert regression that required *n to
98706         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
98707         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
98708         getdelim, rather than whether implementation is missing.
98709         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
98710         * lib/stdio_.h (getline): Also declare if replacement is
98711         required.
98712         * doc/functions/getdelim.texi: New file.
98713         * doc/functions/getline.texi: Likewise.
98714         * doc/gnulib.texi (Function Substitutes): Add new files.
98715         Reported by Bruno Haible.
98717 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
98719         * users.txt: Add Guile.
98721 2007-08-22  Eric Blake  <ebb9@byu.net>
98723         * tests/test-getdelim.c (main): Use remove, not unlink.
98724         * tests/test-getline.c (main): Likewise.
98726         Move getline and getdelim into stdio.h, per POSIX 200x.
98727         * modules/getline (Files): Remove getline.h.
98728         (Depends-on): Add stdio.
98729         (configure.ac): Add module indicator.
98730         * modules/getdelim (Files): Remove getdelim.h.
98731         (Depends-on): Add stdio.
98732         (configure.ac): Add module indicator.
98733         * modules/stdio (Makefile.am): Work with new indicators.
98734         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
98735         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
98736         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
98737         * lib/getdelim.h: Delete.
98738         * lib/getline.h: Delete.
98739         * lib/stdio_.h (getdelim, getline): Declare.
98740         * modules/getdelim-tests: New module.
98741         * modules/getline-tests: Likewise.
98742         * tests/test-getdelim.c: New file.
98743         * tests/test-getline.c: Likewise.
98744         * NEWS: Document the change.
98745         * lib/getline.c: Update choice of header.
98746         * lib/csharpcomp.c: Likewise.
98747         * lib/getpass.c: Likewise.
98748         * lib/javacomp.c: Likewise.
98749         * lib/javaversion.c: Likewise.
98750         * lib/yesno.c: Likewise.
98751         * lib/getdelim.c: Likewise.
98752         (getdelim): Set errno on failure, and avoid memory leak.
98754 2007-08-19  Bruno Haible  <bruno@clisp.org>
98756         * modules/closein (Depends-on): Add freadahead.
98757         * lib/closein.c: Include freadahead.h.
98758         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
98759         is zero.
98761 2007-08-19  Bruno Haible  <bruno@clisp.org>
98763         * modules/freadahead-tests: New file.
98764         * tests/test-freadahead.sh: New file.
98765         * tests/test-freadahead.c: New file.
98767         * modules/freadahead: New file.
98768         * lib/freadahead.h: New file.
98769         * lib/freadahead.c: New file.
98770         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
98771         fbufmode, fpurge, freadable, fwritable.
98773 2007-08-19  Eric Blake  <ebb9@byu.net>
98775         Test yesno in combination with closein.
98776         * lib/yesno.c (yesno): Document use of stdin.
98777         * modules/yesno-tests (Files): New module.
98778         * tests/test-yesno.c (main): New file.
98779         * tests/test-yesno.sh: Likewise.
98781 2007-08-19  Bruno Haible  <bruno@clisp.org>
98783         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
98784         * lib/fseeko.c (rpl_fseeko): Likewise.
98785         * lib/fseterr.c (fseterr): Likewise.
98787 2007-08-19  Bruno Haible  <bruno@clisp.org>
98789         * tests/test-lseek.c (main): Disable a test for BeOS.
98790         * doc/functions/lseek.texi: Document the BeOS bug.
98792 2007-08-19  Bruno Haible  <bruno@clisp.org>
98793             Eric Blake  <ebb9@byu.net>
98795         * lib/lseek.c: Include <sys/stat.h>.
98796         (rpl_lseek): Add workaround code also for Unix platforms.
98797         Needed for BeOS.
98798         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
98799         * doc/functions/lseek.texi: Document BeOS definiency.
98801 2007-08-18  Bruno Haible  <bruno@clisp.org>
98803         * modules/fstrcmp-tests: New file.
98804         * tests/test-fstrcmp.c: New file.
98806 2007-08-18  Bruno Haible  <bruno@clisp.org>
98808         * modules/fstrcmp: New file, from GNU gettext with modifications.
98809         * lib/fstrcmp.h: New file, from GNU gettext.
98810         * lib/fstrcmp.c: New file, from GNU gettext.
98811         * MODULES.html.sh (String handling): Add fstrcmp.
98813 2007-08-18  Bruno Haible  <bruno@clisp.org>
98815         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
98816         'bool'.
98817         (diag, compareseq): Remove const from the ctxt argument.
98818         (USE_HEURISTIC): Undefine at the end.
98820 2007-08-18  Jim Meyering  <jim@meyering.net>
98822         New file: lib/idcache.h
98823         * NEWS: Mention the addition.
98824         * modules/idcache (Files): Add lib/idcache.h
98825         * lib/idcache.c: Include "idcache.h".
98826         Don't include <sys/types.h>.
98827         Add a FIXME comment.
98828         Move file-scoped "static" declarations to the top.
98829         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
98831 2007-08-17  Bruno Haible  <bruno@clisp.org>
98832         and Paul Eggert  <eggert@cs.ucla.edu>
98834         * MODULES.html.sh: Add diffseq.
98835         * modules/diffseq: New file.
98836         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
98837         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
98839 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98841         Import changes from coreutils for bootstrap script.
98843         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
98845         * build-aux/bootstrap (slurp): Work even in environments where
98846         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
98847         current code does not slurp files whose names start with ".", and
98848         this looks like it might be a troublesome area.
98850         2007-07-11  Jim Meyering  <jim@meyering.net>
98852         If there's a GPL vN copyright comment, require that N == 3.
98854         2007-07-08  Jim Meyering  <jim@meyering.net>
98856         Run the coreutils-specific code only if tests/Makefile.am.in exists.
98857         * build-aux/bootstrap (mam_template): Move definition out of loop.
98859         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
98861         * build-aux/bootstrap (symlink_to_dir): Rename function from
98862         symlink_to_gnulib.  Add a directory parameter.  Update all
98863         callers.
98864         (cp_mark_as_generated): Also check for -- and link to -- files in
98865         gl/.
98867         2007-07-08  Jim Meyering  <jim@meyering.net>
98869         Adapt to deeper hierarchy in gnulib.
98870         * build-aux/bootstrap (symlink_to_dir): If the destination
98871         directory doesn't exist, create it. This is required at least for
98872         "lib/uniwidth/cjk.h".
98874         2007-05-15  Jim Meyering  <jim@meyering.net>
98876         * build-aux/bootstrap: Now that generated Makefile.am files
98877         are no longer under version control, they must be created at
98878         bootstrap time.
98880 2007-08-14  Ben Pfaff  <blp@gnu.org>
98882         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
98884 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98886         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
98887         given the changes below.
98888         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
98889         even on hosts that have padding bits beyond the supported 64.
98891 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
98893         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
98894         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
98895         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
98896         depends on it.
98897         (xstrtol_error): Remove.
98898         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
98899         but with a different signature.
98900         (ATTRIBUTE_NORETURN, __attribute__): New macros.
98901         * lib/xstrtol-error.c: Include exitfail.h.
98902         (xstrtol_fatal): New function, with a different signature from the
98903         old xstrtol_error, so that the caller need not worry about passing
98904         in an exit status, or about storage management of the option argument.
98905         (xstrtol_error): Now a static function.  Redo signature to
98906         implement xstrtol_fatal.  Output the correct number of hyphens in
98907         front of the option so that the caller need not worry about
98908         storage management.
98909         (N_): New macro.
98910         (_): Remove; not used now.
98911         * modules/xstrtol: Depend on getopt.
98912         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
98913         of old STRTOL_FATAL_ERROR macro.
98914         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
98915         of test program.
98916         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
98917         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
98919 2007-08-08  Eric Blake  <ebb9@byu.net>
98921         * lib/xstrtol-error.c: Add missing include.
98923         Move xstrtol messages into gnulib domain, when --pobase is used.
98924         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
98925         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
98926         * modules/xstrtol (Files): Distribute new file.
98927         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
98928         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
98929         * tests/test-xstrtol.c: ...into new file.
98930         * tests/test-xstrtoul.c: Also test xstrtoul.
98931         * tests/test-xstrtoimax.c: Also test xstrtoimax.
98932         * tests/test-xstrtoumax.c: Also test xstrtoumax.
98933         * tests/test-xstrtol.sh: Drive the tests.
98934         * tests/test-xstrtoimax.sh: Likewise.
98935         * tests/test-xstrtoumax.sh: Likewise.
98936         * modules/xstrtol-tests: New module.
98937         * modules/xstrtoimax-tests: Likewise.
98938         * modules/xstrtoumax-tests: Likewise.
98940 2007-08-08  Jim Meyering  <jim@meyering.net>
98942         New function: mfile_name_concat.
98943         * lib/filenamecat.c (mfile_name_concat): New function, just like
98944         file_name_concat, but return NULL upon failure rather than exiting
98945         with a diagnostic.
98946         * lib/filenamecat.h: Declare it.
98948 2007-08-07  Bruno Haible  <bruno@clisp.org>
98950         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
98951         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
98952         warning from gcc.
98953         Reported by Eric Blake.
98955 2007-08-07  Simon Josefsson  <simon@josefsson.org>
98957         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
98958         * modules/crypto/arcfour (License): Likewise.
98959         * modules/crypto/des-tests (License): Likewise.
98960         * modules/crypto/gc-arctwo-tests (License): Likewise.
98961         * modules/crypto/gc-des-tests (License): Likewise.
98962         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
98963         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
98964         * modules/crypto/gc-md2-tests (License): Likewise.
98965         * modules/crypto/gc-md4-tests (License): Likewise.
98966         * modules/crypto/gc-md5-tests (License): Likewise.
98967         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
98968         * modules/crypto/gc-rijndael-tests (License): Likewise.
98969         * modules/crypto/gc-sha1-tests (License): Likewise.
98970         * modules/crypto/gc-tests (License): Likewise.
98971         * modules/crypto/hmac-md5 (License): Likewise.
98972         * modules/crypto/hmac-sha1 (License): Likewise.
98973         * modules/crypto/md2-tests (License): Likewise.
98974         * modules/crypto/md4-tests (License): Likewise.
98975         * modules/crypto/md5 (License): Likewise.
98976         * modules/crypto/rijndael (License): Likewise.
98977         * modules/crypto/sha1 (License): Likewise.
98978         * modules/memxor (License): Likewise.
98980 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
98981         and Bruno Haible  <bruno@clisp.org>
98983         * NEWS: Describe interface changes to human, xstrtol.
98984         * lib/human.h: Include <xstrtol.h>.
98985         (human_options): Return enum strtol_error, not int.  Remove
98986         bool arg; take int * instead.
98987         * lib/human.c: Don't include "gettext.h".
98988         (_): Remove; no longer used.
98989         Don't include <xstrtol.h>, since human.h does it.
98990         (human_options): Adjust to abovementioned interface changes.
98991         Do not report error to stderr; that's now the caller's
98992         responsibility.
98993         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
98994         interface change.
98995         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
98996         Str, Argument_type_string.  All uses changed.  Put " argument"
98997         in diagnostics to make them clearer.  Change wording of suffix
98998         message for clarity.
98999         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
99000         Argument_type_string.
99001         (STRTOL_FATAL_WARN): Remove; no longer used.
99002         * modules/human (Depends-on): Remove gettext-h.
99004 2007-08-06  Simon Josefsson  <simon@josefsson.org>
99006         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
99008 2007-07-31  Bruno Haible  <bruno@clisp.org>
99010         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
99011         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
99012         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
99014 2007-07-31  Bruno Haible  <bruno@clisp.org>
99016         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
99017         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
99019 2007-07-30  Bruno Haible  <bruno@clisp.org>
99021         * modules/base64 (License): Use the synonymous term "LGPLv2+".
99022         * modules/c-ctype (License): Likewise.
99023         * modules/c-strcase (License): Likewise.
99024         * modules/check-version (License): Likewise.
99025         * modules/iconv (License): Likewise.
99026         * modules/iconv_open (License): Likewise.
99027         * modules/read-file (License): Likewise.
99028         * modules/striconv (License): Likewise.
99029         * modules/strverscmp (License): Likewise.
99030         * modules/vasprintf (License): Likewise.
99031         * modules/crypto/des (License): Likewise.
99032         * modules/crypto/gc (License): Likewise.
99033         * modules/crypto/gc-arcfour (License): Likewise.
99034         * modules/crypto/gc-arctwo (License): Likewise.
99035         * modules/crypto/gc-des (License): Likewise.
99036         * modules/crypto/gc-hmac-md5 (License): Likewise.
99037         * modules/crypto/gc-hmac-sha1 (License): Likewise.
99038         * modules/crypto/gc-md2 (License): Likewise.
99039         * modules/crypto/gc-md4 (License): Likewise.
99040         * modules/crypto/gc-md5 (License): Likewise.
99041         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
99042         * modules/crypto/gc-random (License): Likewise.
99043         * modules/crypto/gc-rijndael (License): Likewise.
99044         * modules/crypto/gc-sha1 (License): Likewise.
99045         * modules/crypto/md2 (License): Likewise.
99046         * modules/crypto/md4 (License): Likewise.
99048 2007-07-30  Jim Meyering  <jim@meyering.net>
99050         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
99051         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
99052         it has valid stat data.  This bug would cause du not to count the
99053         sizes of inaccessible directories.
99054         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
99055         in <http://bugzilla.redhat.com/250077>.
99057 2007-07-25  Peter O'Gorman  <peter@pogma.com>
99058             Bruno Haible  <bruno@clisp.org>
99060         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
99061         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
99062         #include_next, gives a diagnostic about it, but reports no error in
99063         the exit code.
99064         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
99066 2007-07-24  Ben Pfaff  <blp@gnu.org>
99068         Improve name: "count-one-bits" is better than "popcount".
99069         * MODULES.html.sh: Update name.
99070         * lib/popcount.h: Renamed lib/count-one-bits.h.
99071         (popcount): Renamed count_one_bits.
99072         (popcountl): Renamed count_one_bits_l.
99073         (popcountll): Renamed count_one_bits_ll.
99074         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
99075         * modules/popcount: Renamed module/count-one-bits.
99076         * modules/popcount-tests: Renamed module/count-one-bits-tests.
99077         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
99079 2007-07-23  Ben Pfaff  <blp@gnu.org>
99081         * lib/popcount.h (popcount32): Reduce size of constants, to allow
99082         better code generation, and add U to large constants to avoid
99083         warnings, in non-GCC case.
99084         Suggested by Bruno Haible.
99086 2007-07-23  Ben Pfaff  <blp@gnu.org>
99088         * lib/popcount.h: Use verify_true instead of if...abort.
99089         * modules/popcount: Depend on verify module.
99090         Suggested by Jim Meyering.
99092 2007-07-23  Bruno Haible  <bruno@clisp.org>
99094         * gnulib-tool (func_import): Create a .cvsignore file also when the
99095         directory is not yet in CVS but the toplevel directory is. When
99096         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
99097         Reported by Karl Berry.
99099 2007-07-22  Ben Pfaff  <blp@gnu.org>
99101         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
99102         case.
99103         Suggested by Eric Blake.
99105 2007-07-22  Ben Pfaff  <blp@gnu.org>
99107         New module: popcount.
99108         * MODULES.html.sh: Add popcount.
99109         * modules/popcount: New file.
99110         * modules/popcount-tests: New file.
99111         * tests/test-popcount.c: New file.
99112         * lib/popcount.h: New file.
99113         * m4/popcount.m4: New file.
99115 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
99117         * build-aux/announce-gen: Update to GPLv3.
99119         * build-aux/config.guess: Update from config.
99121 2007-07-21  Bruno Haible  <bruno@clisp.org>
99123         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
99124         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
99126 2007-07-20  Jim Meyering  <jim@meyering.net>
99128         * check-module: Diagnose a self-dependency.
99130 2007-07-19  Bruno Haible  <bruno@clisp.org>
99132         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
99133         empty.
99134         Reported by Eric Blake.
99136 2007-07-18  Bruno Haible  <bruno@clisp.org>
99138         * gnulib-tool: New options --po-base, --po-domain.
99139         (func_usage): Document them.
99140         (pobase, po_domain): New variables.
99141         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
99142         DEFAULT_TEXT_DOMAIN.
99143         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
99144         (func_import): Consider pobase and po_domain. Create a po/ directory.
99145         (func_create_testdir): Set pobase and po_domain to empty.
99146         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
99147         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
99149 2007-07-18  Bruno Haible  <bruno@clisp.org>
99151         * gnulib-tool (func_get_automake_snippet): Synthesize also an
99152         EXTRA_DIST augmentation for files in build-aux/.
99154 2007-07-16  Bruno Haible  <bruno@clisp.org>
99156         * modules/lseek (License): Use the synonymous term "LGPLv2+".
99157         * modules/getdelim (License): Likewise.
99159 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99161         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
99162         * modules/d-type (License): Likewise.
99163         * modules/extensions (License): Likewise.
99164         * modules/fnmatch (License): Likewise.
99165         * modules/fseeko (License): Likewise.
99166         * modules/getaddrinfo (License): Likewise.
99167         * modules/getline (License): Likewise.
99168         * modules/getlogin_r (License): Likewise.
99169         * modules/getpass (License): Likewise.
99170         * modules/gettimeofday (License): Likewise.
99171         * modules/glob (License): Likewise.
99172         * modules/inet_ntop (License): Likewise.
99173         * modules/malloc (License): Likewise.
99174         * modules/malloca (License): Likewise.
99175         * modules/memmem (License): Likewise.
99176         * modules/mempcpy (License): Likewise.
99177         * modules/memset (License): Likewise.
99178         * modules/minmax (License): Likewise.
99179         * modules/mktime (License): Likewise.
99180         * modules/netinet_in (License): Likewise.
99181         * modules/pathmax (License): Likewise.
99182         * modules/poll (License): Likewise.
99183         * modules/regex (License): Likewise.
99184         * modules/snprintf (License): Likewise.
99185         * modules/stdbool (License): Likewise.
99186         * modules/stdint (License): Likewise.
99187         * modules/stdio (License): Likewise.
99188         * modules/strcase (License): Likewise.
99189         * modules/strcasestr (License): Likewise.
99190         * modules/strdup (License): Likewise.
99191         * modules/string (License): Likewise.
99192         * modules/strndup (License): Likewise.
99193         * modules/strnlen (License): Likewise.
99194         * modules/strpbrk (License): Likewise.
99195         * modules/strptime (License): Likewise.
99196         * modules/strsep (License): Likewise.
99197         * modules/sys_select (License): Likewise.
99198         * modules/sys_socket (License): Likewise.
99199         * modules/sys_stat (License): Likewise.
99200         * modules/sys_time (License): Likewise.
99201         * modules/time (License): Likewise.
99202         * modules/time_r (License): Likewise.
99203         * modules/timegm (License): Likewise.
99204         * modules/unistd (License): Likewise.
99205         * modules/vsnprintf (License): Likewise.
99206         * modules/wctype (License): Likewise.
99208 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99210         * modules/argz (License): LGPLv2+.
99212 2007-07-15  Karl Berry  <karl@gnu.org>
99214         * doc/gnulib.texi: revise node structure per new fdl.texi.
99216 2007-07-14  Bruno Haible  <bruno@clisp.org>
99218         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
99219         the output file.
99220         * lib/uniname/uninames.h: Regenerated.
99222 2007-07-14  Karl Berry  <karl@gnu.org>
99224         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
99225         omitting sectioning and index commands.
99227 2007-07-13  Bruno Haible  <bruno@clisp.org>
99229         New gnulib-tool option --more-symlinks.
99230         * gnulib-tool (func_usage): Document --more-symlinks.
99231         (do_copyrights): New variable.
99232         Recognize option --more-symlinks.
99233         (func_import): Don't add a copyright notice transform to
99234         sed_transform_lib_file if do_copyrights is empty.
99236 2007-07-13  Bruno Haible  <bruno@clisp.org>
99238         * lib/vasnprintf.c (decimal_point_char): Define also if
99239         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
99240         && !NEED_PRINTF_DIRECTIVE_A.
99241         Reported by Clemens Koller <clemens.koller@anagramm.de> via
99242         Gary V. Vaughan <gary@gnu.org>.
99244 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
99246         * lib/inttypes_.h: Undo previous change, since it was fixed
99247         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
99249 2007-07-13  Bruno Haible  <bruno@clisp.org>
99251         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
99252         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
99254 2007-07-13  Jim Meyering  <jim@meyering.net>
99256         df: Don't fail for Tru64's "file-on-file mount".
99257         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
99258         so we fall through and use statfs instead.  Details here:
99259         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
99260         Reported by Albert Chin.
99262 2007-07-13  Bruno Haible  <bruno@clisp.org>
99264         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
99265         * modules/configmake (License): Likewise.
99266         * modules/gettext (License): Likewise.
99267         * modules/gettext-h (License): Likewise.
99268         * modules/include_next (License): Likewise.
99269         * modules/link-warning (License): Likewise.
99270         * modules/localcharset (License): Likewise.
99271         * modules/localename (License): Likewise.
99272         * modules/lock (License): Likewise.
99273         * modules/relocatable-lib-lgpl (License): Likewise.
99274         * modules/size_max (License): Likewise.
99275         * modules/vasnprintf (License): Likewise.
99276         * modules/wchar (License): Likewise.
99277         * modules/xsize (License): Likewise.
99279 2007-07-13  Bruno Haible  <bruno@clisp.org>
99281         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
99282         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
99284 2007-07-12  Bruno Haible  <bruno@clisp.org>
99286         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
99287         in the modules files.
99289 2007-07-11  Karl Berry  <karl@gnu.org>
99291         * MODULES.html.sh (func_module): use
99292          sed -e '\|^'"${includefile}"'$|d'
99293          instead of /.../d, to avoid errors on $includefile's containing /.
99295 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
99297         * gnulib-tool (func_import): Avoid duplication of --avoid
99298         statements
99299         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
99300         names to `_' in variable names.
99302 2007-07-10  Eric Blake  <ebb9@byu.net>
99304         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
99305         * NEWS: Document this change.
99307 2007-07-08  Bruno Haible  <bruno@clisp.org>
99309         Update to Unicode 5.0.
99310         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
99311         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
99312         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
99313         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
99314         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
99315         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
99316         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
99317         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
99318         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
99319         U+10A3F, U+1D242..U+1D244.
99320         (nonspacing_table_ind): Update.
99321         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
99322         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
99324 2007-07-08  Bruno Haible  <bruno@clisp.org>
99326         Update to Unicode 5.0.
99327         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
99328         code transform. Extend the name index field of unicode_name_to_code and
99329         unicode_code_to_name from 16 to 24 bits.
99330         * lib/uniname/uniname.c (unicode_character_name,
99331         unicode_name_character): Add the range 0x12xxx to the code transform.
99332         * lib/uniname/uninames.h: Regenerated.
99333         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
99335 2007-07-07  Bruno Haible  <bruno@clisp.org>
99337         * modules/wcwidth-tests: New file.
99338         * tests/test-wcwidth.c: New file.
99340         Work around MacOS X wcwidth() bug.
99341         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
99342         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
99343         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
99344         original wcwidth in non-UTF-8 locales.
99345         * modules/wcwidth (Depends-on): Add localcharset, streq,
99346         uniwidth/width.
99347         * doc/functions/wcwidth.texi: Update.
99349 2007-07-07  Bruno Haible  <bruno@clisp.org>
99351         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
99352         (wcwidth): New declaration.
99353         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
99354         macros.
99355         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
99356         here. Prepare for creating <wchar.h> unconditionally.
99357         * modules/wchar (Depends-on): Add link-warning.
99358         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
99359         REPLACE_WCWIDTH, and GL_LINK_WARNING.
99360         * lib/wcwidth.h: Remove file.
99361         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
99362         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
99363         * modules/wcwidth (Files): Remove lib/wcwidth.h.
99364         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
99365         (Include): Replace wcwidth.h with <wchar.h>.
99366         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
99367         * lib/mbchar.h: Don't include wcwidth.h.
99368         * lib/mbswidth.c: Likewise.
99369         * NEWS: Mention the change.
99371 2007-07-07  Bruno Haible  <bruno@clisp.org>
99373         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
99374         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
99375         definition with an external declaration.
99376         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
99377         defined as a function. Remove AC_C_INLINE requirement.
99378         * modules/wcwidth (Files): Add lib/wcwidth.c.
99379         (Makefile.am): Remove redundant statement.
99381 2007-07-07  Bruno Haible  <bruno@clisp.org>
99383         * MODULES.html.sh (Unicode string functions): Add the new modules.
99385         * tests/uniwidth/test-u32-strwidth.c: New file.
99386         * modules/uniwidth/u32-strwidth-tests: New file.
99388         * lib/uniwidth/u32-strwidth.c: New file.
99389         * modules/uniwidth/u32-strwidth: New file.
99391         * tests/uniwidth/test-u16-strwidth.c: New file.
99392         * modules/uniwidth/u16-strwidth-tests: New file.
99394         * lib/uniwidth/u16-strwidth.c: New file.
99395         * modules/uniwidth/u16-strwidth: New file.
99397         * tests/uniwidth/test-u8-strwidth.c: New file.
99398         * modules/uniwidth/u8-strwidth-tests: New file.
99400         * lib/uniwidth/u8-strwidth.c: New file.
99401         * modules/uniwidth/u8-strwidth: New file.
99403         * tests/uniwidth/test-u32-width.c: New file.
99404         * modules/uniwidth/u32-width-tests: New file.
99406         * lib/uniwidth/u32-width.c: New file.
99407         * modules/uniwidth/u32-width: New file.
99409         * tests/uniwidth/test-u16-width.c: New file.
99410         * modules/uniwidth/u16-width-tests: New file.
99412         * lib/uniwidth/u16-width.c: New file.
99413         * modules/uniwidth/u16-width: New file.
99415         * tests/uniwidth/test-u8-width.c: New file.
99416         * modules/uniwidth/u8-width-tests: New file.
99418         * lib/uniwidth/u8-width.c: New file.
99419         * modules/uniwidth/u8-width: New file.
99421         * tests/uniwidth/test-uc_width.c: New file.
99422         * modules/uniwidth/width-tests: New file.
99424         * lib/uniwidth/width.c: New file, from GNU libiconv.
99425         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
99426         * modules/uniwidth/width: New file.
99428         * lib/uniwidth.h: New file, from GNU libiconv.
99429         * modules/uniwidth/base: New file.
99431 2007-07-07  Bruno Haible  <bruno@clisp.org>
99433         * lib/uniname.h: New file, from GNU gettext.
99434         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
99435         * lib/uniname/uninames.h: New file, from GNU gettext.
99436         * lib/uniname/uniname.c: New file, from GNU gettext.
99437         * tests/uniname/test-uninames.sh: New file.
99438         * tests/uniname/test-uninames.c: New file, from GNU gettext.
99439         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
99440         * modules/uniname/base: New file.
99441         * modules/uniname/uniname: New file.
99442         * modules/uniname/uniname-tests: New file.
99443         * MODULES.html.sh (Unicode string functions): Add the new modules.
99445 2007-07-06  Bruno Haible  <bruno@clisp.org>
99447         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
99449 2007-07-06  Bruno Haible  <bruno@clisp.org>
99451         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
99452         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
99453         includes <cygwin/sys_time.h> which includes <sys/select.h> which
99454         include <sys/time.h>.
99455         Reported by Eric Blake.
99457 2007-07-06  Eric Blake  <ebb9@byu.net>
99459         Fix testing canonicalize on cygwin.
99460         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
99461         Revert patch from 2007-06-19.
99462         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
99463         canonicalize module is also in use.
99464         * tests/test-canonicalize.c: New file.
99465         * tests/test-canonicalize.sh: Likewise.
99466         * modules/canonicalize-tests: Likewise.
99468 2007-07-06  Jim Meyering  <jim@meyering.net>
99470         * lib/getugroups.c (getugroups): Detect getgrent failure.
99471         Adjust comment to reflect reality: this function may return -1.
99473 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
99475         * build-aux/bootstrap (TP_URL,get_translations): Update to use
99476         the new TP address.
99477         (usage): Fix typo
99478         (gnulib_mk): New variable.
99480 2007-07-05  Jim Meyering  <jim@meyering.net>
99482         Don't let endgrent clobber errno, no matter how improbable.
99483         * lib/getugroups.c (getugroups): Save and restore errno around
99484         endgrent call.
99486         Close the group DB even when failing with 2^31 or more members.
99487         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
99489 2007-07-04  Jim Meyering  <jim@meyering.net>
99491         * lib/getugroups.h: New file.
99492         * lib/getugroups.c: Include "getugroups.h".
99493         Remove uses of "register" keyword.
99494         Move local variable, "cp", down into scope where used.
99495         Give "username" parameter the "const" attribute.
99496         * modules/getugroups (Files): Add lib/getugroups.h
99498 2007-07-04  Karl Berry  <karl@gnu.org>
99500         * MODULES.html.sh (func_all_modules): Complete rename of
99501         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
99503 2007-07-02  Bruno Haible  <bruno@clisp.org>
99505         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
99506         mode, when inttypes.h comes from gnulib.
99507         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
99509 2007-07-02  Simon Josefsson  <simon@josefsson.org>
99511         * NEWS: Mention lgpl module name change.
99513         * modules/lgpl-2.1: Renamed from lgpl.
99515         * NEWS: Mention gpl module name change.
99517         * modules/gpl-3.0: New file, based on gpl-2.0.
99519         * modules/gpl-2.0: Renamed from gpl.
99521         * modules/gpl: Fix filename, doc/gpl.texi is now found at
99522         doc/gpl-2.0.texi.
99524 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
99526         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
99527         #define __STDC_LIMIT_MACROS temporarily while including
99528         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
99529         Problem reported by Joel E. Denny in
99530         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
99532 2007-07-01  Bruno Haible  <bruno@clisp.org>
99534         * lib/unistdio.h: New file.
99535         * lib/unistdio/u-asnprintf.h: New file.
99536         * lib/unistdio/u-asprintf.h: New file.
99537         * lib/unistdio/u-printf-args.c: New file.
99538         * lib/unistdio/u-printf-args.h: New file.
99539         * lib/unistdio/u-printf-parse.h: New file.
99540         * lib/unistdio/u-snprintf.h: New file.
99541         * lib/unistdio/u-sprintf.h: New file.
99542         * lib/unistdio/u-vasprintf.h: New file.
99543         * lib/unistdio/u-vsnprintf.h: New file.
99544         * lib/unistdio/u-vsprintf.h: New file.
99545         * lib/unistdio/ulc-asnprintf.c: New file.
99546         * lib/unistdio/ulc-asprintf.c: New file.
99547         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
99548         * lib/unistdio/ulc-printf-parse.c: New file.
99549         * lib/unistdio/ulc-snprintf.c: New file.
99550         * lib/unistdio/ulc-sprintf.c: New file.
99551         * lib/unistdio/ulc-vasnprintf.c: New file.
99552         * lib/unistdio/ulc-vasprintf.c: New file.
99553         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
99554         * lib/unistdio/ulc-vsnprintf.c: New file.
99555         * lib/unistdio/ulc-vsprintf.c: New file.
99556         * lib/unistdio/u8-asnprintf.c: New file.
99557         * lib/unistdio/u8-asprintf.c: New file.
99558         * lib/unistdio/u8-printf-parse.c: New file.
99559         * lib/unistdio/u8-snprintf.c: New file.
99560         * lib/unistdio/u8-sprintf.c: New file.
99561         * lib/unistdio/u8-vasnprintf.c: New file.
99562         * lib/unistdio/u8-vasprintf.c: New file.
99563         * lib/unistdio/u8-vsnprintf.c: New file.
99564         * lib/unistdio/u8-vsprintf.c: New file.
99565         * lib/unistdio/u8-u8-asnprintf.c: New file.
99566         * lib/unistdio/u8-u8-asprintf.c: New file.
99567         * lib/unistdio/u8-u8-snprintf.c: New file.
99568         * lib/unistdio/u8-u8-sprintf.c: New file.
99569         * lib/unistdio/u8-u8-vasnprintf.c: New file.
99570         * lib/unistdio/u8-u8-vasprintf.c: New file.
99571         * lib/unistdio/u8-u8-vsnprintf.c: New file.
99572         * lib/unistdio/u8-u8-vsprintf.c: New file.
99573         * lib/unistdio/u16-asnprintf.c: New file.
99574         * lib/unistdio/u16-asprintf.c: New file.
99575         * lib/unistdio/u16-printf-parse.c: New file.
99576         * lib/unistdio/u16-snprintf.c: New file.
99577         * lib/unistdio/u16-sprintf.c: New file.
99578         * lib/unistdio/u16-vasnprintf.c: New file.
99579         * lib/unistdio/u16-vasprintf.c: New file.
99580         * lib/unistdio/u16-vsnprintf.c: New file.
99581         * lib/unistdio/u16-vsprintf.c: New file.
99582         * lib/unistdio/u16-u16-asnprintf.c: New file.
99583         * lib/unistdio/u16-u16-asprintf.c: New file.
99584         * lib/unistdio/u16-u16-snprintf.c: New file.
99585         * lib/unistdio/u16-u16-sprintf.c: New file.
99586         * lib/unistdio/u16-u16-vasnprintf.c: New file.
99587         * lib/unistdio/u16-u16-vasprintf.c: New file.
99588         * lib/unistdio/u16-u16-vsnprintf.c: New file.
99589         * lib/unistdio/u16-u16-vsprintf.c: New file.
99590         * lib/unistdio/u32-asnprintf.c: New file.
99591         * lib/unistdio/u32-asprintf.c: New file.
99592         * lib/unistdio/u32-printf-parse.c: New file.
99593         * lib/unistdio/u32-snprintf.c: New file.
99594         * lib/unistdio/u32-sprintf.c: New file.
99595         * lib/unistdio/u32-vasnprintf.c: New file.
99596         * lib/unistdio/u32-vasprintf.c: New file.
99597         * lib/unistdio/u32-vsnprintf.c: New file.
99598         * lib/unistdio/u32-vsprintf.c: New file.
99599         * lib/unistdio/u32-u32-asnprintf.c: New file.
99600         * lib/unistdio/u32-u32-asprintf.c: New file.
99601         * lib/unistdio/u32-u32-snprintf.c: New file.
99602         * lib/unistdio/u32-u32-sprintf.c: New file.
99603         * lib/unistdio/u32-u32-vasnprintf.c: New file.
99604         * lib/unistdio/u32-u32-vasprintf.c: New file.
99605         * lib/unistdio/u32-u32-vsnprintf.c: New file.
99606         * lib/unistdio/u32-u32-vsprintf.c: New file.
99607         * tests/unistdio/test-ulc-asnprintf1.c: New file.
99608         * tests/unistdio/test-ulc-asnprintf1.h: New file.
99609         * tests/unistdio/test-ulc-printf1.h: New file.
99610         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
99611         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
99612         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
99613         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
99614         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
99615         * tests/unistdio/test-ulc-vasprintf1.c: New file.
99616         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
99617         * tests/unistdio/test-ulc-vsprintf1.c: New file.
99618         * tests/unistdio/test-u8-asnprintf1.c: New file.
99619         * tests/unistdio/test-u8-asnprintf1.h: New file.
99620         * tests/unistdio/test-u8-printf1.h: New file.
99621         * tests/unistdio/test-u8-vasnprintf1.c: New file.
99622         * tests/unistdio/test-u8-vasnprintf2.c: New file.
99623         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
99624         * tests/unistdio/test-u8-vasnprintf3.c: New file.
99625         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
99626         * tests/unistdio/test-u8-vasprintf1.c: New file.
99627         * tests/unistdio/test-u8-vsnprintf1.c: New file.
99628         * tests/unistdio/test-u8-vsprintf1.c: New file.
99629         * tests/unistdio/test-u16-asnprintf1.c: New file.
99630         * tests/unistdio/test-u16-asnprintf1.h: New file.
99631         * tests/unistdio/test-u16-printf1.h: New file.
99632         * tests/unistdio/test-u16-vasnprintf1.c: New file.
99633         * tests/unistdio/test-u16-vasnprintf2.c: New file.
99634         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
99635         * tests/unistdio/test-u16-vasnprintf3.c: New file.
99636         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
99637         * tests/unistdio/test-u16-vasprintf1.c: New file.
99638         * tests/unistdio/test-u16-vsnprintf1.c: New file.
99639         * tests/unistdio/test-u16-vsprintf1.c: New file.
99640         * tests/unistdio/test-u32-asnprintf1.c: New file.
99641         * tests/unistdio/test-u32-asnprintf1.h: New file.
99642         * tests/unistdio/test-u32-printf1.h: New file.
99643         * tests/unistdio/test-u32-vasnprintf1.c: New file.
99644         * tests/unistdio/test-u32-vasnprintf2.c: New file.
99645         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
99646         * tests/unistdio/test-u32-vasnprintf3.c: New file.
99647         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
99648         * tests/unistdio/test-u32-vasprintf1.c: New file.
99649         * tests/unistdio/test-u32-vsnprintf1.c: New file.
99650         * tests/unistdio/test-u32-vsprintf1.c: New file.
99651         * modules/unistdio/base: New file.
99652         * modules/unistdio/u-printf-args: New file.
99653         * modules/unistdio/ulc-asnprintf: New file.
99654         * modules/unistdio/ulc-asprintf: New file.
99655         * modules/unistdio/ulc-fprintf: New file.
99656         * modules/unistdio/ulc-printf-parse: New file.
99657         * modules/unistdio/ulc-snprintf: New file.
99658         * modules/unistdio/ulc-sprintf: New file.
99659         * modules/unistdio/ulc-vasnprintf: New file.
99660         * modules/unistdio/ulc-vasprintf: New file.
99661         * modules/unistdio/ulc-vfprintf: New file.
99662         * modules/unistdio/ulc-vsnprintf: New file.
99663         * modules/unistdio/ulc-vsprintf: New file.
99664         * modules/unistdio/u8-asnprintf: New file.
99665         * modules/unistdio/u8-asprintf: New file.
99666         * modules/unistdio/u8-printf-parse: New file.
99667         * modules/unistdio/u8-snprintf: New file.
99668         * modules/unistdio/u8-sprintf: New file.
99669         * modules/unistdio/u8-vasnprintf: New file.
99670         * modules/unistdio/u8-vasprintf: New file.
99671         * modules/unistdio/u8-vsnprintf: New file.
99672         * modules/unistdio/u8-vsprintf: New file.
99673         * modules/unistdio/u8-u8-asnprintf: New file.
99674         * modules/unistdio/u8-u8-asprintf: New file.
99675         * modules/unistdio/u8-u8-snprintf: New file.
99676         * modules/unistdio/u8-u8-sprintf: New file.
99677         * modules/unistdio/u8-u8-vasnprintf: New file.
99678         * modules/unistdio/u8-u8-vasprintf: New file.
99679         * modules/unistdio/u8-u8-vsnprintf: New file.
99680         * modules/unistdio/u8-u8-vsprintf: New file.
99681         * modules/unistdio/u16-asnprintf: New file.
99682         * modules/unistdio/u16-asprintf: New file.
99683         * modules/unistdio/u16-printf-parse: New file.
99684         * modules/unistdio/u16-snprintf: New file.
99685         * modules/unistdio/u16-sprintf: New file.
99686         * modules/unistdio/u16-vasnprintf: New file.
99687         * modules/unistdio/u16-vasprintf: New file.
99688         * modules/unistdio/u16-vsnprintf: New file.
99689         * modules/unistdio/u16-vsprintf: New file.
99690         * modules/unistdio/u16-u16-asnprintf: New file.
99691         * modules/unistdio/u16-u16-asprintf: New file.
99692         * modules/unistdio/u16-u16-snprintf: New file.
99693         * modules/unistdio/u16-u16-sprintf: New file.
99694         * modules/unistdio/u16-u16-vasnprintf: New file.
99695         * modules/unistdio/u16-u16-vasprintf: New file.
99696         * modules/unistdio/u16-u16-vsnprintf: New file.
99697         * modules/unistdio/u16-u16-vsprintf: New file.
99698         * modules/unistdio/u32-asnprintf: New file.
99699         * modules/unistdio/u32-asprintf: New file.
99700         * modules/unistdio/u32-printf-parse: New file.
99701         * modules/unistdio/u32-snprintf: New file.
99702         * modules/unistdio/u32-sprintf: New file.
99703         * modules/unistdio/u32-vasnprintf: New file.
99704         * modules/unistdio/u32-vasprintf: New file.
99705         * modules/unistdio/u32-vsnprintf: New file.
99706         * modules/unistdio/u32-vsprintf: New file.
99707         * modules/unistdio/u32-u32-asnprintf: New file.
99708         * modules/unistdio/u32-u32-asprintf: New file.
99709         * modules/unistdio/u32-u32-snprintf: New file.
99710         * modules/unistdio/u32-u32-sprintf: New file.
99711         * modules/unistdio/u32-u32-vasnprintf: New file.
99712         * modules/unistdio/u32-u32-vasprintf: New file.
99713         * modules/unistdio/u32-u32-vsnprintf: New file.
99714         * modules/unistdio/u32-u32-vsprintf: New file.
99715         * modules/unistdio/ulc-asnprintf-tests: New file.
99716         * modules/unistdio/ulc-vasnprintf-tests: New file.
99717         * modules/unistdio/ulc-vasprintf-tests: New file.
99718         * modules/unistdio/ulc-vsnprintf-tests: New file.
99719         * modules/unistdio/ulc-vsprintf-tests: New file.
99720         * modules/unistdio/u8-asnprintf-tests: New file.
99721         * modules/unistdio/u8-vasnprintf-tests: New file.
99722         * modules/unistdio/u8-vasprintf-tests: New file.
99723         * modules/unistdio/u8-vsnprintf-tests: New file.
99724         * modules/unistdio/u8-vsprintf-tests: New file.
99725         * modules/unistdio/u16-asnprintf-tests: New file.
99726         * modules/unistdio/u16-vasnprintf-tests: New file.
99727         * modules/unistdio/u16-vasprintf-tests: New file.
99728         * modules/unistdio/u16-vsnprintf-tests: New file.
99729         * modules/unistdio/u16-vsprintf-tests: New file.
99730         * modules/unistdio/u32-asnprintf-tests: New file.
99731         * modules/unistdio/u32-vasnprintf-tests: New file.
99732         * modules/unistdio/u32-vasprintf-tests: New file.
99733         * modules/unistdio/u32-vsnprintf-tests: New file.
99734         * modules/unistdio/u32-vsprintf-tests: New file.
99735         * MODULES.html.sh (Unicode string functions): Add the new modules.
99737 2007-07-01  Bruno Haible  <bruno@clisp.org>
99739         * lib/sprintf.c (sprintf): Limit the available length estimation,
99740         to avoid address wraparound.
99741         * lib/vsprintf.c (vsprintf): Likewise.
99742         * modules/sprintf-posix (Dependencies): Add stdint.
99743         * modules/vsprintf-posix (Dependencies): Likewise.
99745 2007-07-01  Bruno Haible  <bruno@clisp.org>
99747         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
99748         Windows PATH as well. Conservative double-quoting. Comments.
99750 2007-07-01  Bruno Haible  <bruno@clisp.org>
99751             Eric Blake  <ebb9@byu.net>
99752             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99754         * gnulib-tool (self_abspathname): Fix algorithm to cope with
99755         empty components in $PATH, denoting '.'.
99757 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99759         * gnulib-tool: Fix indentation.
99760         (func_create_megatestdir): Likewise.
99761         Report by Bruno Haible.
99763 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99765         Sync from Automake.
99766         * build-aux/gnupload: Fix shell portability issues with for loops.
99767         Report by Karl Berry.
99769 2007-06-29  Simon Josefsson  <simon@josefsson.org>
99771         * build-aux/maint.mk (POURL): Use translationproject.org.
99773 2007-06-27  Simon Josefsson  <simon@josefsson.org>
99774             Bruno Haible  <bruno@clisp.org>
99776         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
99777         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
99778         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
99779         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
99780         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
99782 2007-06-27  Bruno Haible  <bruno@clisp.org>
99784         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
99785         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
99787 2007-06-26  Karl Berry  <karl@gnu.org>
99789         * MODULES.html.sh: remove xreadlink-with-size.
99791 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
99793         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
99794         method that I hope also handles the double-include problem noted
99795         by Bruno Haible in
99796         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
99798 2007-06-23  Bruno Haible  <bruno@clisp.org>
99800         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
99801         Don't let the 'mostlyclean' target fail if the last subdirectory could
99802         not be removed.
99803         Reported by Karl Berry.
99805 2007-06-23  Bruno Haible  <bruno@clisp.org>
99807         * gnulib-tool (echo): Add a speedier workaround for ksh.
99808         * tests/test-echo.sh: Likewise.
99810 2007-06-23  Bruno Haible  <bruno@clisp.org>
99812         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
99813         * tests/test-echo.sh: Likewise.
99815 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99817         * gnulib-tool (IFS): Initialize early, so we don't set it to
99818         empty later.
99819         (self_abspathname): Rewrite algorithm to set it, reindent.
99820         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
99821         (func_create_megatestdir): Merge some sed scripts.
99823 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
99825         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
99826         exposed by Sun Studio 11 cc on Solaris 8.
99828 2007-06-22  Bruno Haible  <bruno@clisp.org>
99830         * gnulib-tool (echo): Ensure the echo primitive does not interpret
99831         backslashes.
99832         * tests/test-echo.sh: New file.
99834 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99836         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
99837         simplify `sed_replace_build_aux' scripts, they are portable but
99838         echoing them with `echo' is not.
99839         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
99841 2007-06-21  Karl Berry  <karl@gnu.org>
99843         * config/srclist.txt: guess we can't handle the licenses via
99844         srclist at the moment.
99846 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
99848         * MODULES.html.sh: Add include_next.
99849         * modules/include_next: New file.
99851 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
99853         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
99854         INCLUDE_NEXT.
99855         (gl_CHECK_NEXT_HEADERS): New macro.
99856         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
99857         the obsolescent gl_ABSOLUTE_HEADER.
99858         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
99859         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
99860         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
99861         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
99862         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
99863         * m4/math_h.m4 (gl_MATH_H): Likewise.
99864         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
99865         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
99866         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
99867         * m4/stdint.m4 (gl_STDINT_H): Likewise.
99868         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
99869         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
99870         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
99871         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
99872         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
99873         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
99874         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
99875         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
99876         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
99877         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
99878         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
99879         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
99880         * m4/inttypes.m4 (gl_INTTYPES_H): Define
99881         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
99882         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
99883         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
99884         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
99885         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
99886         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
99887         * lib/float_.h: Likewise.
99888         * lib/inttypes_.h: Likewise.
99889         * lib/math_.h: Likewise.
99890         * lib/search_.h: Likewise.
99891         * lib/signal_.h: Likewise.
99892         * lib/stdint_.h: Likewise.
99893         * lib/stdio_.h: Likewise.
99894         * lib/stdlib_.h: Likewise.
99895         * lib/string_.h: Likewise.
99896         * lib/sys_stat_.h: Likewise.
99897         * lib/sys_time_.h: Likewise.
99898         * lib/time_.h: Likewise.
99899         * lib/unistd_.h: Likewise.
99900         * lib/wchar_.h: Likewise.
99901         * lib/wctype_.h: Likewise.
99902         * lib/dirent_.h: Likewise.
99903         * lib/iconv_.h: Likewise.
99904         * lib/locale_.h: Likewise.
99905         * lib/netinet_in_.h: Likewise.
99906         * lib/sys_select_.h: Likewise.
99907         * lib/sys_socket_.h: Likewise.
99908         * lib/sysexits_.h: Likewise.
99909         * modules/fcntl (Depends-on): Depend on include_next, not
99910         absolute_header.
99911         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
99912         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
99913         * modules/fchdir: Likewise.
99914         * modules/float: Likewise.
99915         * modules/iconv_open: Likewise.
99916         * modules/inttypes: Likewise.
99917         * modules/locale: Likewise.
99918         * modules/math: Likewise.
99919         * modules/netinet_in: Likewise.
99920         * modules/search: Likewise.
99921         * modules/signal: Likewise.
99922         * modules/stdint: Likewise.
99923         * modules/stdio: Likewise.
99924         * modules/stdlib: Likewise.
99925         * modules/string: Likewise.
99926         * modules/sys_select: Likewise.
99927         * modules/sys_socket: Likewise.
99928         * modules/sys_stat: Likewise.
99929         * modules/sys_time: Likewise.
99930         * modules/sysexits: Likewise.
99931         * modules/time: Likewise.
99932         * modules/unistd: Likewise.
99933         * modules/wchar: Likewise.
99934         * modules/wctype: Likewise.
99935         * modules/sys_stat: Change maintainer to "all".
99936         * modules/unistd: Likewise.
99938 2007-06-20  Karl Berry  <karl@gnu.org>
99940         * config/srclist.txt: track www changes in license files.
99942 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
99944         * build-aux/bootstrap: Remove stray dot.
99945         Make sure build_aux settings are honored when linking
99946         gnulib_extra_files.
99948 2007-06-19  Eric Blake  <ebb9@byu.net>
99950         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
99951         Allow compilation on cygwin.
99953 2007-06-19  Jim Meyering  <jim@meyering.net>
99955         xreadlink-with-size: Remove module.  No longer used.
99956         Ex-callers now use xreadlink or mreadlink-with-size.
99957         * modules/xreadlink-with-size: Remove module.
99958         * lib/xreadlink-with-size.c: Remove file.
99959         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
99960         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
99961         just before the function definition *is* accurate.
99963         Eliminate one way canonicalize_filename_mode could exit.
99964         * lib/canonicalize.c (canonicalize_filename_mode):
99965         Use mreadlink_with_size, not xreadlink_with_size.
99967 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
99969         Detect porting problems to FreeBSD/arm, which has time_t wider than
99970         long int.  Original problem reported for GNU diff by Xin Li in
99971         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
99972         * modules/getdate (Depends-on): Add intprops, verify.
99973         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
99974         is an integer type no wider than long int.
99976 2007-06-18  Jim Meyering  <jim@meyering.net>
99978         New module: mreadlink-with-size.
99979         * MODULES.html.sh: Add mreadlink-with-size.
99980         * modules/mreadlink-with-size: New module
99981         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
99982         not xreadlink-with-size.
99983         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
99985 2007-06-16  Bruno Haible  <bruno@clisp.org>
99987         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
99988         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
99989         Reported by Gary V. Vaughan <gary@gnu.org>.
99991 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
99993         Revamp lchown so that it lives in unistd.h where it belongs.
99994         * lib/lchown.h: Remove.
99995         * lib/dirchownmod.c: Don't include lib/lchown.h.
99996         * lib/fchownat.c: Likewise.
99997         * lib/openat.c: Likewise.
99998         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
99999         does not follow symlinks.
100000         (EOPNOTSUPP): Define if not defined.
100001         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
100002         is defined to 0.
100003         (lchown): New decl.
100004         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
100005         Do not check for lchown decl.
100006         Set REPLACE_LCHOWN.
100007         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
100008         REPLACE_LCHOWN.
100009         * modules/chown: Make it clear it follows symlinks.
100010         * modules/lchown: Make it clear it doesn't follow symlinks.
100011         (Files): Remove lib/lchown.h
100012         (Depends-on): Add unistd.
100013         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
100014         (Include): Include <unistd.h>, not "lchown.h".
100015         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
100016         REPLACE_LCHOWN.
100018 2007-06-15  Jim Meyering  <jim@meyering.net>
100020         Change license (GPL to LGPL) of fsusage and dependents.
100021         * modules/fsusage (License): Change to LGPL.
100022         * modules/full-read (License): Likewise.
100023         * modules/full-write (License): Likewise.
100024         * modules/safe-read (License): Likewise.
100025         * modules/safe-write (License): Likewise.
100027 2007-06-14  Ben Pfaff  <blp@gnu.org>
100029         Missing part of allocsa -> malloca transition.
100030         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
100031         gl_MALLOCA.
100033 2007-06-12  Bruno Haible  <bruno@clisp.org>
100035         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
100036         to ia64, x86_64, i386.
100037         Reported by Eric Blake.
100039 2007-06-12  Bruno Haible  <bruno@clisp.org>
100041         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
100042         cross-compiling to x86_64.
100044 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
100046         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
100047         glitch reported by Ralf Wildenhues in
100048         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
100050         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
100051         Vin Shelton.
100053 2007-06-11  Bruno Haible  <bruno@clisp.org>
100055         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
100056         replacement string.
100057         Reported by Eric Blake.
100059 2007-06-10  Bruno Haible  <bruno@clisp.org>
100061         Prepare vasnprintf code for use with Unicode strings.
100062         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
100063         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
100064         TYPE_U32_STRING.
100065         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
100066         a_u32_string variants.
100067         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
100068         * lib/printf-args.c: Don't include config.h and the specification
100069         header if PRINTF_FETCHARGS is already defined.
100070         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
100071         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
100072         TYPE_U16_STRING, TYPE_U32_STRING.
100073         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
100074         u16_directive, u16_directives, u32_directive, u32_directives): New
100075         types.
100076         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
100077         New declarations.
100078         * lib/printf-parse.c: Don't include config.h and the specification
100079         header if PRINTF_PARSE is already defined. Eliminate the set of
100080         parameters for WIDE_CHAR_VERSION; the user of this file must provide
100081         them now. Include c-ctype.h.
100082         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
100083         directive and CHAR_T_ONLY_ASCII.
100084         * lib/vasnprintf.c: Don't include config.h and the specification header
100085         if VASNPRINTF is already defined.
100086         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
100087         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
100088         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
100089         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
100090         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
100091         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
100092         code accordingly.
100093         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
100094         pad_ourselves also in this case, with the 'c' and 's' directives, and
100095         with a different notion of "width".
100096         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
100098 2007-06-10  Bruno Haible  <bruno@clisp.org>
100100         * modules/unistr/u32-mbsnlen: New file.
100101         * lib/unistr/u32-mbsnlen.c: New file.
100103         * modules/unistr/u16-mbsnlen: New file.
100104         * lib/unistr/u16-mbsnlen.c: New file.
100106         * modules/unistr/u8-mbsnlen: New file.
100107         * lib/unistr/u8-mbsnlen.c: New file.
100109         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
100110         declarations.
100112 2007-06-10  Bruno Haible  <bruno@clisp.org>
100114         * lib/string_.h (mbsnlen): New declaration.
100115         * lib/mbsnlen.c: New file.
100116         * m4/mbsnlen.m4: New file.
100117         * modules/mbsnlen: New file.
100118         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
100119         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
100120         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
100122 2007-06-10  Bruno Haible  <bruno@clisp.org>
100124         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
100126 2007-06-10  Bruno Haible  <bruno@clisp.org>
100128         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
100129         * lib/mbuiter.h: Likewise.
100131 2007-06-10  Bruno Haible  <bruno@clisp.org>
100133         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
100134         declaration.
100136 2007-06-10  Karl Berry  <karl@gnu.org>
100138         * config/srclist.txt: remove gettext entries, Bruno prefers
100139         to update individually.
100141 2007-06-10  Bruno Haible  <bruno@clisp.org>
100143         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
100144         'maxlen'. Ensure only length + width bytes are allocated, not
100145         length + 1 + width.
100147 2007-06-09  Bruno Haible  <bruno@clisp.org>
100149         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
100150         (CHAR_T): Remove macro.
100151         (VASNPRINTF): Update.
100153 2007-06-09  Bruno Haible  <bruno@clisp.org>
100155         * MODULES.html.sh (Unicode string functions): Add the new modules.
100157         * modules/uniconv/u32-conv-to-enc: New file.
100158         * lib/uniconv/u32-conv-to-enc.c: New file.
100159         * modules/uniconv/u32-conv-to-enc-tests: New file.
100160         * tests/uniconv/test-u32-conv-to-enc.c: New file.
100162         * modules/uniconv/u16-conv-to-enc: New file.
100163         * lib/uniconv/u16-conv-to-enc.c: New file.
100164         * lib/uniconv/u-conv-to-enc.h: New file.
100165         * modules/uniconv/u16-conv-to-enc-tests: New file.
100166         * tests/uniconv/test-u16-conv-to-enc.c: New file.
100168         * modules/uniconv/u8-conv-to-enc: New file.
100169         * lib/uniconv/u8-conv-to-enc.c: New file.
100170         * modules/uniconv/u8-conv-to-enc-tests: New file.
100171         * tests/uniconv/test-u8-conv-to-enc.c: New file.
100173         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
100174         u32_conv_to_encoding): New declarations.
100176 2007-06-09  Bruno Haible  <bruno@clisp.org>
100178         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
100180 2007-06-09  Bruno Haible  <bruno@clisp.org>
100182         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
100183         * modules/malloca: Renamed from modules/allocsa, updated.
100184         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
100185         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
100186         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
100187         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
100188         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
100189         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
100190         * modules/xmalloca: Renamed from modules/xallocsa, updated.
100191         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
100192         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
100193         * modules/c-strcasestr (Depends-on): Update.
100194         * lib/c-strcasestr.c: Update.
100195         * modules/c-strstr (Depends-on): Update.
100196         * lib/c-strstr.c: Update.
100197         * modules/canonicalize-lgpl (Depends-on): Update.
100198         * lib/canonicalize-lgpl.c: Update.
100199         * modules/clean-temp (Depends-on): Update.
100200         * lib/clean-temp.c: Update.
100201         * modules/csharpcomp (Depends-on): Update.
100202         * lib/csharpcomp.c: Update.
100203         * modules/csharpexec (Depends-on): Update.
100204         * lib/csharpexec.c: Update.
100205         * modules/javacomp (Depends-on): Update.
100206         * lib/javacomp.c: Update.
100207         * modules/javaexec (Depends-on): Update.
100208         * lib/javaexec.c: Update.
100209         * modules/mbscasestr (Depends-on): Update.
100210         * lib/mbscasestr.c: Update.
100211         * modules/mbsstr (Depends-on): Update.
100212         * lib/mbsstr.c: Update.
100213         * modules/setenv (Depends-on): Update.
100214         * lib/setenv.c: Update.
100215         * modules/strcasestr (Depends-on): Update.
100216         * lib/strcasestr.c: Update.
100217         * modules/striconveha (Depends-on): Update.
100218         * lib/striconveha.c: Update.
100219         * modules/relocatable-prog-wrapper (Files): Update.
100220         * lib/relocwrapper.c: Update.
100221         * build-aux/install-reloc: Update.
100222         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
100224 2007-06-08  Bruno Haible  <bruno@clisp.org>
100226         Port to uClibc.
100227         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
100228         * lib/fpurge.c (fpurge): Likewise.
100229         * lib/freading.c (freading): Likewise.
100230         * lib/fseeko.c (rpl_fseeko): Likewise.
100231         * lib/fseterr.c (fseterr): Likewise.
100232         * lib/fwriting.c (fwriting): Likewise.
100233         * tests/test-fflush.c (main): Avoid a failure on uClibc.
100235 2007-06-08  Bruno Haible  <bruno@clisp.org>
100237         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
100238         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
100239         * modules/gettext (Files): Add m4/intlmacosx.m4.
100241 2007-06-07  Bruno Haible  <bruno@clisp.org>
100243         * modules/localename-tests: New file.
100244         * tests/test-localename.c: New file.
100246         New module 'localename'.
100247         * lib/localename.h: New file.
100248         * lib/localename.c: New file, from GNU gettext.
100249         * m4/localename.m4: New file.
100250         * modules/localename: New file.
100252 2007-06-07  Bruno Haible  <bruno@clisp.org>
100254         Work around the lack of <wchar.h> on some builds of uClibc.
100255         * doc/headers/wchar.texi: Update.
100256         * lib/wchar_.h: Include <wchar.h> only if it exists.
100257         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
100258         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
100259         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
100260         doesn't exist.
100261         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
100262         * modules/mbfile (Depends-on): Add wchar.
100263         * modules/mbiter (Depends-on): Likewise.
100264         * modules/mbuiter (Depends-on): Likewise.
100265         Reported by Simon Josefsson.
100267 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
100269         Work around problem reported by Steven M. Schweda in
100270         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
100271         Tru64 5.1B with the Compaq compiler environment installed declares
100272         an 'isblank' function but does not define it in the C library.
100273         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
100274         * lib/regex_internal.h (isblank): Likewise.
100275         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
100276         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
100278 2007-06-05  Bruno Haible  <bruno@clisp.org>
100280         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
100281         ia64.
100282         * modules/printf-safe: New file.
100283         * modules/fprintf-posix (Depends-on): Add printf-safe.
100284         * modules/printf-posix (Depends-on): Likewise.
100285         * modules/snprintf-posix (Depends-on): Likewise.
100286         * modules/sprintf-posix (Depends-on): Likewise.
100287         * modules/vasnprintf-posix (Depends-on): Likewise.
100288         * modules/vasprintf-posix (Depends-on): Likewise.
100289         * modules/vfprintf-posix (Depends-on): Likewise.
100290         * modules/vprintf-posix (Depends-on): Likewise.
100291         * modules/vsnprintf-posix (Depends-on): Likewise.
100292         * modules/vsprintf-posix (Depends-on): Likewise.
100293         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
100294         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
100295         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
100296         "no" on i386, x86_64, ia64.
100297         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
100298         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
100299         on i386, x86_64, ia64.
100300         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
100301         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
100302         on i386, x86_64, ia64.
100303         * tests/test-vasnprintf-posix.c: Include float.h.
100304         (LDBL80_WORDS): New macro.
100305         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
100306         on i386, x86_64, ia64.
100307         * tests/test-vasprintf-posix.c: Include float.h.
100308         (LDBL80_WORDS): New macro.
100309         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
100310         on i386, x86_64, ia64.
100311         * tests/test-snprintf-posix.c: Include float.h.
100312         * tests/test-sprintf-posix.c: Likewise.
100313         * tests/test-vsnprintf-posix.c: Likewise.
100314         * tests/test-vsprintf-posix.c: Likewise.
100316 2007-06-05  Bruno Haible  <bruno@clisp.org>
100318         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
100319         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
100320         non-IEEE numbers on i386, x86_64, ia64.
100321         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
100322         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
100323         * tests/test-isnanl.h: Include float.h.
100324         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
100326 2007-06-05  Bruno Haible  <bruno@clisp.org>
100328         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
100329         also the %a / %A. Handle the %a / %A code before this extra handling.
100331 2007-06-05  Bruno Haible  <bruno@clisp.org>
100333         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
100334         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
100336 2007-06-05  Bruno Haible  <bruno@clisp.org>
100338         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
100339         typo in variable name.
100341 2007-06-05  Eric Blake  <ebb9@byu.net>
100343         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
100344         Reported by Simon Josefsson.
100346 2007-06-04  Bruno Haible  <bruno@clisp.org>
100348         Avoid test failures on some PowerPC platforms.
100349         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
100350         Define differently for PowerPC.
100351         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
100352         Reported by Gary V. Vaughan <gary@gnu.org>.
100354 2007-06-02  Bruno Haible  <bruno@clisp.org>
100356         Fix test-stdint failure on FreeBSD/ia64.
100357         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
100358         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
100359         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
100360         * doc/headers/stdint.texi: Update.
100362 2007-06-01  Bruno Haible  <bruno@clisp.org>
100364         * tests/test-binary-io.c (main): Pass a third argument to open().
100365         Reported by Gary V. Vaughan <gary@gnu.org>.
100367 2007-06-01  Bruno Haible  <bruno@clisp.org>
100369         * doc/functions/frexpl.texi: Update for mingw.
100371 2007-06-01  Bruno Haible  <bruno@clisp.org>
100373         * tests/test-lseek.c (main): Disable test of errno for invalid third
100374         argument.
100375         * doc/functions/lseek.texi: Update.
100376         Reported by Gary V. Vaughan <gary@gnu.org>.
100378 2007-05-28  Bruno Haible  <bruno@clisp.org>
100380         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
100382 2007-05-31  Eric Blake  <ebb9@byu.net>
100384         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
100385         cross compiling.
100387 2007-05-30  Eric Blake  <ebb9@byu.net>
100388         and Bruno Haible  <bruno@clisp.org>
100390         Work around mingw test failures exposed by m4-1.4.9b.
100391         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
100392         * tests/test-unistd.c: Disable uid_t and git_t tests for the
100393         moment.
100395 2007-05-30  Bruno Haible  <bruno@clisp.org>
100397         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
100398         assuming that they are closed. Needed on HP-UX 11.
100400 2007-05-29  Bruno Haible  <bruno@clisp.org>
100402         Fix a problem with #include_next.
100403         * lib/dirent_.h: Split the double-inclusion guard.
100404         * lib/fcntl_.h: Likewise.
100405         * lib/float_.h: Likewise.
100406         * lib/iconv_.h: Likewise.
100407         * lib/inttypes_.h: Likewise.
100408         * lib/locale_.h: Likewise.
100409         * lib/math_.h: Likewise.
100410         * lib/netinet_in_.h: Likewise.
100411         * lib/search_.h: Likewise.
100412         * lib/signal_.h: Likewise.
100413         * lib/stdint_.h: Likewise.
100414         * lib/stdio_.h: Likewise.
100415         * lib/stdlib_.h: Likewise.
100416         * lib/string_.h: Likewise.
100417         * lib/sys_select_.h: Likewise.
100418         * lib/sys_socket_.h: Likewise.
100419         * lib/sys_stat_.h: Likewise.
100420         * lib/sys_time_.h: Likewise.
100421         * lib/sysexits_.h: Likewise.
100422         * lib/time_.h: Likewise.
100423         * lib/unistd_.h: Likewise.
100424         * lib/wchar_.h: Likewise.
100425         * lib/wctype_.h: Likewise.
100427 2007-05-29  Bruno Haible  <bruno@clisp.org>
100429         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
100430         for the moment.
100432 2007-05-29  Bruno Haible  <bruno@clisp.org>
100434         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
100435         invocation.
100436         Reported by Eric Blake.
100438 2007-05-29  Bruno Haible  <bruno@clisp.org>
100440         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
100441         compiling case.
100443 2007-05-29  Eric Blake  <ebb9@byu.net>
100444             Bruno Haible  <bruno@clisp.org>
100446         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
100447         cross compiles.
100449 2007-05-28  Eric Blake  <ebb9@byu.net>
100451         * modules/closein-tests (test_closein_LDADD): Support test on
100452         cygwin with libtool.
100454 2007-05-28  Bruno Haible  <bruno@clisp.org>
100456         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
100457         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
100458         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
100459         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
100460         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
100461         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
100462         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
100463         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
100464         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
100466 2007-05-28  Eric Blake  <ebb9@byu.net>
100468         Unconditionally include <config.h> in unit tests.
100469         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
100470         * tests/test-allocsa.c, tests/test-arcfour.c,
100471         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
100472         tests/test-array_list.c, tests/test-array_oset.c,
100473         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
100474         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
100475         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
100476         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
100477         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
100478         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
100479         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
100480         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
100481         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
100482         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
100483         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
100484         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
100485         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
100486         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
100487         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
100488         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
100489         test-md5.c, test-memmem.c, test-printf-posix.c,
100490         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
100491         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
100492         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
100493         test-strcasestr.c, test-striconv.c, test-striconveh.c,
100494         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
100495         test-vasnprintf-posix2.c, test-vasnprintf.c,
100496         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
100497         test-vfprintf-posix.c, test-vprintf-posix.c,
100498         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
100499         test-xvasprintf.c: Likewise.
100501 2007-05-28  Bruno Haible  <bruno@clisp.org>
100503         * gnulib-tool (func_import): Remember the --with-tests command-line
100504         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
100505         Reported by Eric Blake.
100507 2007-05-28  Bruno Haible  <bruno@clisp.org>
100509         * modules/ftell-tests: New file.
100510         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
100511         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
100513         * lib/ftell.c: New file.
100514         * modules/ftell: New file.
100515         * m4/ftell.m4: New file.
100516         * doc/functions/ftell.texi: Update.
100517         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
100518         REPLACE_FTELL.
100519         * lib/stdio_.h (rpl_ftell): New declaration.
100520         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
100521         REPLACE_FTELL.
100523 2007-05-28  Eric Blake  <ebb9@byu.net>
100525         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
100527 2007-05-28  Bruno Haible  <bruno@clisp.org>
100529         * modules/fseek-tests: New file.
100530         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
100531         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
100533         * lib/fseek.c: New file.
100534         * modules/fseek: New file.
100535         * m4/fseek.m4: New file.
100536         * doc/functions/fseek.texi: Update.
100537         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
100538         REPLACE_FSEEK.
100539         * lib/stdio_.h (rpl_fseek): New declaration.
100540         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
100541         REPLACE_FSEEK.
100543 2007-05-28  Bruno Haible  <bruno@clisp.org>
100545         * lib/stdio_.h (fflush): More comments.
100547 2007-05-28  Bruno Haible  <bruno@clisp.org>
100549         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
100550         runtime test.
100552 2007-05-28  Eric Blake  <ebb9@byu.net>
100554         Improve lseek module.
100555         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
100556         * lib/unistd_.h (lseek): Scale back link warning message.
100557         * tests/test-lseek.c: Beef up test.
100558         * tests/test-lseek.sh: Exercise more facets of lseek.
100559         Reported by Bruno Haible.
100561 2007-05-28  Bruno Haible  <bruno@clisp.org>
100563         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
100564         to define.
100566 2007-05-27  Bruno Haible  <bruno@clisp.org>
100568         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
100570 2007-05-27  Bruno Haible  <bruno@clisp.org>
100572         * modules/openmp: New file.
100573         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
100574         Noah Misch.
100576 2007-05-26  Bruno Haible  <bruno@clisp.org>
100578         * modules/chdir-long (Depends-on): Add fchdir.
100579         * modules/chdir-safer (Depends-on): Likewise.
100580         * modules/fts (Depends-on): Likewise.
100581         * modules/fts-lgpl (Depends-on): Likewise.
100582         * modules/openat (Depends-on): Likewise.
100583         * modules/savewd (Depends-on): Likewise.
100585 2007-05-24  Eric Blake  <ebb9@byu.net>
100587         Fix lseek on mingw.
100588         * modules/lseek: New module.
100589         * m4/lseek.m4: New file.
100590         * lib/lseek.c: New file.
100591         * modules/lseek-tests: New file.
100592         * tests/test-lseek.c: New file.
100593         * tests/test-lseek.sh: New file.
100594         * MODULES.html.sh: Document lseek module.
100595         * modules/fflush (Depends-on): Add lseek, fseeko.
100596         * modules/fseeko (Depends-on): Likewise.
100597         * modules/ftello (Depends-on): Likewise.
100598         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
100599         broken.
100600         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
100601         broken.
100602         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
100603         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
100604         * lib/ftello.c (rpl_ftello): Likewise.
100605         * tests/test-fseeko.c (main): Test this.
100606         * tests/test-fseeko.sh: Likewise.
100607         * tests/test-ftello.c (main): Likewise.
100608         * tests/test-ftello.sh: Likewise.
100609         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
100610         implies replacing fseek.
100611         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
100612         HAVE_FTELLO.
100613         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
100614         * modules/unistd (Makefile.am): Likewise.
100615         * lib/unistd_.h (lseek): Declare a replacement.
100616         * doc/functions/lseek.texi (lseek): Document this fix.
100617         * doc/functions/fseek.texi (fseek): Likewise.
100618         * doc/functions/ftell.texi (ftell): Likewise.
100620 2007-05-24  Bruno Haible  <bruno@clisp.org>
100622         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
100623         in the printed representation of a NaN.
100624         * tests/test-vasprintf-posix.c (test_function): Likewise.
100625         * tests/test-snprintf-posix.h (test_function): Likewise.
100626         * tests/test-sprintf-posix.h (test_function): Likewise.
100627         Reported by Eric Blake.
100629 2007-05-23  Eric Blake  <ebb9@byu.net>
100631         Fix fseeko/ftello on cygwin 1.5.24.
100632         * doc/functions/fseeko.texi (fseeko): Document the fix.
100633         * doc/functions/ftello.texi (ftello): Document the fix.
100634         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
100635         * doc/functions/stdout.text (stdout): New file.
100636         * doc/functions/stderr.text (stderr): New file.
100637         * doc/gnulib.texi (Function Substitutes): Use new files.
100638         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
100639         prior to 1.7.0.
100640         * tests/test-ftello.c (main): Likewise for ftello.
100641         * tests/test-fseeko.sh: New file.
100642         * tests/test-ftello.sh: New file.
100643         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
100644         with seekable stdin.
100645         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
100646         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
100647         (gl_REPLACE_FSEEKO): New macro.
100648         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
100649         * modules/fseeko (Files): Distribute fseeko.c.
100650         * modules/ftello (Files): Distribute ftello.c.
100651         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
100652         mode.
100653         * lib/ftello.c (rpl_ftello): New file.
100654         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
100655         fseeko, ftello.
100656         (gl_STDIN_LARGE_OFFSET): New macro.
100657         * modules/stdio (Makefile.am): Perform the replacement.
100658         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
100660 2007-05-23  Bruno Haible  <bruno@clisp.org>
100662         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
100663         GNULIB_POSIXCHECK is defined.
100665 2007-05-21  Bruno Haible  <bruno@clisp.org>
100667         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
100668         Check also the output for NaN arguments. When cross-compiling, guess
100669         no on IRIX.
100670         * lib/vasnprintf.c: Update comments.
100671         * tests/test-vasnprintf-posix.c (strisnan): New function.
100672         (test_function): Use it.
100673         * tests/test-vasprintf-posix.c (strisnan): New function.
100674         (test_function): Use it.
100675         * tests/test-snprintf-posix.h (strisnan): New function.
100676         (test_function): Use it.
100677         * tests/test-sprintf-posix.h (strisnan): New function.
100678         (test_function): Use it.
100679         Reported by Eric Blake.
100681 2007-05-20  Bruno Haible  <bruno@clisp.org>
100683         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
100684         numbers that fails on BeOS.
100685         * doc/functions/frexpl.texi: Update.
100687 2007-05-20  Jim Meyering  <jim@meyering.net>
100689         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
100690         forced upon us by glibc-2.6.
100692 2007-05-20  Bruno Haible  <bruno@clisp.org>
100694         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
100695         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
100696         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
100697         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
100698         NEED_PRINTF_INFINITE.
100699         (is_infinitel): New function.
100700         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
100701         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
100702         gl_PREREQ_VASNPRINTF_INFINITE.
100703         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
100704         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
100705         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
100706         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
100707         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
100708         gl_PREREQ_VASNPRINTF_INFINITE.
100709         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
100710         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100711         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100712         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100713         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100714         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100715         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100716         * doc/functions/fprintf.texi: Update.
100717         * doc/functions/printf.texi: Update.
100718         * doc/functions/snprintf.texi: Update.
100719         * doc/functions/sprintf.texi: Update.
100720         * doc/functions/vfprintf.texi: Update.
100721         * doc/functions/vprintf.texi: Update.
100722         * doc/functions/vsnprintf.texi: Update.
100723         * doc/functions/vsprintf.texi: Update.
100725 2007-05-20  Bruno Haible  <bruno@clisp.org>
100727         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
100728         was not found in libc.
100729         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
100731 2007-05-20  Bruno Haible  <bruno@clisp.org>
100733         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
100734         printed as "-nan" instead of "nan".
100735         * tests/test-vasprintf-posix.c (test_function): Likewise.
100736         * tests/test-snprintf-posix.h (test_function): Likewise.
100737         * tests/test-sprintf-posix.h (test_function): Likewise.
100738         Needed for HP-UX 11.
100740 2007-05-20  Jim Meyering  <jim@meyering.net>
100742         Fix buggy test for the fchownat-deref bug.
100743         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
100744         symlink required for the run-test.  Without it, this test would
100745         always declare that fchownat doesn't work, and client code would
100746         unnecessarily use the replacement function with fixed libc.
100747         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
100748         Reported by Greg Schafer.
100750 2007-05-19  Bruno Haible  <bruno@clisp.org>
100752         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
100753         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
100754         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
100755         Needed for IRIX 6.5 and Solaris 2.5.1.
100757 2007-05-19  Bruno Haible  <bruno@clisp.org>
100759         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
100760         (test_function): Skip tests involving -0.0 on platforms where
100761         -0.0 = 0.0.
100762         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
100763         (test_function): Skip tests involving -0.0 on platforms where
100764         -0.0 = 0.0.
100765         * tests/test-snprintf-posix.h (have_minus_zero): New function.
100766         (test_function): Skip tests involving -0.0 on platforms where
100767         -0.0 = 0.0.
100768         * tests/test-sprintf-posix.h (have_minus_zero): New function.
100769         (test_function): Skip tests involving -0.0 on platforms where
100770         -0.0 = 0.0.
100771         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
100772         tests.
100773         * tests/test-printf-posix.h (test_function): Likewise.
100774         * tests/test-printf-posix.output: Remove all -0.0 related results.
100775         Needed for IRIX 6.5.
100777 2007-05-19  Bruno Haible  <bruno@clisp.org>
100779         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
100780         printed as "nan0x7fffffff" instead of "nan".
100781         * tests/test-vasprintf-posix.c (test_function): Likewise.
100782         * tests/test-snprintf-posix.h (test_function): Likewise.
100783         * tests/test-sprintf-posix.h (test_function): Likewise.
100784         * tests/test-fprintf-posix.h (NaN): Remove macro.
100785         (test_function): Remove all NaN related tests.
100786         * tests/test-printf-posix.h (NaN): Remove macro.
100787         (test_function): Remove all NaN related tests.
100788         * tests/test-printf-posix.output: Remove all NaN related results.
100789         Needed for IRIX 6.5.
100791 2007-05-19  Bruno Haible  <bruno@clisp.org>
100793         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
100794         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
100796 2007-05-19  Bruno Haible  <bruno@clisp.org>
100798         * lib/float_.h: New file.
100799         * m4/float_h.m4: New file.
100800         * modules/float: New file.
100801         * modules/isnanl (Dependencies): Add float.
100802         * modules/isnanl-nolibm (Dependencies): Likewise.
100803         * modules/mathl (Dependencies): Likewise.
100804         * modules/printf-frexpl (Dependencies): Likewise.
100805         * modules/signbit (Dependencies): Likewise.
100806         * modules/vasnprintf (Dependencies): Likewise.
100807         * doc/headers/float.texi: Update.
100809 2007-05-19  Jim Meyering  <jim@meyering.net>
100811         * lib/utimens.c (gl_futimens): Rename from futimens,
100812         now that glibc-2.6 declares futimens.
100813         * lib/utimens.h: Likewise.
100815 2007-05-19  Bruno Haible  <bruno@clisp.org>
100817         Avoid test failures on mingw.
100818         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
100819         * tests/test-printf-posix.sh: Likewise.
100820         * tests/test-vfprintf-posix.sh: Likewise.
100821         * tests/test-vprintf-posix.sh: Likewise.
100823 2007-05-19  Bruno Haible  <bruno@clisp.org>
100825         Fix *printf result for NaN, Inf, -0.0 on mingw.
100826         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
100827         * lib/vasnprintf.c: Include math.h and isnan.h.
100828         (is_infinite_or_zero): New function.
100829         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
100830         values in the %f, %F, %e, %E, %g, %G directives.
100831         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
100832         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
100833         gl_PRINTF_INFINITE and test its result. Invoke
100834         gl_PREREQ_VASNPRINTF_INFINITE.
100835         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
100836         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100837         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100838         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100839         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100840         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100841         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100842         * doc/functions/fprintf.texi: Update.
100843         * doc/functions/printf.texi: Update.
100844         * doc/functions/snprintf.texi: Update.
100845         * doc/functions/sprintf.texi: Update.
100846         * doc/functions/vfprintf.texi: Update.
100847         * doc/functions/vprintf.texi: Update.
100848         * doc/functions/vsnprintf.texi: Update.
100849         * doc/functions/vsprintf.texi: Update.
100851 2007-05-19  Bruno Haible  <bruno@clisp.org>
100853         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
100854         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
100855         Instead of multiplying with 10^k, set extra_zeroes to k.
100856         (scale10_round_long_double): Remove function.
100858 2007-05-18  Bruno Haible  <bruno@clisp.org>
100860         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
100861         introduced on 2007-05-06.
100863 2007-05-18  Bruno Haible  <bruno@clisp.org>
100865         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
100866         %g directives.
100867         * tests/test-vasprintf-posix.c (test_function): Likewise.
100868         * tests/test-snprintf-posix.h (test_function): Likewise.
100869         * tests/test-sprintf-posix.h (test_function): Likewise.
100871 2007-05-18  Bruno Haible  <bruno@clisp.org>
100873         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
100874         (strmatch): New function.
100875         (test_function): Test the %f directive on numbers of various exponents.
100876         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
100877         (strmatch): New function.
100878         (test_function): Test the %f directive on numbers of various exponents.
100879         * tests/test-snprintf-posix.h (strmatch): New function.
100880         (test_function): Test the %f directive on numbers of various exponents.
100881         * tests/test-sprintf-posix.h (strmatch): New function.
100882         (test_function): Test the %f directive on numbers of various exponents.
100883         * tests/test-snprintf-posix.c (SIZEOF): New macro.
100884         * tests/test-sprintf-posix.c (SIZEOF): New macro.
100885         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
100886         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
100888 2007-05-18  Bruno Haible  <bruno@clisp.org>
100890         Add support for 'long double' number output.
100891         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
100892         * lib/vasnprintf.c: Include math.h and float+.h.
100893         (mp_limb_t): New type.
100894         (GMP_LIMB_BITS): New macro.
100895         (mp_twolimb_t): New type.
100896         (GMP_TWOLIMB_BITS): New macro.
100897         (mpn_t): New type.
100898         (multiply, divide, convert_to_decimal, decode_long_double,
100899         scale10_round_long_double, scale10_round_decimal_long_double,
100900         floorlog10l): New functions.
100901         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
100902         for the %f, %F, %e, %E, %g, %G directives.
100903         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
100904         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
100905         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
100906         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
100907         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
100908         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100909         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100910         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100911         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100912         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100913         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100914         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
100915         * modules/snprintf-posix (Depends-on): Likewise.
100916         * modules/sprintf-posix (Depends-on): Likewise.
100917         * modules/vasnprintf-posix (Depends-on): Likewise.
100918         * modules/vasprintf-posix (Depends-on): Likewise.
100919         * modules/vfprintf-posix (Depends-on): Likewise.
100920         * modules/vsnprintf-posix (Depends-on): Likewise.
100921         * modules/vsprintf-posix (Depends-on): Likewise.
100922         * modules/vasnprintf (Files): Add lib/float+.h.
100923         * doc/functions/fprintf.texi: Update.
100924         * doc/functions/printf.texi: Update.
100925         * doc/functions/snprintf.texi: Update.
100926         * doc/functions/sprintf.texi: Update.
100927         * doc/functions/vfprintf.texi: Update.
100928         * doc/functions/vprintf.texi: Update.
100929         * doc/functions/vsnprintf.texi: Update.
100930         * doc/functions/vsprintf.texi: Update.
100932 2007-05-18  Bruno Haible  <bruno@clisp.org>
100934         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
100936 2007-05-18  Bruno Haible  <bruno@clisp.org>
100938         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
100939         for printing 64-bit integers. Needed for mingw.
100941 2007-05-18  Bruno Haible  <bruno@clisp.org>
100943         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
100944         gl_FUNC_FREXPL_WORKS.
100945         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
100947 2007-05-18  Bruno Haible  <bruno@clisp.org>
100949         * modules/frexpl-nolibm-tests: New file.
100951         * modules/frexpl-nolibm: New file.
100952         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
100954 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
100956         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
100957         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
100958         GCC 4.2, which otherwise issues a lot of warnings.
100959         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
100960         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
100961         Likewise.
100962         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
100963         * modules/iconv_open (iconv.h): Likewise.
100964         * modules/locale (locale.h): Likewise.
100965         * modules/netinet_in (netinet/in.h): Likewise.
100966         * modules/sys_select (sys_select.h): Likewise.
100967         * modules/sys_socket (sys/socket.h): Likewise.
100968         * modules/sys_stat (sys/stat.h): Likewise.
100969         * modules/sysexits (sysexits.h): Likewise.
100970         * modules/unistd (unistd.h): Likewise.
100972 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100974         * modules/closein-tests (Makefile.am): Distribute
100975         `test-closein.sh'.
100977 2007-05-17  Bruno Haible  <bruno@clisp.org>
100979         * tests/test-printf-posix.output: Renamed from
100980         tests/test-fprintf-posix.out.
100981         * modules/fprintf-posix-tests: Update.
100982         * modules/printf-posix-tests: Update.
100983         * modules/vfprintf-posix-tests: Update.
100984         * modules/vprintf-posix-tests: Update.
100985         * tests/test-fprintf-posix.sh: Update.
100986         * tests/test-printf-posix.sh: Update.
100987         * tests/test-vfprintf-posix.sh: Update.
100988         * tests/test-vprintf-posix.sh: Update.
100989         Reported by Ralf Wildenhues.
100991 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
100993         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
100994         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
100995         GCC 4.2, which otherwise issues a lot of warnings.
100996         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
100997         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
100998         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
100999         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
101000         it should no longer be needed.
101001         * lib/string_.h: Likewise.
101002         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
101003         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
101004         * modules/inttypes (inttypes.h): Likewise.
101005         * modules/math (math.h): Likewise.
101006         * modules/search (search.h): Likewise.
101007         * modules/signal (signal.h): Likewise.
101008         * modules/stdint (stdint.h): Likewise.
101009         * modules/stdio (stdio.h): Likewise.
101010         * modules/stdlib (stdlib.h): Likewise.
101011         * modules/string (string.h): Likewise.
101012         * modules/sys_time (sys/time.h): Likewise.
101013         * modules/time (time.h): Likewise.
101014         * modules/wchar (wchar.h): Likewise.
101015         * modules/wctype (wtype.h): Likewise.
101017 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
101019         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
101021 2007-05-13  Bruno Haible  <bruno@clisp.org>
101023         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
101024         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
101025         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
101026         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
101027         (gl_PREREQ_STRTOK_R): Don't require it here.
101029 2007-05-13  Bruno Haible  <bruno@clisp.org>
101031         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
101032         when used in C++ mode.
101034 2007-05-12  Bruno Haible  <bruno@clisp.org>
101036         * lib/linebuffer.h: Tweak doc.
101037         * lib/linebuffer.c: Likewise.
101039 2007-05-12  James Youngman  <jay@gnu.org>
101041         * lib/linebuffer.c (readlinebuffer_delim): New function,
101042         like readlinebuffer, but use a caller-specified delimiter.
101043         (readlinebuffer): Just call readlinebuffer_delim with '\n'
101044         as the delimiter.
101045         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
101047 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
101049         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
101050         * modules/openat (Files): Remove openat-die.c.
101051         (Depends-on): Add openat-die.
101052         * modules/openat-die: New module.
101054 2007-05-06  Bruno Haible  <bruno@clisp.org>
101056         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
101057         Update with info about Cygwin.
101058         * doc/functions/fprintf.texi: Update.
101059         * doc/functions/printf.texi: Update.
101060         * doc/functions/snprintf.texi: Update.
101061         * doc/functions/sprintf.texi: Update.
101062         * doc/functions/vfprintf.texi: Update.
101063         * doc/functions/vprintf.texi: Update.
101064         * doc/functions/vsnprintf.texi: Update.
101065         * doc/functions/vsprintf.texi: Update.
101066         Reported by Eric Blake.
101068 2007-05-06  Bruno Haible  <bruno@clisp.org>
101070         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
101071         padding ourselves for the floating-point directives.
101072         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
101073         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
101074         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
101075         gl_PRINTF_FLAG_ZERO and test its result. Invoke
101076         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
101077         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
101078         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
101079         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
101080         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
101081         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
101082         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
101083         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
101084         * tests/test-snprintf-posix.h (test_function): Also check the width
101085         and some flags in the %f directive.
101086         * tests/test-sprintf-posix.h (test_function): Likewise.
101087         * tests/test-vasnprintf-posix.c (test_function): Likewise.
101088         * tests/test-vasprintf-posix.c (test_function): Likewise.
101089         * doc/functions/fprintf.texi: Update.
101090         * doc/functions/printf.texi: Update.
101091         * doc/functions/snprintf.texi: Update.
101092         * doc/functions/sprintf.texi: Update.
101093         * doc/functions/vfprintf.texi: Update.
101094         * doc/functions/vprintf.texi: Update.
101095         * doc/functions/vsnprintf.texi: Update.
101096         * doc/functions/vsprintf.texi: Update.
101098 2007-05-06  Bruno Haible  <bruno@clisp.org>
101100         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
101101         pass the ' flag character to sprintf or snprintf.
101102         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
101103         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
101104         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
101105         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
101106         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
101107         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
101108         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
101109         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
101110         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
101111         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
101112         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
101113         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
101114         * tests/test-snprintf-posix.h (test_function): Also check the grouping
101115         flag.
101116         * tests/test-sprintf-posix.h (test_function): Likewise.
101117         * tests/test-vasnprintf-posix.c (test_function): Likewise.
101118         * tests/test-vasprintf-posix.c (test_function): Likewise.
101119         * doc/functions/fprintf.texi: Update.
101120         * doc/functions/printf.texi: Update.
101121         * doc/functions/snprintf.texi: Update.
101122         * doc/functions/sprintf.texi: Update.
101123         * doc/functions/vfprintf.texi: Update.
101124         * doc/functions/vprintf.texi: Update.
101125         * doc/functions/vsnprintf.texi: Update.
101126         * doc/functions/vsprintf.texi: Update.
101128 2007-05-01  Bruno Haible  <bruno@clisp.org>
101130         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
101132 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
101134         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
101135         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
101137 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
101139         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
101140         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
101141         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
101143 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
101145         * lib/argp-help.c (struct hol_entry): New member `ord'.
101146         (HOL_ENTRY_PTRCMP): Use ord for comparison
101147         (hol_sort): Initialize ord.
101149 2007-05-01  Bruno Haible  <bruno@clisp.org>
101151         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
101152         Reported by Eric Blake.
101153         * doc/gnulib.texi (Function Substitutes): Update.
101155 2007-05-01  Bruno Haible  <bruno@clisp.org>
101157         * doc/functions.texi: Remove file, now redundant through
101158         doc/functions/*.texi.
101160 2007-05-01  Bruno Haible  <bruno@clisp.org>
101162         * modules/argp (Depends-on): Add sleep.
101164 2007-05-01  Bruno Haible  <bruno@clisp.org>
101166         * modules/sleep-tests: New file.
101167         * tests/test-sleep.c: New file.
101169         * modules/sleep: New file.
101170         * lib/sleep.c: New file.
101171         * m4/sleep.m4: New file.
101172         * lib/unistd_.h (sleep): New declaration.
101173         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
101174         HAVE_SLEEP.
101175         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
101176         * doc/functions/sleep.texi: Document the sleep module.
101178 2007-05-01  Bruno Haible  <bruno@clisp.org>
101180         * lib/sigprocmask.h: Remove file.
101181         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
101182         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
101183         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
101184         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
101185         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
101186         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
101187         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
101188         HAVE_SIGSET_T as a shell variable.
101189         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
101190         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
101191         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
101192         (Depends-on): Add signal. Remove verify.
101193         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
101194         (Include): Mention <signal.h> instead of sigprocmask.h.
101195         * NEWS: Mention the change.
101196         * lib/fatal-signal.c: Don't include sigprocmask.h.
101198 2007-05-01  Bruno Haible  <bruno@clisp.org>
101200         * modules/signal: New file.
101201         * lib/signal_.h: New file.
101202         * m4/signal_h.m4: New file.
101204 2007-05-01  Bruno Haible  <bruno@clisp.org>
101206         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
101207         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
101208         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
101209         HAVE_WCTYPE_CTMP_BUG into wctype.h.
101211 2007-05-01  Bruno Haible  <bruno@clisp.org>
101213         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
101214         configure time.
101215         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
101216         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
101217         * modules/sys_stat (Makefile.am): Substitute their values into
101218         sys/stat.h.
101220 2007-05-01  Bruno Haible  <bruno@clisp.org>
101222         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
101223         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
101224         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
101226 2007-05-01  Bruno Haible  <bruno@clisp.org>
101228         * doc/header/assert.texi: Undo last change: don't mention the gnulib
101229         'assert' module here.
101231 2007-05-01  Bruno Haible  <bruno@clisp.org>
101233         * doc/functions/*.texi: New files.
101234         * doc/functions/google-ranking.txt: New file.
101235         * doc/gnulib.texi (Function Substitutes): New chapter.
101236         (ctime, inet_ntoa): Remove sections.
101237         * doc/ctime.texi: Remove file.
101238         * doc/inet_ntoa.texi: Remove file.
101239         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
101240         dependencies.
101241         (%.info): New rule, specifying a --reference-limit.
101243 2007-05-01  Bruno Haible  <bruno@clisp.org>
101245         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
101247 2007-05-01  Bruno Haible  <bruno@clisp.org>
101249         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
101250         the portability of 'mkdir' to mingw systems.
101252 2007-05-01  Bruno Haible  <bruno@clisp.org>
101254         * doc/headers/google-ranking.txt: New file.
101256 2007-04-30  Eric Blake  <ebb9@byu.net>
101258         Prefer fseeko to fseek.
101259         * modules/getpass (Depends-on): Add fseeko.
101260         * lib/getpass.c (getpass): Use fseeko, not fseek.
101262 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
101264         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
101265         assumes the sorting is stable, while most qsort implementations
101266         are not.  Use argument addresses to ensure they never compare as
101267         equal.
101269         * tests/test-argp-2.sh (usage-indent test): Fix output
101270         (func_compare): Restore diff options
101271         * tests/test-argp.c: Restore #include "progname.h"
101273 2007-04-29  Bruno Haible  <bruno@clisp.org>
101275         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
101276         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
101277         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
101278         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
101279         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
101280         (configure.ac): Define CHECK_SNPRINTF_POSIX.
101281         (TESTS, check_PROGRAMS): Add test-snprintf.
101282         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
101283         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
101284         (TESTS, check_PROGRAMS): Add test-vsnprintf.
101285         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
101286         assertions that fail on HP-UX, OSF/1, or IRIX.
101287         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
101289 2007-04-29  Bruno Haible  <bruno@clisp.org>
101291         * MODULES.html.sh (posix_functions): Remove 'contents'.
101293 2007-04-29  Karl Berry  <karl@gnu.org>
101295         * config/srclist.txt (gendocs_template_min): new entry.
101297 2007-04-29  Bruno Haible  <bruno@clisp.org>
101299         Work around fpurge bug on BSD systems.
101300         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
101301         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
101302         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
101303         fpurge to rpl_fpurge if the system already has this function.
101304         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
101305         the case where the system already has this function. Correct invariants
101306         on BSD systems.
101307         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
101308         BSD systems.
101310 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
101312         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
101313         proposed by Sven Verdoolaege.
101315         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
101316         options.
101317         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
101318         (usage and help tests): Update
101320 2007-04-29  Bruno Haible  <bruno@clisp.org>
101322         * tests/test-fflush.c (main): Use a file of size 17, not 10.
101323         Print more information in case of failure. Disable a test on BeOS.
101325 2007-04-29  Bruno Haible  <bruno@clisp.org>
101327         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
101328         This helps debugging on systems on which no gdb is available.
101330 2007-04-29  Bruno Haible  <bruno@clisp.org>
101332         * lib/freading.h: Improve comments.
101333         * lib/fwriting.h: Likewise.
101334         * tests/test-freading.c (main): Don't check freading immediately after
101335         repositioning. Needed for glibc.
101337 2007-04-29  Bruno Haible  <bruno@clisp.org>
101339         * lib/freading.c (freading): Trivial simplification.
101341 2007-04-28  Bruno Haible  <bruno@clisp.org>
101343         * tests/test-fwriting.c (main): Also test the interaction between
101344         fflush and fwriting.
101345         * modules/fwriting-tests (Depends-on): Add fflush.
101347         * tests/test-freading.c (main): Also test the interaction between
101348         fflush and freading.
101349         * modules/freading-tests (Depends-on): Add fflush.
101351 2007-04-28  Bruno Haible  <bruno@clisp.org>
101353         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
101354         fseeko and ftello.
101355         Suggested by Eric Blake.
101357 2007-04-28  Jim Meyering  <jim@meyering.net>
101359         Avoid false-negative in gl_STDINT_H's C99 conformance test.
101360         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
101361         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
101363 2007-04-27  Eric Blake  <ebb9@byu.net>
101365         * doc/headers/assert.texi (assert.h): Document assert module use.
101367 2007-04-27  Bruno Haible  <bruno@clisp.org>
101369         * doc/headers/*.texi: New files.
101370         * doc/gnulib.texi (Header File Substitutes): New chapter.
101371         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
101372         dependencies.
101373         (standards.info ,standards.html, standards.dvi): Update dependencies.
101374         (mostlyclean, clean): New targets.
101376 2007-04-27  Bruno Haible  <bruno@clisp.org>
101378         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
101379         * modules/sysexits (Files, Makefile.am): Update.
101381         * lib/sys_socket_.h: Renamed from lib/socket_.h.
101382         * modules/sys_socket (Files, Makefile.am): Update.
101384         * lib/sys_stat_.h: Renamed from lib/stat_.h.
101385         * modules/sys_stat (Files, Makefile.am): Update.
101387 2007-04-27  Eric Blake  <ebb9@byu.net>
101389         * lib/freading.h: Improve comments.
101390         * lib/fwriting.h: Likewise.
101391         * lib/fflush.c: Likewise.
101393         Fix closein for mingw.
101394         * modules/closein-tests: Add tests for closein.
101395         * tests/test-closein.c: New file.
101396         * tests/test-closein.sh: Likewise.
101397         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
101398         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
101400 2007-04-27  Bruno Haible  <bruno@clisp.org>
101402         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
101403         version is < 6.
101404         * lib/math_.h [__DECC]: Likewise.
101405         * lib/stdio_.h [__DECC]: Likewise.
101406         * lib/stdlib_.h [__DECC]: Likewise.
101407         * lib/string_.h [__DECC]: Likewise.
101408         * lib/time_.h [__DECC]: Likewise.
101409         * lib/wchar_.h [__DECC]: Likewise.
101410         * lib/wctype_.h [__DECC]: Likewise.
101412 2007-04-27  Bruno Haible  <bruno@clisp.org>
101414         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
101416 2007-04-27  Bruno Haible  <bruno@clisp.org>
101418         * lib/fflush.c: Add comments.
101419         * modules/fpurge-tests (Depends-on): Add fflush.
101420         * modules/freadable-tests (Depends-on): Likewise.
101421         * modules/fwritable-tests (Depends-on): Likewise.
101423 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
101425         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
101426         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
101427         Report by Bruno Haible <bruno@clisp.org>.
101429 2007-04-26  Eric Blake  <ebb9@byu.net>
101431         Fix fflush on mingw.
101432         * modules/fflush (Depends-on): Add freading.
101433         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
101434         but unread data.
101436 2007-04-26  Eric Blake  <ebb9@byu.net>
101437         and Bruno Haible  <bruno@clisp.org>
101439         Implement freading and fwriting.
101440         * lib/freading.c: New file.
101441         * lib/freading.h: Likewise.
101442         * m4/freading.m4: Likewise.
101443         * modules/freading: Likewise.
101444         * modules/freading-tests: Likewise.
101445         * tests/test-freading.c: Likewise.
101446         * lib/fwriting.c: New file.
101447         * lib/fwriting.h: Likewise.
101448         * m4/fwriting.m4: Likewise.
101449         * modules/fwriting: Likewise.
101450         * modules/fwriting-tests: Likewise.
101451         * tests/test-fwriting.c: Likewise.
101452         * MODULES.html.sh (File stream based Input/Output): Mention them.
101454 2007-04-26  Bruno Haible  <bruno@clisp.org>
101456         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
101457         'long' when we assume it.
101458         Suggested by Eric Blake.
101460 2007-04-26  Bruno Haible  <bruno@clisp.org>
101462         Ensure fseeko, ftello are declared on glibc systems.
101463         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
101464         * modules/fseeko (configure.ac-early): Likewise.
101465         * modules/ftello (configure.ac-early): Likewise.
101466         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
101467         AC_FUNC_FSEEKO for this.
101468         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
101469         (gl_CHECK_FSEEKO): Remove macro.
101471 2007-04-26  Bruno Haible  <bruno@clisp.org>
101473         * tests/test-fflush.c (main): Also check the ftell result after
101474         fflush and fseek/fseeko.
101475         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
101476         file descriptor position cache in the stream.
101477         * lib/fseeko.c (rpl_fseeko): Likewise.
101479 2007-04-26  Bruno Haible  <bruno@clisp.org>
101481         * modules/fflush-tests (Depends-on): Add fseeko.
101483 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
101484             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101486         * lib/argz_.h: ensure error_t definition is obtained in same
101487         mechanism system argz.h would have.
101488         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
101489         argz facilities are known bad.  Err on the side of caution if
101490         cross-compiling.
101492 2007-04-25  Eric Blake  <ebb9@byu.net>
101494         * lib/fpurge.c (includes): Use stdlib.h for free.
101495         * tests/test-fflush.c (main): Also test fflush-fseeko.
101497 2007-04-25  Bruno Haible  <bruno@clisp.org>
101499         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
101500         * lib/fseeko.c: New file.
101501         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
101502         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
101503         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
101504         gl_FUNC_FSEEKO.
101505         (gl_FUNC_FSEEKO): Invoke it.
101506         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
101507         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
101508         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
101510 2007-04-25  Bruno Haible  <bruno@clisp.org>
101512         * modules/fflush (Depends-on): Add ftello.
101514 2007-04-25  Bruno Haible  <bruno@clisp.org>
101516         * modules/ftello-tests: New file.
101517         * tests/test-ftello.c: New file.
101519         * modules/ftello: New file.
101520         * m4/ftello.m4: New file.
101521         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
101522         HAVE_FTELLO.
101523         * lib/stdio_.h (ftello): New declaration.
101524         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
101525         HAVE_FTELLO.
101527 2007-04-25  Bruno Haible  <bruno@clisp.org>
101529         * modules/fseeko-tests: New file.
101530         * tests/test-fseeko.c: New file.
101532         * modules/fseeko: New file.
101533         * m4/fseeko.m4: New file.
101534         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
101535         HAVE_FSEEKO.
101536         * lib/stdio_.h (fseeko): New declaration.
101537         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
101538         HAVE_FSEEKO.
101540 2007-04-25  Bruno Haible  <bruno@clisp.org>
101542         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
101544 2007-04-25  Bruno Haible  <bruno@clisp.org>
101546         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
101547         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
101548         * tests/test-unistd.c: Likewise.
101549         * tests/test-fcntl.c: Likewise.
101551 2007-04-23  Eric Blake  <ebb9@byu.net>
101553         * lib/fflush.c: Fix missing include.
101554         Reported by Bruno Haible.
101556 2007-04-23  Bruno Haible  <bruno@clisp.org>
101558         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
101559         Reported by Eric Blake.
101561 2007-04-23  Bruno Haible  <bruno@clisp.org>
101563         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
101565 2007-04-23  Bruno Haible  <bruno@clisp.org>
101567         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
101569 2007-04-23  Bruno Haible  <bruno@clisp.org>
101571         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
101572         Needed on HP-UX 11.
101574 2007-04-16  Eric Blake  <ebb9@byu.net>
101576         Make fflush rely on fpurge.
101577         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
101578         open coding all variants.
101579         * modules/fflush (Depends-on): Add fpurge and unistd.
101580         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
101581         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
101583         Fix --with-tests compilation on cygwin.
101584         * modules/argmatch-tests (Makefile.am): List gnulib library first
101585         in LDADD.
101586         * modules/argp-tests (Makefile.am): Likewise.
101587         * modules/array-list-tests (Makefile.am): Likewise.
101588         * modules/array-oset-tests (Makefile.am): Likewise.
101589         * modules/avltree-list-tests (Makefile.am): Likewise.
101590         * modules/avltree-oset-tests (Makefile.am): Likewise.
101591         * modules/avltreehash-list-tests (Makefile.am): Likewise.
101592         * modules/carray-list-tests (Makefile.am): Likewise.
101593         * modules/dirname-tests (Makefile.am): Likewise.
101594         * modules/frexp-tests (Makefile.am): Likewise.
101595         * modules/isnanl-tests (Makefile.am): Likewise.
101596         * modules/linked-list-tests (Makefile.am): Likewise.
101597         * modules/linkedhash-list-tests (Makefile.am): Likewise.
101598         * modules/lock-tests (Makefile.am): Likewise.
101599         * modules/rbtree-list-tests (Makefile.am): Likewise.
101600         * modules/rbtree-oset-tests (Makefile.am): Likewise.
101601         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
101602         * modules/tls-tests (Makefile.am): Likewise.
101603         * modules/tsearch-tests (Makefile.am): Likewise.
101604         * modules/xvasprintf-tests (Makefile.am): Likewise.
101606         Fix fpurge for cygwin.
101607         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
101608         value.
101609         * modules/fpurge-tests (Depends-on): Clean up trash.
101611 2007-04-16  Simon Josefsson  <simon@josefsson.org>
101613         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
101615         * m4/autobuild.m4: Re-indent.
101617 2007-04-13  Bruno Haible  <bruno@clisp.org>
101619         * modules/fpurge-tests: New file.
101620         * tests/test-fpurge.c: New file.
101622         * modules/fpurge: New file.
101623         * lib/fpurge.h: New file.
101624         * lib/fpurge.c: New file.
101625         * m4/fpurge.m4: New file.
101627 2007-04-13  Bruno Haible  <bruno@clisp.org>
101629         * modules/fbufmode-tests: New file.
101630         * tests/test-fbufmode.c: New file.
101632         * modules/fbufmode: New file.
101633         * lib/fbufmode.h: New file.
101634         * lib/fbufmode.c: New file.
101635         * m4/fbufmode.m4: New file.
101637 2007-04-13  Bruno Haible  <bruno@clisp.org>
101639         * modules/fwritable-tests: New file.
101640         * tests/test-fwritable.c: New file.
101642         * modules/fwritable: New file.
101643         * lib/fwritable.h: New file.
101644         * lib/fwritable.c: New file.
101645         * m4/fwritable.m4: New file.
101647 2007-04-13  Bruno Haible  <bruno@clisp.org>
101649         * modules/freadable-tests: New file.
101650         * tests/test-freadable.c: New file.
101652         * modules/freadable: New file.
101653         * lib/freadable.h: New file.
101654         * lib/freadable.c: New file.
101655         * m4/freadable.m4: New file.
101657 2007-04-13  Bruno Haible  <bruno@clisp.org>
101659         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
101660         MOSTLYCLEANFILES.
101662 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
101664         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
101665         gzip bootstrap.conf to avoid dragging in i18n machinery.
101666         (gnulib_tool_option): Use it.
101668 2007-04-13  Bruno Haible  <bruno@clisp.org>
101670         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
101671         %F directives.
101672         * tests/test-vasprintf-posix.c (test_function): Likewise.
101673         * tests/test-snprintf-posix.h (test_function): Likewise.
101674         * tests/test-sprintf-posix.h (test_function): Likewise.
101675         * tests/test-fprintf-posix.h (test_function): Likewise.
101676         * tests/test-printf-posix.h (test_function): Likewise.
101677         * tests/test-fprintf-posix.out: Likewise.
101679 2007-04-13  Bruno Haible  <bruno@clisp.org>
101681         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
101682         * modules/tls-tests (configure.ac): Likewise.
101683         Reported by Arto C. Nirkko <anirkko@insel.ch>.
101685 2007-04-13  Bruno Haible  <bruno@clisp.org>
101687         * lib/tls.c (glthread_tls_get): Fix return type.
101688         Patch by Arto C. Nirkko <anirkko@insel.ch>.
101690 2007-04-12  Eric Blake  <ebb9@byu.net>
101692         * modules/gettime (Depends-on): Remove gettime.
101693         Reported by Dmitry V. Levin.
101695 2007-04-12  Bruno Haible  <bruno@clisp.org>
101697         * modules/fflush (Include): Mention <stdio.h>.
101698         * modules/strtoimax (Include): Mention <inttypes.h>.
101699         * modules/strtoumax (Include): Likewise.
101701 2007-04-12  Eric Blake  <ebb9@byu.net>
101703         * .cvsignore: New file.
101704         * .gitignore: Likewise.
101706 2007-04-12  Bruno Haible  <bruno@clisp.org>
101708         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
101709         not before, since $(LDADD) often contains libgnu.a.
101710         * modules/striconv-tests (test_striconv_LDADD): Likewise.
101711         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
101712         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
101713         Needed on Cygwin.
101715 2007-04-12  Eric Blake  <ebb9@byu.net>
101717         Work around glibc's failure to flush stdin on fclose.
101718         * lib/closein.c (close_stdin): Flush stdin before closing.
101720         Work around glibc's failure to reset seekable stdin on exit.
101721         * modules/closein: New module.
101722         * lib/closein.c: New file.
101723         * lib/closein.h: Likewise.
101724         * m4/closein.m4: Likewise.
101725         * MODULES.html.sh (File stream based Input/Output): Document it.
101727 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101729         * gnulib-tool: Rename generated 'autobuild' script to
101730         'do-autobuild' in --create-megatestdir output.
101732         * doc/gnulib.texi (Build robot for gnulib): Fix.
101734 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101736         * modules/sysexits (Depends-on): Add absolute-header.
101738 2007-04-12  Eric Blake  <ebb9@byu.net>
101740         No need to preserve errno on success.
101741         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
101742         Reported by Bruno Haible.
101744 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101746         * MODULES.html.sh (Support for maintaining and releasing
101747         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
101749 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101751         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
101753 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101755         * modules/autobuild: New module.
101757         * m4/autobuild.m4: New file.
101759 2007-04-11  Bruno Haible  <bruno@clisp.org>
101761         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
101762         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
101763         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
101764         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
101765         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
101766         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101767         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101768         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
101769         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101770         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101771         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
101772         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101773         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101774         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
101775         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101776         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101777         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
101778         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101779         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101780         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
101781         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101782         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101783         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
101784         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101785         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101786         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
101787         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101788         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101789         Reported by Eric Blake.
101791 2007-04-11  Bruno Haible  <bruno@clisp.org>
101793         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
101795 2007-04-10  Bruno Haible  <bruno@clisp.org>
101797         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
101798         for NaN and Infinity. Needed on FreeBSD 6.1.
101799         * tests/test-vasnprintf-posix.c (test_function): Undo last change
101800         regarding results for "%010a" of Infinity and NaN.
101801         * tests/test-vasprintf-posix.c (test_function): Likewise.
101802         * tests/test-snprintf-posix.h (test_function): Likewise.
101803         * tests/test-sprintf-posix.h (test_function): Likewise.
101804         * tests/test-fprintf-posix.h (test_function): Likewise.
101805         * tests/test-printf-posix.h (test_function): Likewise.
101806         * tests/test-fprintf-posix.out: Likewise.
101808 2007-04-10  Bruno Haible  <bruno@clisp.org>
101810         * modules/locale-tests: New file.
101811         * tests/test-locale.c: New file.
101813         * modules/locale: New file.
101814         * lib/locale_.h: New file.
101815         * m4/locale_h.m4: New file.
101817 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
101818             Bruno Haible  <bruno@clisp.org>
101820         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
101821         be determined, test for availability of the copysignf, copysign,
101822         copysignl functions.
101823         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
101824         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
101825         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
101827 2007-04-09  Eric Blake  <ebb9@byu.net>
101829         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
101830         * modules/stdio (Makefile.am): Support fflush.
101831         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
101832         * modules/fflush: New file.
101833         * lib/fflush.c: Likewise.
101834         * m4/fflush.m4: Likewise.
101835         * modules/fflush-tests: New test.
101836         * tests/test-fflush.c: Likewise.
101837         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
101839 2007-04-06  Bruno Haible  <bruno@clisp.org>
101841         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
101842         (VASNPRINTF): Use signbit for faster determination whether to print a
101843         minus sign.
101844         * modules/vasnprintf (Files): Remove lib/float+.h.
101845         * modules/fprintf-posix (Depends-on): Add signbit.
101846         * modules/snprintf-posix (Depends-on): Likewise.
101847         * modules/sprintf-posix (Depends-on): Likewise.
101848         * modules/vasnprintf-posix (Depends-on): Likewise.
101849         * modules/vasprintf-posix (Depends-on): Likewise.
101850         * modules/vfprintf-posix (Depends-on): Likewise.
101851         * modules/vsnprintf-posix (Depends-on): Likewise.
101852         * modules/vsprintf-posix (Depends-on): Likewise.
101854 2007-04-06  Bruno Haible  <bruno@clisp.org>
101856         * tests/test-frexp.c (main): Test also the sign bit of zero results.
101857         * tests/test-frexpl.c (main): Likewise.
101858         * tests/test-ldexpl.c (main): Likewise.
101859         * modules/frexp-tests (Depends-on): Add signbit.
101860         * modules/frexpl-tests (Depdends-on): Likewise.
101861         * modules/ldexpl-tests (Depdends-on): Likewise.
101863 2007-04-06  Bruno Haible  <bruno@clisp.org>
101865         * modules/signbit-tests: New file.
101866         * tests/test-signbit.c: New file.
101868         * modules/signbit: New file.
101869         * lib/signbitf.c: New file.
101870         * lib/signbitd.c: New file.
101871         * lib/signbitl.c: New file.
101872         * m4/signbit.m4: New file.
101873         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
101874         (signbit): New macro.
101875         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
101876         REPLACE_SIGNBIT.
101877         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
101878         REPLACE_FREXPL into math.h.
101880 2007-04-06  Bruno Haible  <bruno@clisp.org>
101882         * modules/isnanf-nolibm-tests: New file.
101883         * tests/test-isnanf.c: New file.
101885         * modules/isnanf-nolibm: New file.
101886         * lib/isnanf.h: New file.
101887         * lib/isnanf.c: New file.
101888         * lib/isnan.c: Consider the USE_FLOAT macro.
101889         * m4/isnanf.m4: New file.
101891 2007-04-06  Bruno Haible  <bruno@clisp.org>
101893         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
101894         (Link): New section.
101896         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
101898 2007-04-06  Bruno Haible  <bruno@clisp.org>
101900         Assume the 'long double' type.
101901         * m4/longdouble.m4: Remove file.
101902         * config/srclist.txt: Don't mention longdouble.m4.
101903         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
101904         * lib/float+.h: Likewise.
101905         * lib/frexp.c: Likewise.
101906         * lib/printf-args.h: Likewise.
101907         * lib/printf-args.c: Likewise.
101908         * lib/printf-frexp.c: Likewise.
101909         * lib/printf-parse.c: Likewise.
101910         * lib/vasnprintf.c: Likewise.
101911         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
101912         * m4/intl.m4: Likewise.
101913         * m4/isnanl.m4: Likewise.
101914         * m4/printf.m4: Likewise.
101915         * m4/printf-frexpl.m4: Likewise.
101916         * m4/vasnprintf.m4: Likewise.
101917         * modules/allocsa (Files): Remove m4/longdouble.m4.
101918         * modules/gettext (Files): Likewise.
101919         * modules/relocatable-prog-wrapper (Files): Likewise.
101920         * modules/vasnprintf (Files): Likewise.
101921         * modules/isnanl (Files): Likewise.
101922         (Include): Simplify.
101923         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
101924         (Include): Simplify.
101925         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
101926         (Include): Simplify.
101927         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
101928         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101929         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
101930         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101931         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
101932         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101933         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
101934         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101935         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
101936         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101937         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
101938         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101939         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
101940         * tests/test-isnanl.c: Likewise.
101941         * tests/test-snprintf-posix.h: Likewise.
101942         * tests/test-sprintf-posix.h: Likewise.
101943         * tests/test-vasnprintf-posix.c: Likewise.
101944         * tests/test-vasnprintf-posix2.c: Likewise.
101945         * tests/test-vasprintf-posix.c: Likewise.
101947 2007-04-06  Bruno Haible  <bruno@clisp.org>
101949         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
101950         * lib/math_.h [__DECC]: Include the overridden include file through
101951         #include_next, outside the double-inclusion guard.
101952         * lib/stdio_.h [__DECC]: Likewise.
101953         * lib/stdlib_.h [__DECC]: Likewise.
101954         * lib/string_.h [__DECC]: Likewise.
101955         * lib/time_.h [__DECC]: Likewise.
101956         * lib/wchar_.h [__DECC]: Likewise.
101957         * lib/wctype_.h [__DECC]: Likewise.
101958         * lib/inttypes_.h [__DECC]: Likewise.
101959         Reported by Albert Chin <china@thewrittenword.com> in
101960         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
101962 2007-04-04  Eric Blake  <ebb9@byu.net>
101964         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
101965         1.5.x.
101967 2007-04-04  Bruno Haible  <bruno@clisp.org>
101969         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
101970         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
101972 2007-04-04  Bruno Haible  <bruno@clisp.org>
101974         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
101975         results for "%010a" of Infinity and NaN.
101976         * tests/test-vasprintf-posix.c (test_function): Likewise.
101977         * tests/test-snprintf-posix.h (test_function): Likewise.
101978         * tests/test-sprintf-posix.h (test_function): Likewise.
101979         * tests/test-fprintf-posix.h (test_function): Remove these tests.
101980         * tests/test-printf-posix.h (test_function): Likewise.
101981         * tests/test-fprintf-posix.out: Update.
101982         Needed for FreeBSD 6.1.
101984 2007-04-04  Bruno Haible  <bruno@clisp.org>
101986         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
101987         directly used by the gnulib modules nor by gnulib-tool.
101989 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
101991         * DEPENDENCIES: Give overall description of version dependency
101992         desirability.  Use more-typical names for apps.
101993         Add shell, coreutils, diffutils, grep, tar, gzip.
101995 2007-04-04  Simon Josefsson  <simon@josefsson.org>
101997         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
101999 2007-04-04  Karl Berry  <karl@gnu.org>
102001         * MODULES.html.sh (func_module): missing '.
102003 2007-04-03  Bruno Haible  <bruno@clisp.org>
102005         * modules/argmatch-tests (Makefile.am): New variable
102006         test_argmatch_LDADD.
102007         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
102008         * modules/array-list-tests (Makefile.am): New variable
102009         test_array_list_LDADD.
102010         * modules/array-oset-tests (Makefile.am): New variable
102011         test_array_oset_LDADD.
102012         * modules/avltree-list-tests (Makefile.am): New variable
102013         test_avltree_list_LDADD.
102014         * modules/avltree-oset-tests (Makefile.am): New variable
102015         test_avltree_oset_LDADD.
102016         * modules/avltreehash-list-tests (Makefile.am): New variable
102017         test_avltreehash_list_LDADD.
102018         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
102019         test_canonicalize_lgpl_LDADD.
102020         * modules/carray-list-tests (Makefile.am): New variable
102021         test_carray_list_LDADD.
102022         * modules/dirname-tests (Makefile.am): New variable
102023         test_dirname_LDADD.
102024         * modules/linked-list-tests (Makefile.am): New variable
102025         test_linked_list_LDADD.
102026         * modules/linkedhash-list-tests (Makefile.am): New variable
102027         test_linkedhash_list_LDADD.
102028         * modules/rbtree-list-tests (Makefile.am): New variable
102029         test_rbtree_list_LDADD.
102030         * modules/rbtree-oset-tests (Makefile.am): New variable
102031         test_rbtree_oset_LDADD.
102032         * modules/rbtreehash-list-tests (Makefile.am): New variable
102033         test_rbtreehash_list_LDADD.
102034         * modules/xvasprintf-tests (Makefile.am): New variable
102035         test_xvasprintf_LDADD.
102036         Reported by Eric Blake.
102038 2007-04-03  Eric Blake  <ebb9@byu.net>
102040         * DEPENDENCIES: Weaken m4 requirements.
102042 2007-04-03  Bruno Haible  <bruno@clisp.org>
102044         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
102045         * modules/isnanl-tests (configure.ac): Likewise.
102047 2007-04-03  Ben Pfaff  <blp@gnu.org>
102049         * modules/iconv_open: Add $(srcdir)/ to source directory
102050         references in Makefile fragments that call gperf, to fix VPATH
102051         builds.
102053 2007-04-03  Bruno Haible  <bruno@clisp.org>
102055         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
102056         * lib/ldexpl.c: Undo last change.
102058 2007-04-03  Bruno Haible  <bruno@clisp.org>
102060         * modules/printf-frexpl (Depends-on): Undo last change.
102061         (Files): Add m4/ldexpl.m4.
102063 2007-04-03  Bruno Haible  <bruno@clisp.org>
102065         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
102066         * modules/isnanl (Link): New section.
102068         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
102069         * modules/frexp (Link): New section.
102071         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
102072         * modules/frexpl (Link): New section.
102074         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
102075         * modules/ldexpl (Link): New section.
102077 2007-04-03  Bruno Haible  <bruno@clisp.org>
102079         * modules/TEMPLATE-EXTENDED: New file.
102080         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
102082 2007-04-03  Bruno Haible  <bruno@clisp.org>
102084         * DEPENDENCIES: New file.
102085         Suggested by Simon Josefsson.
102087 2007-04-03  Bruno Haible  <bruno@clisp.org>
102089         * doc/gnulib.texi: Escape @.
102091 2007-04-03  James Youngman  <jay@gnu.org>
102092         and Paul Eggert  <eggert@cs.ucla.edu>
102094         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
102095         birthtime on all systems that have birthtime, not just those which
102096         use st_birthtimensec rather than st_birthtim.  Putting zero in
102097         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
102098         that the birth time is not available for files on an NFS mount.
102100 2007-04-03  Simon Josefsson  <simon@josefsson.org>
102102         * modules/memxor: Move back from crypto/, suggested by Bruno.
102103         * modules/crypto/hmac-sha1: Fix memxor dependency.
102105         * modules/crypto/gc: Moved from ../.
102107 2007-04-02  Eric Blake  <ebb9@byu.net>
102109         * lib/ldexpl.c (includes): Avoid libm.
102111         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
102113 2007-04-02  Bruno Haible  <bruno@clisp.org>
102115         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
102116         on IRIX.
102118 2007-04-02  Bruno Haible  <bruno@clisp.org>
102120         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
102121         x86 or x86_64 platforms running MacOS X.
102122         Reported by Ryan Schmidt <@ryandesign.com>.
102124 2007-04-02  Bruno Haible  <bruno@clisp.org>
102126         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
102127         i386.
102129 2007-04-01  Simon Josefsson  <simon@josefsson.org>
102131         * modules/crypto/arcfour: Moved from ../.
102132         * modules/crypto/arcfour-tests: Moved from ../.
102133         * modules/crypto/arctwo: Moved from ../.
102134         * modules/crypto/arctwo-tests: Moved from ../.
102135         * modules/crypto/des: Moved from ../.
102136         * modules/crypto/des-tests: Moved from ../.
102137         * modules/crypto/gc-arcfour: Moved from ../.
102138         * modules/crypto/gc-arcfour-tests: Moved from ../.
102139         * modules/crypto/gc-arctwo: Moved from ../.
102140         * modules/crypto/gc-arctwo-tests: Moved from ../.
102141         * modules/crypto/gc-des: Moved from ../.
102142         * modules/crypto/gc-des-tests: Moved from ../.
102143         * modules/crypto/gc-hmac-md5: Moved from ../.
102144         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
102145         * modules/crypto/gc-hmac-sha1: Moved from ../.
102146         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
102147         * modules/crypto/gc-md2: Moved from ../.
102148         * modules/crypto/gc-md2-tests: Moved from ../.
102149         * modules/crypto/gc-md4: Moved from ../.
102150         * modules/crypto/gc-md4-tests: Moved from ../.
102151         * modules/crypto/gc-md5: Moved from ../.
102152         * modules/crypto/gc-md5-tests: Moved from ../.
102153         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
102154         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
102155         * modules/crypto/gc-random: Moved from ../.
102156         * modules/crypto/gc-rijndael: Moved from ../.
102157         * modules/crypto/gc-rijndael-tests: Moved from ../.
102158         * modules/crypto/gc-sha1: Moved from ../.
102159         * modules/crypto/gc-sha1-tests: Moved from ../.
102160         * modules/crypto/gc-tests: Moved from ../.
102161         * modules/crypto/hmac-md5: Moved from ../.
102162         * modules/crypto/hmac-md5-tests: Moved from ../.
102163         * modules/crypto/hmac-sha1: Moved from ../.
102164         * modules/crypto/hmac-sha1-tests: Moved from ../.
102165         * modules/crypto/md2: Moved from ../.
102166         * modules/crypto/md2-tests: Moved from ../.
102167         * modules/crypto/md4: Moved from ../.
102168         * modules/crypto/md4-tests: Moved from ../.
102169         * modules/crypto/md5: Moved from ../.
102170         * modules/crypto/md5-tests: Moved from ../.
102171         * modules/crypto/memxor: Moved from ../.
102172         * modules/crypto/rijndael: Moved from ../.
102173         * modules/crypto/rijndael-tests: Moved from ../.
102174         * modules/crypto/sha1: Moved from ../.
102176 2007-03-30  James Youngman  <jay@gnu.org>
102178         * tests/test-stat-time.c (prepare_test): use chmod() rather than
102179         rename() to change the ctime of a file (because ctime is unaffected
102180         by rename on jfs2 on AIX 5.1).
102181         (main): Start by doing cleanup, in case a previous run failed leaving
102182         test files behind.
102184 2007-03-31  Bruno Haible  <bruno@clisp.org>
102186         Support old proprietary implementations of iconv.
102187         * modules/iconv_open: New file.
102188         * lib/iconv_.h: New file.
102189         * m4/iconv_h.m4: New file.
102190         * lib/iconv_open.c: New file.
102191         * lib/iconv_open-aix.gperf: New file.
102192         * lib/iconv_open-hpux.gperf: New file.
102193         * lib/iconv_open-irix.gperf: New file.
102194         * lib/iconv_open-osf.gperf: New file.
102195         * m4/iconv_open.m4: New file.
102196         * modules/linebreak (Depends-on): Add iconv_open.
102197         * modules/striconv (Depends-on): Likewise.
102198         * modules/striconveh (Depends-on): Likewise.
102199         * modules/unicodeio (Depends-on): Likewise.
102200         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
102201         (iconv_t)(-1).
102202         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
102203         conversion if cd is (iconv_t)(-1).
102204         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
102205         is not possible.
102207 2007-03-31  Bruno Haible  <bruno@clisp.org>
102209         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
102210         work on Solaris either. Protect also second use of "autodetect_jp".
102212 2007-03-31  Bruno Haible  <bruno@clisp.org>
102214         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
102215         the function is not present.
102217 2007-03-31  Bruno Haible  <bruno@clisp.org>
102219         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
102220         the function is not present.
102222 2007-03-31  Bruno Haible  <bruno@clisp.org>
102224         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
102225         a bug in HP-UX iconv_open().
102227 2007-03-31  Bruno Haible  <bruno@clisp.org>
102229         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
102230         (Mathematics <math.h>): New section, add fpieee.
102231         (Input/output <stdio.h>): Add fseterr.
102232         (Mathematics <math.h>): New section, add printf-frexp.
102233         (Container data structures): Add sublist.
102234         (Core language properties): Add fpucw, inline.
102235         (Functions for greatest-width integer types <inttypes.h>): Add
102236         imaxabs, imaxdiv, inttypes.
102237         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
102238         isnanl-nolibm, ldexp.
102239         (Mathematics <math.h>): New section, add printf-frexpl.
102240         (Support for systems lacking POSIX:2001): Add fprintf-posix,
102241         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
102242         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
102243         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
102244         (Unicode string functions): Add unistr/u*-mbtoucr.
102245         (Java): Add javacomp-script, javaexec-script.
102246         (C#): Add csharpcomp-script, csharpexec-script.
102247         (Support for building libraries and executables): Add havelib,
102248         relocatable-*.
102249         (Support for maintaining and releasing projects): Renamed from
102250         'Support for maintaining and release projects'. Add announce-gen.
102252 2007-03-31  Bruno Haible  <bruno@clisp.org>
102254         * README: Talk primarily about git.
102255         (git and CVS): Renamed from CVS.
102256         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
102257         gnulib is available through git.
102258         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
102260 2007-03-30  Bruno Haible  <bruno@clisp.org>
102262         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
102263         * lib/poll_.h: Likewise.
102264         * lib/stat_.h: Likewise.
102265         * lib/sys_time_.h: Likewise.
102266         * lib/sysexit_.h: Likewise.
102267         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
102268         * lib/stdbool_.h: Likewise.
102269         * lib/byteswap_.h: Add double-inclusion guard.
102271 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
102273         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
102275 2007-03-30  Karl Berry  <karl@gnu.org>
102277         * config/srclist-update: double space after USA in the license
102278         substitution, since that's how it's usually (?) written.
102280 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
102282         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
102283         reported by Bruno Haible.
102285 2007-03-29  Bruno Haible  <bruno@clisp.org>
102287         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
102288         a bug in AIX iconv().
102290 2007-03-29  Bruno Haible  <bruno@clisp.org>
102292         * modules/ldexpl-tests: New file.
102293         * tests/test-ldexpl.c: New file.
102295 2007-03-29  Bruno Haible  <bruno@clisp.org>
102297         * lib/ldexpl.c: Include fpucw.h.
102298         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
102299         multiplication.
102300         * modules/ldexpl (Depends-on): Add fpucw.
102302 2007-03-29  Bruno Haible  <bruno@clisp.org>
102304         * modules/ldexpl: New file.
102305         * m4/ldexpl.m4: New file.
102306         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
102307         set.
102308         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
102309         REPLACE_LDEXPL.
102310         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
102311         REPLACE_LDEXPL.
102312         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
102313         gl_FUNC_LDEXPL_WORKS.
102314         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
102315         * modules/mathl (Files): Remove lib/ldexpl.c.
102316         (Depends-on): Add ldexpl.
102318 2007-03-29  Bruno Haible  <bruno@clisp.org>
102320         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
102322 2007-03-29  Bruno Haible  <bruno@clisp.org>
102324         * tests/test-striconveh.c (main): Don't assume that a direct conversion
102325         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
102326         and possibly also HP-UX.
102327         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
102328         work on AIX, IRIX, HP-UX, OSF/1.
102329         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
102330         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
102331         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
102332         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
102333         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
102334         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
102336 2007-03-29  Bruno Haible  <bruno@clisp.org>
102338         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
102340 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
102342         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
102343         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
102345 2007-03-29  Eric Blake  <ebb9@byu.net>
102347         * lib/acl-internal.h: Remove redundant include.
102348         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
102349         Cygwin when a file is locked.
102351 2007-03-29  Bruno Haible  <bruno@clisp.org>
102353         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
102354         file.
102355         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
102357 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
102359         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
102360         try to remove a parent directory if the child couldn't be removed
102361         (except for the first rmdir, which could fail because the child
102362         doesn't exist).  Problem reported by Jeff Blaine in
102363         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
102365 2007-03-28  Bruno Haible  <bruno@clisp.org>
102367         * lib/striconveh.c (utf8conv_carefully): New function.
102368         (mem_cd_iconveh_internal): Invoke it.
102370 2007-03-28  Bruno Haible  <bruno@clisp.org>
102372         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
102373         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
102374         input.
102375         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
102376         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
102377         unistr/u8-uctomb.
102379 2007-03-28  Bruno Haible  <bruno@clisp.org>
102381         * modules/unistr/u8-mbtoucr: New file.
102382         * lib/unistr/u8-mbtoucr.c: New file.
102383         * modules/unistr/u16-mbtoucr: New file.
102384         * lib/unistr/u16-mbtoucr.c: New file.
102385         * modules/unistr/u16-mbtoucr: New file.
102386         * lib/unistr/u16-mbtoucr.c: New file.
102387         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
102389 2007-03-27  Simon Josefsson  <simon@josefsson.org>
102390             Bruno Haible  <bruno@clisp.org>
102392         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
102393         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
102394         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
102396         * m4/stdio_h.m4: Add stubs for vasprintf too.
102398         * modules/stdio: Support vasprintf in sed command.
102400         * modules/vasprintf: Depend on stdio for prototypes.  Remove
102401         vasprintf.h.  Add stdio module indicator.
102403         * lib/stdio_.h: Declare asprintf and vasprintf, based on
102404         vasprintf.h.
102406         * lib/vasprintf.h: File removed.
102408         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
102409         * lib/vasprintf.c: Ditto.
102410         * lib/xvasprintf.c: Ditto.
102411         * tests/test-vasprintf-posix.c: Ditto.
102412         * tests/test-vasprintf.c: Ditto.
102414 2007-03-27  Bruno Haible  <bruno@clisp.org>
102416         Make vasnprintf multithread-safe.
102417         * lib/vasnprintf.c (decimal_point_char): New function.
102418         (VASNPRINTF): Use it.
102419         Suggested by Simon Josefsson.
102421 2007-03-27  Eric Blake  <ebb9@byu.net>
102423         Support sub-second birthtime on cygwin.
102424         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
102425         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
102426         (get_stat_birthtime): Also work with st_birthtim.
102428 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
102430         * lib/stat-time.h (USE_BIRTHTIME): Remove.
102431         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
102432         (get_stat_birthtime_ns): Do not try to use "spare" fields.
102433         (get_stat_birthtime_ns): Simplify compile-time tests.
102434         (get_stat_birthtime): Change the API to look like
102435         get_stat_mtime etc., except return a negative tv_nsec on error.
102436         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
102437         Don't check for "spare" fields.
102438         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
102439         or for struct stat.st_birthtime, as these tests aren't used.
102440         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
102442 2007-03-27  Bruno Haible  <bruno@clisp.org>
102444         * lib/stat-time.h: Include <sys/stat.h>.
102446 2007-03-27  James Youngman  <jay@gnu.org>
102448         * lib/stat-time.h (get_stat_birthtime): New function for
102449           retrieving st_birthtime as provided by UFS2 (hence *BSD).
102450         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
102451           and its variants.
102452         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
102453         * modules/stat-time-test: New file.
102454         * tests/test-stat-time.c: New test, devised by Bruno Haible.
102456 2007-03-26  Bruno Haible  <bruno@clisp.org>
102458         Better support of signalling NaNs.
102459         * lib/atanl.c: Include isnanl.h.
102460         (atanl): Perform test for NaN at the beginning of the function and
102461         through a call to isnanl.
102462         * lib/cosl.c: Include isnanl.h.
102463         (cosl): Perform test for NaN at the beginning of the function and
102464         through a call to isnanl.
102465         * lib/ldexpl.c: Include isnanl.h.
102466         (ldexpl): Perform test for NaN through a call to isnanl.
102467         * lib/logl.c: Include isnanl.h.
102468         (logl): Perform test for NaN at the beginning of the function and
102469         through a call to isnanl.
102470         * lib/sinl.c: Include isnanl.h.
102471         (sinl): Perform test for NaN at the beginning of the function and
102472         through a call to isnanl.
102473         * lib/sqrtl.c: Include isnanl.h.
102474         (sqrtl): Perform test for NaN at the beginning of the function and
102475         through a call to isnanl.
102476         * lib/tanl.c: Include isnanl.h.
102477         (tanl): Perform test for NaN at the beginning of the function and
102478         through a call to isnanl.
102479         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
102480         * modules/mathl (Depends-on): Add isnanl.
102482 2007-03-26  Eric Blake  <ebb9@byu.net>
102484         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
102485         regression in logic sense of previous patch.
102487 2007-03-26  Bruno Haible  <bruno@clisp.org>
102489         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
102490         unportable shell command "if ! ...".
102491         Reported by Ralf Wildenhues.
102493 2007-03-25  Bruno Haible  <bruno@clisp.org>
102495         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
102496         <sysexits.h> file, and only add EX_CONFIG.
102497         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
102498         absolute file name and whether it is sufficient. Substitute also
102499         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
102500         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
102501         ABSOLUTE_SYSEXITS_H into sysexits.h.
102503 2007-03-25  Bruno Haible  <bruno@clisp.org>
102505         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
102506         hints is NULL.
102508 2007-03-25  Bruno Haible  <bruno@clisp.org>
102510         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
102511         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
102513 2007-03-25  Bruno Haible  <bruno@clisp.org>
102515         * lib/vasnprintf.c: Include langinfo.h.
102516         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
102517         multithread-safe.
102518         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
102519         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
102520         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
102521         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
102522         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
102523         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
102524         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
102525         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
102526         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
102527         Reported by Simon Josefsson.
102529 2007-03-25  Bruno Haible  <bruno@clisp.org>
102531         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
102532         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
102533         * modules/vasnprintf (Depends-on): Add stdint.
102535 2007-03-25  Bruno Haible  <bruno@clisp.org>
102537         * modules/fpieee: New file.
102538         * m4/fpieee.m4: New file.
102539         * modules/isnan-nolibm (Depends-on): Add fpieee.
102540         * modules/isnanl-nolibm (Depends-on): Add fpieee.
102541         * modules/isnanl (Depends-on): Add fpieee.
102543 2007-03-25  Bruno Haible  <bruno@clisp.org>
102545         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
102547 2007-03-25  Bruno Haible  <bruno@clisp.org>
102549         Avoid test failures on IRIX 6.5.
102550         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
102551         (main): Use it.
102552         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
102553         macros.
102554         (main): Use them.
102556 2007-03-25  Bruno Haible  <bruno@clisp.org>
102558         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
102559         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
102560         exists but doesn't work.
102561         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
102562         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
102563         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
102564         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
102565         math.h.
102567 2007-03-25  Bruno Haible  <bruno@clisp.org>
102569         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
102570         returns inf. Needed on IRIX 6.5.
102572 2007-03-25  Bruno Haible  <bruno@clisp.org>
102574         * tests/test-frexpl.c: Include isnanl-nolibm.h.
102575         (main): Use isnanl instead of x != x idiom.
102576         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
102578         * tests/test-frexp.c: Include isnan.h.
102579         (main): Use isnan instead of x != x idiom.
102580         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
102582 2007-03-25  Bruno Haible  <bruno@clisp.org>
102584         * tests/test-frexp.c (NaN): New function/macro.
102585         (main): Use it instead of 0.0 / 0.0.
102586         * tests/test-isnan.c (NaN): New function/macro.
102587         (main): Use it instead of 0.0 / 0.0.
102588         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
102589         (test_function): Use it instead of 0.0 / 0.0.
102590         * tests/test-vasprintf-posix.c (NaN): New function/macro.
102591         (test_function): Use it instead of 0.0 / 0.0.
102592         * tests/test-snprintf-posix.h (NaN): New function/macro.
102593         (test_function): Use it instead of 0.0 / 0.0.
102594         * tests/test-sprintf-posix.h (NaN): New function/macro.
102595         (test_function): Use it instead of 0.0 / 0.0.
102596         * tests/test-fprintf-posix.h (NaN): New function/macro.
102597         (test_function): Use it instead of 0.0 / 0.0.
102598         * tests/test-printf-posix.h (NaN): New function/macro.
102599         (test_function): Use it instead of 0.0 / 0.0.
102601         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
102603 2007-03-25  Bruno Haible  <bruno@clisp.org>
102605         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
102607 2007-03-25  Bruno Haible  <bruno@clisp.org>
102609         * lib/regexec.c (merge_state_with_log): Make static.
102611 2007-03-25  Bruno Haible  <bruno@clisp.org>
102613         * lib/trigl.c (kernel_rem_pio2): Make static.
102615 2007-03-25  Bruno Haible  <bruno@clisp.org>
102617         * lib/sincosl.c (sincosl_table): Make static.
102619 2007-03-25  Bruno Haible  <bruno@clisp.org>
102621         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
102622         if the compiler does not support C99.
102624 2007-03-25  Bruno Haible  <bruno@clisp.org>
102626         * modules/time (Makefile.am): Ensure all rule action lines start with a
102627         tab.
102629 2007-03-24  Bruno Haible  <bruno@clisp.org>
102631         * modules/tsearch-tests: New file.
102632         * tests/test-tsearch.sh: New file.
102633         * tests/test-tsearch.c: New file, mostly copied from glibc.
102635         * modules/search-tests: New file.
102636         * tests/test-search.c: New file.
102638         * modules/search: New file.
102639         * lib/search_.h: New file, incorporating lib/tsearch.h.
102640         * m4/search_h.m4: New file.
102641         * lib/tsearch.h: Remove file.
102642         * lib/tsearch.c: Include search.h instead of tsearch.h.
102643         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
102644         HAVE_TSEARCH.
102645         * modules/tsearch (Files): Remove lib/tsearch.h.
102646         (Depends-on): Add search.
102647         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
102648         (Include): Change tsearch.h into search.h.
102650 2007-03-24  Bruno Haible  <bruno@clisp.org>
102652         * modules/fpucw: New file.
102653         * lib/fpucw.h: New file.
102654         * lib/frexp.c: Include fpucw.h.
102655         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
102656         (FUNC): Use them.
102657         * lib/printf-frexp.c: Include fpucw.h.
102658         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
102659         (FUNC): Use them.
102660         * lib/vasnprintf.c: Include fpucw.h.
102661         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
102662         'long double' calculations.
102663         * tests/test-frexpl.c: Include fpucw.h.
102664         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
102665         * tests/test-printf-frexpl.c: Include fpucw.h.
102666         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
102667         * modules/frexpl (Depends-on): Add fpucw.
102668         * modules/printf-frexpl (Depends-on): Likewise.
102669         * modules/fprintf-posix (Depends-on): Likewise.
102670         * modules/snprintf-posix (Depends-on): Likewise.
102671         * modules/sprintf-posix (Depends-on): Likewise.
102672         * modules/vasnprintf-posix (Depends-on): Likewise.
102673         * modules/vasprintf-posix (Depends-on): Likewise.
102674         * modules/vfprintf-posix (Depends-on): Likewise.
102675         * modules/vsnprintf-posix (Depends-on): Likewise.
102676         * modules/vsprintf-posix (Depends-on): Likewise.
102677         * modules/frexpl-tests (Depends-on): Likewise.
102678         * modules/printf-frexpl-tests (Depends-on): Likewise.
102680 2007-03-24  Bruno Haible  <bruno@clisp.org>
102682         * lib/float+.h: New file.
102683         * lib/isnan.c: Include float+.h.
102684         (SIZE): New macro.
102685         (FUNC): Compare only SIZE bytes of the value.
102686         * lib/vasnprintf.c: Include float+.h.
102687         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
102688         SIZEOF_LDBL or SIZEOF_DBL bytes.
102689         * modules/isnan-nolibm (Files): Add lib/float+.h.
102690         * modules/isnanl-nolibm (Files): Add lib/float+.h.
102691         * modules/isnanl (Files): Add lib/float+.h.
102692         * modules/vasnprintf (Files): Add lib/float+.h.
102694 2007-03-24  Bruno Haible  <bruno@clisp.org>
102696         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
102697         include isnanl-nolibm.h.
102699 2007-03-24  Bruno Haible  <bruno@clisp.org>
102701         * tests/test-read-file.c (main): Don't produce spurious output for
102702         expected situations. Make the test fail if it encountered unexpected
102703         results.
102705 2007-03-24  Bruno Haible  <bruno@clisp.org>
102707         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
102708         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
102710 2007-03-24  Bruno Haible  <bruno@clisp.org>
102712         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
102714 2007-03-24  Bruno Haible  <bruno@clisp.org>
102716         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
102717         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
102719         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
102720         * modules/utf8-ucs4: Turn into a symbolic link to module
102721         unistr/u8-mbtouc.
102723         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
102724         utf8-ucs4-unsafe.
102725         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
102726         unistr/u8-mbtouc-unsafe.
102728         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
102729         * modules/utf16-ucs4: Turn into a symbolic link to module
102730         unistr/u16-mbtouc.
102732         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
102733         utf16-ucs4-unsafe.
102734         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
102735         unistr/u16-mbtouc-unsafe.
102737         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
102738         * modules/ucs4-utf8: Turn into a symbolic link to module
102739         unistr/u8-ubtomb.
102741         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
102742         * modules/ucs4-utf16: Turn into a symbolic link to module
102743         unistr/u16-ubtomb.
102745 2007-03-24  Bruno Haible  <bruno@clisp.org>
102747         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
102748         Enable the function only if HAVE_INLINE.
102749         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
102750         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
102751         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
102752         Enable the function only if HAVE_INLINE.
102753         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
102754         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
102755         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
102756         Enable the function only if HAVE_INLINE.
102757         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
102758         Enable the function only if HAVE_INLINE.
102759         * modules/utf8-ucs4: Update.
102760         * modules/utf8-ucs4-unsafe: Update.
102761         * modules/utf16-ucs4: Update.
102762         * modules/utf16-ucs4-unsafe: Update.
102763         * modules/ucs4-utf8: Update.
102764         * modules/ucs4-utf16: Update.
102766 2007-03-24  Bruno Haible  <bruno@clisp.org>
102768         * lib/utf8-ucs4.h: Remove file.
102769         * lib/utf8-ucs4-unsafe.h: Remove file.
102770         * lib/utf16-ucs4.h: Remove file.
102771         * lib/utf16-ucs4-unsafe.h: Remove file.
102772         * lib/ucs4-utf8.h: Remove file.
102773         * lib/ucs4-utf16.h: Remove file.
102774         * lib/unistr.h: Include their previous contents.
102775         * m4/utf-ucs4.m4: Remove file.
102776         * m4/ucs4-utf.m4: Remove file.
102777         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
102778         (Depends-on): Add unistr/base.
102779         (configure.ac): Remove gl_UTF_UCS4.
102780         (Makefile.am): Update.
102781         (Include): Change to unistr.h.
102782         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
102783         (Depends-on): Add unistr/base.
102784         (configure.ac): Remove gl_UTF_UCS4.
102785         (Makefile.am): Update.
102786         (Include): Change to unistr.h.
102787         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
102788         (Depends-on): Add unistr/base.
102789         (configure.ac): Remove gl_UTF_UCS4.
102790         (Makefile.am): Update.
102791         (Include): Change to unistr.h.
102792         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
102793         (Depends-on): Add unistr/base.
102794         (configure.ac): Remove gl_UTF_UCS4.
102795         (Makefile.am): Update.
102796         (Include): Change to unistr.h.
102797         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
102798         (Depends-on): Add unistr/base.
102799         (configure.ac): Remove gl_UCS4_UTF.
102800         (Makefile.am): Update.
102801         (Include): Change to unistr.h.
102802         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
102803         (Depends-on): Add unistr/base.
102804         (configure.ac): Remove gl_UCS4_UTF.
102805         (Makefile.am): Update.
102806         (Include): Change to unistr.h.
102807         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
102808         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
102809         utf8-ucs4-unsafe.h.
102810         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
102811         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
102812         utf16-ucs4-unsafe.h.
102813         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
102814         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
102815         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
102816         * lib/unistr/u8-strchr.c: Likewise.
102817         * lib/unistr/u8-strrchr.c: Likewise.
102818         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
102819         * lib/unistr/u16-strchr.c: Likewise.
102820         * lib/unistr/u16-strrchr.c: Likewise.
102821         * lib/striconveh.c: Update.
102822         * lib/linebreak.c: Update.
102824 2007-03-24  Bruno Haible  <bruno@clisp.org>
102826         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
102827         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
102829 2007-03-22  Bruno Haible  <bruno@clisp.org>
102831         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
102833 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
102835         * MODULES.html.sh (File system functions): New module write-any-file.
102836         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
102837         * m4/write-any-file.m4: New files.
102839 2007-03-23  Eric Blake  <ebb9@byu.net>
102841         * gnulib-tool: Rearrange space-tab sequences, since some editors
102842         like to eat them.
102844 2007-03-23  Eric Blake  <ebb9@byu.net>
102846         * lib/version-etc.c (version_etc_va): Update license wording to
102847         be more concise.  Recommended by Richard Stallman.
102849 2007-03-22  Bruno Haible  <bruno@clisp.org>
102851         * lib/poll.c (MSG_PEEK): New fallback definition.
102853 2007-03-22  Bruno Haible  <bruno@clisp.org>
102855         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
102856         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
102857         (main): Update.
102858         Fixes a compilation error on BeOS.
102860 2007-03-22  Bruno Haible  <bruno@clisp.org>
102862         * modules/frexpl-tests: New file.
102863         * tests/test-frexpl.c: New file.
102865         * modules/frexpl: New file.
102866         * m4/frexpl.m4: New file.
102867         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
102868         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
102869         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
102870         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
102871         (Depends-on): Add frexpl. Remove isnanl-nolibm.
102872         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
102874 2007-03-22  Bruno Haible  <bruno@clisp.org>
102876         * lib/frexpl.c: Share code with lib/frexp.c.
102877         * modules/mathl (Files): Add lib/frexp.c.
102878         (Depends-on): Add isnanl-nolibm.
102880 2007-03-22  Bruno Haible  <bruno@clisp.org>
102882         * modules/printf-frexp (Files): Add m4/frexp.m4.
102883         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
102884         only if the found frexp function actually works.
102886 2007-03-22  Bruno Haible  <bruno@clisp.org>
102888         * lib/frexp.c: Remove older implementation that uses divisions.
102890 2007-03-21  Bruno Haible  <bruno@clisp.org>
102892         * modules/frexp-tests: New file.
102893         * tests/test-frexp.c: New file.
102895         * modules/frexp: New file.
102896         * lib/frexp.c: New file.
102897         * m4/frexp.m4: New file.
102898         * lib/math_.h (frexp): New declaration.
102899         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
102900         REPLACE_FREXP.
102901         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
102903 2007-03-21  Bruno Haible  <bruno@clisp.org>
102905         * modules/isnanl-tests: New file.
102906         * tests/test-isnanl.c: New file.
102908         * modules/isnanl: New file.
102909         * lib/isnanl.h: New file.
102910         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
102911         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
102912         gl_FUNC_ISNANL_WORKS.
102913         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
102914         New macros.
102916 2007-03-21  Bruno Haible  <bruno@clisp.org>
102918         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
102919         lib/isnanl.h.
102920         (Include): Update.
102921         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
102922         * lib/vasnprintf.c: Update.
102923         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
102924         tests/test-isnanl.h, remove tests/test-isnanl.c.
102925         (Makefile.am): Update.
102926         * tests/test-isnanl-nolibm.c: New file.
102927         * tests/test-isnanl.h: New file.
102928         * tests/test-isnanl.c: Remove file.
102930 2007-03-21  Jim Meyering  <jim@meyering.net>
102932         When trying to open ".", treat ESTALE like EACCES.
102933         * lib/savewd.c (savewd_save): Resort to forking not just upon
102934         failure with EACCES, but also when errno is ESTALE.
102936 2007-03-20  Bruno Haible  <bruno@clisp.org>
102938         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
102939         Needed on AIX 5.1. Reported by Matthew Woehlke.
102941 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
102943         Suggestions by Bruno Haible:
102944         * lib/acl-internal.h: Include "gettext.h" rather than rolling
102945         our own.
102946         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
102947         * modules/acl (Depends-on): Add gettext.
102949 2007-03-19  Bruno Haible  <bruno@clisp.org>
102951         * modules/iconvme: Remove file.
102952         * lib/iconvme.h: Remove file.
102953         * lib/iconvme.c: Remove file.
102954         * m4/iconvme.m4: Remove file.
102956 2007-03-19  Bruno Haible  <bruno@clisp.org>
102958         * doc/relocatable-maint.texi: Break long shell script line.
102959         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
102961 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
102963         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
102964         handle file_has_acl.
102965         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
102966         * lib/acl.c: Move header inclusions and related macro defns into
102967         lib/acl-internal.h.
102968         (S_ISLNK): Remove defn, since that's now done for us.
102969         (file_has_acl): Move to lib/file-has-acl.c.
102970         Call acl_trivial if available.  This is the crucial part of the fix.
102971         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
102972         shared within the library.  Rewrite a bit, partly to make it compatible
102973         with the GNU coding style.
102974         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
102975         Remove unnecessary double-quotes.
102976         Don't test for acl_to_text; the build will catch that.
102977         Replace acl_entries if it doesn't exist and it is needed.
102978         Check for -lsec and acl_trivial (as used on Solaris 10).
102979         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
102980         lib/file-has-acl.c.
102981         (Depends-on): Add sys_stat, for S_ISLNK.
102983 2007-03-19  Ben Pfaff  <blp@gnu.org>
102985         * doc/gnulib.texi: Fix typos.
102986         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
102988 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
102990         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
102991         If size is zero here, buf must be zero.
102993 2007-03-19  Simon Josefsson  <simon@josefsson.org>
102995         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
102996         <bruno@clisp.org>.
102998 2007-03-18  Bruno Haible  <bruno@clisp.org>
103000         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
103001         Suggested by Eric Blake.
103003 2007-03-18  Ben Pfaff  <blp@gnu.org>
103005         * doc/relocatable.texi: Recommend using as prefix a directory
103006         that does not exist and will never be created.  Based on
103007         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
103008         and others.
103010 2007-03-17  Bruno Haible  <bruno@clisp.org>
103012         * lib/fchownat.c: Include lchown.h.
103014 2007-03-17  Bruno Haible  <bruno@clisp.org>
103016         Fix endless loop when the given allocated size was > INT_MAX.
103017         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
103018         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
103019         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
103020         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
103021         * lib/sprintf.c (sprintf): Likewise.
103023 2007-03-17  Bruno Haible  <bruno@clisp.org>
103025         * tests/test-argp-2.sh (func_compare): Output a context diff.
103027 2007-03-17  Bruno Haible  <bruno@clisp.org>
103029         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
103030         locale's decimal-point character.
103032 2007-03-17  Bruno Haible  <bruno@clisp.org>
103034         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
103035         before comparing it. Needed because on some platforms (e.g. x86) a
103036         'long double' occupies less bytes than sizeof (long double).
103038 2007-03-17  Bruno Haible  <bruno@clisp.org>
103040         * tests/test-crc.c (main): Make printf statements 64-bit clean.
103041         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
103042         * tests/test-getaddrinfo.c (simple): Likewise.
103043         * tests/test-read-file.c (main): Likewise.
103045 2007-03-17  Bruno Haible  <bruno@clisp.org>
103047         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
103049 2007-03-17  Bruno Haible  <bruno@clisp.org>
103051         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
103052         unused variable.
103054 2007-03-17  Bruno Haible  <bruno@clisp.org>
103056         * tests/test-c-strcasecmp.c: Include c-strcase.h.
103057         * tests/test-c-strncasecmp.c: Likewise.
103059 2007-03-17  Bruno Haible  <bruno@clisp.org>
103061         * modules/stdlib (Depends-on): Add unistd.
103062         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
103063         Needed for MacOS X 10.3.
103065 2007-03-17  Bruno Haible  <bruno@clisp.org>
103067         * lib/unistr/u-strdup.h: Include <stdlib.h>.
103069 2007-03-17  Bruno Haible  <bruno@clisp.org>
103071         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
103073 2007-03-17  Bruno Haible  <bruno@clisp.org>
103075         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
103076         to reflect files copied from gnulib (with or without modifications).
103077         Suggested by Jim Meyering.
103079 2007-03-17  Eric Blake  <ebb9@byu.net>
103081         * NEWS: Document stdlib change from 2007-02-18.
103083 2007-03-17  Jim Meyering  <jim@meyering.net>
103085         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
103086         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
103087         someone uses a name containing shell meta-characters.
103088         Reported by Alfred M. Szmidt.
103090         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
103092 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
103094         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
103095         and copy gettext configuration files only if configure.ac contains
103096         a use of AM_GNU_GETTEXT_VERSION.
103098 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
103100         * build-aux/bootstrap (gnulib_name): New variable.
103101         (gnulib_tool_options): Use it.
103103 2007-03-13  Simon Josefsson  <simon@josefsson.org>
103105         * tests/test-des.c: Use new namespace.
103107 2007-03-15  Bruno Haible  <bruno@clisp.org>
103109         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
103110         Reported by James Youngman <jay@gnu.org>.
103112 2007-03-15  Bruno Haible  <bruno@clisp.org>
103114         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
103115         declared prototype. Needed with cc on OSF/1 5.1.
103117 2007-03-15  Bruno Haible  <bruno@clisp.org>
103119         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
103120         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
103121         (struct gl_list_implementation): Add dispose_fn argument to the
103122         'create_empty', 'create' methods.
103123         (struct gl_list_impl_base): Add field 'dispose_fn'.
103124         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
103125         argument.
103126         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
103127         dispose_fn argument.
103128         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
103129         dispose_fn on the dropped values.
103130         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
103131         dispose_fn argument.
103132         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
103133         dropped values.
103134         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
103135         (gl_tree_remove_node): Call dispose_fn on the dropped value.
103136         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
103137         (gl_tree_remove_node): Call dispose_fn on the dropped value.
103138         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
103139         argument.
103140         (gl_tree_list_free): Call dispose_fn on the dropped values.
103141         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
103142         the dropped values.
103143         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
103144         Add dispose_fn argument.
103145         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
103146         Call dispose_fn on the dropped values.
103147         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
103148         Add dispose_fn argument.
103149         (gl_sublist_create): Initialize the 'dispose_fn' field.
103150         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
103151         * tests/test-array_list.c (main): Update.
103152         * tests/test-carray_list.c (main): Update.
103153         * tests/test-avltree_list.c (main): Update.
103154         * tests/test-rbtree_list.c (main): Update.
103155         * tests/test-avltreehash_list.c (main): Update.
103156         * tests/test-rbtreehash_list.c (main): Update.
103157         * tests/test-linked_list.c (main): Update.
103158         * tests/test-linkedhash_list.c (main): Update.
103159         * tests/test-array_oset.c (main): Update.
103161 2007-03-15  Bruno Haible  <bruno@clisp.org>
103163         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
103164         (gl_oset_create_empty): Add dispose_fn argument.
103165         (struct gl_oset_implementation): Add dispose_fn argument to
103166         'create_empty' method.
103167         (struct gl_oset_impl_base): Add dispose_fn field.
103168         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
103169         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
103170         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
103171         values.
103172         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
103173         (gl_tree_oset_free): Call dispose_fn on the dropped values.
103174         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
103175         dropped value.
103176         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
103177         dropped value.
103178         * tests/test-array_oset.c (main): Update.
103179         * tests/test-avltree_oset.c (main): Update.
103180         * tests/test-rbtree_oset.c (main): Update.
103181         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
103183 2007-03-13  Bruno Haible  <bruno@clisp.org>
103185         * tests/test-stdbool.c (i): Update after last patch.
103187 2007-03-12  Bruno Haible  <bruno@clisp.org>
103189         * lib/quotearg.c: Include <wctype.h> early, before the definition of
103190         the iswprint macro. Needed on Solaris 2.5.1.
103192 2007-03-12  Bruno Haible  <bruno@clisp.org>
103194         * tests/test-printf-frexp.c (main): Declare x as volatile.
103196 2007-03-12  Simon Josefsson  <simon@josefsson.org>
103198         * doc/gnulib.texi (Build robot for gnulib): New section.
103200 2007-03-12  Jim Meyering  <jim@meyering.net>
103202         * build-aux/bootstrap: New file.
103203         * build-aux/bootstrap.conf: New file, from coreutils.
103205 2007-03-11  Bruno Haible  <bruno@clisp.org>
103207         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
103209 2007-03-12  Simon Josefsson  <simon@josefsson.org>
103211         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
103212         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
103213         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
103215 2007-03-11  Bruno Haible  <bruno@clisp.org>
103217         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
103218         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
103220 2007-03-11  Bruno Haible  <bruno@clisp.org>
103222         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
103223         formula. Needed for SunPRO C 5.0.
103225 2007-03-11  Bruno Haible  <bruno@clisp.org>
103227         * modules/long-options (Depends-on): Add getopt.
103229 2007-03-11  Bruno Haible  <bruno@clisp.org>
103231         * modules/modechange (Depends-on): Add stdbool.
103233 2007-03-11  Bruno Haible  <bruno@clisp.org>
103235         * modules/i-ring (Depends-on): Add stdbool.
103237 2007-03-11  Bruno Haible  <bruno@clisp.org>
103239         * modules/gc-des (Depends-on): Add stdbool.
103241 2007-03-11  Bruno Haible  <bruno@clisp.org>
103243         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
103245 2007-03-11  Bruno Haible  <bruno@clisp.org>
103247         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
103249 2007-03-11  Bruno Haible  <bruno@clisp.org>
103251         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
103253 2007-03-11  Bruno Haible  <bruno@clisp.org>
103255         * lib/vasnprintf.c (sprintf): Undefine.
103257 2007-03-11  Bruno Haible  <bruno@clisp.org>
103259         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
103260         initializers in SunPRO C and Compaq C compilers.
103262 2007-03-11  Bruno Haible  <bruno@clisp.org>
103264         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
103265         decrementing code ANSI C compliant.
103267 2007-03-11  Bruno Haible  <bruno@clisp.org>
103269         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
103270         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
103272 2007-03-11  Bruno Haible  <bruno@clisp.org>
103274         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
103275         <stdbool.h> substitute doesn't pass.
103277 2007-03-11  Bruno Haible  <bruno@clisp.org>
103279         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
103281 2007-03-11  Bruno Haible  <bruno@clisp.org>
103283         * gnulib-tool (func_create_megatestdir): Create also an autobuild
103284         script, for submission to autobuild.josefsson.org.
103286 2007-03-10  Bruno Haible  <bruno@clisp.org>
103288         * modules/canonicalize-lgpl-tests: New file.
103289         * tests/test-canonicalize-lgpl.sh: New file.
103290         * tests/test-canonicalize-lgpl.c: New file.
103292         * modules/c-strcase-tests: New file.
103293         * tests/test-c-strcase.sh: New file.
103294         * tests/test-c-strcasecmp.c: New file.
103295         * tests/test-c-strncasecmp.c: New file.
103297         * modules/atexit-tests: New file.
103298         * tests/test-atexit.sh: New file.
103299         * tests/test-atexit.c: New file.
103301 2007-03-10  Bruno Haible  <bruno@clisp.org>
103303         * tests/test-binary-io.sh: Use temporary filenames that are not so
103304         likely to clash with those of other tests (in a parallel make).
103305         * tests/test-binary-io.c: Likewise.
103307 2007-03-10  Bruno Haible  <bruno@clisp.org>
103309         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
103310         fallback; use #error instead.
103311         Suggested by Simon Josefsson.
103313 2007-03-10  Bruno Haible  <bruno@clisp.org>
103315         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
103316         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
103317         first and the last.
103319 2007-03-10  Bruno Haible  <bruno@clisp.org>
103321         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
103323 2007-03-10  Bruno Haible  <bruno@clisp.org>
103325         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
103326         "make distcheck".
103327         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
103328         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
103329         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
103331 2007-03-10  Bruno Haible  <bruno@clisp.org>
103333         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
103334         variable.
103335         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
103336         variable.
103338 2007-03-09  Eric Blake  <ebb9@byu.net>
103339         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
103341         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
103342         types are not being provided by gnulib.
103343         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
103344         types are supported.
103346 2007-03-10  Bruno Haible  <bruno@clisp.org>
103348         * lib/stdio_.h (__attribute__): New macro.
103349         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
103350         vsprintf): Specify __attribute__ __format__ for GCC.
103351         Suggested by Eric Blake.
103353 2007-03-09  Bruno Haible  <bruno@clisp.org>
103355         * modules/printf-posix-tests: New file.
103356         * tests/test-printf-posix.sh: New file.
103357         * tests/test-printf-posix.c: New file.
103359         * modules/printf-posix: New file.
103360         * lib/printf.c: New file.
103361         * m4/printf-posix-rpl.m4: New file.
103362         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
103363         REPLACE_PRINTF.
103364         * lib/stdio_.h (printf): New declaration.
103365         (format, __format__, ____printf____, ____scanf____, ____strftime____,
103366         ____strfmon____): New macros.
103367         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
103368         REPLACE_PRINTF.
103370 2007-03-09  Bruno Haible  <bruno@clisp.org>
103372         * tests/test-vasnprintf-posix2.sh: New file.
103373         * tests/test-vasnprintf-posix2.c: New file.
103374         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
103375         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
103376         (Makefile.am): Activate test-vasnprintf-posix2.sh.
103378         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
103379         a locale dependent decimal point, rather than always '.'.
103381 2007-03-09  Eric Blake  <ebb9@byu.net>
103383         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
103384         spite of platforms like Tandem/NSK that define it to -1.
103386 2007-03-08  Bruno Haible  <bruno@clisp.org>
103388         * modules/vprintf-posix-tests: New file.
103389         * tests/test-vprintf-posix.sh: New file.
103390         * tests/test-vprintf-posix.c: New file.
103391         * tests/test-printf-posix.h: New file.
103393         * modules/vprintf-posix: New file.
103394         * lib/vprintf.c: New file.
103395         * m4/vprintf-posix.m4: New file.
103396         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
103397         REPLACE_VPRINTF.
103398         * lib/stdio_.h (vprintf): New declaration.
103399         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
103400         REPLACE_VPRINTF.
103402 2007-03-08  Bruno Haible  <bruno@clisp.org>
103404         * modules/fprintf-posix-tests: New file.
103405         * tests/test-fprintf-posix.sh: New file.
103406         * tests/test-fprintf-posix.c: New file.
103408         * modules/fprintf-posix: New file.
103409         * lib/fprintf.c: New file.
103410         * m4/fprintf-posix.m4: New file.
103411         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
103412         REPLACE_FPRINTF.
103413         * lib/stdio_.h (fprintf): New declaration.
103414         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
103415         REPLACE_FPRINTF.
103417 2007-03-08  Bruno Haible  <bruno@clisp.org>
103419         * modules/vfprintf-posix-tests: New file.
103420         * tests/test-vfprintf-posix.sh: New file.
103421         * tests/test-vfprintf-posix.c: New file.
103422         * tests/test-fprintf-posix.h: New file.
103423         * tests/test-fprintf-posix.out: New file.
103425         * modules/vfprintf-posix: New file.
103426         * lib/vfprintf.c: New file.
103427         * m4/vfprintf-posix.m4: New file.
103428         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
103429         REPLACE_VFPRINTF.
103430         * lib/stdio_.h (vfprintf): New declaration.
103431         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
103432         REPLACE_VFPRINTF.
103434 2007-03-08  Bruno Haible  <bruno@clisp.org>
103436         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
103438 2007-03-08  Bruno Haible  <bruno@clisp.org>
103440         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
103441         instead of 'expr' invocations.
103442         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103443         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103444         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103445         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103446         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103447         Suggested by Paul Eggert.
103449 2007-03-08  Bruno Haible  <bruno@clisp.org>
103451         * modules/fseterr-tests: New file.
103452         * tests/test-fseterr.c: New file.
103454         * modules/fseterr: New file.
103455         * lib/fseterr.h: New file.
103456         * lib/fseterr.c: New file.
103458 2007-03-08  Bruno Haible  <bruno@clisp.org>
103460         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
103461         * lib/getopt_.h: Likewise.
103462         * lib/mbswidth.h: Likewise.
103463         * lib/setenv.h: Likewise.
103464         * lib/vasnprintf.h: Likewise.
103465         * lib/vasprintf.h: Likewise.
103466         * lib/verror.h: Likewise.
103467         * lib/xsetenv.h: Likewise.
103468         * lib/xvasprintf.h: Likewise.
103470 2007-03-08  Jim Meyering  <jim@meyering.net>
103472         * users.txt: Add parted.
103474         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
103476 2007-03-07  Bruno Haible  <bruno@clisp.org>
103478         * m4/printf.m4: Make the shell script snippets copy&pastable.
103480 2007-03-02  Bruno Haible  <bruno@clisp.org>
103482         * lib/netinet_in_.h: New file.
103483         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
103484         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
103485         * modules/netinet_in (Files): Add lib/netinet_in_.h.
103486         (Depends-on): Add absolute-header.
103487         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
103488         into netinet/in.h.
103490 2007-03-03  Bruno Haible  <bruno@clisp.org>
103492         * lib/sys_select_.h: New file.
103493         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
103494         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
103495         * modules/sys_select (Files): Add lib/sys_select_.h.
103496         (Depends-on): Add absolute-header.
103497         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
103498         into sys/select.h.
103500 2007-03-02  Bruno Haible  <bruno@clisp.org>
103502         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
103503         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
103504         values.
103505         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
103506         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
103507         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
103508         * modules/sys_socket (Depends-on): Add absolute-header.
103509         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
103510         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
103511         (Include): Remove requirement of inclusion of <sys/types.h>.
103513 2007-03-02  Bruno Haible  <bruno@clisp.org>
103515         * lib/byteswap_.h (bswap_32): Fix formula.
103517 2007-03-06  Bruno Haible  <bruno@clisp.org>
103519         * modules/sprintf-posix-tests: New file.
103520         * tests/test-sprintf-posix.c: New file.
103522         * modules/sprintf-posix: New file.
103523         * lib/sprintf.c: New file.
103524         * m4/sprintf-posix.m4: New file.
103525         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
103526         REPLACE_SPRINTF.
103527         * lib/stdio_.h (sprintf): New declaration.
103528         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
103529         REPLACE_SPRINTF.
103531 2007-03-06  Bruno Haible  <bruno@clisp.org>
103533         * modules/vsprintf-posix-tests: New file.
103534         * tests/test-vsprintf-posix.c: New file.
103535         * tests/test-sprintf-posix.h: New file.
103537         * modules/vsprintf-posix: New file.
103538         * lib/vsprintf.c: New file.
103539         * m4/vsprintf-posix.m4: New file.
103540         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
103541         REPLACE_VSPRINTF.
103542         * lib/stdio_.h (vsprintf): New declaration.
103543         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
103544         REPLACE_VSPRINTF.
103546 2007-03-06  Bruno Haible  <bruno@clisp.org>
103548         * modules/vsnprintf (Depend-on): Remove minmax.
103550 2007-03-06  Bruno Haible  <bruno@clisp.org>
103552         * modules/snprintf-posix-tests: New file.
103553         * tests/test-snprintf-posix.c: New file.
103555         * modules/snprintf-posix: New file.
103556         * m4/snprintf-posix.m4: New file.
103557         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
103558         gl_FUNC_SNPRINTF.
103559         (gl_FUNC_SNPRINTF): Invoke it.
103560         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
103561         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
103562         is set.
103563         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
103565 2007-03-06  Bruno Haible  <bruno@clisp.org>
103567         * modules/vsnprintf-posix-tests: New file.
103568         * tests/test-vsnprintf-posix.c: New file.
103569         * tests/test-snprintf-posix.h: New file.
103571         * modules/vsnprintf-posix: New file.
103572         * m4/vsnprintf-posix.m4: New file.
103573         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
103574         gl_FUNC_VSNPRINTF.
103575         (gl_FUNC_VSNPRINTF): Invoke it.
103576         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
103577         * lib/stdio_.h (vsnprintf): Define as a replacement if
103578         REPLACE_VSNPRINTF is set.
103579         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
103581 2007-03-06  Bruno Haible  <bruno@clisp.org>
103583         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
103584         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
103586 2007-03-06  Bruno Haible  <bruno@clisp.org>
103588         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
103589         (asinl): Declare also if HAVE_DECL_ASINL is set.
103590         (atanl): Declare also if HAVE_DECL_ATANL is set.
103591         (ceill): Declare also if HAVE_DECL_CEILL is set.
103592         (cosl): Declare also if HAVE_DECL_COSL is set.
103593         (expl): Declare also if HAVE_DECL_EXPL is set.
103594         (floorl): Declare also if HAVE_DECL_FLOORL is set.
103595         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
103596         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
103597         (logl): Declare also if HAVE_DECL_LOGL is set.
103598         (sinl): Declare also if HAVE_DECL_SINL is set.
103599         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
103600         (tanl): Declare also if HAVE_DECL_TANL is set.
103601         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
103602         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
103603         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
103604         declaration of frexpl, ldexpl.
103605         * modules/printf-frexpl (Depends-on): Add math.
103606         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
103608 2007-03-05  Bruno Haible  <bruno@clisp.org>
103610         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
103611         frexpl and ldexpl are declared.
103612         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
103614 2007-03-05  Bruno Haible  <bruno@clisp.org>
103616         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
103617         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
103619 2007-03-05  Bruno Haible  <bruno@clisp.org>
103621         * lib/stdio_.h: Include <stddef.h>.
103623 2007-03-05  Bruno Haible  <bruno@clisp.org>
103625         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
103627 2007-03-05  Bruno Haible  <bruno@clisp.org>
103629         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
103630         NetBSD 4, from Ralf Wildenhues.
103632 2007-03-04  Bruno Haible  <bruno@clisp.org>
103634         * lib/vasprintf.h: Update #if logic for the case when the functions
103635         exist but are overridden.
103637 2007-03-04  Bruno Haible  <bruno@clisp.org>
103639         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
103640         implementations: glibc-2.4 and MacOS X 10.3.
103641         * tests/test-vasnprintf-posix.c (test_function): Test also the case
103642         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
103643         * tests/test-vasprintf-posix.c (test_function): Likewise.
103645 2007-03-04  Bruno Haible  <bruno@clisp.org>
103647         * modules/vasprintf-posix-tests: New file.
103648         * tests/test-vasprintf-posix.c: New file.
103650         * modules/vasprintf-posix: New file.
103651         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
103652         defined.
103653         * m4/vasprintf-posix.m4: New file.
103654         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
103655         gl_FUNC_VASPRINTF.
103656         (gl_FUNC_VASPRINTF): Invoke it.
103657         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
103658         here.
103659         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
103661 2007-03-04  Bruno Haible  <bruno@clisp.org>
103663         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
103664         REPLACE_GETTIMEOFDAY.
103665         * modules/sys_time (Makefile.am): Likewise.
103666         * m4/sys_time_h.m4: Likewise.
103667         * m4/gettimeofday.m4: Likewise.
103669 2007-03-04  Bruno Haible  <bruno@clisp.org>
103671         * modules/vasnprintf-posix-tests: New file.
103672         * tests/test-vasnprintf-posix.c: New file.
103674         * modules/vasnprintf-posix: New file.
103675         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
103676         printf-frexpl.h.
103677         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
103678         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
103679         REPLACE_VASNPRINTF is defined.
103680         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
103681         gl_FUNC_VASNPRINTF.
103682         (gl_FUNC_VASNPRINTF): Invoke it.
103683         * m4/vasnprintf-posix.m4: New file.
103684         * m4/printf.m4: New file.
103686 2007-03-04  Bruno Haible  <bruno@clisp.org>
103688         Compile progreloc.c only if --enable-relocatable is specified.
103689         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
103690         if --enable-relocatable was specified.
103691         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
103692         lib_SOURCES.
103694 2007-03-04  Jim Meyering  <jim@meyering.net>
103696         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
103697         Use it consistently, rather than enumerating errno constants.
103699 2007-03-04  Bruno Haible  <bruno@clisp.org>
103701         * modules/xvasprintf-tests: New file.
103702         * tests/test-xvasprintf.c: New file.
103704         * modules/vasprintf-tests: New file.
103705         * tests/test-vasprintf.c: New file.
103707         * modules/vasnprintf-tests: New file.
103708         * tests/test-vasnprintf.c: New file.
103710         * modules/vsnprintf-tests: New file.
103711         * tests/test-vsnprintf.c: New file.
103713         * modules/snprintf-tests: New file.
103714         * tests/test-snprintf.c: New file.
103716 2007-03-04  Bruno Haible  <bruno@clisp.org>
103718         Compile relocatable.c only if --enable-relocatable is specified.
103719         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
103720         gl_RELOCATABLE_LIBRARY.
103721         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
103722         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
103723         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
103724         gl_RELOCATABLE_LIBRARY.
103725         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
103726         (Makefile.am): Remove lib_SOURCES.
103727         * modules/relocatable-lib-lgpl (configure.ac): Invoke
103728         gl_RELOCATABLE_LIBRARY.
103729         (Makefile.am): Remove lib_SOURCES.
103730         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
103731         always.
103732         * modules/relocatable-prog-wrapper (configure.ac): Invoke
103733         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
103735 2007-03-04  Bruno Haible  <bruno@clisp.org>
103737         * modules/argmatch-tests: New file.
103738         * tests/test-argmatch.c: New file.
103740         * tests/test-allocsa.c (main): Halve the number of loop runs.
103742         * modules/alloca-opt-tests: New file.
103743         * tests/test-alloca-opt.c: New file.
103745 2007-03-04  Jim Meyering  <jim@meyering.net>
103747         Work around difference between Linux ACLs and Solaris 10 ZFS.
103748         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
103749         for EINVAL.
103751 2007-03-03  Bruno Haible  <bruno@clisp.org>
103753         * modules/relocatable-prog (Depends-on): Add back progreloc's
103754         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
103756 2007-03-03  Bruno Haible  <bruno@clisp.org>
103758         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
103759         * modules/relocatable-lib: New file.
103761 2007-03-03  Bruno Haible  <bruno@clisp.org>
103763         * modules/relocatable-prog: Renamed from modules/relocatable.
103764         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
103766 2007-03-03  Bruno Haible  <bruno@clisp.org>
103768         * modules/relocatable-script (Files): Add doc/relocatable.texi,
103769         m4/relocatable-lib.m4.
103770         (Depends-on): Remove 'relocatable'.
103771         (configure.ac): Add gl_RELOCATABLE_NOP.
103773 2007-03-03  Bruno Haible  <bruno@clisp.org>
103775         * modules/relocatable-prog-wrapper: New file.
103776         * modules/relocatable (Depends-on): Add it. Remove all other
103777         dependencies except progname.
103778         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
103780         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
103781         (gl_FUNC_STRERROR): Nop.
103782         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
103784         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
103785         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
103787         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
103788         (gl_FUNC_READLINK): Update.
103790         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
103792 2007-03-03  Bruno Haible  <bruno@clisp.org>
103794         * lib/xreadlink.c: Include <unistd.h> unconditionally.
103795         * modules/xreadlink (Depends-on): Add unistd.
103796         * modules/xreadlink-with-size (Depends-on): Likewise.
103798 2007-03-03  Bruno Haible  <bruno@clisp.org>
103800         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
103801         extracted from gt_FUNC_SETENV.
103802         (gt_FUNC_SETENV): Remove macro.
103803         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
103804         remove gt_FUNC_SETENV.
103806 2007-03-03  Bruno Haible  <bruno@clisp.org>
103808         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
103809         ENABLE_RELOCATABLE here.
103810         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
103812 2007-03-03  Bruno Haible  <bruno@clisp.org>
103814         * modules/rbtreehash-list-tests (Depends-on): Add progname.
103815         * tests/test-rbtreehash_list.c: Include progname.h.
103816         (main): Call set_program_name.
103818         * modules/rbtree-oset-tests (Depends-on): Add progname.
103819         * tests/test-rbtree_oset.c: Include progname.h.
103820         (main): Call set_program_name.
103822         * modules/rbtree-list-tests (Depends-on): Add progname.
103823         * tests/test-rbtree_list.c: Include progname.h.
103824         (main): Call set_program_name.
103826         * modules/linked-list-tests (Depends-on): Add progname.
103827         * tests/test-linked_list.c: Include progname.h.
103828         (main): Call set_program_name.
103830 2007-03-03  Bruno Haible  <bruno@clisp.org>
103832         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
103833         All uses of __restrict changed to _Restrict_.
103834         * lib/glob_.h (__restrict): Remove macro.
103836 2007-03-02  Bruno Haible  <bruno@clisp.org>
103838         * modules/gettext (configure.ac): Require gettext infrastructure
103839         from version 0.16.1.
103841 2007-03-02  Bruno Haible  <bruno@clisp.org>
103843         * modules/linkedhash-list-tests (Depends-on): Add progname.
103844         * tests/test-linkedhash_list.c: Include progname.h.
103845         (main): Call set_program_name.
103847         * modules/carray-list-tests (Depends-on): Add progname.
103848         * tests/test-carray_list.c: Include progname.h.
103849         (main): Call set_program_name.
103851         * modules/avltreehash-list-tests (Depends-on): Add progname.
103852         * tests/test-avltreehash_list.c: Include progname.h.
103853         (main): Call set_program_name.
103855         * modules/avltree-oset-tests (Depends-on): Add progname.
103856         * tests/test-avltree_oset.c: Include progname.h.
103857         (main): Call set_program_name.
103859         * modules/avltree-list-tests (Depends-on): Add progname.
103860         * tests/test-avltree_list.c: Include progname.h.
103861         (main): Call set_program_name.
103863         * modules/array-oset-tests (Depends-on): Add progname.
103864         * tests/test-array_oset.c: Include progname.h.
103865         (main): Call set_program_name.
103867         * modules/array-list-tests (Depends-on): Add progname.
103868         * tests/test-array_list.c: Include progname.h.
103869         (main): Call set_program_name.
103871         * modules/argp-tests (Depends-on): Add progname.
103872         * tests/test-argp.c: Include argp.h first. Include progname.h.
103873         (main): Call set_program_name.
103875 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
103877         * doc/gnulib-tool.texi (Initial import): Reword description of
103878         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
103879         limited effect even if defined after the first system include.
103881 2007-03-01  Bruno Haible  <bruno@clisp.org>
103883         * build-aux/config.libpath: Update to libtool-1.5.22.
103884         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
103886 2007-03-01  Bruno Haible  <bruno@clisp.org>
103888         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
103889         foo_CFLAGS.
103890         Reported by Ralf Wildenhues.
103892 2007-03-01  Bruno Haible  <bruno@clisp.org>
103894         * build-aux/install-reloc: Remove object files left over by some
103895         compilers.
103896         Reported by Ralf Wildenhues.
103898 2007-03-01  Bruno Haible  <bruno@clisp.org>
103900         * build-aux/install-reloc: Break long lines.
103902 2007-03-01  Bruno Haible  <bruno@clisp.org>
103904         * doc/relocatable.texi: Document that it may not work on OpenBSD.
103905         Reported by Ralf Wildenhues.
103907 2007-03-01  Bruno Haible  <bruno@clisp.org>
103909         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
103910         include ordering constraints.
103912 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
103914         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
103915         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
103916         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
103917         as another example.
103918         * lib/time_.h: Fix misspelling.
103919         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
103920         Require gl_HEADER_TIME_H_DEFAULTS.
103921         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
103922         * m4/time_r.m4 (gl_TIME_R): Likewise.
103923         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
103925 2007-03-01  Bruno Haible  <bruno@clisp.org>
103927         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
103928         * m4/utimens.m4 (gl_UTIMENS): Likewise.
103930 2007-03-01  Jim Meyering  <jim@meyering.net>
103932         * modules/xreadlink (Maintainer): Add my name.
103933         * modules/xreadlink-with-size (Depends-on): Alphabetize.
103935 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
103936             Bruno Haible  <bruno@clisp.org>
103938         * build-aux/install-reloc: Compile also c-ctype.c.
103939         * build-aux/relocatable.sh.in: New file.
103940         * doc/relocatable.texi: New file.
103941         * doc/relocatable-maint.texi: New file.
103942         * doc/gnulib.texi: Include relocatable-maint.texi.
103943         * lib/progreloc.c: Include unistd.h unconditionally.
103944         * lib/relocwrapper.c: Include unistd.h unconditionally.
103945         Include c-ctype.h.
103946         (add_dotbin): Use c_tolower.
103947         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
103948         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
103949         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
103950         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
103951         to m4/relocatable-lib.m4.
103952         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
103953         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
103954         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
103955         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
103956         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
103957         * modules/relocatable: New file.
103958         * modules/relocatable-lib: New file.
103959         * modules/relocatable-script: New file.
103961 2007-02-28  Bruno Haible  <bruno@clisp.org>
103963         Import --enable-relocatable infrastructure.
103964         * build-aux/config.libpath: New file, from GNU gettext.
103965         * build-aux/install-reloc: New file, from GNU gettext.
103966         * build-aux/reloc-ldflags: New file, from GNU gettext.
103967         * lib/relocatable.h: New file, from GNU gettext.
103968         * lib/relocatable.c: New file, from GNU gettext.
103969         * lib/relocwrapper.c: New file, from GNU gettext.
103970         * m4/relocatable.m4: New file, from GNU gettext.
103972 2007-02-28  Bruno Haible  <bruno@clisp.org>
103974         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
103976         * modules/xreadlink: New file, from GNU gettext with modifications.
103977         * lib/xreadlink.c: New file, from GNU gettext.
103978         * lib/xreadlink.h: Add comments.
103979         (xreadlink): New declaration.
103981         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
103982         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
103983         lib/xreadlink-with-size.c.
103984         (configure.ac): Remove gl_XREADLINK invocation.
103985         (Makefile.am): Augment lib_SOURCES.
103986         * m4/xreadlink.m4: Remove file.
103987         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
103988         (xreadlink_with_size): Renamed from xreadink.
103989         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
103990         * modules/canonicalize (Depends-on): Replace xreadlink with
103991         xreadlink-with-size.
103992         * lib/canonicalize.c (canonicalize_filename_mode): Update.
103994 2007-02-25  Jim Meyering  <jim@meyering.net>
103996         * build-aux/announce-gen: When complaining about excess arguments,
103997         list them.
103999 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
104001         * README: Document signed integer overflow situation more
104002         accurately.
104004 2007-02-25  Bruno Haible  <bruno@clisp.org>
104006         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
104007         'a' or 'A' conversion.
104009 2007-02-25  Bruno Haible  <bruno@clisp.org>
104011         * modules/filename: Renamed from modules/pathname.
104012         (Files): Replace lib/pathname.h with lib/filename.h. Replace
104013         lib/concatpath.c with lib/concat-filename.c.
104014         (Makefile.am): Update.
104015         (Include): Replace pathname.h with filename.h.
104016         * lib/filename.h: Renamed from lib/pathname.h.
104017         (concatenated_filename): Renamed from concatenated_pathname.
104018         * lib/concat-filename.c: Renamed from lib/concatpath.c.
104019         (concatenated_filename): Renamed from concatenated_pathname.
104020         * lib/findprog.c: Include filename.h instead of pathname.h.
104021         (find_in_path): Update.
104022         * lib/javacomp.c: Include filename.h instead of pathname.h.
104023         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
104024         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
104025         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
104026         is_oldgcj_14_13_usable, is_javac_usable): Update.
104027         * lib/javaexec.c: Include filename.h instead of pathname.h.
104028         (execute_java_class): Update.
104029         * modules/findprog: Update.
104030         * modules/javacomp: Update.
104031         * modules/javaexec: Update.
104032         * MODULES.html.sh (File system functions): Add 'filename', remove
104033         'pathname'.
104035 2007-02-25  Bruno Haible  <bruno@clisp.org>
104037         * modules/printf-frexpl-tests: New file.
104038         * tests/test-printf-frexpl.c: New file.
104040         * modules/printf-frexpl: New file.
104041         * lib/printf-frexpl.h: New file.
104042         * lib/printf-frexpl.c: New file.
104043         * m4/printf-frexpl.m4: New file.
104045 2007-02-25  Bruno Haible  <bruno@clisp.org>
104047         * modules/printf-frexp-tests: New file.
104048         * tests/test-printf-frexp.c: New file.
104050         * modules/printf-frexp: New file.
104051         * lib/printf-frexp.h: New file.
104052         * lib/printf-frexp.c: New file.
104053         * m4/printf-frexp.m4: New file.
104055 2007-02-25  Bruno Haible  <bruno@clisp.org>
104057         Assume automake >= 1.10 for the tests.
104058         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
104059         * modules/arctwo-tests: Likewise.
104060         * modules/argp-tests: Likewise.
104061         * modules/avltree-list-tests: Likewise.
104062         * modules/avltree-oset-tests: Likewise.
104063         * modules/avltreehash-list-tests: Likewise.
104064         * modules/carray-list-tests: Likewise.
104065         * modules/crc-tests: Likewise.
104066         * modules/des-tests: Likewise.
104067         * modules/gc-arcfour-tests: Likewise.
104068         * modules/gc-arctwo-tests: Likewise.
104069         * modules/gc-des-tests: Likewise.
104070         * modules/gc-hmac-md5-tests: Likewise.
104071         * modules/gc-hmac-sha1-tests: Likewise.
104072         * modules/gc-md2-tests: Likewise.
104073         * modules/gc-md4-tests: Likewise.
104074         * modules/gc-md5-tests: Likewise.
104075         * modules/gc-pbkdf2-sha1-tests: Likewise.
104076         * modules/gc-rijndael-tests: Likewise.
104077         * modules/gc-sha1-tests: Likewise.
104078         * modules/gc-tests: Likewise.
104079         * modules/getaddrinfo-tests: Likewise.
104080         * modules/hmac-md5-tests: Likewise.
104081         * modules/hmac-sha1-tests: Likewise.
104082         * modules/linked-list-tests: Likewise.
104083         * modules/linkedhash-list-tests: Likewise.
104084         * modules/lock-tests: Likewise.
104085         * modules/md2-tests: Likewise.
104086         * modules/md4-tests: Likewise.
104087         * modules/md5-tests: Likewise.
104088         * modules/rbtree-list-tests: Likewise.
104089         * modules/rbtree-oset-tests: Likewise.
104090         * modules/rbtreehash-list-tests: Likewise.
104091         * modules/read-file-tests: Likewise.
104092         * modules/rijndael-tests: Likewise.
104093         * modules/stdint-tests: Likewise.
104094         * modules/tls-tests: Likewise.
104096 2007-02-24  Bruno Haible  <bruno@clisp.org>
104098         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
104099         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
104100         function; instead check whether isnan with a double argument links.
104101         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
104102         function; instead check whether isnan with a 'long double' argument
104103         links.
104104         Reported by Eric Blake <ebb9@byu.net>.
104106 2007-02-24  Bruno Haible  <bruno@clisp.org>
104108         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
104109         defined.
104110         * lib/isnanl.c: Remove all code. Just include isnan.c.
104111         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
104113 2007-02-25  Jim Meyering  <jim@meyering.net>
104115         Avoid conflicting types for 'unsetenv' on FreeBSD.
104116         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
104117         conflicting with FreeBSD's (5.0 and 6.1) function declaration
104118         in stdlib.h.
104120 2007-02-24  Bruno Haible  <bruno@clisp.org>
104122         * modules/isnanl-nolibm-tests: New file.
104123         * tests/test-isnanl.c: New file.
104125         * modules/isnanl-nolibm: New file.
104126         * lib/isnanl.h: New file.
104127         * lib/isnanl.c: New file.
104128         * m4/isnanl.m4: New file.
104130 2007-02-24  Bruno Haible  <bruno@clisp.org>
104132         * modules/isnan-nolibm-tests: New file.
104133         * tests/test-isnan.c: New file.
104135         * modules/isnan-nolibm: New file.
104136         * lib/isnan.h: New file.
104137         * lib/isnan.c: New file.
104138         * m4/isnan.m4: New file.
104140 2007-02-24  Bruno Haible  <bruno@clisp.org>
104142         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
104143         assume that an exponent fits in 20 bits.
104145 2007-02-24  Jim Meyering  <jim@meyering.net>
104147         * m4/regex.m4: Update the description of the configure-time option,
104148         --without-included-regex, to state accurately what the defaults are,
104149         and perhaps to give people an idea why using this option is risky.
104151 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
104153         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
104154         loops on small arguments.  This attempts to avoid the problem
104155         Bruno Haible reported for AIX 4.3.2 in
104156         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
104158 2007-02-23  Bruno Haible  <bruno@clisp.org>
104160         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
104161         Needed for help2man.
104163 2007-02-23  Karl Berry  <karl@gnu.org>
104165         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
104166         exists, foo.h should be cvs-ignored, not committed.
104168 2007-02-23  Eric Blake  <ebb9@byu.net>
104170         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
104171         * lib/stat-time.h (includes): Likewise.
104172         * lib/utimecmp.c (includes): Likewise.
104173         * lib/utimens.h (includes): Likewise.
104174         * lib/getdate.y (includes): Also include "timespec.h" for use
104175         internal to the module.
104176         * modules/utimens (Depends-on): Revert yesterday's patch.
104177         * modules/nanosleep (Depends-on): Add missing dependency.
104179 2007-02-22  Bruno Haible  <bruno@clisp.org>
104181         * lib/glob.c: Don't include getlogin_r.h.
104183 2007-02-22  Jim Meyering  <jim@meyering.net>
104185         * modules/utimens (Depends-on): Add timespec, required for
104186         utimens.h's inclusion of timespec.h.
104188 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
104190         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
104191         long unreadable paths in GNU/Linux.  Problem reported by Andreas
104192         Schwab in
104193         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
104194         I'll try to think of a better way to fix the Solaris problem.
104196         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
104197         like glibc; on Solaris 10, it fails with errno == EINVAL.
104198         POSIX says the behavior is unspecified if the first argument is NULL,
104199         so play it safe and never pass NULL to the system getcwd.
104201 2007-02-21  Jim Meyering  <jim@meyering.net>
104203         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
104204         of gettimeofday.  It would conflict with the one now always
104205         provided via sys_time_.h.  Reported by Matthew Woehlke, as
104206         an IRIX 6.5 build failure.
104208 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
104210         Minor fixups to port to Solaris 10 with Sun C 5.8.
104211         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
104212         * modules/getcwd (Depends-on): Add dirfd.
104213         * lib/putenv.c (putenv): #undef it.
104214         (rpl_putenv): New decl.
104215         (malloc, free): Include <stdlib.h> rather than prototyping separately.
104217 2007-02-20  Bruno Haible  <bruno@clisp.org>
104219         * modules/stdio-tests: New file.
104220         * tests/test-stdio.c: New file.
104222         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
104223         (Depends-on): Add stdio.
104224         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
104225         (Include): Use <stdio.h> instead of vsnprintf.h.
104226         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
104227         HAVE_DECL_VSNPRINTF.
104228         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
104230         * modules/snprintf (Files): Remove lib/snprintf.h.
104231         (Depends-on): Add stdio.
104232         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
104233         (Include): Use <stdio.h> instead of snprintf.h.
104234         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
104235         HAVE_DECL_SNPRINTF.
104236         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
104237         * lib/getaddrinfo.c: Likewise.
104239         * modules/stdio: New file.
104240         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
104241         * lib/snprintf.h: Remove file.
104242         * lib/vsnprintf.h: Remove file.
104243         * lib/.cppi-disable: Remove snprintf.h.
104244         * m4/stdio_h.m4: New file.
104245         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
104247 2007-02-20  Jim Meyering  <jim@meyering.net>
104249         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
104250         used by e.g., mingw.  From Bruno Haible.
104252 2007-02-19  Bruno Haible  <bruno@clisp.org>
104254         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
104255         warnings.
104256         Reported by Ben Pfaff <blp@cs.stanford.edu>.
104258 2007-02-19  Bruno Haible  <bruno@clisp.org>
104260         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
104261         from mingw users.
104263 2007-02-19  Bruno Haible  <bruno@clisp.org>
104265         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
104266         warnings.
104267         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
104269 2007-02-19  Jim Meyering  <jim@meyering.net>
104271         Don't use FD after a successful "fdopendir (fd)".
104272         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
104273         Reset it by calling dirfd on the just-obtained DIR*.
104275         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
104276         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
104278 2007-02-18  Bruno Haible  <bruno@clisp.org>
104280         * lib/readlink.c: Include <unistd.h>.
104281         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
104282         HAVE_READLINK.
104283         * modules/readlink (Depends-on): Add unistd.
104284         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104285         (Include): Add <unistd.h>.
104287         * lib/getlogin_r.h: Remove file.
104288         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
104289         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
104290         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
104291         HAVE_DECL_GETLOGIN_R.
104292         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
104293         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104294         (Include): Use <unistd.h> instead of getlogin_r.h.
104296         * lib/getcwd.h: Remove file.
104297         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
104298         * lib/xgetcwd.c: Likewise.
104299         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
104300         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
104301         * modules/getcwd (Files): Remove lib/getcwd.h.
104302         (Depends-on): Add unistd.
104303         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104304         (Include): Use <unistd.h> instad of getcwd.h.
104306         * lib/ftruncate.c: Include <unistd.h> first.
104307         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
104308         Set HAVE_FTRUNCATE.
104309         * modules/ftruncate (Depends-on): Add unistd.
104310         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104312         * lib/fchdir.c: Include <unistd.h> first.
104313         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
104314         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
104315         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
104316         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104317         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
104319         * lib/dup2.c: Include <unistd.h> first.
104320         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
104321         HAVE_DUP2.
104322         * modules/dup2 (Depends-on): Add unistd.
104323         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104325         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
104326         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
104327         REPLACE_CHOWN. Don't define chown as a macro here.
104328         * modules/chown (Depends-on): Add unistd.
104329         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104331         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
104332         Add definition for GL_LINK_WARNING.
104333         (chown, dup2): New declarations.
104334         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
104335         link warning.
104336         (ftruncate): New declaration.
104337         (getcwd): New declaration, taken from old getcwd.h.
104338         (getlogin_r): New declaration, taken from old getlogin_r.h.
104339         (readlink): New declaration.
104340         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
104341         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
104342         (gl_PREREQ_UNISTD): Remove macro.
104343         (gl_UNISTD_MODULE_INDICATOR): New macro.
104344         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
104345         many new variables. Don't set UNISTD_H.
104346         * modules/unistd (Description): Change.
104347         (Depends-on): Add link-warning.
104348         (configure.ac): Update.
104349         (Makefile.am): Create unistd.h always. Substitute many new variables
104350         into it.
104352 2007-02-18  Bruno Haible  <bruno@clisp.org>
104354         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
104355         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
104356         HAVE_GETSUBOPT.
104357         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
104358         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
104359         * lib/getsubopt.h: Remove file.
104360         * modules/getsubopt (Files): Remove lib/getsubopt.h.
104361         (Depends-on): Add stdlib.
104362         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
104363         (Includes): Use <stdlib.h> instead of getsubopt.h.
104364         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
104365         Set HAVE_GETSUBOPT.
104366         * lib/getsubopt.c: Don't include getsubopt.h.
104368 2007-02-18  Bruno Haible  <bruno@clisp.org>
104370         * modules/fchdir (Depends-on): Add dup2.
104372 2007-02-18  Bruno Haible  <bruno@clisp.org>
104374         * lib/stdlib_.h: Handle glibc's special invocation convention
104375         specially.
104377 2007-02-18  Bruno Haible  <bruno@clisp.org>
104379         * modules/stdlib-tests: New file.
104380         * tests/test-stdlib.c: New file.
104382         * modules/mkstemp (Files): Remove lib/mkstemp.h.
104383         (Depends-on): Add stdlib.
104384         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
104385         (Includes): Use <stdlib.h> instead of mkstemp.h.
104386         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
104387         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
104388         * lib/mkstemp.c: Don't include mkstemp.h.
104389         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
104390         * lib/stdlib--.h: Don't include mkstemp.h.
104392         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
104393         (Depends-on): Add stdlib.
104394         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
104395         (Includes): Use <stdlib.h> instead of mkdtemp.h.
104396         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
104397         HAVE_MKDTEMP.
104398         * lib/mkdtemp.c: Don't include mkdtemp.h.
104399         * lib/clean-temp.c: Don't include mkdtemp.h.
104401         * modules/exit (Files): Remove lib/exit.h.
104402         (Depends-on): Add stdlib.
104403         (Makefile.am): Remove lib_SOURCES.
104404         (Include): Use <stdlib.h> instead of exit.h.
104405         * lib/argmatch.c: Don't include exit.h.
104406         * lib/execute.c: Likewise.
104407         * lib/pagealign_alloc.c: Likewise.
104408         * lib/pipe.c: Likewise.
104409         * lib/wait-process.c: Likewise.
104410         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
104411         * lib/exitfail.c: Likewise.
104412         * lib/savewd.c: Likewise.
104413         * lib/xsetenv.c: Likewise.
104415         * modules/stdlib: New file.
104416         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
104417         and extra comments about mkstemp().
104418         * lib/exit.h: Remove file.
104419         * lib/mkdtemp.h: Remove file.
104420         * lib/mkstemp.h: Remove file.
104421         * m4/stdlib_h.m4: New file.
104422         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
104424 2007-02-18  Bruno Haible  <bruno@clisp.org>
104426         * modules/math-tests: New file.
104427         * tests/test-math.c: New file.
104429         * modules/math: New file.
104430         * modules/mathl (Files): Remove lib/mathl.h.
104431         (Depends-on): Add math.
104432         (Makefile.am): Don't mention mathl.h.
104433         (Include): Use <math.h> instead of mathl.h.
104434         * lib/math_.h: New file.
104435         * lib/mathl.h: Remove file.
104436         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
104437         mathl.h.
104438         * lib/asinl.c: Likewise.
104439         * lib/atanl.c: Likewise.
104440         * lib/ceill.c: Likewise.
104441         * lib/cosl.c: Likewise.
104442         * lib/expl.c: Likewise.
104443         * lib/floorl.c: Likewise.
104444         * lib/frexpl.c: Likewise.
104445         * lib/ldexpl.c: Likewise.
104446         * lib/logl.c: Likewise.
104447         * lib/sincosl.c: Likewise.
104448         * lib/sinl.c: Likewise.
104449         * lib/sqrtl.c: Likewise.
104450         * lib/tanl.c: Likewise.
104451         * lib/trigl.c: Likewise.
104452         * m4/math_h.m4: New file.
104453         * MODULES.html.sh (Mathematics): Add math.
104455 2007-02-17  Bruno Haible  <bruno@clisp.org>
104457         * modules/wctype-tests: New file.
104458         * tests/test-wctype.c: New file.
104460         * modules/wchar-tests: New file.
104461         * tests/test-wchar.c: New file.
104463         * modules/unistd-tests: New file.
104464         * tests/test-unistd.c: New file.
104466         * modules/time-tests: New file.
104467         * tests/test-time.c: New file.
104469         * modules/sysexits-tests: New file.
104470         * tests/test-sysexits.c: New file.
104472         * modules/sys_time-tests: New file.
104473         * tests/test-sys_time.c: New file.
104475         * modules/sys_stat-tests: New file.
104476         * tests/test-sys_stat.c: New file.
104478         * modules/sys_socket-tests: New file.
104479         * tests/test-sys_socket.c: New file.
104481         * modules/sys_select-tests: New file.
104482         * tests/test-sys_select.c: New file.
104484         * modules/string-tests: New file.
104485         * tests/test-string.c: New file.
104487         * modules/stdbool-tests: New file.
104488         * tests/test-stdbool.c: New file.
104490         * modules/netinet_in-tests: New file.
104491         * tests/test-netinet_in.c: New file.
104493         * modules/inttypes-tests: New file.
104494         * tests/test-inttypes.c: New file.
104496         * modules/fcntl-tests: New file.
104497         * tests/test-fcntl.c: New file.
104499         * modules/byteswap-tests: New file.
104500         * tests/test-byteswap.c: New file.
104502         * modules/arpa_inet-tests: New file.
104503         * tests/test-arpa_inet.c: New file.
104505 2007-02-17  Bruno Haible  <bruno@clisp.org>
104507         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
104508         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
104509         if the corresponding module is not enabled. Emit link warnings if
104510         the function is used nevertheless.
104511         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
104512         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
104513         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
104514         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
104515         * modules/inttypes (Depends-on): Add link-warning.
104516         (Makefile.am): Copy the contents of build-aux/link-warning.h into
104517         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
104518         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
104519         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
104520         * modules/imaxdiv (configure.ac): Likewise.
104521         * modules/strtoimax (configure.ac): Likewise.
104522         * modules/strtoumax (configure.ac): Likewise.
104524 2007-02-17  Bruno Haible  <bruno@clisp.org>
104526         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
104527         gl_STRING_MODULE_INDICATOR_DEFAULTS.
104528         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
104529         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
104531 2007-02-17  Bruno Haible  <bruno@clisp.org>
104533         * modules/link-warning: New file.
104534         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
104535         * lib/string_.h (GL_LINK_WARNING): Remove definition.
104536         * modules/string (Depends-on): Add link-warning.
104537         (Makefile.am): Copy the contents of build-aux/link-warning.h into
104538         string.h.
104539         * MODULES.html.sh (Support for building libraries and executables): Add
104540         link-warning.
104542 2007-02-17  Bruno Haible  <bruno@clisp.org>
104544         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
104545         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
104546         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
104547         long lines.
104549 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
104550             Bruno Haible  <bruno@clisp.org>
104552         * modules/tmpfile: New file.
104553         * lib/tmpfile.c: New file.
104554         * m4/tmpfile.m4: New file.
104555         * MODULES.html.sh (func_all_modules): New section "Input/output".
104557 2007-02-15  Bruno Haible  <bruno@clisp.org>
104559         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
104560         (supports_delete_on_close): New function.
104561         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
104563 2007-02-14  Bruno Haible  <bruno@clisp.org>
104565         * modules/mbspcasecmp-tests: New file.
104566         * tests/test-mbspcasecmp.sh: New file.
104567         * tests/test-mbspcasecmp.c: New file.
104569         New module mbspcasecmp.
104570         * modules/mbspcasecmp: New file.
104571         * lib/mbspcasecmp.c: New file.
104572         * lib/string_.h (strncasecmp): Change warning message.
104573         (mbspcasecmp): New declaration.
104574         * m4/mbspcasecmp.m4: New file.
104575         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104576         GNULIB_MBSPCASECMP.
104577         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
104578         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
104580 2007-02-14  Bruno Haible  <bruno@clisp.org>
104582         * modules/mbsncasecmp-tests: New file.
104583         * tests/test-mbsncasecmp.sh: New file.
104584         * tests/test-mbsncasecmp.c: New file.
104586         New module mbsncasecmp.
104587         * modules/mbsncasecmp: New file.
104588         * lib/mbsncasecmp.c: New file.
104589         * lib/string_.h (mbsncasecmp): New declaration.
104590         * m4/mbsncasecmp.m4: New file.
104591         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104592         GNULIB_MBSNCASECMP.
104593         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
104594         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
104596 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
104598         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
104599         Verify that it doesn't overlap with our flags.
104600         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
104601         do not have the desired effect in multibyte locales; instead, use
104602         mbscasecmp.
104603         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
104604         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
104605         we don't require GNU fnmatch ourselves (if our users require it, they
104606         should do so explicitly).
104608         Fix regex code so it doesn't rely on strcasecmp.
104609         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
104610         Otherwise, include gnulib's langinfo.h.
104611         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
104612         undesirable behavior in non-C locales.  Instead, rely on localecharset.
104613         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
104614         * modules/regex (FILES): Remove m4/codeset.m4.
104615         (Depends-on): Add localcharset.  Remove strcase.
104617 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104619         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
104620         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
104622 2007-02-13  Bruno Haible  <bruno@clisp.org>
104624         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
104625         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
104627 2007-02-12  Bruno Haible  <bruno@clisp.org>
104629         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
104630         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
104631         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
104632         time warning rather than a link error.
104634 2007-02-12  Bruno Haible  <bruno@clisp.org>
104636         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
104637         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
104638         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
104640 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
104642         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
104643         args, not 2.
104645 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
104647         New module 'time', so that apps can include <time.h> as per
104648         POSIX and GNU instead of separate include files like time_r.h
104649         and timegm.h.  This implementation tries out a simpler approach
104650         for replacing decls in standard include files (as compared to
104651         the string module), somewhat as an experiment.
104653         * config/srclist.txt: Comment out mktime.c for now.
104654         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
104655         since it doesn't apply any more.  Use generic wording instead.
104656         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
104657         'time'.
104658         * lib/time_.h, m4/time_h.m4, modules/time: New files.
104659         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
104660         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
104661         Don't include <sys/types.h>; no longer needed since we assume C89.
104662         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
104663         * lib/strftime.c: Likewise.
104664         * lib/time_r.c: Likewise.
104665         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
104666         * lib/nanosleep.c: Include <time.h> first, to check interface.
104667         * lib/strptime.c: Likewise.
104668         * lib/time_r.c: Likewise.
104669         * lib/timegm.c: Likewise.
104670         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
104671         needed.
104672         * lib/timegm.c: Don't include timegm.h; no longer needed.
104673         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
104674         time.h now handles any problems in that area.
104675         (struct timespec, nanosleep): Remove; time.h now arranges for these.
104676         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
104677         that time.h defines struct timespec.
104678         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
104679         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
104680         handles that.
104681         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
104682         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
104683         needed.  Set REPLACE_LOCALTIME.
104684         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
104685         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
104686         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
104687         nanosleep; time_h.m4 now does that.  Don't require
104688         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
104689         module handles this now.
104690         * modules/getdate (Depends-on): Remove timespec.  Add time.
104691         * modules/nanosleep (Depends-on): Likewise.
104692         * modules/stat-time (Depends-on): Likewise.
104693         * modules/nanosleep (Include): Include time.h, not timespec.h.
104694         * modules/strptime (Files): Remove lib/strptime.h.
104695         (Depends-on): Add extensions, time.
104696         (Include): Include time.h, not strptime.h.
104697         * modules/time_r (Files): Remove lib/time_r.h.
104698         (Depends-on): Add time.
104699         (Include): Include time.h, not time_r.h.
104700         * modules/timegm: Likewise.
104701         * modules/timespec (Description): Now does timespec-related decls
104702         of our own, instead of struct timespec itself.
104703         (Depends-on): Add time; remove extensions.
104704         (Maintainer): Add self.
104705         * modules/utimecmp (Depends-on): Add time; remove timespec.
104706         * modules/utimens (Depends-on): Likewise.
104707         * modules/xnanosleep (Depends-on): Likewise.
104709 2007-02-11  Bruno Haible  <bruno@clisp.org>
104711         * lib/c-strstr.c: Include allocsa.h.
104712         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
104713         * lib/c-strcasestr.c: Include allocsa.h.
104714         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
104715         * lib/strcasestr.c: Include allocsa.h.
104716         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
104717         * lib/mbsstr.c: Include allocsa.h.
104718         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
104719         allocsa/freesa instead of malloc/free.
104720         * lib/mbscasestr.c: Include allocsa.h.
104721         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
104722         allocsa/freesa instead of malloc/free.
104723         * modules/c-strstr (Depends-on): Add allocsa.
104724         * modules/c-strcasestr (Depends-on): Likewise.
104725         * modules/strcasestr (Depends-on): Likewise.
104726         * modules/mbsstr (Depends-on): Likewise.
104727         * modules/mbscasestr (Depends-on): Likewise.
104729 2007-02-11  Bruno Haible  <bruno@clisp.org>
104731         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
104733         * modules/mbsspn-tests: New file.
104734         * tests/test-mbsspn.sh: New file.
104735         * tests/test-mbsspn.c: New file.
104737 2007-02-11  Bruno Haible  <bruno@clisp.org>
104739         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
104741         * modules/mbspbrk-tests: New file.
104742         * tests/test-mbspbrk.sh: New file.
104743         * tests/test-mbspbrk.c: New file.
104745 2007-02-11  Bruno Haible  <bruno@clisp.org>
104747         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
104748         unneeded cast.
104750         * modules/mbscspn-tests: New file.
104751         * tests/test-mbscspn.sh: New file.
104752         * tests/test-mbscspn.c: New file.
104754 2007-02-11  Bruno Haible  <bruno@clisp.org>
104756         * modules/mbscasecmp-tests: New file.
104757         * tests/test-mbscasecmp.sh: New file.
104758         * tests/test-mbscasecmp.c: New file.
104760 2007-02-11  Bruno Haible  <bruno@clisp.org>
104762         Ensure O(n) worst-case complexity of mbscasestr.
104763         * lib/mbscasestr.c: Include stdbool.h.
104764         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
104765         functions.
104766         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
104767         the bookkeeping indicates that it's worth it.
104768         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
104770         * modules/mbscasestr-tests: New file.
104771         * tests/test-mbscasestr1.c: New file.
104772         * tests/test-mbscasestr2.sh: New file.
104773         * tests/test-mbscasestr2.c: New file.
104774         * tests/test-mbscasestr3.sh: New file.
104775         * tests/test-mbscasestr3.c: New file.
104776         * tests/test-mbscasestr4.sh: New file.
104777         * tests/test-mbscasestr4.c: New file.
104778         * m4/locale-tr.m4: New file.
104780 2007-02-11  Bruno Haible  <bruno@clisp.org>
104782         Ensure O(n) worst-case complexity of mbsstr.
104783         * lib/mbsstr.c: Include stdbool.h.
104784         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
104785         functions.
104786         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
104787         bookkeeping indicates that it's worth it.
104788         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
104790         * modules/mbsstr-tests: New file.
104791         * tests/test-mbsstr1.c: New file.
104792         * tests/test-mbsstr2.sh: New file.
104793         * tests/test-mbsstr2.c: New file.
104794         * tests/test-mbsstr3.sh: New file.
104795         * tests/test-mbsstr3.c: New file.
104796         * m4/locale-fr.m4: New file.
104798 2007-02-11  Bruno Haible  <bruno@clisp.org>
104800         * lib/mbsrchr.c (mbsrchr): Fix bug.
104802         * modules/mbsrchr-tests: New file.
104803         * tests/test-mbsrchr.sh: New file.
104804         * tests/test-mbsrchr.c: New file.
104806 2007-02-11  Bruno Haible  <bruno@clisp.org>
104808         * lib/mbschr.c (mbschr): Fix bug.
104810         * modules/mbschr-tests: New file.
104811         * tests/test-mbschr.sh: New file.
104812         * tests/test-mbschr.c: New file.
104813         * m4/locale-zh.m4: New file.
104815 2007-02-11  Bruno Haible  <bruno@clisp.org>
104817         Support for copying multibyte string iterators.
104818         * lib/mbiter.h: Include <string.h>.
104819         (mbiter_multi_copy): New function.
104820         (mbi_copy): New macro.
104821         * lib/mbuiter.h: Include <string.h>.
104822         (mbuiter_multi_copy): New function.
104823         (mbui_copy): New macro.
104825 2007-02-11  Bruno Haible  <bruno@clisp.org>
104827         New module mbslen.
104828         * modules/mbslen: New file.
104829         * lib/mbslen.c: New file.
104830         * lib/string_.h (mbslen): New declaration.
104831         * m4/mbslen.m4: New file.
104832         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104833         GNULIB_MBSLEN.
104834         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
104835         * MODULES.html.sh (Internationalization functions): Add mbslen.
104837 2007-02-11  Bruno Haible  <bruno@clisp.org>
104839         Ensure O(n) worst-case complexity of strcasestr substitute.
104840         * lib/strcasestr.c: Include stdbool.h.
104841         (knuth_morris_pratt): New function.
104842         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
104843         bookkeeping indicates that it's worth it.
104844         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
104846         * modules/strcasestr-tests: New file.
104847         * tests/test-strcasestr.c: New file.
104849 2007-02-11  Bruno Haible  <bruno@clisp.org>
104851         Ensure O(n) worst-case complexity of c_strcasestr.
104852         * lib/c-strcasestr.c: Include stdbool.h, string.h.
104853         (knuth_morris_pratt): New function.
104854         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
104855         the bookkeeping indicates that it's worth it.
104856         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
104858         * modules/c-strcasestr-tests: New file.
104859         * tests/test-c-strcasestr.c: New file.
104861 2007-02-11  Bruno Haible  <bruno@clisp.org>
104863         Ensure O(n) worst-case complexity of c_strstr.
104864         * lib/c-strstr.c: Include stdbool.h, string.h.
104865         (knuth_morris_pratt): New function.
104866         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
104867         bookkeeping indicates that it's worth it.
104868         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
104870         * lib/c-strstr.c: Complete rewrite for maintainability.
104872         * modules/c-strstr-tests: New file.
104873         * tests/test-c-strstr.c: New file.
104875 2007-02-11  Bruno Haible  <bruno@clisp.org>
104877         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
104878         5.2.1 and earlier, whereby \055 was treated just like the range
104879         delimiter '-'.
104880         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
104882 2007-02-08  Bruno Haible  <bruno@clisp.org>
104884         * modules/regex (Depends-on): Add stdbool.
104885         Reported by Dalibor Topic <robilad@kaffe.org>.
104887 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
104889         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
104890         Prefer returning from main to exiting from it.
104891         Remove unnecessary parens after sizeof.
104893 2007-02-05  Bruno Haible  <bruno@clisp.org>
104895         New module mbssep.
104896         * modules/mbssep: New file.
104897         * lib/mbssep.c: New file.
104898         * lib/string_.h (strsep): Add a conditional link warning.
104899         (mbssep): New declaration.
104900         * m4/mbssep.m4: New file.
104901         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104902         GNULIB_MBSSEP.
104903         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
104904         * MODULES.html.sh (Internationalization functions): Add mbssep.
104906 2007-02-05  Bruno Haible  <bruno@clisp.org>
104908         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
104909         Optimize search in case of 1 delimiter.
104911 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
104913         * lib/acl.h: Include sys/types.h before sys/acl.h.
104915 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
104917         Merge upstream fix for glibc bugzilla #3957:
104919         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
104921         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
104922         bit for RE_HAT_LISTS_NOT_NEWLINE.
104923         (build_charclass_op): Remove bogus comment.
104925 2007-02-05  Simon Josefsson  <simon@josefsson.org>
104927         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
104929 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
104931         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
104932         * lib/memmem.c [!defined _LIBC]: Include config.h.
104934 2007-02-04  Bruno Haible  <bruno@clisp.org>
104936         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
104937         warning message.
104939 2007-02-04  Bruno Haible  <bruno@clisp.org>
104941         New module mbstok_r.
104942         * modules/mbstok_r: New file.
104943         * lib/mbstok_r.c: New file.
104944         * lib/string_.h (strtok_r): Change argument names to match the
104945         comments. Add a conditional link warning.
104946         (mbstok_r): New declaration.
104947         * m4/mbstok_r.m4: New file.
104948         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104949         GNULIB_MBSTOK_R.
104950         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
104951         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
104953 2007-02-04  Bruno Haible  <bruno@clisp.org>
104955         New module mbsspn.
104956         * modules/mbsspn: New file.
104957         * lib/mbsspn.c: New file.
104958         * lib/string_.h (strspn): Add a conditional link warning.
104959         (mbsspn): New declaration.
104960         * m4/mbsspn.m4: New file.
104961         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104962         GNULIB_MBSSPN.
104963         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
104964         * MODULES.html.sh (Internationalization functions): Add mbsspn.
104966 2007-02-04  Bruno Haible  <bruno@clisp.org>
104968         New module mbspbrk.
104969         * modules/mbspbrk: New file.
104970         * lib/mbspbrk.c: New file.
104971         * lib/string_.h (strpbrk): Add a conditional link warning.
104972         (mbspbrk): New declaration.
104973         * m4/mbspbrk.m4: New file.
104974         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104975         GNULIB_MBSPBRK.
104976         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
104977         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
104979 2007-02-04  Bruno Haible  <bruno@clisp.org>
104981         New module mbscspn.
104982         * modules/mbscspn: New file.
104983         * lib/mbscspn.c: New file.
104984         * lib/string_.h (strcspn): Add a conditional link warning.
104985         (mbscspn): New declaration.
104986         * m4/mbscspn.m4: New file.
104987         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104988         GNULIB_MBSCSPN.
104989         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
104990         * MODULES.html.sh (Internationalization functions): Add mbscspn.
104992 2007-02-04  Bruno Haible  <bruno@clisp.org>
104994         New module mbscasestr, reduced goal of strcasestr.
104995         * modules/mbscasestr: New file.
104996         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
104997         (mbscasestr): Renamed from strcasestr.
104998         * lib/strcasestr.c: Don't include mbuiter.h.
104999         (strcasestr): Remove support for multibyte locales.
105000         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
105001         Change the conditional link warning.
105002         (mbscasestr): New declaration.
105003         * m4/mbscasestr.m4: New file.
105004         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
105005         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
105006         REPLACE_STRCASESTR.
105007         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
105008         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
105009         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
105010         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
105011         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
105012         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
105013         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
105014         (Depends-on): Remove mbuiter.
105015         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
105017 2007-02-04  Bruno Haible  <bruno@clisp.org>
105019         Simplify handling of strncasecmp.
105020         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
105021         the conditional link warning.
105022         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
105023         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
105024         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
105025         * modules/strcase (configure.ac): Don't invoke
105026         gl_STRING_MODULE_INDICATOR.
105027         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
105029 2007-02-04  Bruno Haible  <bruno@clisp.org>
105031         New module mbscasecmp, reduced goal of strcasecmp.
105032         * modules/mbscasecmp: New file.
105033         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
105034         (mbscasecmp): Renamed from strcasecmp.
105035         * lib/strcasecmp.c: Don't include mbuiter.h.
105036         (strcasecmp): Remove support for multibyte locales.
105037         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
105038         Change the conditional link warning.
105039         (mbscasecmp): New declaration.
105040         * m4/mbscasecmp.m4: New file.
105041         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
105042         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
105043         REPLACE_STRCASECMP.
105044         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
105045         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105046         GNULIB_MBSCASECMP.
105047         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
105048         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
105049         * modules/strcase (Files): Remove m4/mbrtowc.m4.
105050         (Depends-on): Remove mbuiter.
105051         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
105053 2007-02-04  Bruno Haible  <bruno@clisp.org>
105055         New module mbsstr. Remove module strstr.
105056         * modules/mbsstr: New file.
105057         * modules/strstr: Remove file.
105058         * lib/mbsstr.c: Renamed from lib/strstr.c.
105059         (mbsstr): Renamed from strstr.
105060         * lib/string_.h (strstr): Remove declaration. Change the conditional
105061         link warning.
105062         (mbsstr): New declaration.
105063         * m4/mbsstr.m4: New file.
105064         * m4/strstr.m4: Remove file.
105065         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
105066         REPLACE_STRSTR.
105067         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
105068         Don't initialize GNULIB_STRSTR.
105069         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
105070         substitute GNULIB_STRSTR and REPLACE_STRSTR.
105071         * MODULES.html.sh (Internationalization functions): Add mbsstr.
105072         (Support for systems lacking ANSI C 89): Remove strstr.
105074 2007-02-04  Bruno Haible  <bruno@clisp.org>
105076         New module mbsrchr.
105077         * modules/mbsrchr: New file.
105078         * lib/mbsrchr.c: New file.
105079         * lib/string_.h (strrchr): Add a conditional link warning.
105080         (mbsrchr): New declaration.
105081         * m4/mbsrchr.m4: New file.
105082         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105083         GNULIB_MBSRCHR.
105084         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
105085         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
105087 2007-02-04  Bruno Haible  <bruno@clisp.org>
105089         New module mbschr.
105090         * modules/mbschr: New file.
105091         * lib/mbschr.c: New file.
105092         * lib/string_.h (strchr): Add a conditional link warning.
105093         (mbschr): New declaration.
105094         * m4/mbschr.m4: New file.
105095         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105096         GNULIB_MBSCHR.
105097         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
105098         * MODULES.html.sh (Internationalization functions): Add mbschr.
105100 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
105102         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
105104         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
105106 2007-02-04  Bruno Haible  <bruno@clisp.org>
105108         New module description section 'configure.ac-early'.
105109         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
105110         (func_get_autoconf_early_snippet): New function.
105111         (func_import, func_create_testdir): Use it. Remove special cases for
105112         modules 'extensions' and 'lock'.
105113         * modules/extensions (configure.ac-early): Require
105114         gl_USE_SYSTEM_EXTENSIONS.
105115         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
105117 2007-02-04  Bruno Haible  <bruno@clisp.org>
105119         Make use of gcj-4.3's -fsource and -ftarget option.
105120         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
105121         and if so try the options -fsource and -ftarget.
105122         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
105123         source_version, ftarget_option, target_version arguments.
105124         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
105125         (is_envjavac_oldgcj_14_14_usable): Renamed from
105126         is_envjavac_gcj_14_14_usable.
105127         (is_envjavac_oldgcj_14_13_usable): Renamed from
105128         is_envjavac_gcj_14_13_usable.
105129         (is_gcj_present): Update.
105130         (is_gcj_43, is_gcj43_usable): New functions.
105131         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
105132         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
105133         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
105134         try the options -fsource and -ftarget.
105136 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
105138         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
105139         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
105140         larger value.
105142 2007-02-03  Jim Meyering  <jim@meyering.net>
105144         Give tools a better chance to allocate space for very large buffers.
105145         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
105147         Make pwd and readlink work also when run with an unreadable parent dir
105148         on systems with openat support.
105149         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
105150         provided getcwd function, even when we have openat support.
105151         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
105153 2007-02-02  Bruno Haible  <bruno@clisp.org>
105155         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
105156         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
105157         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
105158         portability problems if one of these functions is only used on specific
105159         platforms.
105160         Reported by Paul Eggert.
105162 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
105164         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
105165         is causing more trouble than it's curing.
105166         * lib/regex_internal.h (__mempcpy): Remove.
105167         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
105168         (and make the code a tad smaller to boot).
105169         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
105171 2007-02-02  Jim Meyering  <jim@meyering.net>
105173         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
105174         section, not in the Makefile.am: one.
105176 2007-02-02  Eric Blake  <ebb9@byu.net>
105178         * lib/strchrnul.c: Always include config.h first.
105180         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
105181         gnulib strstr is not necessary here.
105183 2007-02-02  Simon Josefsson  <simon@josefsson.org>
105185         * m4/socklen.m4: Fix typo.
105187 2007-02-02  Eric Blake  <ebb9@byu.net>
105189         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
105190         * modules/netinet_in (Makefile.am): Likewise.
105192 2007-02-01  Bruno Haible  <bruno@clisp.org>
105194         * lib/string_.h (GL_LINK_WARNING): New macro.
105195         (strcasecmp, strstr, strcasestr): If provided by the system,
105196         conditionally define as a macro that leads to a warning instead of to
105197         an error.
105198         (strncasecmp): Conditionally define as a macro that leads to a warning.
105200 2007-02-01  Karl Berry  <karl@gnu.org>
105202         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
105204 2007-02-01  Bruno Haible  <bruno@clisp.org>
105206         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
105207         renamings.
105209 2007-02-01  Eric Blake  <ebb9@byu.net>
105211         * modules/regex (Depends-on): Revert dependence on mempcpy.
105212         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
105213         module's definition of mempcpy.
105214         Reported by Paul Eggert.
105216 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
105218         * lib/string_.h: If the gnulib module XYZ is not present, undefine
105219         the symbol XYZ before redefining it.  This fixes a problem with
105220         programs that don't use XYZ, when compiled on systems that define
105221         XYZ to something else.
105223 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
105225         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
105226         occurs when "mkdir -m foo" creates a setgid directory that is (1)
105227         writeable to group or other and (2) is intended to have a special
105228         mode bit that is set or cleared.  In such a case, the directory
105229         should be neither group- nor other-writeable until the special
105230         mode bits are right.
105232 2007-01-31  Eric Blake  <ebb9@byu.net>
105234         * modules/mountlist (Depends-on): Add strstr.
105236         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
105237         bug.
105238         * modules/string (Makefile.am): Remove redundant replacement.
105239         * modules/regex (Depends-on): Add mempcpy.
105241 2007-01-31  Bruno Haible  <bruno@clisp.org>
105243         New module description field 'Link'.
105244         * gnulib-tool (func_usage): Document --extract-link-directive.
105245         (sed_extract_prog): Recognize 'Link' directive.
105246         (func_get_link_directive): New function.
105247         (func_import): Show summary of link directives.
105248         Handle --extract-link-directive option.
105249         * modules/acl (Link): New section.
105250         * modules/clock-time (Link): New section.
105251         * modules/euidaccess (Link): New section.
105252         * modules/gettext (Link): New section.
105253         * modules/iconv (Link): New section.
105254         * modules/lock (Link): New section.
105255         * modules/nanosleep (Link): New section.
105256         * modules/readline (Link): New section.
105258 2007-01-27  Bruno Haible  <bruno@clisp.org>
105260         Enforce the use of gnulib modules for unportable <string.h> functions.
105261         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
105262         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
105263         (gl_HEADER_STRING_H_BODY): Require it.
105264         * lib/string_.h: If the gnulib module XYZ is not present, redefine
105265         the symbol XYZ to one that gives a link error.
105266         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
105267         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
105268         * modules/mempcpy (configure.ac): Likewise.
105269         * modules/memrchr (configure.ac): Likewise.
105270         * modules/stpcpy (configure.ac): Likewise.
105271         * modules/stpncpy (configure.ac): Likewise.
105272         * modules/strcase (configure.ac): Likewise.
105273         * modules/strcasestr (configure.ac): Likewise.
105274         * modules/strchrnul (configure.ac): Likewise.
105275         * modules/strdup (configure.ac): Likewise.
105276         * modules/strndup (configure.ac): Likewise.
105277         * modules/strnlen (configure.ac): Likewise.
105278         * modules/strpbrk (configure.ac): Likewise.
105279         * modules/strsep (configure.ac): Likewise.
105280         * modules/strstr (configure.ac): Likewise.
105281         * modules/strtok_r (configure.ac): Likewise.
105283 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
105285         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
105287 2007-01-30  Jim Meyering  <jim@meyering.net>
105289         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
105291 2007-01-29  Bruno Haible  <bruno@clisp.org>
105293         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
105294         * lib/execute.c: Likewise.
105295         * lib/pipe.c: Likewise.
105296         * lib/printf-args.h: Likewise.
105297         * lib/printf-args.c: Likewise.
105298         * lib/printf-parse.c: Likewise.
105299         * lib/vasnprintf.c: Likewise.
105301 2007-01-29  Eric Blake  <ebb9@byu.net>
105303         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
105304         declaration.
105306 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
105308         * lib/strptime.h (strptime): Use 'restrict' for args where
105309         POSIX requires this.
105310         * lib/strptime.c (strptime): Likewise.
105311         Change license notice from LGPL to GPL, since gnulib-tool will
105312         change this as needed.
105313         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
105314         defined.
105315         Include "strptime.h" first, to check interface.
105316         Do not #undef _LIBC and _NL_CURRENT.
105317         Do not include <stdlib.h>; no longer needed.
105318         Include "time_r.h" and declare ptime_locale_status
105319         only if _LIBC is not defined.
105320         (__P): Remove unused macro.
105321         (match_string): Bring back glibc version, but use it only if _LIBC
105322         is defined.
105323         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
105324         Remove unnecessary assertion and abort() call.
105325         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
105326         * m4/strptime.m4: Fix serial number comment.
105327         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
105328         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
105329         (Depends-on): Add time_r.
105331 2007-01-29  Bruno Haible  <bruno@clisp.org>
105333         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
105334         strptime.
105335         * modules/strptime (Depends-on): Add stdbool.
105336         * lib/strptime.h: Include <time.h> always. Add comments.
105338 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
105340         * modules/strptime: New file.
105341         * lib/strptime.h: New file.
105342         * lib/strptime.c: New file.
105343         * m4/strptime.m4: New file.
105345 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
105347         * MODULES.html.sh: New module mpsort.
105348         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
105350         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
105351         a circularity problem with HP-UX ia64 reported by Bob Proulx in
105352         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
105353         All uses changed.
105354         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
105355         All uses changed.
105356         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
105357         to _Restrict_.
105358         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
105359         the parameter matches the prototype.
105361 2007-01-28  Jim Meyering  <jim@meyering.net>
105363         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
105364         sys/time.h here, reverting that part of the previous patch:
105365         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
105367 2007-01-28  Bruno Haible  <bruno@clisp.org>
105369         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
105370         value of $(SYS_TIME_H).
105371         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
105372         remove it conditionally, too. [added by Jim Meyering]
105373         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
105374         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
105375         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
105376         GETTIMEOFDAY_REPLACEMENT to 1.
105378 2007-01-28  Bruno Haible  <bruno@clisp.org>
105380         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
105381         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
105382         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
105383         Set UNISTD_H instead of UNISTD_H2.
105384         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
105386 2007-01-28  Bruno Haible  <bruno@clisp.org>
105388         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
105389         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
105391 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105393         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
105394         (func_create_testdir): Ensure C locale for `grep' and `tr'
105395         character ranges.
105396         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
105397         ACLOCAL_AMFLAGS parsing state machine.
105399 2007-01-27  Bruno Haible  <bruno@clisp.org>
105401         * modules/unistr/base: Update.
105403 2007-01-27  Bruno Haible  <bruno@clisp.org>
105405         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
105406         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
105407         * modules/unistr/u32-mbtouc-unsafe: Renamed from
105408         modules/unistr/u32-mbtouc.
105409         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
105410         * lib/unistr.h: Update.
105411         * lib/linebreak.c: Update.
105412         * modules/unistr/u32-mbtouc: Renamed from
105413         modules/unistr/u32-mbtouc-safe.
105414         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
105415         * lib/unistr.h: Update.
105416         * lib/unistr/u32-to-u8.c: Update.
105417         * lib/unistr/u32-to-u16.c: Update.
105419 2007-01-27  Bruno Haible  <bruno@clisp.org>
105421         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
105422         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
105423         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
105424         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
105425         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
105426         * modules/unistr/u16-mbtouc-unsafe: Renamed from
105427         modules/unistr/u16-mbtouc.
105428         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
105429         * lib/unistr.h: Update.
105430         * lib/linebreak.c: Update.
105431         * modules/linebreak: Update.
105432         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
105433         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
105434         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
105435         * modules/unistr/u16-mbtouc: Renamed from
105436         modules/unistr/u16-mbtouc-safe.
105437         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
105438         * lib/unistr.h: Update.
105439         * lib/unistr/u16-to-u8.c: Update.
105440         * modules/unistr/u16-to-u8: Update.
105441         * lib/unistr/u16-to-u32.c: Update.
105442         * modules/unistr/u16-to-u32: Update.
105444 2007-01-27  Bruno Haible  <bruno@clisp.org>
105446         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
105447         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
105448         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
105449         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
105450         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
105451         * modules/unistr/u8-mbtouc-unsafe: Renamed from
105452         modules/unistr/u8-mbtouc.
105453         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
105454         * lib/unistr.h: Update.
105455         * lib/striconveh.c: Update.
105456         * modules/striconveh: Update.
105457         * lib/linebreak.c: Update.
105458         * modules/linebreak: Update.
105459         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
105460         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
105461         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
105462         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
105463         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
105464         * lib/unistr.h: Update.
105465         * lib/striconveh.c: Update.
105466         * modules/striconveh: Update.
105467         * lib/unistr/u8-to-u16.c: Update.
105468         * modules/unistr/u8-to-u16: Update.
105469         * lib/unistr/u8-to-u32.c: Update.
105470         * modules/unistr/u8-to-u32: Update.
105472 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105474         Sync from Libtool.
105475         * lib/argz.c: Do not include strings.h nor memory.h, include
105476         string.h unconditionally.  Patch by Simon Josefsson.
105478 2007-01-27  Bruno Haible  <bruno@clisp.org>
105480         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
105481         from gl_HEADER_STRING_H_BODY.
105482         (gl_HEADER_STRING_H_BODY): Require it.
105483         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
105484         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
105485         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
105486         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
105487         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
105488         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
105489         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
105490         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
105491         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
105492         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
105493         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
105494         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
105495         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
105496         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
105497         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
105499 2007-01-27  Bruno Haible  <bruno@clisp.org>
105501         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
105502         check_PROGRAMS into noinst_PROGRAMS.
105503         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
105504         check_PROGRAMS in this case.
105505         (func_import): Set for_test to false.
105506         (func_create_testdir): Set for_test to true.
105508 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105509             Bruno Haible  <bruno@clisp.org>
105511         * modules/strcasestr (Files): Remove lib/strcasestr.h.
105512         (Depends-on): Add string.
105513         (Includes): Use <string.h> instead of strcasestr.h.
105514         * modules/string (Makefile.am): Also substitute the value of
105515         REPLACE_STRCASESTR.
105516         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
105517         assume strcasestr is declared in <string.h> not <strings.h>. Also
105518         set REPLACE_STRCASESTR.
105519         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
105520         REPLACE_STRCASESTR.
105521         * lib/strcasestr.h: Remove file.
105522         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
105523         * lib/string_.h (strcasestr): New declaration.
105525 2007-01-27  Bruno Haible  <bruno@clisp.org>
105527         * lib/string_.h: Use 'extern'.
105529 2007-01-27  Jim Meyering  <jim@meyering.net>
105531         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
105532         of set-but-not-used local, "q".
105534         * lib/mempcpy.c: Include <config.h> before <string.h>.
105535         This fixes a compilation error on HP-UX, due to the system's
105536         "restrict"-using mempcpy prototype.
105538 2007-01-26  Bruno Haible  <bruno@clisp.org>
105540         Small optimization.
105541         * lib/javacomp.c: Include c-strstr.h.
105542          (is_envjavac_gcj): Use c_strstr instead of strstr.
105543         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
105545 2007-01-26  Bruno Haible  <bruno@clisp.org>
105547         * MODULES.html.sh (Unicode string functions): Add the new modules.
105549         * modules/uniconv/u32-strconv-to-locale: New file.
105550         * lib/uniconv/u32-strconv-to-locale.c: New file.
105552         * modules/uniconv/u16-strconv-to-locale: New file.
105553         * lib/uniconv/u16-strconv-to-locale.c: New file.
105555         * modules/uniconv/u8-strconv-to-locale: New file.
105556         * lib/uniconv/u8-strconv-to-locale.c: New file.
105558         * modules/uniconv/u32-strconv-from-locale: New file.
105559         * lib/uniconv/u32-strconv-from-locale.c: New file.
105561         * modules/uniconv/u16-strconv-from-locale: New file.
105562         * lib/uniconv/u16-strconv-from-locale.c: New file.
105564         * modules/uniconv/u8-strconv-from-locale: New file.
105565         * lib/uniconv/u8-strconv-from-locale.c: New file.
105567         * modules/uniconv/u32-strconv-to-enc: New file.
105568         * lib/uniconv/u32-strconv-to-enc.c: New file.
105569         * modules/uniconv/u32-strconv-to-enc-tests: New file.
105570         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
105572         * modules/uniconv/u16-strconv-to-enc: New file.
105573         * lib/uniconv/u16-strconv-to-enc.c: New file.
105574         * lib/uniconv/u-strconv-to-enc.h: New file.
105575         * modules/uniconv/u16-strconv-to-enc-tests: New file.
105576         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
105578         * modules/uniconv/u8-strconv-to-enc: New file.
105579         * lib/uniconv/u8-strconv-to-enc.c: New file.
105580         * modules/uniconv/u8-strconv-to-enc-tests: New file.
105581         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
105583         * modules/uniconv/u32-strconv-from-enc: New file.
105584         * lib/uniconv/u32-strconv-from-enc.c: New file.
105585         * modules/uniconv/u32-strconv-from-enc-tests: New file.
105586         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
105588         * modules/uniconv/u16-strconv-from-enc: New file.
105589         * lib/uniconv/u16-strconv-from-enc.c: New file.
105590         * modules/uniconv/u16-strconv-from-enc-tests: New file.
105591         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
105593         * modules/uniconv/u8-strconv-from-enc: New file.
105594         * lib/uniconv/u8-strconv-from-enc.c: New file.
105595         * lib/uniconv/u-strconv-from-enc.h: New file.
105596         * modules/uniconv/u8-strconv-from-enc-tests: New file.
105597         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
105599         * modules/uniconv/u32-conv-from-enc: New file.
105600         * lib/uniconv/u32-conv-from-enc.c: New file.
105601         * modules/uniconv/u32-conv-from-enc-tests: New file.
105602         * tests/uniconv/test-u32-conv-from-enc.c: New file.
105604         * modules/uniconv/u16-conv-from-enc: New file.
105605         * lib/uniconv/u16-conv-from-enc.c: New file.
105606         * lib/uniconv/u-conv-from-enc.h: New file.
105607         * modules/uniconv/u16-conv-from-enc-tests: New file.
105608         * tests/uniconv/test-u16-conv-from-enc.c: New file.
105610         * modules/uniconv/u8-conv-from-enc: New file.
105611         * lib/uniconv/u8-conv-from-enc.c: New file.
105612         * modules/uniconv/u8-conv-from-enc-tests: New file.
105613         * tests/uniconv/test-u8-conv-from-enc.c: New file.
105615         * modules/uniconv/base: New file.
105616         * lib/uniconv.h: New file.
105618 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
105620         * doc/gnulib-tool.texi (Initial import): Update to match current
105621         behavior with strdup module.
105622         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
105623         * lib/memmem.h: Remove; all uses removed.  This is now done
105624         by <string.h>.
105625         * lib/mempcpy.h: Likewise.
105626         * lib/memrchr.h: Likewise.
105627         * lib/stpcpy.h: Likewise.
105628         * lib/stpncpy.h: Likewise.
105629         * lib/strcase.h: Likewise.
105630         * lib/strchrnul.h: Likewise.
105631         * lib/strdup.h: Likewise.
105632         * lib/strndup.h: Likewise.
105633         * lib/strnlen.h: Likewise.
105634         * lib/strpbrk.h: Likewise.
105635         * lib/strsep.h: Likewise.
105636         * lib/strstr.h: Likewise.
105637         * lib/strtok_r.h: Likewise.
105638         * lib/string_.h: New file.
105639         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
105640         Rely on <string.h> instead.
105641         * lib/canon-host.c: Likewise.
105642         * lib/chdir-long.c: Likewise.
105643         * lib/concatpath.c: Likewise.
105644         * lib/exclude.c: Likewise.
105645         * lib/fchdir.c: Likewise.
105646         * lib/getaddrinfo.c: Likewise.
105647         * lib/getcwd.c: Likewise.
105648         * lib/getsubopt.c: Likewise.
105649         * lib/glob.c: Likewise.
105650         * lib/hard-locale.c: Likewise.
105651         * lib/iconvme.c: Likewise.
105652         * lib/javacomp.c: Likewise.
105653         * lib/mempcpy.c: Likewise.
105654         * lib/memrchr.c: Likewise.
105655         * lib/regex_internal.h: Likewise.
105656         * lib/stpncpy.c: Likewise.
105657         * lib/strcasecmp.c: Likewise.
105658         * lib/strchrnul.c: Likewise.
105659         * lib/strdup.c: Likewise.
105660         * lib/striconv.c: Likewise.
105661         * lib/striconveh.c: Likewise.
105662         * lib/striconveha.c: Likewise.
105663         * lib/strncasecmp.c: Likewise.
105664         * lib/strndup.c: Likewise.
105665         * lib/strnlen.c: Likewise.
105666         * lib/strsep.c: Likewise.
105667         * lib/strstr.c: Likewise.
105668         * lib/strtok_r.c: Likewise.
105669         * lib/userspec.c: Likewise.
105670         * lib/w32spawn.h: Likewise.
105671         * lib/xstrndup.c: Likewise.
105672         * lib/mountlist.c (strstr): Remove decl.
105673         * m4/string_h.m4: New file.
105674         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
105675         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
105676         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
105677         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
105678         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
105679         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
105680         Set REPLACE_STRCASECMP if necessary.
105681         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
105682         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
105683         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
105684         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
105685         HAVE_DECL_STRDUP if necessary.
105686         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
105687         since gl_FUNC_STRNDUP does that now.
105688         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
105689         Check for decl here...
105690         (gl_PREREQ_STRNLEN): ... not here.
105691         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
105692         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
105693         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
105694         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
105695         necessary.
105696         * modules/string: New file.
105697         * modules/memmem (Files): Remove special-purpose include file.
105698         (Depends-on): Add string.
105699         (Include): Include <string.h>, not the removed file.
105700         * modules/mempcpy: Likewise.
105701         * modules/memrchr: Likewise.
105702         * modules/stpcpy: Likewise.
105703         * modules/stpncpy: Likewise.
105704         * modules/strcase: Likewise.
105705         * modules/strchrnul: Likewise.
105706         * modules/strdup: Likewise.
105707         * modules/strndup: Likewise.
105708         * modules/strnlen: Likewise.
105709         * modules/strpbrk: Likewise.
105710         * modules/strsep: Likewise.
105711         * modules/strstr: Likewise.
105712         * modules/strtok_r: Likewise.
105713         * tests/test-dirname.c: Don't include "strdup.h", since
105714         <string.h> now suffices.
105715         * tests/test-memmem.c: Don't include "memmem.h", since
105716         <string.h> now suffices.
105718 2007-01-25  Bruno Haible  <bruno@clisp.org>
105720         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
105721         *resultp is 0.
105723         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
105724         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
105725         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
105726         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
105728         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
105729         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
105730         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
105731         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
105732         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
105733         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
105735 2007-01-24  Bruno Haible  <bruno@clisp.org>
105737         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
105738         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
105739         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
105740         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
105741         gl_FUNC_FTS_CORE.
105742         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
105743         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
105744         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
105745         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
105746         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
105747         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
105748         gl_FUNC_FCHOWNAT.
105749         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
105750         gl_FUNC_STRFTIME.
105751         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
105752         Reported by Ralf Wildenhues.
105754 2007-01-24  Bruno Haible  <bruno@clisp.org>
105756         Drop AC_REQUIRE calls that are redundant with the module dependencies.
105757         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
105758         gl_GETADDRINFO.
105759         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
105760         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
105761         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
105763 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
105765         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
105766         Don't use 'exit'; just return from 'main'.
105767         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
105769         * lib/fnmatch_.h: Readjust white space and comments to match
105770         glibc, to avoid spurious diffs.
105772 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
105774         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
105775         2004-12-01 change by Jakub Jelinek, since this code won't compile
105776         if !LIBC.  Problem reported by Bob Proulx.
105778 2007-01-23  Bruno Haible  <bruno@clisp.org>
105780         * lib/striconveh.c: Include c-strcaseeq.h.
105781         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
105782         * modules/striconveh (Depends-on): Add c-strcaseeq.
105784 2007-01-23  Bruno Haible  <bruno@clisp.org>
105786         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
105788         * modules/c-strcaseeq: New file.
105789         * lib/c-strcaseeq.h: New file.
105791         * modules/streq: New file.
105792         * lib/streq.h: New file.
105794 2007-01-23  Bruno Haible  <bruno@clisp.org>
105796         * modules/striconveha-tests: New file.
105797         * tests/test-striconveha.c: New file.
105799         * lib/striconveha.h: Include <stdbool.h>.
105800         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
105801         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
105802         (mem_iconveha_notranslit): Renamed from mem_iconveha.
105803         (mem_iconveha): New function.
105804         (str_iconveha_notranslit): Renamed from str_iconveha.
105805         (str_iconveha): New function.
105806         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
105807         c-strcase.
105809 2007-01-23  Bruno Haible  <bruno@clisp.org>
105811         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
105812         encodings without forgiving before trying any encoding with handler.
105813         (str_iconveha): Try all encodings without forgiving before trying any
105814         encoding with handler.
105816 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
105818         Import the following changes from libc.
105820         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
105822         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
105824         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
105826         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
105827         normal_bracket label.
105829         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
105831         [BZ #361]
105832         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
105833         to normal_bracket after fetching the next character.
105835 2007-01-22  Bruno Haible  <bruno@clisp.org>
105837         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
105838         argument.
105839         * lib/striconveh.c (iconv_carefully_1): New function.
105840         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
105841         argument.
105842         (str_cd_iconveh): Update.
105843         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
105844         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
105845         * tests/test-striconveh.c (MAGIC): New macro.
105846         (new_offsets): New function.
105847         (main): Test call with and without offsets.
105849 2007-01-22  Bruno Haible  <bruno@clisp.org>
105851         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
105852         * modules/sys_select (Makefile.am): Likewise.
105853         * modules/sys_socket (Makefile.am): Likewise.
105854         * modules/sys_time (Makefile.am): Likewise.
105856 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
105858         * modules/gettimeofday (License): Change from GPL to LGPL, since
105859         gettimeofday is a library function.
105861 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105863         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
105865 2007-01-21  Bruno Haible  <bruno@clisp.org>
105867         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
105869 2007-01-21  Bruno Haible  <bruno@clisp.org>
105871         * modules/striconveha: New file.
105872         * lib/striconveha.h: New file.
105873         * lib/striconveha.c: New file.
105874         * MODULES.html.sh (Internationalization functions): Add striconveha.
105875         * lib/striconv.c (str_iconv): Optimize the case of an empty input
105876         string.
105877         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
105879 2007-01-21  Bruno Haible  <bruno@clisp.org>
105881         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
105882         * lib/striconveh.c (str_iconveh): Likewise.
105884 2007-01-21  Bruno Haible  <bruno@clisp.org>
105886         * lib/striconveh.h (mem_iconveh): New declaration.
105887         * lib/striconveh.c (mem_iconveh): New function.
105888         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
105890 2007-01-21  Bruno Haible  <bruno@clisp.org>
105892         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
105894         * lib/striconveh.h (mem_cd_iconveh): Change specification.
105895         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
105896         original result buffer.
105897         (str_cd_iconveh): Update.
105898         * tests/test-striconveh.c (main): Update.
105900         * lib/striconv.h (mem_cd_iconv): Change specification.
105901         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
105902         result buffer.
105903         (str_cd_iconv): Update.
105904         * tests/test-striconv.c (main): Update.
105906 2007-01-21  Bruno Haible  <bruno@clisp.org>
105908         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
105910 2007-01-20  Jim Meyering  <jim@meyering.net>
105912         * lib/userspec.c (parse_with_separator): If a user or group string
105913         starts with "+", skip the corresponding name-to-ID look-up, since
105914         such a look-up must fail: user and group names may not include "+".
105916 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
105918         * lib/poll.c: Include sys/time.h and time.h unconditionally,
105919         since we now assume the sys_time module.
105920         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
105921         check for sys/time.h; no longer needed.
105922         * modules/poll (Depends-on): Depend on sys_time.
105924 2007-01-18  Bruno Haible  <bruno@clisp.org>
105926         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
105927         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
105929         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
105930         gettimeofday.
105932         * tests/test-gettimeofday.c: Include <time.h>.
105933         (dummy): Remove variable.
105935         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
105936         gl_HEADER_SYS_TIME_H.
105937         (gl_HEADER_SYS_TIME_H): New macro.
105939         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
105940         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105941         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
105942         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
105943         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105944         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
105945         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
105946         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105947         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
105948         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
105949         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105951         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
105952         last change; it caused a compilation error when cross-compiling to
105953         Cygwin.
105955 2007-01-18  Jim Meyering  <jim@meyering.net>
105957         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
105958         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
105959         than the race-prone "test -d sys || mkdir sys".
105960         (configure.ac): Use AC_PROG_MKDIR_P.
105961         * modules/sys_select: Likewise.
105962         * modules/sys_socket: Likewise.
105963         * modules/sys_time: Likewise.
105965 2007-01-18  Eric Blake  <ebb9@byu.net>
105967         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
105968         replace gettimeofday.
105969         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
105970         name, to avoid infinite recursion.
105972 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
105974         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
105975         module sys_time.
105976         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
105977         assume timespec.h defines struct timeval.
105978         * lib/settime.c: Likewise.
105979         * lib/utimens.c: Likewise.
105980         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
105981         since we now assume the gettimeofday module.
105982         * lib/tempname.c (__gen_tempname): Likewise.
105983         * lib/gettimeofday.h: Remove.
105984         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
105985         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
105986         Include <time.h>, for 'time()'.
105987         (localtime_buffer_addr): Also use this workaround if
105988         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
105989         to simplify the uses.  All uses changed.
105990         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
105991         that #undef is inside {}, and 'const' follows type name consistently.
105992         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
105993         (gettimeofday): Do not use the maximum possible value for
105994         tv->tv_usec, since that might break usages other than ls.c.
105995         Instead, we'll leave ls.c alone.  This undoes today's patch
105996         by Bruno.  Add a compile-time warning for 1s-clock resolution;
105997         we've never observed the problem but might as well keep the
105998         canary.
105999         * lib/nanosleep.c: Include timespec.h first, for interface check.
106000         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
106001         now assume the sys_time module.
106002         * lib/tempname.c: Likewise.
106003         * lib/timespec.h: Likewise.
106004         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
106005         needed.
106006         * lib/strftime.c: Likewise.
106007         * lib/timespec.h: Likewise.
106008         * lib/posixtm.c: Include posixtm.h first, for interface check.
106009         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
106010         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
106011         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
106012         * lib/sys_time_.h: New file.
106013         * lib/timespec.h (struct timespec): Use long int, not long.
106014         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
106015         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
106016         Remove obsolescent call to AC_HEADER_TIME.
106017         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
106018         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
106019         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
106020         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
106021         Likewise.
106022         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
106023         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
106024         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
106025         into the sys_time module.  Check for gettimeofday just once.
106026         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
106027         for gettimeofday signature to just check the signature.  Merely
106028         compile it, since linking doesn't test signature.  Improve test for
106029         whether gettimeofday.o is actually needed.
106030         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
106031         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
106032         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
106033         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
106034         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
106035         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
106036         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
106037         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
106038         than worrying about sys/time.h.
106039         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
106040         Don't bother worrying about TIME_WITH_SYS_TIME.
106041         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
106042         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
106043         * m4/sys_time_h.m4: New file.
106044         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
106045         Don't include sys/time.h.  Return from main rather than exiting.
106046         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
106047         all uses changed.
106048         * modules/gethrxtime (Depends-on): Add sys_time.
106049         * modules/gettime (Depends-on): Likewise.
106050         * modules/gettimeofday (Depends-on): Likewise.
106051         * modules/nanosleep (Depends-on): Likewise.
106052         * modules/settime (Depends-on): Likewise.
106053         * modules/tempname (Depends-on): Likewise.
106054         * modules/utimens (Depends-on): Likewise.
106055         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
106056         (Include): Change back to <sys/time.h>.
106057         (Maintainer): Add self.
106058         * modules/sys_time: New file.
106059         * modules/tempname (Depends-on): Add gettimeofday.
106060         * tests/test-gettimeofday.c: Include <sys/time.h>
106061         rather than gettimeofday.h.
106063 2007-01-17  Bruno Haible  <bruno@clisp.org>
106065         * gnulib-tool (func_get_license): Revert last patch. Instead, let
106066         the license default to GPL.
106067         (func_create_testdir): Don't complain if a module is LGPL and its
106068         tests module depends on GPLed modules.
106070 2007-01-17  Bruno Haible  <bruno@clisp.org>
106072         * lib/gettimeofday.c (gettimeofday): Add code for the case
106073         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
106074         maximum possible value for tv->tv_usec, rather than the minimum one.
106076 2005-10-08  Martin Lambers  <marlam@marlam.de>
106077 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
106078 2007-01-16  Bruno Haible  <bruno@clisp.org>
106080         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
106081         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
106082         gl_FUNC_GETTIMEOFDAY.
106083         (Include): Add gettimeofday.h.
106084         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
106085         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
106086         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
106087         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
106088         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
106089         * lib/gettimeofday.h: New file.
106090         * lib/gettimeofday.c: Include <sys/timeb.h>.
106091         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
106092         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
106093         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
106094         fall back on time().
106096         * tests/test-gettimeofday.c: New file.
106097         * modules/gettimeofday-tests: New file.
106099 2007-01-16  Eric Blake  <ebb9@byu.net>
106101         * modules/fnmatch (Depends-on): Depend on wchar.
106102         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
106103         * m4/fnmatch.m4: Likewise.
106104         * modules/mbchar (Makefile.am): Assume <wchar.h>.
106105         * m4/mbchar.m4: Likewise.
106106         * modules/mbswidth (Depends-on): Depend on wchar.
106107         * lib/mbswidth.c: Assume <wchar.h>.
106108         * m4/mbswidth.m4: Likewise.
106109         * modules/quotearg (Depends-on): Depend on wchar.
106110         * lib/quotearg.c: Assume <wchar.h>.
106111         * m4/quotearg.m4: Likewise.
106112         * modules/regex (Depends-on): Depend on wchar.
106113         * lib/regex_internal.h: Assume <wchar.h>.
106114         * m4/regex.m4: Likewise.
106115         * modules/stdint (Depends-on): Depend on wchar.
106116         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
106117         * m4/stdint.m4: Likewise.
106118         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
106119         * modules/strftime (Depends-on): Depend on wchar.
106120         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
106121         * modules/strtol (Depends-on): Depend on wchar.
106122         * lib/strtol.c: Assume <wchar.h>.
106123         * modules/wcwidth (Depends-on): Depend on wchar.
106124         * lib/wcwidth.h: Assume <wchar.h>.
106125         * m4/wcwidth.m4: Likewise.
106127 2007-01-16  Bruno Haible  <bruno@clisp.org>
106129         * modules/csharpexec-script: New, created from...
106130         * modules/csharpexec: ... this.
106132 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
106134         * modules/javaexec-script: New, created from...
106135         * modules/javaexec: ... this.
106137 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106139         * modules/poll (Dependencies): Add sys_select.
106141 2007-01-15  Jim Meyering  <jim@meyering.net>
106143         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
106144         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
106145         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
106146         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
106148 2007-01-15  Bruno Haible  <bruno@clisp.org>
106150         * modules/striconveh: New file.
106151         * lib/striconveh.h: New file.
106152         * lib/striconveh.c: New file.
106153         * MODULES.html.sh (Internationalization functions): Add striconveh.
106155         * modules/striconveh-tests: New file.
106156         * tests/test-striconveh.c: New file.
106158 2007-01-15  Bruno Haible  <bruno@clisp.org>
106160         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
106161         not from GNU libiconv or GNU libc.
106163 2007-01-15  Bruno Haible  <bruno@clisp.org>
106165         * doc/gnulib-intro.texi (Copyright): Explain the different license
106166         terms for module descriptions, autoconf macros, tests, documentation.
106168 2007-01-14  Bruno Haible  <bruno@clisp.org>
106170         * modules/striconv-tests: New file.
106171         * tests/test-striconv.c: New file.
106173 2007-01-14  Bruno Haible  <bruno@clisp.org>
106175         * modules/iconv-tests: New file.
106176         * tests/test-iconv.c: New file.
106178 2007-01-14  Bruno Haible  <bruno@clisp.org>
106180         * gnulib-tool (func_get_license): For test modules, use the license of
106181         the main module.
106183 2007-01-14  Bruno Haible  <bruno@clisp.org>
106185         * modules/iconv (Include): Clarify that <iconv.h> can only be included
106186         if iconv is found to exist.
106188 2007-01-14  Bruno Haible  <bruno@clisp.org>
106190         * modules/c-ctype-tests: New file.
106191         * tests/test-c-ctype.c: New file.
106193 2007-01-14  Bruno Haible  <bruno@clisp.org>
106195         * modules/binary-io-tests: New file.
106196         * tests/test-binary-io.sh: New file.
106197         * tests/test-binary-io.c: New file.
106199 2007-01-14  Bruno Haible  <bruno@clisp.org>
106201         * modules/array-oset-tests: New file.
106202         * tests/test-array_oset.c: New file.
106204 2007-01-14  Bruno Haible  <bruno@clisp.org>
106206         * modules/array-list-tests: New file.
106207         * tests/test-array_list.c: New file.
106209 2007-01-14  Bruno Haible  <bruno@clisp.org>
106211         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
106212         and make.
106213         Reported by Simon Josefsson in
106214         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
106216 2007-01-14  Bruno Haible  <bruno@clisp.org>
106218         * modules/allocsa-tests: New file.
106219         * tests/test-allocsa.c: New file.
106221 2007-01-14  Bruno Haible  <bruno@clisp.org>
106223         * modules/fchdir (Depends-on): Add absolute-header.
106224         * modules/unistd (Depends-on): Likewise.
106226 2006-12-30  Bruno Haible  <bruno@clisp.org>
106228         * modules/fchdir: New file.
106229         * modules/unistd (Files): Add lib/unistd_.h.
106230         (Makefile.am): Generate unistd.h from unistd_.h.
106231         * lib/fchdir.c: New file.
106232         * lib/dirent_.h: New file.
106233         * lib/unistd_.h: New file.
106234         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
106235         * m4/fchdir.m4: New file.
106236         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
106237         (gl_HEADER_UNISTD): Invoke it.
106238         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
106239         function.
106240         * lib/backupfile.c (opendir, closedir): Undefine.
106241         * lib/chown.c (open, close): Undefine.
106242         * lib/clean-temp.c (open, close): Undefine.
106243         * lib/copy-file.c (open, close): Undefine.
106244         * lib/execute.c (open, close): Undefine.
106245         * lib/fsusage.c (open, close): Undefine.
106246         * lib/gc-gnulib.c (open, close): Undefine.
106247         * lib/getcwd.c (opendir, closedir): Undefine.
106248         * lib/glob.c (opendir, closedir): Undefine.
106249         * lib/javacomp.c (open, close): Undefine.
106250         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
106251         * lib/openat-proc.c (open, close): Undefine.
106252         * lib/pagealign_alloc.c (open, close): Undefine.
106253         * lib/pipe.c (open, close): Undefine.
106254         * lib/progreloc.c (open, close): Undefine.
106255         * lib/savedir.c (opendir, closedir): Undefine.
106256         * lib/utime.c (open, close): Undefine.
106257         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
106259 2007-01-10  Bruno Haible  <bruno@clisp.org>
106261         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
106263 2007-01-12  Eric Blake  <ebb9@byu.net>
106265         Provide a robust <wchar.h>.  Further simplifications are now
106266         possible in other modules, but not included here.
106267         * modules/wchar: New module.
106268         * m4/wchar.m4: New file.
106269         * lib/wchar_.h: Likewise.
106270         * modules/mbchar (Depends-on): Depend on wchar, as the first use
106271         of the new module.
106272         * MODULES.html.sh (Extended multibyte and wide character utilities):
106273         New section.
106275 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
106277         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
106278         to a reasonable default for memory allocation.
106279         (xreadlink): Don't allocate a huge buffer, to work around a buggy
106280         file system that reports garbage st_size values for symlinks.
106281         Problem reported by Liyang Hu.
106283 2007-01-11  Simon Josefsson  <simon@josefsson.org>
106285         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
106286         Emacs .#* auto-save files).
106288 2007-01-11  Bruno Haible  <bruno@clisp.org>
106290         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
106291         directory.
106293 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
106295         Use @...@ consistently in lib/wctype_.h.
106296         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
106297         on it being set to 1 or 0.
106298         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
106299         go back to AC_SUBSTing it.
106300         * modules/wctype (Makefile.am): Undo previous change.
106302 2007-01-10  Eric Blake  <ebb9@byu.net>
106304         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
106305         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
106306         * modules/wctype (Makefile.am): Likewise.
106307         Reported by Chris McGuire.
106309 2007-01-10  Jim Meyering  <jim@meyering.net>
106311         fts.c: a small readability/maintainability improvement
106312         * lib/fts.c (fts_read): Make this code slightly more readable and
106313         maintainable by hoisting the "sp->fts_cur = p" assignments to
106314         immediately follow the statements that set P.  Derived from
106315         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
106317 2007-01-10  Eric Blake  <ebb9@byu.net>
106319         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
106320         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
106321         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
106322         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
106323         Reported by Chris McGuire.
106325 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106327         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
106328         in sed script.
106330 2007-01-09  Bruno Haible  <bruno@clisp.org>
106332         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
106333         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
106334         variables.
106335         (func_module): Use them.
106337 2007-01-09  Bruno Haible  <bruno@clisp.org>
106339         * modules/unistr/base: New file.
106340         * lib/unistr.h: New file.
106342         * modules/unistr/u8-to-u16: New file.
106343         * lib/unistr/u8-to-u16.c: New file.
106345         * modules/unistr/u8-to-u32: New file.
106346         * lib/unistr/u8-to-u32.c: New file.
106348         * modules/unistr/u16-to-u8: New file.
106349         * lib/unistr/u16-to-u8.c: New file.
106351         * modules/unistr/u16-to-u32: New file.
106352         * lib/unistr/u16-to-u32.c: New file.
106354         * modules/unistr/u32-to-u8: New file.
106355         * lib/unistr/u32-to-u8.c: New file.
106357         * modules/unistr/u32-to-u16: New file.
106358         * lib/unistr/u32-to-u16.c: New file.
106360         * modules/unistr/u8-check: New file.
106361         * modules/unistr/u16-check: New file.
106362         * modules/unistr/u32-check: New file.
106363         * lib/unistr/u8-check.c: New file.
106364         * lib/unistr/u16-check.c: New file.
106365         * lib/unistr/u32-check.c: New file.
106367         * modules/unistr/u8-chr: New file.
106368         * modules/unistr/u16-chr: New file.
106369         * modules/unistr/u32-chr: New file.
106370         * lib/unistr/u8-chr.c: New file.
106371         * lib/unistr/u16-chr.c: New file.
106372         * lib/unistr/u32-chr.c: New file.
106374         * modules/unistr/u8-cmp: New file.
106375         * modules/unistr/u16-cmp: New file.
106376         * modules/unistr/u32-cmp: New file.
106377         * lib/unistr/u8-cmp.c: New file.
106378         * lib/unistr/u16-cmp.c: New file.
106379         * lib/unistr/u32-cmp.c: New file.
106381         * modules/unistr/u8-cpy: New file.
106382         * modules/unistr/u16-cpy: New file.
106383         * modules/unistr/u32-cpy: New file.
106384         * lib/unistr/u8-cpy.c: New file.
106385         * lib/unistr/u16-cpy.c: New file.
106386         * lib/unistr/u32-cpy.c: New file.
106387         * lib/unistr/u-cpy.h: New file.
106389         * modules/unistr/u8-cpy-alloc: New file.
106390         * modules/unistr/u16-cpy-alloc: New file.
106391         * modules/unistr/u32-cpy-alloc: New file.
106392         * lib/unistr/u8-cpy-alloc.c: New file.
106393         * lib/unistr/u16-cpy-alloc.c: New file.
106394         * lib/unistr/u32-cpy-alloc.c: New file.
106395         * lib/unistr/u-cpy-alloc.h: New file.
106397         * modules/unistr/u8-endswith: New file.
106398         * modules/unistr/u16-endswith: New file.
106399         * modules/unistr/u32-endswith: New file.
106400         * lib/unistr/u8-endswith.c: New file.
106401         * lib/unistr/u16-endswith.c: New file.
106402         * lib/unistr/u32-endswith.c: New file.
106403         * lib/unistr/u-endswith.h: New file.
106405         * modules/unistr/u8-mblen: New file.
106406         * modules/unistr/u16-mblen: New file.
106407         * modules/unistr/u32-mblen: New file.
106408         * lib/unistr/u8-mblen.c: New file.
106409         * lib/unistr/u16-mblen.c: New file.
106410         * lib/unistr/u32-mblen.c: New file.
106412         * modules/unistr/u8-mbtouc: New file.
106413         * modules/unistr/u16-mbtouc: New file.
106414         * modules/unistr/u32-mbtouc: New file.
106415         * lib/unistr/u8-mbtouc.c: New file.
106416         * lib/unistr/u16-mbtouc.c: New file.
106417         * lib/unistr/u32-mbtouc.c: New file.
106419         * modules/unistr/u8-mbtouc-safe: New file.
106420         * modules/unistr/u16-mbtouc-safe: New file.
106421         * modules/unistr/u32-mbtouc-safe: New file.
106422         * lib/unistr/u8-mbtouc-safe.c: New file.
106423         * lib/unistr/u16-mbtouc-safe.c: New file.
106424         * lib/unistr/u32-mbtouc-safe.c: New file.
106426         * modules/unistr/u8-move: New file.
106427         * modules/unistr/u16-move: New file.
106428         * modules/unistr/u32-move: New file.
106429         * lib/unistr/u8-move.c: New file.
106430         * lib/unistr/u16-move.c: New file.
106431         * lib/unistr/u32-move.c: New file.
106432         * lib/unistr/u-move.h: New file.
106434         * modules/unistr/u8-next: New file.
106435         * modules/unistr/u16-next: New file.
106436         * modules/unistr/u32-next: New file.
106437         * lib/unistr/u8-next.c: New file.
106438         * lib/unistr/u16-next.c: New file.
106439         * lib/unistr/u32-next.c: New file.
106441         * modules/unistr/u8-prev: New file.
106442         * modules/unistr/u16-prev: New file.
106443         * modules/unistr/u32-prev: New file.
106444         * lib/unistr/u8-prev.c: New file.
106445         * lib/unistr/u16-prev.c: New file.
106446         * lib/unistr/u32-prev.c: New file.
106448         * modules/unistr/u8-set: New file.
106449         * modules/unistr/u16-set: New file.
106450         * modules/unistr/u32-set: New file.
106451         * lib/unistr/u8-set.c: New file.
106452         * lib/unistr/u16-set.c: New file.
106453         * lib/unistr/u32-set.c: New file.
106454         * lib/unistr/u-set.h: New file.
106456         * modules/unistr/u8-startswith: New file.
106457         * modules/unistr/u16-startswith: New file.
106458         * modules/unistr/u32-startswith: New file.
106459         * lib/unistr/u8-startswith.c: New file.
106460         * lib/unistr/u16-startswith.c: New file.
106461         * lib/unistr/u32-startswith.c: New file.
106462         * lib/unistr/u-startswith.h: New file.
106464         * modules/unistr/u8-stpcpy: New file.
106465         * modules/unistr/u16-stpcpy: New file.
106466         * modules/unistr/u32-stpcpy: New file.
106467         * lib/unistr/u8-stpcpy.c: New file.
106468         * lib/unistr/u16-stpcpy.c: New file.
106469         * lib/unistr/u32-stpcpy.c: New file.
106470         * lib/unistr/u-stpcpy.h: New file.
106472         * modules/unistr/u8-stpncpy: New file.
106473         * modules/unistr/u16-stpncpy: New file.
106474         * modules/unistr/u32-stpncpy: New file.
106475         * lib/unistr/u8-stpncpy.c: New file.
106476         * lib/unistr/u16-stpncpy.c: New file.
106477         * lib/unistr/u32-stpncpy.c: New file.
106478         * lib/unistr/u-stpncpy.h: New file.
106480         * modules/unistr/u8-strcat: New file.
106481         * modules/unistr/u16-strcat: New file.
106482         * modules/unistr/u32-strcat: New file.
106483         * lib/unistr/u8-strcat.c: New file.
106484         * lib/unistr/u16-strcat.c: New file.
106485         * lib/unistr/u32-strcat.c: New file.
106486         * lib/unistr/u-strcat.h: New file.
106488         * modules/unistr/u8-strchr: New file.
106489         * modules/unistr/u16-strchr: New file.
106490         * modules/unistr/u32-strchr: New file.
106491         * lib/unistr/u8-strchr.c: New file.
106492         * lib/unistr/u16-strchr.c: New file.
106493         * lib/unistr/u32-strchr.c: New file.
106495         * modules/unistr/u8-strcmp: New file.
106496         * modules/unistr/u16-strcmp: New file.
106497         * modules/unistr/u32-strcmp: New file.
106498         * lib/unistr/u8-strcmp.c: New file.
106499         * lib/unistr/u16-strcmp.c: New file.
106500         * lib/unistr/u32-strcmp.c: New file.
106502         * modules/unistr/u8-strcpy: New file.
106503         * modules/unistr/u16-strcpy: New file.
106504         * modules/unistr/u32-strcpy: New file.
106505         * lib/unistr/u8-strcpy.c: New file.
106506         * lib/unistr/u16-strcpy.c: New file.
106507         * lib/unistr/u32-strcpy.c: New file.
106508         * lib/unistr/u-strcpy.h: New file.
106510         * modules/unistr/u8-strcspn: New file.
106511         * modules/unistr/u16-strcspn: New file.
106512         * modules/unistr/u32-strcspn: New file.
106513         * lib/unistr/u8-strcspn.c: New file.
106514         * lib/unistr/u16-strcspn.c: New file.
106515         * lib/unistr/u32-strcspn.c: New file.
106516         * lib/unistr/u-strcspn.h: New file.
106518         * modules/unistr/u8-strdup: New file.
106519         * modules/unistr/u16-strdup: New file.
106520         * modules/unistr/u32-strdup: New file.
106521         * lib/unistr/u8-strdup.c: New file.
106522         * lib/unistr/u16-strdup.c: New file.
106523         * lib/unistr/u32-strdup.c: New file.
106524         * lib/unistr/u-strdup.h: New file.
106526         * modules/unistr/u8-strlen: New file.
106527         * modules/unistr/u16-strlen: New file.
106528         * modules/unistr/u32-strlen: New file.
106529         * lib/unistr/u8-strlen.c: New file.
106530         * lib/unistr/u16-strlen.c: New file.
106531         * lib/unistr/u32-strlen.c: New file.
106532         * lib/unistr/u-strlen.h: New file.
106534         * modules/unistr/u8-strmblen: New file.
106535         * modules/unistr/u16-strmblen: New file.
106536         * modules/unistr/u32-strmblen: New file.
106537         * lib/unistr/u8-strmblen.c: New file.
106538         * lib/unistr/u16-strmblen.c: New file.
106539         * lib/unistr/u32-strmblen.c: New file.
106541         * modules/unistr/u8-strmbtouc: New file.
106542         * modules/unistr/u16-strmbtouc: New file.
106543         * modules/unistr/u32-strmbtouc: New file.
106544         * lib/unistr/u8-strmbtouc.c: New file.
106545         * lib/unistr/u16-strmbtouc.c: New file.
106546         * lib/unistr/u32-strmbtouc.c: New file.
106548         * modules/unistr/u8-strncat: New file.
106549         * modules/unistr/u16-strncat: New file.
106550         * modules/unistr/u32-strncat: New file.
106551         * lib/unistr/u8-strncat.c: New file.
106552         * lib/unistr/u16-strncat.c: New file.
106553         * lib/unistr/u32-strncat.c: New file.
106554         * lib/unistr/u-strncat.h: New file.
106556         * modules/unistr/u8-strncmp: New file.
106557         * modules/unistr/u16-strncmp: New file.
106558         * modules/unistr/u32-strncmp: New file.
106559         * lib/unistr/u8-strncmp.c: New file.
106560         * lib/unistr/u16-strncmp.c: New file.
106561         * lib/unistr/u32-strncmp.c: New file.
106563         * modules/unistr/u8-strncpy: New file.
106564         * modules/unistr/u16-strncpy: New file.
106565         * modules/unistr/u32-strncpy: New file.
106566         * lib/unistr/u8-strncpy.c: New file.
106567         * lib/unistr/u16-strncpy.c: New file.
106568         * lib/unistr/u32-strncpy.c: New file.
106569         * lib/unistr/u-strncpy.h: New file.
106571         * modules/unistr/u8-strnlen: New file.
106572         * modules/unistr/u16-strnlen: New file.
106573         * modules/unistr/u32-strnlen: New file.
106574         * lib/unistr/u8-strnlen.c: New file.
106575         * lib/unistr/u16-strnlen.c: New file.
106576         * lib/unistr/u32-strnlen.c: New file.
106577         * lib/unistr/u-strnlen.h: New file.
106579         * modules/unistr/u8-strpbrk: New file.
106580         * modules/unistr/u16-strpbrk: New file.
106581         * modules/unistr/u32-strpbrk: New file.
106582         * lib/unistr/u8-strpbrk.c: New file.
106583         * lib/unistr/u16-strpbrk.c: New file.
106584         * lib/unistr/u32-strpbrk.c: New file.
106585         * lib/unistr/u-strpbrk.h: New file.
106587         * modules/unistr/u8-strrchr: New file.
106588         * modules/unistr/u16-strrchr: New file.
106589         * modules/unistr/u32-strrchr: New file.
106590         * lib/unistr/u8-strrchr.c: New file.
106591         * lib/unistr/u16-strrchr.c: New file.
106592         * lib/unistr/u32-strrchr.c: New file.
106594         * modules/unistr/u8-strspn: New file.
106595         * modules/unistr/u16-strspn: New file.
106596         * modules/unistr/u32-strspn: New file.
106597         * lib/unistr/u8-strspn.c: New file.
106598         * lib/unistr/u16-strspn.c: New file.
106599         * lib/unistr/u32-strspn.c: New file.
106600         * lib/unistr/u-strspn.h: New file.
106602         * modules/unistr/u8-strstr: New file.
106603         * modules/unistr/u16-strstr: New file.
106604         * modules/unistr/u32-strstr: New file.
106605         * lib/unistr/u8-strstr.c: New file.
106606         * lib/unistr/u16-strstr.c: New file.
106607         * lib/unistr/u32-strstr.c: New file.
106608         * lib/unistr/u-strstr.h: New file.
106610         * modules/unistr/u8-strtok: New file.
106611         * modules/unistr/u16-strtok: New file.
106612         * modules/unistr/u32-strtok: New file.
106613         * lib/unistr/u8-strtok.c: New file.
106614         * lib/unistr/u16-strtok.c: New file.
106615         * lib/unistr/u32-strtok.c: New file.
106616         * lib/unistr/u-strtok.h: New file.
106618         * modules/unistr/u8-uctomb: New file.
106619         * modules/unistr/u16-uctomb: New file.
106620         * modules/unistr/u32-uctomb: New file.
106621         * lib/unistr/u8-uctomb.c: New file.
106622         * lib/unistr/u16-uctomb.c: New file.
106623         * lib/unistr/u32-uctomb.c: New file.
106625         * MODULES.html.sh (Unicode string functions): Add the new modules.
106627 2007-01-08  Bruno Haible  <bruno@clisp.org>
106629         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
106630         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
106631         subdirectories.
106633 2007-01-08  Karl Berry  <karl@gnu.org>
106635         * doc/error.texi: mention that main() fns must set program_name
106636         when progname is used.
106638 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
106640         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
106641         WCTYPE_H is empty, for the benefit of builds from non-distclean
106642         directories.  Problem reported by Eric Blake in
106643         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
106645 2007-01-08  Bruno Haible  <bruno@clisp.org>
106647         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
106648         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
106649         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
106650         PROVIDE_CANONICALIZE_FILENAME_MODE.
106651         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
106653 2007-01-08  Bruno Haible  <bruno@clisp.org>
106655         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
106656         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
106657         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
106658         * lib/fts.c: Likewise.
106659         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
106661 2006-12-25  Bruno Haible  <bruno@clisp.org>
106663         * modules/utf8-ucs4-safe: New file.
106664         * lib/utf8-ucs4-safe.h: New file.
106665         * lib/unistr/utf8-ucs4-safe.c: New file.
106667         * modules/utf16-ucs4-safe: New file.
106668         * lib/utf16-ucs4-safe.h: New file.
106669         * lib/unistr/utf16-ucs4-safe.c: New file.
106671         * MODULES.html.sh (Unicode string functions): Add the new modules.
106673 2007-01-08  Bruno Haible  <bruno@clisp.org>
106675         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
106676         (Depends-on): Add unitypes.
106677         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
106678         (u8_mbtouc_aux): Move out to separate file.
106679         (u8_mbtouc): Use ucs4_t, uint8_t types.
106680         * lib/unistr/utf8-ucs4.c: New file.
106682         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
106683         (Depends-on): Add unitypes.
106684         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
106685         (u16_mbtouc_aux): Move out to separate file.
106686         (u16_mbtouc): Use ucs4_t, uint16_t types.
106687         * lib/unistr/utf16-ucs4.c: New file.
106689         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
106690         (Depends-on): Add unitypes.
106691         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
106692         (u8_uctomb_aux): Move out to separate file.
106693         (u8_uctomb): Use ucs4_t, uint8_t types.
106694         * lib/unistr/ucs4-utf8.c: New file.
106696         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
106697         (Depends-on): Add unitypes.
106698         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
106699         (u16_uctomb_aux): Move out to separate file.
106700         (u16_uctomb): Use ucs4_t, uint16_t types.
106701         * lib/unistr/ucs4-utf16.c: New file.
106703 2006-12-25  Bruno Haible  <bruno@clisp.org>
106705         * modules/unitypes: New file.
106706         * lib/unitypes.h: New file.
106707         * MODULES.html.sh (func_all_modules): New section "Unicode string
106708         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
106709         this section. Add unitypes.
106711 2007-01-08  Bruno Haible  <bruno@clisp.org>
106713         Avoid variable names that conflict with those from libtool.
106714         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
106715         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
106716         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
106717         library_names_spec to acl_library_names_spec, hardcode_* to
106718         acl_hardcode_*.
106719         Reported by Ralf Wildenhues.
106721 2007-01-08  Bruno Haible  <bruno@clisp.org>
106723         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
106724         definition.
106725         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
106726         definition.
106727         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
106728         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
106729         definition.
106730         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
106731         definition.
106732         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
106733         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
106734         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
106735         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
106736         definition.
106737         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
106738         definition.
106739         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
106740         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
106741         GC_USE_<algorithm>.
106742         * lib/gc-libgcrypt.c: Likewise.
106743         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
106744         * modules/gc-arctwo (configure.ac): Likewise.
106745         * modules/gc-des (configure.ac): Likewise.
106746         * modules/gc-hmac-md5 (configure.ac): Likewise.
106747         * modules/gc-hmac-sha1 (configure.ac): Likewise.
106748         * modules/gc-md2 (configure.ac): Likewise.
106749         * modules/gc-md4 (configure.ac): Likewise.
106750         * modules/gc-md5 (configure.ac): Likewise.
106751         * modules/gc-random (configure.ac): Likewise.
106752         * modules/gc-rijndael (configure.ac): Likewise.
106753         * modules/gc-sha1 (configure.ac): Likewise.
106755 2007-01-08  Bruno Haible  <bruno@clisp.org>
106757         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
106758         macro definition.
106759         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
106760         definition.
106761         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
106762         definition.
106763         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
106764         * modules/fcntl-safer (configure.ac): Likewise.
106765         * modules/fopen-safer (configure.ac): Likewise.
106766         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
106767         GNULIB_FWRITEERROR macro definition.
106769 2007-01-08  Bruno Haible  <bruno@clisp.org>
106771         * m4/gnulib-common.m4: New file.
106772         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
106773         (func_get_filelist): Add m4/gnulib-common.m4.
106775 2007-01-08  Bruno Haible  <bruno@clisp.org>
106777         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
106778         command.
106780 2007-01-08  Jim Meyering  <jim@meyering.net>
106782         Use a more robust test for a "can't happen" condition.
106783         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
106784         narrowed the st_size value.  Presuming the "can't happen" condition
106785         is true, that narrowing could conceivably convert an invalid st_size
106786         value into a valid one.  Instead, use a change based on Matthew
106787         Woehlke's original patch.
106789         Slight readability improvement: use an assert-like macro
106790         in place of literal "abort ()" uses.
106791         * lib/fts.c (fts_assert): Define.
106792         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
106793         Use this macro instead of a bare 'abort'.
106795 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
106797         Don't worry about using IRIX 5.3's wctype.h broken definitions;
106798         simply work around them.
106799         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
106800         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
106801         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
106802         declaring.
106803         Don't bother to define as macros, since the standard doesn't require it.
106804         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
106805         longer worry about IRIX 5.3.
106806         (HAVE_WCTYPE_CTMP_BUG): Remove.
106808 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
106810         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
106811         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
106812         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
106813         Problems reported by Georg Schwarz for IRIX 5.3.
106815         * gnulib-tool (autoconf_minversion): Take the maximum version number
106816         found, not the minimum.  Problem reported by James Youngman.
106818 2007-01-03  Karl Berry  <karl@gnu.org>
106820         * doc/error.texi: new file, explaining interaction with progname.
106821         * doc/gnulib.texi: include it.  Update copyright.
106823 2007-01-03  Simon Josefsson  <simon@josefsson.org>
106825         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
106826         AC_CANONICAL_HOST, to improve autobuild outputs.
106828 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
106829             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
106831         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
106832         sockets, server sockets, and other file descriptors.  Count errors
106833         to compute the return value.  Reorder the code a bit to be easier
106834         to follow.  Don't set event bits that were not requested (except
106835         POLLERR and POLLHUP).
106837 2007-01-01  Bruno Haible  <bruno@clisp.org>
106839         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
106841 2007-01-03  Jim Meyering  <jim@meyering.net>
106843         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
106845 2007-01-02  Bruno Haible  <bruno@clisp.org>
106847         * modules/settime (Include): Require timespec.h.
106848         * modules/nanosleep (Include): Likewise.
106850 2007-01-01  Bruno Haible  <bruno@clisp.org>
106852         * gnulib-tool (func_emit_copyright_notice): Bump year.
106853         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
106855 2007-01-01  Bruno Haible  <bruno@clisp.org>
106857         Improve support for OpenBSD.
106858         * build-aux/config.rpath (libname_spec): Export.
106859         (library_names_spec): New variable. Export.
106860         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
106861         library_names_spec from the config.rpath output. Locate shared library
106862         through the name pattern in library_names_spec.
106864 2007-01-01  Eric Blake  <ebb9@byu.net>
106866         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
106868 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
106870         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
106871         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
106872         assume the C locale, and avoid an "eval" that could cause trouble.
106873         Problem with SORT reported by Bob Proulx.
106875         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
106876         Define.  Trivial patch from Henning Nielsen Lund, originally
106877         sent to bug-grep@gnu.org today.
106879 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
106881         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
106882         struct stat.  Problem reported by Henning Nielsen Lund.
106883         * lib/acl.c: Include acl.h first, to check interface.  Don't
106884         bother to include sys/types.h and sys/stat.h again.
106886 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
106888         Import the following change from libc; problem reported by
106889         Sven Verdoolaege.
106891         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
106893         [BZ #1373]
106894         * lib/argp.h: Remove __NTH for __argp_usage inline function.
106896 2006-12-28  Jim Meyering  <jim@meyering.net>
106898         * build-aux/announce-gen: Do not assume that the package
106899         builds any of tar.gz, tar.bz2, and .xdelta files.
106900         Suggestion from Simon Josefsson.
106902 2006-12-28  Simon Josefsson  <simon@josefsson.org>
106904         * modules/announce-gen: New file.
106906 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
106908         * lib/mbchar.h: Just include <wctype.h>; the wctype module
106909         handles its gotchas now.
106910         * lib/mbswidth.c: Likewise.
106911         * lib/wcwidth.h: Likewise.
106912         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
106913         and iswcntrl; the wctype module does this stuff now.
106914         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
106915         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
106916         * modules/mbchar (Depends-on): Add wctype.
106917         * modules/mbswidth (Depends-on): Likewise.
106918         * modules/wcwidth (Depends-on): Likewise.
106920 2006-12-27  Eric Blake  <ebb9@byu.net>
106922         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
106923         module uses more than what <wctype.h> is required to provide.
106925 2006-12-26  Eric Blake  <ebb9@byu.net>
106927         * gnulib-tool (sed_extract_prog): Avoid space-tab.
106929 2006-12-26  Eric Blake  <ebb9@byu.net>
106931         * modules/absolute-header: New module.
106932         * modules/fcntl (Depends-on): Depend on it.
106933         * modules/inttypes (Depends-on): Likewise.
106934         * modules/stdint (Depends-on): Likewise.
106935         * modules/sys_stat (Depends-on): Likewise.
106936         * modules/wctype (Depends-on): Likewise.
106937         * MODULES.html.sh (Support for building libraries and
106938         executables): Document it.
106940 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
106942         * gnulib-tool (SED): Remove, undoing previous change.
106943         The problem was that it broke coreutils on Solaris, because
106944         "sed --posix" leaked into a makefile.
106945         (sed): New alias, if 'alias' and GNU sed.
106947 2006-12-24  Jim Meyering  <jim@meyering.net>
106949         Work around an fchownat bug in glibc-2.4:
106950         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
106951         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
106952         in spite of the -P option.
106953         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
106954         New macros.
106955         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
106956         * modules/openat (Files): Add lib/fchownat.c.
106957         * lib/openat.c (fchownat): Don't define here.  Move to...
106958         * lib/fchownat.c: ...this new file.
106960 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
106962         Fix bug reported by Bruno Haible in
106963         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
106964         where quotearg.c didn't compile on Mac OS X 10.2 because it
106965         lacks <wchar.h> and wint_t.
106966         * lib/wctype_.h (__wctype_wint_t): New type.
106967         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
106968         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
106969         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
106970         Arg is now of type __wctype_wint_t, not wint_t.
106971         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
106972         substitute HAVE_WINT_T.
106973         * modules/wctype (Files): Add m4/wint_t.m4.
106974         (wctype.h): Substitute HAVE_WINT_T.
106976 2006-12-23  Bruno Haible  <bruno@clisp.org>
106978         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
106980 2006-12-23  Bruno Haible  <bruno@clisp.org>
106982         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
106983         S_ISLNK.
106984         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
106985         mingw.
106987 2006-12-22  Bruno Haible  <bruno@clisp.org>
106989         * lib/copy-file.c: Include acl.h.
106990         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
106991         Close the file descriptors only after being done with copy_acl.
106992         * modules/copy-file (Depends-on): Add acl.
106994 2006-12-22  Bruno Haible  <bruno@clisp.org>
106996         * gnulib-tool (SED): New variable.
106997         Use $SED instead of sed everywhere.
106999 2006-12-22  Bruno Haible  <bruno@clisp.org>
107001         * modules/no-c++: New file.
107002         * m4/no-c++.m4: New file.
107003         * MODULES.html.sh (Support for building libraries and executables):
107004         Add no-c++.
107006 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
107008         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
107009         Include <limits.h>, and use its INT_MAX to rewrite the
107010         j loop so that it does not overflow 'int'.  Problem reported by
107011         Ralf Wildenhues in
107012         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
107013         Play it safe by shifting left by 1 rather than multiplying by 2,
107014         as GCC is less likely to optimize this away when the value
107015         is signed (when it assumes overflow leads to undefined behavior).
107016         Also, don't assume time_t uses two's complement.
107018 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
107020         * MODULES.html.sh: New module wctype.
107021         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
107022         * lib/fnmatch.c: Don't bother to include <wchar.h> before
107023         <wctype.h>, since the new wctype module should fix this.
107024         * lib/quotearg.c: Include <wctype.h> unconditionally, since
107025         the wctype module should arrange for it.
107026         * lib/regex_internal.h: Likewise.
107027         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
107028         since the wctype module should handle this now.
107029         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
107030         * modules/fnmatch (Depends-on): Add wctype.
107031         * modules/quotearg (Depends-on): Likewise.
107032         * modules/regex (Depends-on): Likewise.
107034 2006-12-19  Bruno Haible  <bruno@clisp.org>
107036         * lib/strdup.h [C++]: Wrap definitions in extern "C".
107037         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
107039 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107041         * modules/savewd (Depends-on): Fix dependency on fcntl.
107043 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
107045         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
107046         conforms to C99, rather than relying on the user's environment
107047         setting of STDINT_H.
107049 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
107050         and Eric Blake  <ebb9@byu.net>
107052         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
107053         This is more consistent with the other defines here.
107054         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
107055         Port to z/OS.  Problem reported by Paul Gilmartin.
107056         Change local vars to use gl_ prefix rather than ac_.
107057         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
107058         with other defines.
107059         * modules/double-slash-root: New module.
107060         * modules/dirname (Files): Remove m4/double-slash-root.m4.
107061         (Depends-on): Add double-slash-root.
107062         * MODULES.html.sh (File system functions): Mention new module.
107064 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
107066         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
107067         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
107068         This is for the benefit of gzip, which doesn't do i18n.
107070 2006-12-12  Jim Meyering  <jim@meyering.net>
107072         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
107073         Reported by Andreas Schwab <schwab@suse.de>.
107075 2006-12-12  Bruno Haible  <bruno@clisp.org>
107077         Merge these changes.
107078         2006-09-05  Bruno Haible  <bruno@clisp.org>
107079         * lib/iconvme.c (iconv_string): No need to save and restore errno when
107080         iconv_alloc succeeded.
107081         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
107082         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
107083         test for " && dest " at the end - dest is always != NULL there. Call
107084         iconv with 4xNULL arguments initially, to reset the state. Call iconv
107085         with 2xNULL arguments, also to flush the state storage. Handle the
107086         IRIX iconv behaviour. Realloc the final result, to throw away unused
107087         memory.
107089 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
107091         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
107092         and fchmodat unconditionally, since glibc 2.4 has them.
107093         Problem reported by Arkadiusz Miskiewicz.
107095 2006-12-10  Bruno Haible  <bruno@clisp.org>
107097         * gnulib-tool (func_import): Show the include files only for those
107098         modules that are copied and specified.
107099         Reported by Karl Berry.
107101 2006-12-08  Jim Meyering  <jim@meyering.net>
107103         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
107104         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
107106         * build-aux/announce-gen: Add two new options, both optional:
107107         --bootstrap-tools=TOOL_LIST
107108               a comma-separated list of tools, e.g.,
107109               autoconf,automake,bison,gnulib
107110         --gnulib-snapshot-date=DATE
107111               if gnulib is in the bootstrap tool list,
107112               then report this as the snapshot date.
107113               If not specified, use the current date/time.
107114               If you specify a date here, be sure it's UTC.
107116 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107118         * tests/test-argp-2.sh: Fix test to match actual output.
107119         (func_compare): Fix sed script to be portable.
107121 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
107123         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
107124         workaround for this case.  It is not autoconfigured now; offhand
107125         it's hard to see how to autoconfigure it.
107127 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
107129         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
107130         a directory that is about to be chowned.  Such a directory's
107131         initial file permissions should permit the owner only and this
107132         should not be changed until after the chown, since the group and
107133         other bits would be incorrect if they granted permission before
107134         the chown.
107136         Fix porting problem for iswctype reported by Georg Schwarz in:
107137         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
107138         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
107139         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
107140         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
107141         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
107143 2006-12-03  Jim Meyering  <jim@meyering.net>
107145         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
107146         p->fts_statp may not yet be defined.
107147         (fts_read): Instead, set it in the caller, once p->fts_statp is
107148         sure to be defined, and corresponds to a top-level directory.
107149         This bug made du -x fail.  Here's the coreutils test case:
107150         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
107151         Reported by Mike Frysinger.
107153 2006-12-01  Jim Meyering  <jim@meyering.net>
107155         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
107156         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
107157         Reported by Simon Josefsson.
107159 2006-11-30  Jim Meyering  <jim@meyering.net>
107161         * m4/warning.m4: Use the all-permissive copyright notice
107162         recommended by RMS (rather than LGPL).
107163         * m4/vararrays.m4: Likewise.
107164         * m4/flexmember.m4: Likewise.
107166 2006-11-29  Bruno Haible  <bruno@clisp.org>
107168         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
107169         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
107170         using +=.
107171         Reported by Simon Josefsson <simon@josefsson.org>.
107173 2006-11-28  James Youngman  <jay@gnu.org>
107175         * README: Advise users that they might find the bug-gnulib@gnu.org
107176         and autotools-announce@gnu.org mailing lists useful.
107178 2006-11-28  Bruno Haible  <bruno@clisp.org>
107180         * m4/ptrdiff_max.m4: Remove file.
107182 2006-11-21  Bruno Haible  <bruno@clisp.org>
107184         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
107185         _AC_COMPUTE_INT.
107186         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
107187         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
107188         _AC_COMPUTE_INT.
107189         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
107190         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
107191         _AC_COMPUTE_INT.
107192         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
107194 2006-11-28  Jim Meyering  <jim@meyering.net>
107196         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
107197         warning from "gcc -Wshadow" about shadowing the builtin.
107199 2006-11-27  Bruno Haible  <bruno@clisp.org>
107201         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
107202         _AC_COMPUTE_INT.
107203         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
107205 2006-11-27  Bruno Haible  <bruno@clisp.org>
107206             Paul Eggert  <eggert@cs.ucla.edu>
107208         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
107210 2006-11-26  Bruno Haible  <bruno@clisp.org>
107212         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
107213         noinst_LTLIBRARIES.
107215 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
107216             Bruno Haible  <bruno@clisp.org>
107218         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
107219         if compiling with "gcc -ansi".
107221 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
107223         Fix some incompatibilities with gcc -ansi -pedantic.
107224         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
107225         if compiling pedantically with GCC, unless it's C99 or later.
107226         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
107227         it mishandles gcc -ansi -pedantic as well.
107228         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
107229         if gcc -pedantic.
107230         * lib/regexec.c (check_node_accept_bytes): Don't use auto
107231         initializers for struct if -pedantic, unless it's C99 or later.
107233 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
107235         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
107236         Don't close an fd more than once. Identical atimes indicate
107237         success, not failure.
107239 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
107241         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
107243 2006-11-23  Jim Meyering  <jim@meyering.net>
107245         * build-aux/announce-gen: New file.  From coreutils.
107247 2006-11-22  Jim Meyering  <jim@meyering.net>
107249         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
107250         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
107251         (fts_read): Use a temporary to narrow the overused st_size member
107252         before using it in a switch statement.  Reported by Matthew Woehlke.
107254         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
107255         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
107257 2006-11-20  Bruno Haible  <bruno@clisp.org>
107259         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
107260         changequote instead of pairs of brackets.
107261         Reported by Andreas Schwab <schwab@suse.de>.
107263 2006-11-21  Jim Meyering  <jim@meyering.net>
107265         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
107266         so as to remain compatible with older compilers.
107267         Patch from Michael Deutschmann.
107269 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
107271         * MODULES.html.sh (File system functions): Add openat.
107273         * lib/openat.h (rpl_fstatat): New macro, if
107274         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
107275         (fstatat): Define to rpl_fstatat under the same conditions,
107276         unless COMPILING_FSTATAT.
107277         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
107278         seems to have the bug.
107279         * lib/fstatat.c: New file.
107280         * modules/openat (Files): Add it.
107282 2006-11-20  Bruno Haible  <bruno@clisp.org>
107284         * Makefile: New file.
107286 2006-11-20  Jim Meyering  <jim@meyering.net>
107288         The beginnings of syntax-related checks for gnulib.
107289         * lib/Makefile: New file.
107290         * lib/t-idcache: New script.  Ensure that the two halves of
107291         idcache.c stay in sync.
107293         * lib/idcache.c: Adjust comments in user- and group- portions to
107294         be more accurate, and to be consistent with one another.
107296 2006-11-20  Jim Meyering  <jim@meyering.net>
107298         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
107299         continue using the flexible array member (thus, this module performs
107300         half as many malloc calls), with the addition that...
107301         (getgroup, getuser): Consistently record a non-match via an empty
107302         "name" string, and map an empty string match to a NULL return value.
107303         * modules/idcache (Depends-on): Re-add flexmember.
107305         * lib/idcache.c (getuser): Remove all uses of the register keyword.
107306         (getuidbyname, getgroup, getgidbyname): Likewise.
107308         Use cleaner syntax: NULL rather than 0.
107309         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
107311 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
107313         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
107314         It mishandled the case where the group was missing.
107315         Problem reported by Greg Schafer.
107316         * modules/idcache: Likewise.
107318 2006-11-18  Jim Meyering  <jim@meyering.net>
107320         * check-module (%exempt_header): Add exception for some
107321         conditionally-included headers.
107323         * modules/i-ring (Depends-on): Add verify.
107324         (License): Change to LGPL.
107326 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
107328         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
107329         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
107330         and inttostr.h.  Use snprintf rather than uinttostr, so that
107331         LGPLed code doesn't depend on GPLed.
107333 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
107335         * modules/inline (License): Change from GPL to LGPL.
107337 2006-11-17  Jim Meyering  <jim@meyering.net>
107339         * modules/d-type (License): Switch to LGPL.
107341 2006-11-15  Bruno Haible  <bruno@clisp.org>
107343         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
107345 2006-11-15  Eric Blake  <ebb9@byu.net>
107347         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
107348         the module dependency.
107350 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
107351             Bruno Haible  <bruno@clisp.org>
107353         * gnulib-tool (func_create_testdir): Add license consistency check.
107355 2006-11-15  Eric Blake  <ebb9@byu.net>
107357         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
107358         random "(cached)" in configure output.
107360 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107362         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
107363         test for conforming inttypes.h is both announced and cached.
107365         * MODULES.html.sh (seen_modules, seen_files): New variables.
107366         (func_module): Rewrite to use a few less gnulib-tool and sed
107367         invocations.  Avoid a couple of quadratic algorithms for ...
107368         (missed_modules, missed_files): ... these, with ...
107369         (func_append, func_tmpdir): ... these new functions, from
107370         gnulib-tool.  Analogously, install traps for cleanup.
107372         * tests/test-gc.c (main): Remove unused variables.
107373         * tests/test-read-file.c: Include stdlib.h, for 'free'.
107375 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
107377         * modules/inttostr (License): Change to LGPL.
107379 2006-11-14  Eric Blake  <ebb9@byu.net>
107381         * modules/tempname (License): Change to LGPL.
107383 2006-11-14  Eric Blake  <ebb9@byu.net>
107385         * doc/functions.texi (Function Portability): *printf functions on
107386         Cygwin now understand all POSIX size specifiers.
107388 2006-11-14  Bruno Haible  <bruno@clisp.org>
107390         * modules/c-ctype (License): Change to LGPL.
107392 2006-11-12  Bruno Haible  <bruno@clisp.org>
107394         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
107395         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
107396         for GNOME libraries, for which the include files are installed in
107397         subdirectories of $prefix/include.
107399 2006-11-12  Bruno Haible  <bruno@clisp.org>
107401         * m4/lib-link.m4: Require at least autoconf-2.54.
107402         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
107403         name to underscores for the --with option.
107405 2006-11-13  Bruno Haible  <bruno@clisp.org>
107407         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
107408         the tests directory.
107409         Reported by Ralf Wildenhues.
107411 2006-11-13  Bruno Haible  <bruno@clisp.org>
107413         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
107414         (func_emit_initmacro_end): Undo the override here.
107415         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
107416         Works around the famous automake error in coreutils.
107418 2006-11-13  Eric Blake  <ebb9@byu.net>
107420         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
107421         element, not its node.
107423 2006-11-12  Bruno Haible  <bruno@clisp.org>
107425         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
107426         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
107428 2006-11-12  Bruno Haible  <bruno@clisp.org>
107430         * gnulib-tool: New option --local-symlink.
107431         (func_usage): Document it.
107432         (lsymbolic): New variable.
107433         (func_import, func_create_testdir): If --symlink was not specified,
107434         test whether --local-symlink was specified and the file comes from
107435         the local_gnulib_dir.
107437 2006-11-12  Bruno Haible  <bruno@clisp.org>
107439         * gnulib-tool (func_ln): New function.
107440         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
107442 2006-11-12  Bruno Haible  <bruno@clisp.org>
107444         Finish support for source files in subdirectories.
107445         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
107446         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
107447         AUTOMAKE_OPTIONS.
107448         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
107450 2006-11-12  Bruno Haible  <bruno@clisp.org>
107452         * gnulib-tool (func_get_automake_snippet): Synthesize also an
107453         EXTRA_lib_SOURCES augmentation.
107454         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
107456 2006-11-12  Jim Meyering  <jim@meyering.net>
107458         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
107459         file descriptors.  This also averts a failure on systems with
107460         native openat support when a traversed directory lacks "x" access.
107461         * lib/fts_.h: Include "i-ring.h"
107462         (struct FTS) [fts_fd_ring]: New member.
107463         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
107464         (FCHDIR): Add parentheses.
107465         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
107466         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
107467         When descending, rather than simply closing the previous
107468         fts_cwd_fd value, push that file descriptor onto the ring.
107469         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
107470         (fts_open): Initialize the new fd_ring member.
107471         (fts_close): Clear the ring.
107472         (fts_safe_changedir): When possible, use our new fd_ring to skip
107473         the diropen and fstat and dev/ino comparison that would normally
107474         accompany a virtual `chdir ("..")'.
107476         * modules/fts (Depends-on): Add i-ring.
107477         * modules/i-ring: New module.
107478         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
107479         * m4/i-ring.m4: New file.
107481 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107483         * gnulib-tool (func_create_testdir): Fix replacement of
107484         `build-aux' in configure.ac.  Run autotools in gltests
107485         subdirectory.
107486         (func_create_testdir, func_create_megatestdir, test): There is
107487         no need for '--force' in most autotool invocations in a new
107488         tree.  Actually fail the whole test if any of the tools, or the
107489         configure or make stages fail.
107491         Sync from Automake.
107492         * build-aux/gnupload: Revert last change.  Add pointer to upload
107493         instructions of the GNU Maintenance Instructions.
107494         Suggestion by Karl Berry.
107496 2006-11-10  Jim Meyering  <jim@meyering.net>
107498         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
107500 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
107502         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
107503         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
107504         (bind_textdomain_codeset) [! ENABLE_NLS]:
107505         Evaluate all the arguments.  That way, callers get compatible behavior
107506         if the arguments have side effects.  Also, it avoids some GCC
107507         diagnostics in some cases; Joel E. Denny reported problems when Bison
107508         was configured with --enable-gcc-warnigs.
107510 2006-11-10  Jim Meyering  <jim@meyering.net>
107512         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
107513         relevant options in CFLAGS (like -O, -fno-inline) are taken into
107514         account.
107516 2006-11-10  Jim Meyering  <jim@meyering.net>
107518         * modules/inline: New file/module.
107519         * modules/xalloc (Files): Remove m4/inline.m4.
107520         (Depends-on): Add inline, instead.
107521         * modules/oset: Likewise.
107522         * modules/list: Likewise.
107524 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
107526         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
107527         Problem reported by Matthew Woehlke.
107529 2006-11-09  Bruno Haible  <bruno@clisp.org>
107531         * lib/tempname.c (gen_tempname): Remove variant that invokes
107532         __gen_tempname.
107533         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
107534         __gen_tempname.
107536 2006-11-08  Bruno Haible  <bruno@clisp.org>
107538         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
107539         to 'yes' instead of 'cross-compiling'.
107541 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
107543         * lib/quotearg.h (quotearg_free): New decl.
107544         * lib/quotearg.c (quotearg_free): New function.
107545         (slot0, nslots, slotvec0, slotvec):
107546         Now file-scope so that quotearg_free can get at them.
107548 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107550         Sync from Automake.
107551         * build-aux/gnupload: Add missing 'gnu' to example URL.
107552         Report by Karl Berry.
107554 2006-11-08  Bruno Haible  <bruno@clisp.org>
107556         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
107557         Suggested by Paul Eggert.
107559 2006-11-08  Jim Meyering  <jim@meyering.net>
107561         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
107562         It's already included if !_LIBC.
107563         (fts_safe_changedir): Add a comment.
107565 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
107567         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
107568         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
107569         Matthew Woehlke.
107571         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
107572         definitions up, to avoid colliding with change below.
107573         (static_inline) [HAVE_INLINE]: New macro.
107574         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
107575         Provide extern decls when !HAVE_INLINE.  Do not define unless
107576         static_inline is defined, either by us or by xmalloc.c.  Use
107577         static_inline rather than static inline.
107578         (XCALLOC): Optimize sizeof(T) = 1 case.
107579         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
107581 2006-11-07  Bruno Haible  <bruno@clisp.org>
107583         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
107584         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
107585         AC_C_INLINE.
107586         * modules/xalloc (Files): Add m4/inline.m4.
107588 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107590         * README: Fix typo.
107591         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
107592         (Miscellanous Notes): ...from this.
107594 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
107596         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
107597         Mention that offsetof should be used instead of sizeof.
107598         From Bruno Haible.
107600 2006-11-07  Bruno Haible  <bruno@clisp.org>
107602         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
107604 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
107606         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
107607         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
107608         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
107609         (gl_tree_add_before, gl_tree_add_after):
107610         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
107611         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
107612         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
107613         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
107614         (gl_linked_add_after, gl_linked_add_at): Likewise.
107615         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
107616         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
107617         (gl_tree_add_before, gl_tree_add_after): Likewise.
107618         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
107619         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
107620         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
107622 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107624         * lib/gl_oset.h: Use C comment style, not C++ comment style.
107626 2006-11-06  Bruno Haible  <bruno@clisp.org>
107628         * m4/inline.m4: New file.
107629         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
107630         * modules/list (Files): Add m4/inline.m4.
107631         * modules/oset (Files): Likewise.
107633 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
107635         * lib/idcache.c: Include <stddef.h>, for offsetof.
107636         (struct userid.name): Change from char * to a flexible array member.
107637         All uses changed.
107638         * modules/idcache (Depends-on): Add flexmember.
107640         * MODULES.html.sh (Core language properties): New module flexmember.
107641         * modules/flexmember, m4/flexmember.m4: New files.
107643         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
107644         inline functions that are identical with the old xnmalloc_inline,
107645         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
107646         that we can avoid some unnecessary integer multiplications and
107647         divisions in the common case where the element size is known at
107648         compile time.
107649         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
107650         needed.
107651         (xnboundedmalloc): Remove.
107652         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
107653         arguments, for consistency with rest of this header.
107654         (xcharalloc): Rewrite using XNMALLOC.
107655         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
107656         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
107657         versions have been moved to lib/xalloc.h and renamed to be the
107658         non-*_inline versions.
107659         (xmalloc, xrealloc): Implement without reference to the xnmalloc
107660         and xnrealloc functions, since those functions are now inline and
107661         now call us.
107662         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
107663         renaming described above.
107664         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
107665         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
107666         captures the dependency in AC_C_INLINE.
107668         New module canonicalize-lgpl, proposed by Charles Wilson in
107669         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
107670         with a few small changes afterwards.
107671         * MODULES.html.sh (File system functions): New module
107672         canonicalize-lgpl.
107673         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
107674         and canonicalize_file_name.
107675         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
107676         * modules/canonicalize-lgpl: New files.
107678 2006-11-05  Bruno Haible  <bruno@clisp.org>
107680         * gnulib-tool (func_import, func_create_testdir): Create directories
107681         also for files in subdirectories of lib/.
107683 2006-11-05  Bruno Haible  <bruno@clisp.org>
107685         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
107686         ANSI C compliant.
107688 2006-11-03  Bruno Haible  <bruno@clisp.org>
107690         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
107691         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
107692         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
107693         (xnboundedmalloc): New inline function.
107694         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
107695         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
107696         xmalloc.
107697         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
107698         xmalloc.
107699         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
107700         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
107701         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
107702         xmalloc.
107703         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
107704         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
107705         xmalloc.
107706         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
107707         gl_tree_add_after): Use XMALLOC instead of xmalloc.
107708         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
107709         xmalloc.
107710         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
107711         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
107712         gl_tree_add_after): Use XMALLOC instead of xmalloc.
107713         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
107714         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
107715         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
107716         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
107718 2006-11-03  Bruno Haible  <bruno@clisp.org>
107720         * lib/c-ctype.h [C++]: Define functions without name mangling.
107721         * lib/fwriteerror.h [C++]: Likewise.
107722         * lib/gcd.h [C++]: Likewise.
107723         * lib/linebreak.h [C++]: Likewise.
107725 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
107727         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
107728         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
107729         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
107730         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
107731         Check for functions and headers just once.
107732         Check for declaration of canonicalize_file_name.
107733         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
107735 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
107737         * gnulib-tool (func_import): Fix typo in actioncmd.
107739 2006-11-02  Bruno Haible  <bruno@clisp.org>
107741         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
107742         newline sequence in the Makefile.am snippet as a space, like "make"
107743         does.
107744         Reported by Roger Persson <perrog@gmail.com>.
107746 2006-11-01  Bruno Haible  <bruno@clisp.org>
107748         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
107749         already declared in <string.h>.
107750         * lib/strcase.h (strncasecmp): Don't declare it if yes.
107752 2006-11-01  Bruno Haible  <bruno@clisp.org>
107754         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
107755         * lib/strcase.h: Include <string.h>.
107756         (strcasecmp): Define to rpl_strcasecmp here.
107758 2006-11-01  Bruno Haible  <bruno@clisp.org>
107760         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
107762 2006-11-01  Eric Blake  <ebb9@byu.net>
107764         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
107766         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
107768 2006-10-29  Bruno Haible  <bruno@clisp.org>
107770         Make it compile in C++ mode.
107771         * lib/full-write.c (full_rw): Add a cast.
107773 2006-11-01  Bruno Haible  <bruno@clisp.org>
107775         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
107776         be POSIX compliant.
107777         Reported by Roger Persson <perrog@gmail.com>.
107779 2006-11-01  Eric Blake  <ebb9@byu.net>
107781         * lib/getopt_.h: Fix comments.
107783 2006-10-31  Eric Blake  <ebb9@byu.net>
107785         * modules/tmpdir (Depends-on): Add sys_stat.
107786         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
107787         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
107788         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
107789         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
107790         tempname.
107792 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
107794         Avoid some C++ diagnostics reported by Bruno Haible.
107795         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
107796         xmalloc.
107797         (quotearg_alloc): Use xcharalloc rather than xmalloc.
107798         (struct slotvec): Move to top level.
107799         (quotearg_n_options): Rewrite to avoid xmalloc.
107800         * lib/xalloc.h (xcharalloc): New function.
107801         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
107802         [defined __cplusplus]: Add function template that provides result
107803         type propagation.  This part of the change is from Bruno Haible.
107805 2006-10-29  Bruno Haible  <bruno@clisp.org>
107807         Make it compile in C++ mode.
107808         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
107809         * lib/strnlen1.c (strnlen1): Cast memchr result.
107810         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
107811         * lib/clean-temp.c (string_equals, string_hash): Add casts.
107812         (create_temp_dir): Rename local variable 'template'.
107813         (compile_csharp_using_sscli): Add cast.
107814         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
107815         * lib/findprog.c (find_in_path): Likewise.
107816         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
107817         * lib/wait-process.c (register_slave_subprocess): Likewise.
107819 2006-10-22  Bruno Haible  <bruno@clisp.org>
107821         * modules/tsearch: New file.
107822         * lib/tsearch.h: New file.
107823         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
107824         * m4/tsearch.m4: New file.
107825         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
107827 2006-10-29  Eric Blake  <ebb9@byu.net>
107829         * lib/arcfour.c: Assume config.h.
107830         * lib/arctwo.c: Likewise.
107831         * lib/base64.c: Likewise.
107832         * lib/check-version.c: Likewise.
107833         * lib/crc.c: Likewise.
107834         * lib/des.c: Likewise.
107835         * lib/gc-gnulib.c: Likewise.
107836         * lib/gc-libgcrypt.c: Likewise.
107837         * lib/gc-pbkdf2-sha1.c: Likewise.
107838         * lib/getaddrinfo.c: Likewise.
107839         * lib/getdelim.c: Likewise.
107840         * lib/getline.c: Likewise.
107841         * lib/hmac-md5.c: Likewise.
107842         * lib/hmac-sha1.c: Likewise.
107843         * lib/iconvme.c: Likewise.
107844         * lib/md2.c: Likewise.
107845         * lib/md4.c: Likewise.
107846         * lib/memxor.c: Likewise.
107847         * lib/read-file.c: Likewise.
107848         * lib/readline.c: Likewise.
107849         * lib/rijndael-alg-fst.c: Likewise.
107850         * lib/rijndael-api-fst.c: Likewise.
107851         * lib/xgetdomainname.c: Likewise.
107853 2006-10-28  Eric Blake  <ebb9@byu.net>
107855         * lib/xstrndup.c: Assume config.h.
107857 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
107859         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
107860         stat-macros.h is now for our own macros, whereas stat_h is for
107861         macros in the <sys/stat.h> name space.
107862         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
107863         (STAT_MACROS_H): Remove.
107864         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
107865         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
107866         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
107867         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
107868         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
107869         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
107870         Move these macros to ...
107871         * lib/stat_.h: here.  Don't include stat-macros.h.
107872         * lib/canonicalize.c: Don't include stat-macros.h.
107873         * lib/chown.c: Likewise.
107874         * lib/euidaccess.c: Likewise.
107875         * lib/file-type.c: Likewise.
107876         * lib/filemode.c: Likewise.
107877         * lib/glob.c: Likewise.
107878         * lib/isapipe.c: Likewise.
107879         * lib/lchown.c: Likewise.
107880         * lib/lstat.c: Likewise.
107881         * lib/mkdir-p.c: Likewise.
107882         * lib/rmdir.c: Likewise.
107883         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
107884         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
107885         unless mkdir isn't declared, to speed up 'configure'.
107886         Always create sys/stat.h, since it's unlikely any real sys/stat.h
107887         would define all the S_* symbols.
107888         * modules/canonicalize (Depends-on):
107889         Depend on sys_stat, not stat-macros.
107890         * modules/chown: Likewise.
107891         * modules/euidaccess: Likewise.
107892         * modules/filemode: Likewise.
107893         * modules/file-type: Likewise.
107894         * modules/glob: Likewise.
107895         * modules/isapipe: Likewise.
107896         * modules/lchown: Likewise.
107897         * modules/lstat: Likewise.
107898         * modules/mkancesdirs: Likewise.
107899         * modules/rmdir: Likewise.
107900         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
107901         * modules/modechange: Likewise.
107902         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
107903         (configure.ac): Remove gl_STAT_MACROS.
107904         * modules/sys_stat (Depends-on): Remove stat-macros.
107906 2006-10-27  Bruno Haible  <bruno@clisp.org>
107908         * m4/signed.m4: Remove file.
107909         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
107910         invocation.
107911         * modules/vasnprintf (Files): Remove m4/signed.m4.
107913 2006-10-27  Bruno Haible  <bruno@clisp.org>
107915         Update to GNU gettext 0.16.
107916         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
107917         m4/inttypes-h.m4, m4/signed.m4.
107918         * m4/gettext.m4: Update to GNU gettext 0.16.
107919         * m4/intl.m4: New file, from GNU gettext.
107920         * m4/intldir.m4: New file, from GNU gettext.
107921         * config/srclist.txt: Update
107923 2006-10-27  Eric Blake  <ebb9@byu.net>
107925         * MODULES.html.sh: Document tempname.
107926         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
107927         dependencies.
107928         (Files): Move lib/tempname.c...
107929         * modules/tempname: ...to this new module.
107930         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
107931         (gl_PREREQ_TEMPNAME): Move...
107932         * m4/tempname.m4: ...to this new file.
107933         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
107934         * modules/sys_stat (Depends-on): Add stat-macros.
107935         * lib/stat_.h (includes): Pick up stat macros.
107936         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
107937         if stat macros are broken.
107938         * lib/tempname.c (includes): No need to include "stat-macros.h".
107939         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
107940         (direxists, __path_search) [!_LIBC]: Don't compile these in
107941         gnulib; the tmpdir module covers that.
107942         * lib/tempname.h: New file.
107944 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
107946         * COPYING: Explain how gnulib-tool converts licence headers.
107947         Almost all wording by Eric Blake.
107949 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
107951         * lib/mbchar.h (is_basic_table): Make read-only.
107952         * lib/mbchar.c (is_basic_table): Likewise.
107953         Reported by John Darrington.
107955 2006-10-25  Bruno Haible  <bruno@clisp.org>
107957         * lib/progname.h (set_program_name): Undefine before defining.
107959 2006-10-25  Bruno Haible  <bruno@clisp.org>
107961         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
107962         false for non-gcc C++ compilers.
107963         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
107965 2006-10-24  Bruno Haible  <bruno@clisp.org>
107967         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
107968         iconv implementations like Irix iconv.
107970 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
107972         * modules/vararrays: New file.
107973         * m4/vararrays.m4: New file, taken from diffutils.
107974         * MODULES.html.sh: New module vararrays.
107976 2006-10-24  Karl Berry  <karl@gnu.org>
107978         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
107979         Don't call GNU Unix.
107981 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107983         * users.txt: Add Libtool.
107985         Sync from Libtool:
107987         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
107989         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
107990         to gnulib's policy of including config.h unconditionally.
107992 2006-10-24  Bruno Haible  <bruno@clisp.org>
107994         * modules/wcwidth (Files): Add m4/wint_t.m4.
107995         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
107996         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
107998 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
108000         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
108001         to pacify GCC with some -W flags enabled.  Problem reported by
108002         Bruno Haible.
108004 2006-10-24  Jim Meyering  <jim@meyering.net>
108006         * MODULES.html.sh: Remove uinttostr.  It's not a module.
108007         Reported by Karl Berry.
108009 2006-10-23  Bruno Haible  <bruno@clisp.org>
108011         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
108013 2006-10-24  Bruno Haible  <bruno@clisp.org>
108015         * lib/gl_list.h: Use C comment style, not C++ comment style.
108017 2006-10-23  Eric Blake  <ebb9@byu.net>
108019         * lib/getaddrinfo.c (includes): Add missing include.
108021 2006-10-23  Bruno Haible  <bruno@clisp.org>
108022             Paul Eggert  <eggert@cs.ucla.edu>
108024         Ability to rename obstack_free.
108025         * lib/obstack.h (__obstack_free): New macro. Declare instead of
108026         obstack_free.
108027         (obstack_free): Invoke the __obstack_free macro.
108028         * lib/obstack.c (obstack_free): Use __obstack_free macro.
108030 2006-10-23  Bruno Haible  <bruno@clisp.org>
108031             Paul Eggert  <eggert@cs.ucla.edu>
108033         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
108034         __argc, __argv from the declaration. (They are defined as macros on
108035         mingw.)
108037 2006-10-22  Bruno Haible  <bruno@clisp.org>
108039         * doc/gnulib-intro.texi: New file.
108040         * doc/gnulib.texi: Include it.
108042 2006-10-21  Bruno Haible  <bruno@clisp.org>
108044         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
108045         "Introduction", "Miscellanous Notes", "Particular Modules".
108047 2006-10-21  Bruno Haible  <bruno@clisp.org>
108049         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
108050         Change mostlyclean-local rule to avoid sh syntax error from bash
108051         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
108053 2006-10-23  Jim Meyering  <jim@meyering.net>
108055         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
108056         in place of snprintf.
108058         * modules/inttostr (Files): Add lib/uinttostr.c.
108059         * lib/uinttostr.c (inttostr): New file/function.
108060         * lib/inttostr.h (uinttostr): Declare.
108061         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
108062         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
108063         Add uinttostr.
108064         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
108066 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
108068         * lib/canonicalize.c (ELOOP): Define if not already defined.
108069         Problem reported by Bruno Haible in
108070         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
108072 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
108074         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
108075         Problem reported by Perry Smith and Ville Laurikari.
108077         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
108078         uses.
108080 2006-10-19  Bruno Haible  <bruno@clisp.org>
108082         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
108083         for mingw.
108085 2006-10-19  Bruno Haible  <bruno@clisp.org>
108087         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
108088         Needed for mingw.
108090 2006-10-19  Bruno Haible  <bruno@clisp.org>
108092         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
108094 2006-10-19  Bruno Haible  <bruno@clisp.org>
108096         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
108097         it.
108099 2006-10-19  Bruno Haible  <bruno@clisp.org>
108101         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
108102         invocation.
108104 2006-10-19  Bruno Haible  <bruno@clisp.org>
108106         * gnulib-tool (func_create_testdir): Don't include ftruncate and
108107         mountlist by default.
108109 2006-10-16  Bruno Haible  <bruno@clisp.org>
108111         * lib/c-strstr.c: Include c-strstr.h.
108113 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
108115         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
108116         in a slash.
108118 2006-10-18  Bruno Haible  <bruno@clisp.org>
108120         * lib/lock.h [C++]: Wrap definitions in extern "C".
108122 2006-10-18  Bruno Haible  <bruno@clisp.org>
108124         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
108125         gl_LIBOBJS list.
108127 2006-10-18  Bruno Haible  <bruno@clisp.org>
108129         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
108131 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
108133         * lib/xstrtol.h: Include gettext.h.
108134         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
108135         Problem reported by Eric Blake.
108136         * modules/xstrtol (Depends-on): Add gettext-h.
108138 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
108140         * lib/strftime.c (advance): New macro.
108141         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
108142         incomplete type, so you can't add 0 to it.  Problem and patch
108143         reported by Eelco Dolstra for dietlibc.
108145 2006-10-18  Jim Meyering  <jim@meyering.net>
108147         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
108148         type for a local, and rename it: s/up/user_proc/.
108150 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
108152         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
108153         READ_UTMP_USER_PROCESS.
108154         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
108156 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
108158         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
108159         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
108161 2006-10-17  Eric Blake  <ebb9@byu.net>
108163         * lib/sigprocmask.c (sigprocmask): Fix typo.
108165         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
108167         * modules/clean-temp (Makefile.am): Don't add to make output...
108168         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
108169         config.h.
108171 2006-10-17  Bruno Haible  <bruno@clisp.org>
108173         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
108174         differently if DEFAULT_TEXT_DOMAIN is set.
108176 2006-10-16  Bruno Haible  <bruno@clisp.org>
108178         * lib/clean-temp.c: Include fwriteerror.h.
108180 2006-10-16  Bruno Haible  <bruno@clisp.org>
108182         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
108184 2006-10-16  Bruno Haible  <bruno@clisp.org>
108186         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
108187         * lib/sigprocmask.h: Include <sys/types.h>.
108188         (sigset_t): Use the system's definition if present.
108190 2006-10-17  Eric Blake  <ebb9@byu.net>
108192         * lib/xvasprintf.c (includes): Assume config.h.
108193         * lib/xasprintf.c (includes): Likewise.
108195 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
108197         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
108198         at least as wide as intmax_t.
108200 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
108202         (Imported from Automake.)
108203         * build-aux/gnupload: Update to version 1.1 of directive file.
108205 2006-10-16  Eric Blake  <ebb9@byu.net>
108207         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
108208         match Automake 1.10a.
108210 2006-10-14  Bruno Haible  <bruno@clisp.org>
108212         * modules/sigprocmask: New file.
108213         * lib/sigprocmask.h: New file.
108214         * lib/sigprocmask.c: New file.
108215         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
108216         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
108217         request sigprocmask.o.
108218         (gl_PREREQ_SIGPROCMASK): New macro.
108219         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
108220         (Depends-on): Add sigprocmask.
108221         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
108222         gt_SIGNALBLOCKING. Test for 'raise' only once.
108223         * lib/fatal-signal.c: Include sigprocmask.h.
108224         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
108225         unblock_fatal_signals): Define always.
108226         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
108227         sigprocmask.
108229 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
108231         Sync from Automake.
108232         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
108233         which incorrectly sets the mode of an existing destination
108234         directory.  In some cases the unpatched install-sh could do the
108235         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
108236         system.  We hope this is rare in practice, but it's clearly worth
108237         fixing.  Problem reported by Alex Unleashed in
108238         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
108239         Also, don't bother to check for -m bugs unless we're using -m;
108240         suggested by Stepan Kasal.
108242 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108244         Sync from Automake.
108245         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
108246         `-c' flag, so they appear at the same position as in %FASTDEP%
108247         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
108248         which ignores unknown options only after the first non-option.
108249         Bug report against M4 by Nelson H. F. Beebe.
108251 2006-10-13  Jim Meyering  <jim@meyering.net>
108253         Fix a bug in yesterday's change.
108254         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
108255         p->fts_statp->st_dev would be used uninitialized.
108256         Ensures that we always call fts_stat on the very first entry.
108257         Miklos Szeredi reported that find -xdev stopped working.
108259 2006-10-12  Bruno Haible  <bruno@clisp.org>
108261         * gnulib-tool (func_get_automake_snippet): Append an automatically
108262         computed EXTRA_DIST augmentation.
108263         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
108264         * modules/alloca-opt (Makefile.am): Likewise.
108265         * modules/allocsa (Makefile.am): Likewise.
108266         * modules/arcfour (Makefile.am): Likewise.
108267         * modules/arctwo (Makefile.am): Likewise.
108268         * modules/argmatch (Makefile.am): Likewise.
108269         * modules/argz (Makefile.am): Likewise.
108270         * modules/atexit (Makefile.am): Likewise.
108271         * modules/backupfile (Makefile.am): Likewise.
108272         * modules/byteswap (Makefile.am): Likewise.
108273         * modules/c-strtod (Makefile.am): Likewise.
108274         * modules/c-strtold (Makefile.am): Likewise.
108275         * modules/calloc (Makefile.am): Likewise.
108276         * modules/canon-host (Makefile.am): Likewise.
108277         * modules/canonicalize (Makefile.am): Likewise.
108278         * modules/chdir-long (Makefile.am): Likewise.
108279         * modules/chdir-safer (Makefile.am): Likewise.
108280         * modules/check-version (Makefile.am): Likewise.
108281         * modules/chown (Makefile.am): Likewise.
108282         * modules/cloexec (Makefile.am): Likewise.
108283         * modules/close-stream (Makefile.am): Likewise.
108284         * modules/closeout (Makefile.am): Likewise.
108285         * modules/crc (Makefile.am): Likewise.
108286         * modules/csharpexec (Makefile.am): Likewise.
108287         * modules/cycle-check (Makefile.am): Likewise.
108288         * modules/des (Makefile.am): Likewise.
108289         * modules/dev-ino (Makefile.am): Likewise.
108290         * modules/dirfd (Makefile.am): Likewise.
108291         * modules/dirname (Makefile.am): Likewise.
108292         * modules/dup2 (Makefile.am): Likewise.
108293         * modules/eealloc (Makefile.am): Likewise.
108294         * modules/error (Makefile.am): Likewise.
108295         * modules/euidaccess (Makefile.am): Likewise.
108296         * modules/exclude (Makefile.am): Likewise.
108297         * modules/exitfail (Makefile.am): Likewise.
108298         * modules/fcntl-safer (Makefile.am): Likewise.
108299         * modules/fcntl (Makefile.am): Likewise.
108300         * modules/file-type (Makefile.am): Likewise.
108301         * modules/fileblocks (Makefile.am): Likewise.
108302         * modules/filemode (Makefile.am): Likewise.
108303         * modules/filenamecat (Makefile.am): Likewise.
108304         * modules/fnmatch (Makefile.am): Likewise.
108305         * modules/fopen-safer (Makefile.am): Likewise.
108306         * modules/fpending (Makefile.am): Likewise.
108307         * modules/fprintftime (Makefile.am): Likewise.
108308         * modules/free (Makefile.am): Likewise.
108309         * modules/fsusage (Makefile.am): Likewise.
108310         * modules/ftruncate (Makefile.am): Likewise.
108311         * modules/fts (Makefile.am): Likewise.
108312         * modules/gc-arcfour (Makefile.am): Likewise.
108313         * modules/gc-des (Makefile.am): Likewise.
108314         * modules/gc-hmac-md5 (Makefile.am): Likewise.
108315         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
108316         * modules/gc-md4 (Makefile.am): Likewise.
108317         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
108318         * modules/gc-sha1 (Makefile.am): Likewise.
108319         * modules/gc (Makefile.am): Likewise.
108320         * modules/getaddrinfo (Makefile.am): Likewise.
108321         * modules/getcwd (Makefile.am): Likewise.
108322         * modules/getdelim (Makefile.am): Likewise.
108323         * modules/getdomainname (Makefile.am): Likewise.
108324         * modules/getgroups (Makefile.am): Likewise.
108325         * modules/gethostname (Makefile.am): Likewise.
108326         * modules/gethrxtime (Makefile.am): Likewise.
108327         * modules/getline (Makefile.am): Likewise.
108328         * modules/getloadavg (Makefile.am): Likewise.
108329         * modules/getlogin_r (Makefile.am): Likewise.
108330         * modules/getndelim2 (Makefile.am): Likewise.
108331         * modules/getopt (Makefile.am): Likewise.
108332         * modules/getpagesize (Makefile.am): Likewise.
108333         * modules/getpass-gnu (Makefile.am): Likewise.
108334         * modules/getpass (Makefile.am): Likewise.
108335         * modules/getsubopt (Makefile.am): Likewise.
108336         * modules/gettime (Makefile.am): Likewise.
108337         * modules/gettimeofday (Makefile.am): Likewise.
108338         * modules/getugroups (Makefile.am): Likewise.
108339         * modules/getusershell (Makefile.am): Likewise.
108340         * modules/glob (Makefile.am): Likewise.
108341         * modules/group-member (Makefile.am): Likewise.
108342         * modules/hard-locale (Makefile.am): Likewise.
108343         * modules/hash (Makefile.am): Likewise.
108344         * modules/hmac-md5 (Makefile.am): Likewise.
108345         * modules/hmac-sha1 (Makefile.am): Likewise.
108346         * modules/human (Makefile.am): Likewise.
108347         * modules/idcache (Makefile.am): Likewise.
108348         * modules/imaxabs (Makefile.am): Likewise.
108349         * modules/imaxdiv (Makefile.am): Likewise.
108350         * modules/inet_ntop (Makefile.am): Likewise.
108351         * modules/inet_pton (Makefile.am): Likewise.
108352         * modules/intprops (Makefile.am): Likewise.
108353         * modules/inttostr (Makefile.am): Likewise.
108354         * modules/inttypes (Makefile.am): Likewise.
108355         * modules/isapipe (Makefile.am): Likewise.
108356         * modules/javaversion (Makefile.am): Likewise.
108357         * modules/lchmod (Makefile.am): Likewise.
108358         * modules/lchown (Makefile.am): Likewise.
108359         * modules/localcharset (Makefile.am): Likewise.
108360         * modules/long-options (Makefile.am): Likewise.
108361         * modules/lstat (Makefile.am): Likewise.
108362         * modules/malloc (Makefile.am): Likewise.
108363         * modules/mathl (Makefile.am): Likewise.
108364         * modules/mbchar (Makefile.am): Likewise.
108365         * modules/md2 (Makefile.am): Likewise.
108366         * modules/md4 (Makefile.am): Likewise.
108367         * modules/md5 (Makefile.am): Likewise.
108368         * modules/memcasecmp (Makefile.am): Likewise.
108369         * modules/memchr (Makefile.am): Likewise.
108370         * modules/memcmp (Makefile.am): Likewise.
108371         * modules/memcoll (Makefile.am): Likewise.
108372         * modules/memcpy (Makefile.am): Likewise.
108373         * modules/memmem (Makefile.am): Likewise.
108374         * modules/memmove (Makefile.am): Likewise.
108375         * modules/mempcpy (Makefile.am): Likewise.
108376         * modules/memrchr (Makefile.am): Likewise.
108377         * modules/memset (Makefile.am): Likewise.
108378         * modules/memxor (Makefile.am): Likewise.
108379         * modules/mkancesdirs (Makefile.am): Likewise.
108380         * modules/mkdir-p (Makefile.am): Likewise.
108381         * modules/mkdir (Makefile.am): Likewise.
108382         * modules/mkdtemp (Makefile.am): Likewise.
108383         * modules/mkstemp (Makefile.am): Likewise.
108384         * modules/mktime (Makefile.am): Likewise.
108385         * modules/modechange (Makefile.am): Likewise.
108386         * modules/mountlist (Makefile.am): Likewise.
108387         * modules/nanosleep (Makefile.am): Likewise.
108388         * modules/obstack (Makefile.am): Likewise.
108389         * modules/openat (Makefile.am): Likewise.
108390         * modules/pagealign_alloc (Makefile.am): Likewise.
108391         * modules/pathmax (Makefile.am): Likewise.
108392         * modules/physmem (Makefile.am): Likewise.
108393         * modules/poll (Makefile.am): Likewise.
108394         * modules/posixtm (Makefile.am): Likewise.
108395         * modules/posixver (Makefile.am): Likewise.
108396         * modules/putenv (Makefile.am): Likewise.
108397         * modules/quote (Makefile.am): Likewise.
108398         * modules/quotearg (Makefile.am): Likewise.
108399         * modules/raise (Makefile.am): Likewise.
108400         * modules/read-file (Makefile.am): Likewise.
108401         * modules/readline (Makefile.am): Likewise.
108402         * modules/readlink (Makefile.am): Likewise.
108403         * modules/readtokens (Makefile.am): Likewise.
108404         * modules/readutmp (Makefile.am): Likewise.
108405         * modules/realloc (Makefile.am): Likewise.
108406         * modules/regex (Makefile.am): Likewise.
108407         * modules/rename-dest-slash (Makefile.am): Likewise.
108408         * modules/rename (Makefile.am): Likewise.
108409         * modules/rijndael (Makefile.am): Likewise.
108410         * modules/rmdir (Makefile.am): Likewise.
108411         * modules/rpmatch (Makefile.am): Likewise.
108412         * modules/safe-read (Makefile.am): Likewise.
108413         * modules/safe-write (Makefile.am): Likewise.
108414         * modules/same-inode (Makefile.am): Likewise.
108415         * modules/same (Makefile.am): Likewise.
108416         * modules/save-cwd (Makefile.am): Likewise.
108417         * modules/savedir (Makefile.am): Likewise.
108418         * modules/setenv (Makefile.am): Likewise.
108419         * modules/settime (Makefile.am): Likewise.
108420         * modules/sha1 (Makefile.am): Likewise.
108421         * modules/sig2str (Makefile.am): Likewise.
108422         * modules/snprintf (Makefile.am): Likewise.
108423         * modules/stat-macros (Makefile.am): Likewise.
108424         * modules/stat-time (Makefile.am): Likewise.
108425         * modules/stdbool (Makefile.am): Likewise.
108426         * modules/stdint (Makefile.am): Likewise.
108427         * modules/stdlib-safer (Makefile.am): Likewise.
108428         * modules/stpcpy (Makefile.am): Likewise.
108429         * modules/stpncpy (Makefile.am): Likewise.
108430         * modules/strcase (Makefile.am): Likewise.
108431         * modules/strcasestr (Makefile.am): Likewise.
108432         * modules/strchrnul (Makefile.am): Likewise.
108433         * modules/strcspn (Makefile.am): Likewise.
108434         * modules/strdup (Makefile.am): Likewise.
108435         * modules/strerror (Makefile.am): Likewise.
108436         * modules/strftime (Makefile.am): Likewise.
108437         * modules/strndup (Makefile.am): Likewise.
108438         * modules/strnlen (Makefile.am): Likewise.
108439         * modules/strpbrk (Makefile.am): Likewise.
108440         * modules/strsep (Makefile.am): Likewise.
108441         * modules/strstr (Makefile.am): Likewise.
108442         * modules/strtod (Makefile.am): Likewise.
108443         * modules/strtoimax (Makefile.am): Likewise.
108444         * modules/strtok_r (Makefile.am): Likewise.
108445         * modules/strtol (Makefile.am): Likewise.
108446         * modules/strtoll (Makefile.am): Likewise.
108447         * modules/strtoul (Makefile.am): Likewise.
108448         * modules/strtoull (Makefile.am): Likewise.
108449         * modules/strtoumax (Makefile.am): Likewise.
108450         * modules/strverscmp (Makefile.am): Likewise.
108451         * modules/sys_socket (Makefile.am): Likewise.
108452         * modules/sys_stat (Makefile.am): Likewise.
108453         * modules/sysexits (Makefile.am): Likewise.
108454         * modules/time_r (Makefile.am): Likewise.
108455         * modules/timegm (Makefile.am): Likewise.
108456         * modules/timespec (Makefile.am): Likewise.
108457         * modules/tmpfile-safer (Makefile.am): Likewise.
108458         * modules/trim (Makefile.am): Likewise.
108459         * modules/unistd-safer (Makefile.am): Likewise.
108460         * modules/unlinkdir (Makefile.am): Likewise.
108461         * modules/unlocked-io (Makefile.am): Likewise.
108462         * modules/userspec (Makefile.am): Likewise.
108463         * modules/utime (Makefile.am): Likewise.
108464         * modules/utimecmp (Makefile.am): Likewise.
108465         * modules/utimens (Makefile.am): Likewise.
108466         * modules/vasnprintf (Makefile.am): Likewise.
108467         * modules/vasprintf (Makefile.am): Likewise.
108468         * modules/vsnprintf (Makefile.am): Likewise.
108469         * modules/xalloc (Makefile.am): Likewise.
108470         * modules/xgetcwd (Makefile.am): Likewise.
108471         * modules/xnanosleep (Makefile.am): Likewise.
108472         * modules/xreadlink (Makefile.am): Likewise.
108473         * modules/xstrtod (Makefile.am): Likewise.
108474         * modules/xstrtol (Makefile.am): Likewise.
108475         * modules/xstrtold (Makefile.am): Likewise.
108476         * modules/yesno (Makefile.am): Likewise.
108477         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
108479 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
108481         * modules/error (Makefile.am): Distribute files through
108482         EXTRA_DIST, not lib_SOURCES.
108484 2006-10-12  Eric Blake  <ebb9@byu.net>
108486         * modules/error (Makefile.am): Distribute files in /lib.
108487         * modules/obstack (Makefile.am): Likewise.
108489 2006-10-12  Bruno Haible  <bruno@clisp.org>
108491         * modules/acl (Makefile.am): Distribute all files in lib/ through
108492         EXTRA_DIST.
108493         * modules/arcfour (Makefile.am): Likewise.
108494         * modules/arctwo (Makefile.am): Likewise.
108495         * modules/argmatch (Makefile.am): Likewise.
108496         * modules/argz (Makefile.am): Likewise.
108497         * modules/atexit (Makefile.am): Likewise.
108498         * modules/backupfile (Makefile.am): Likewise.
108499         * modules/c-strtod (Makefile.am): Likewise.
108500         * modules/c-strtold (Makefile.am): Likewise.
108501         * modules/calloc (Makefile.am): Likewise.
108502         * modules/canon-host (Makefile.am): Likewise.
108503         * modules/canonicalize (Makefile.am): Likewise.
108504         * modules/chdir-long (Makefile.am): Likewise.
108505         * modules/chdir-safer (Makefile.am): Likewise.
108506         * modules/check-version (Makefile.am): Likewise.
108507         * modules/chown (Makefile.am): Likewise.
108508         * modules/cloexec (Makefile.am): Likewise.
108509         * modules/close-stream (Makefile.am): Likewise.
108510         * modules/closeout (Makefile.am): Likewise.
108511         * modules/crc (Makefile.am): Likewise.
108512         * modules/cycle-check (Makefile.am): Likewise.
108513         * modules/des (Makefile.am): Likewise.
108514         * modules/dirfd (Makefile.am): Likewise.
108515         * modules/dirname (Makefile.am): Likewise.
108516         * modules/dup2 (Makefile.am): Likewise.
108517         * modules/euidaccess (Makefile.am): Likewise.
108518         * modules/exclude (Makefile.am): Likewise.
108519         * modules/exitfail (Makefile.am): Likewise.
108520         * modules/fcntl-safer (Makefile.am): Likewise.
108521         * modules/file-type (Makefile.am): Likewise.
108522         * modules/fileblocks (Makefile.am): Likewise.
108523         * modules/filemode (Makefile.am): Likewise.
108524         * modules/filenamecat (Makefile.am): Likewise.
108525         * modules/fnmatch (Makefile.am): Likewise.
108526         * modules/fopen-safer (Makefile.am): Likewise.
108527         * modules/fpending (Makefile.am): Likewise.
108528         * modules/fprintftime (Makefile.am): Likewise.
108529         * modules/free (Makefile.am): Likewise.
108530         * modules/fsusage (Makefile.am): Likewise.
108531         * modules/ftruncate (Makefile.am): Likewise.
108532         * modules/fts (Makefile.am): Likewise.
108533         * modules/gc (Makefile.am): Likewise.
108534         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
108535         * modules/getaddrinfo (Makefile.am): Likewise.
108536         * modules/getcwd (Makefile.am): Likewise.
108537         * modules/getdelim (Makefile.am): Likewise.
108538         * modules/getdomainname (Makefile.am): Likewise.
108539         * modules/getgroups (Makefile.am): Likewise.
108540         * modules/gethostname (Makefile.am): Likewise.
108541         * modules/gethrxtime (Makefile.am): Likewise.
108542         * modules/getline (Makefile.am): Likewise.
108543         * modules/getloadavg (Makefile.am): Likewise.
108544         * modules/getlogin_r (Makefile.am): Likewise.
108545         * modules/getopt (Makefile.am): Likewise.
108546         * modules/getpass (Makefile.am): Likewise.
108547         * modules/getpass-gnu (Makefile.am): Likewise.
108548         * modules/getsubopt (Makefile.am): Likewise.
108549         * modules/gettime (Makefile.am): Likewise.
108550         * modules/gettimeofday (Makefile.am): Likewise.
108551         * modules/getugroups (Makefile.am): Likewise.
108552         * modules/getusershell (Makefile.am): Likewise.
108553         * modules/glob (Makefile.am): Likewise.
108554         * modules/group-member (Makefile.am): Likewise.
108555         * modules/hard-locale (Makefile.am): Likewise.
108556         * modules/hash (Makefile.am): Likewise.
108557         * modules/hmac-md5 (Makefile.am): Likewise.
108558         * modules/hmac-sha1 (Makefile.am): Likewise.
108559         * modules/human (Makefile.am): Likewise.
108560         * modules/idcache (Makefile.am): Likewise.
108561         * modules/imaxabs (Makefile.am): Likewise.
108562         * modules/imaxdiv (Makefile.am): Likewise.
108563         * modules/inet_ntop (Makefile.am): Likewise.
108564         * modules/inet_pton (Makefile.am): Likewise.
108565         * modules/inttostr (Makefile.am): Likewise.
108566         * modules/isapipe (Makefile.am): Likewise.
108567         * modules/lchown (Makefile.am): Likewise.
108568         * modules/long-options (Makefile.am): Likewise.
108569         * modules/lstat (Makefile.am): Likewise.
108570         * modules/malloc (Makefile.am): Likewise.
108571         * modules/mathl (Makefile.am): Likewise.
108572         * modules/mbchar (Makefile.am): Likewise.
108573         * modules/md2 (Makefile.am): Likewise.
108574         * modules/md4 (Makefile.am): Likewise.
108575         * modules/md5 (Makefile.am): Likewise.
108576         * modules/memcasecmp (Makefile.am): Likewise.
108577         * modules/memchr (Makefile.am): Likewise.
108578         * modules/memcmp (Makefile.am): Likewise.
108579         * modules/memcoll (Makefile.am): Likewise.
108580         * modules/memcpy (Makefile.am): Likewise.
108581         * modules/memmem (Makefile.am): Likewise.
108582         * modules/memmove (Makefile.am): Likewise.
108583         * modules/mempcpy (Makefile.am): Likewise.
108584         * modules/memrchr (Makefile.am): Likewise.
108585         * modules/memset (Makefile.am): Likewise.
108586         * modules/memxor (Makefile.am): Likewise.
108587         * modules/mkancesdirs (Makefile.am): Likewise.
108588         * modules/mkdir (Makefile.am): Likewise.
108589         * modules/mkdir-p (Makefile.am): Likewise.
108590         * modules/mkdtemp (Makefile.am): Likewise.
108591         * modules/mkstemp (Makefile.am): Likewise.
108592         * modules/mktime (Makefile.am): Likewise.
108593         * modules/modechange (Makefile.am): Likewise.
108594         * modules/mountlist (Makefile.am): Likewise.
108595         * modules/nanosleep (Makefile.am): Likewise.
108596         * modules/openat (Makefile.am): Likewise.
108597         * modules/pagealign_alloc (Makefile.am): Likewise.
108598         * modules/physmem (Makefile.am): Likewise.
108599         * modules/poll (Makefile.am): Likewise.
108600         * modules/posixtm (Makefile.am): Likewise.
108601         * modules/posixver (Makefile.am): Likewise.
108602         * modules/putenv (Makefile.am): Likewise.
108603         * modules/quote (Makefile.am): Likewise.
108604         * modules/quotearg (Makefile.am): Likewise.
108605         * modules/raise (Makefile.am): Likewise.
108606         * modules/read-file (Makefile.am): Likewise.
108607         * modules/readline (Makefile.am): Likewise.
108608         * modules/readlink (Makefile.am): Likewise.
108609         * modules/readtokens (Makefile.am): Likewise.
108610         * modules/readutmp (Makefile.am): Likewise.
108611         * modules/realloc (Makefile.am): Likewise.
108612         * modules/regex (Makefile.am): Likewise.
108613         * modules/rename (Makefile.am): Likewise.
108614         * modules/rename-dest-slash (Makefile.am): Likewise.
108615         * modules/rijndael (Makefile.am): Likewise.
108616         * modules/rmdir (Makefile.am): Likewise.
108617         * modules/rpmatch (Makefile.am): Likewise.
108618         * modules/safe-read (Makefile.am): Likewise.
108619         * modules/safe-write (Makefile.am): Likewise.
108620         * modules/same (Makefile.am): Likewise.
108621         * modules/save-cwd (Makefile.am): Likewise.
108622         * modules/savedir (Makefile.am): Likewise.
108623         * modules/setenv (Makefile.am): Likewise.
108624         * modules/settime (Makefile.am): Likewise.
108625         * modules/sha1 (Makefile.am): Likewise.
108626         * modules/sig2str (Makefile.am): Likewise.
108627         * modules/snprintf (Makefile.am): Likewise.
108628         * modules/stdlib-safer (Makefile.am): Likewise.
108629         * modules/stpcpy (Makefile.am): Likewise.
108630         * modules/stpncpy (Makefile.am): Likewise.
108631         * modules/strcase (Makefile.am): Likewise.
108632         * modules/strcasestr (Makefile.am): Likewise.
108633         * modules/strchrnul (Makefile.am): Likewise.
108634         * modules/strcspn (Makefile.am): Likewise.
108635         * modules/strdup (Makefile.am): Likewise.
108636         * modules/strerror (Makefile.am): Likewise.
108637         * modules/strftime (Makefile.am): Likewise.
108638         * modules/strndup (Makefile.am): Likewise.
108639         * modules/strnlen (Makefile.am): Likewise.
108640         * modules/strpbrk (Makefile.am): Likewise.
108641         * modules/strsep (Makefile.am): Likewise.
108642         * modules/strstr (Makefile.am): Likewise.
108643         * modules/strtod (Makefile.am): Likewise.
108644         * modules/strtoimax (Makefile.am): Likewise.
108645         * modules/strtok_r (Makefile.am): Likewise.
108646         * modules/strtol (Makefile.am): Likewise.
108647         * modules/strtoll (Makefile.am): Likewise.
108648         * modules/strtoul (Makefile.am): Likewise.
108649         * modules/strtoull (Makefile.am): Likewise.
108650         * modules/strtoumax (Makefile.am): Likewise.
108651         * modules/strverscmp (Makefile.am): Likewise.
108652         * modules/time_r (Makefile.am): Likewise.
108653         * modules/timegm (Makefile.am): Likewise.
108654         * modules/tmpfile-safer (Makefile.am): Likewise.
108655         * modules/unistd-safer (Makefile.am): Likewise.
108656         * modules/unlinkdir (Makefile.am): Likewise.
108657         * modules/userspec (Makefile.am): Likewise.
108658         * modules/utime (Makefile.am): Likewise.
108659         * modules/utimecmp (Makefile.am): Likewise.
108660         * modules/utimens (Makefile.am): Likewise.
108661         * modules/vasnprintf (Makefile.am): Likewise.
108662         * modules/vasprintf (Makefile.am): Likewise.
108663         * modules/vsnprintf (Makefile.am): Likewise.
108664         * modules/xalloc (Makefile.am): Likewise.
108665         * modules/xgetcwd (Makefile.am): Likewise.
108666         * modules/xnanosleep (Makefile.am): Likewise.
108667         * modules/xreadlink (Makefile.am): Likewise.
108668         * modules/xstrtod (Makefile.am): Likewise.
108669         * modules/xstrtol (Makefile.am): Likewise.
108670         * modules/xstrtold (Makefile.am): Likewise.
108671         * modules/yesno (Makefile.am): Likewise.
108673 2006-10-12  Jim Meyering  <jim@meyering.net>
108675         * m4/getloadavg.m4: Revert the change below.
108677         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
108678         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
108679         fail with a symlink, which is what coreutils' ./bootstrap now
108680         creates by default.
108682 2006-10-12  Bruno Haible  <bruno@clisp.org>
108684         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
108685         mingw.
108686         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
108687         MSVC and mingw explicitly.
108689 2006-10-11  Simon Josefsson  <jas@extundo.com>
108690             Bruno Haible  <bruno@clisp.org>
108692         Add support for multiple gnulib-tool invocations in the scope of a
108693         single configure.ac file.
108694         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
108695         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
108696         with the same contents as the _LIBADD variable.
108697         (func_emit_initmacro_start, func_emit_initmacro_end,
108698         func_emit_initmacro_done): New functions.
108699         (func_import, func_create_testdir): Invoke them. Allow the identifiers
108700         gl_LIBOBJS and gl_LTLIBOBJS.
108702 2006-10-11  Bruno Haible  <bruno@clisp.org>
108704         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
108705         (func_create_testdir): Don't create po/Makefile.am, don't invoke
108706         autoreconf. Instead, invoke autopoint explicitly but move back the
108707         *.m4 files from gnulib.
108709 2006-10-11  Bruno Haible  <bruno@clisp.org>
108711         * gnulib-tool (func_usage): Make module names after --create-testdir
108712         optional.
108713         (func_create_testdir): If no module was specified, use nearly all
108714         modules.
108716 2006-10-12  Jim Meyering  <jim@meyering.net>
108718         Big performance improvement for fts-based tools that use FTS_NOSTAT.
108719         Avoid spurious inode-mismatch problems on non-POSIX file systems.
108720         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
108721         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
108722         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
108723         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
108724         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
108725         (fts_set_stat_required): New function.
108726         (fts_open): Defer the calls to fts_stat, if possible or requested.
108727         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
108728         into fts_stat itself.
108729         (fts_read): Perform any required (deferred) fts_stat call.
108730         (fts_build): Likewise, for the directory we're about to open and read.
108731         In the readdir loop, carefully decide whether each entry will require
108732         an eventual call to fts_stat, using dirent.d_type info if available.
108733         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
108734         a command line argument into this function.  Update all callers.
108735         Map a return value of FTS_DOT to FTS_D for a command line argument.
108736         * modules/fts (Depends-on): Add d-type.  Alphabetize.
108737         Thanks to Miklos Szeredi for his tenacity and for the initial
108738         bug report about "find" failing on a FUSE-based file system.
108740         * lib/fts.c (fts_open): Use consistent indentation.
108742 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
108744         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
108745         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
108746         reported by Jim Meyering.  All uses of cache variables renamed
108747         to match Autoconf's.
108748         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
108749         the other one.
108751         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
108752         Fix misspelling in diagnostic.
108754 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
108756         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
108757         defined.  Problem reported by Matthew Woehlke.
108759         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
108760         Add support for Tandem NonStop R series.
108761         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
108762         Use new macro.
108764         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
108765         (has_trailing_slash): Omit size arg; all callers changed.
108766         Omit 'inline', since it doesn't help performance and we'd
108767         need to configure it.
108768         Don't count //, ///, etc. as having a trailing slash.
108769         As a side effect, this removes a C99ism reported by Matthew Woehlke.
108770         (rpl_rename_dest_slash): On failure, use rename's errno rather
108771         than (in some cases) an incorrect or junk errno.
108772         Simplify code by removing need to compute length; this does
108773         cause it to make two passes instead of one over the file name,
108774         but it's worth it.
108776         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
108777         change, since Autoconf's version may no longer be appropriate now
108778         that we are using CVS Autoconf's version.  Add support for Tandem.
108780 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
108781             Bruno Haible  <bruno@clisp.org>
108783         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
108784         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
108785         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
108786         gl_AC_TYPE_LONG_LONG.
108788         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
108789         instead of HAVE_LONG_LONG.
108790         * lib/printf-args.c (printf_fetchargs): Likewise.
108791         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
108792         * lib/vasnprintf.c (VASNPRINTF): Likewise.
108793         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
108794         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
108795         gl_AC_TYPE_LONG_LONG.
108797 2006-10-11  Bruno Haible  <bruno@clisp.org>
108799         * m4/longlong.m4: Add comments.
108800         * m4/ulonglong.m4: Likewise.
108802 2006-10-10  Bruno Haible  <bruno@clisp.org>
108804         Make it possible to #define stpcpy, strdup to aliases.
108805         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
108806         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
108808 2006-10-10  Bruno Haible  <bruno@clisp.org>
108810         Make it possible to #define gcd to an alias.
108811         * lib/gcd.c: Include config.h.
108813 2006-10-10  Bruno Haible  <bruno@clisp.org>
108815         Make it possible to #define c_isascii to an alias.
108816         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
108817         defined. Undefine the macros before defining them, to avoid gcc
108818         warnings.
108819         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
108820         define NO_C_CTYPE_MACROS early.
108822 2006-10-10  Bruno Haible  <bruno@clisp.org>
108824         Make it possible to #define set_program_name to an alias.
108825         * lib/progname.c: Don't undefine set_program_name; instead, undefine
108826         ENABLE_RELOCATABLE early.
108828 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
108830         Port to Tandem NSK OSS, which has 64-bit signed int but at most
108831         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
108832         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
108833         More generally, don't assume that 64-bit signed int is available
108834         if unsigned int is, and vice versa.
108835         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
108836         unsigned symbols, not on their signed counterparts.
108837         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
108838         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
108839         (UINT64_C, UINTMAX_C):
108840         Likewise.
108841         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
108842         unsigned counterparts.
108843         (Have_long_long, Unsigned): New macros.
108844         (Int): Renamed from INT.
108845         (strtoimax): Use the new macros.
108846         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
108847         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
108848         * modules/inttypes (inttypes.h): Substitute
108849         HAVE_UNSIGNED_LONG_LONG_INT.
108850         * modules/stdint (stdint.h): Likewise.
108851         (Files): Add m4/ulonglong.m4.
108853 2006-10-10  Bruno Haible  <bruno@clisp.org>
108855         Fix a gcc -Wshadow warning.
108856         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
108857         to 'bucket'.
108858         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
108859         gl_linked_indexof_from_to): Likewise.
108860         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
108861         Likewise.
108862         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
108863         Likewise.
108864         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
108865         Reported by Eric Blake.
108867 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
108869         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
108870         for NetBSD.  Problem reported by Bruno Haible.
108872 2006-10-09  Jim Meyering  <jim@meyering.net>
108874         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
108875         Patch from Bruno Haible.
108877 2006-10-09  Jim Meyering  <jim@meyering.net>
108879         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
108880         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
108881         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
108883 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
108885         Don't include <config.h> twice; this doesn't work in some cases,
108886         e.g., when config.h has "#define intmax_t long long int" and
108887         we include <config.h>, <inttypes.h>, <config.h> in that order.
108888         Problem reported by Matthew Woehlke in:
108889         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
108890         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
108891         * lib/fts-cycle.c: Don't include config.h.
108892         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
108893         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
108894         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
108895         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
108896         inttypes.h.
108897         * lib/xstrtoumax.c: Likewise.
108898         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
108899         __strtol and the like, so that this module is more like its siblings.
108900         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
108901         Remove; no longer needed now that we assume gnulib inttypes.h.
108903 2006-10-08  Bruno Haible  <bruno@clisp.org>
108905         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
108906         option.
108908 2006-10-07  Jim Meyering  <jim@meyering.net>
108910         * modules/inttypes (inttypes.h): Revert what seems to have been
108911         an inadvertent part of today's change: use "|", not "/" in the
108912         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
108914 2006-10-07  Bruno Haible  <bruno@clisp.org>
108916         * modules/sublist: New file.
108918 2006-10-07  Bruno Haible  <bruno@clisp.org>
108920         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
108921         * modules/argz (argz.h): Likewise.
108922         * modules/arpa_inet (arpa/inet.h): Likewise.
108923         * modules/byteswap (byteswap.h): Likewise.
108924         * modules/configmake (configmake.h): Likewise.
108925         * modules/fcntl (fcntl.h): Likewise.
108926         * modules/fnmatch (fnmatch.h): Likewise.
108927         * modules/getopt (getopt.h): Likewise.
108928         * modules/glob (glob.h): Likewise.
108929         * modules/inttypes (inttypes.h): Likewise.
108930         * modules/netinet_in (netinet/in.h): Likewise.
108931         * modules/poll (poll.h): Likewise.
108932         * modules/stdbool (stdbool.h): Likewise.
108933         * modules/stdint (stdint.h): Likewise.
108934         * modules/sys_select (sys/select.h): Likewise.
108935         * modules/sys_socket (sys/socket.h): Likewise.
108936         * modules/sys_stat (sys/stat.h): Likewise.
108937         * modules/sysexits (sysexits.h): Likewise.
108938         * modules/unistd (unistd.h): Likewise.
108939         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
108940         Add a "DO NOT EDIT" comment to the generated file.
108941         (func_import): Likewise for gnulib-comp.m4.
108943 2006-10-07  Bruno Haible  <bruno@clisp.org>
108945         * lib/gl_sublist.h: New file.
108946         * lib/gl_sublist.c: New file.
108948 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
108950         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
108951         name (relative to the original working directory) and the file
108952         name component (relative to the temporary working directory).  All
108953         callers changed.
108954         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
108955         * lib/mkdir-p.c (make_dir_parents): Likewise.
108956         * lib/mkdir-p.h (make_dir_parents): Likewise.
108958 2006-10-06  Eric Blake  <ebb9@byu.net>
108960         Define several macros for use by the clean-temp module.
108961         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
108962         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
108963         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
108965         * lib/clean-temp.h (close_stream_temp): New declaration.
108966         * lib/clean-temp.c (includes): Pull in headers according to what
108967         other modules are in use.
108968         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
108970 2006-10-06  Bruno Haible  <bruno@clisp.org>
108972         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
108973         instead of fopen, fwriteerror.
108975 2006-10-06  Bruno Haible  <bruno@clisp.org>
108977         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
108978         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
108979         int.
108980         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
108981         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
108982         Return an error indicator.
108983         Suggested by Eric Blake.
108985 2006-10-06  Bruno Haible  <bruno@clisp.org>
108987         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
108988         Reported by Eric Blake.
108990 2006-10-06  Bruno Haible  <bruno@clisp.org>
108992         * modules/closeout (Description): Mention stderr too.
108994 2006-10-06  Bruno Haible  <bruno@clisp.org>
108995         and Paul Eggert  <eggert@cs.ucla.edu>
108997         * lib/closeout.c (close_stdout): Also close stderr.
108998         * lib/closeout.h: Update comment.
109000 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
109002         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
109003         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
109004         * lib/dirchownmod.c: Include lchown.h.
109005         * lib/lchown.c: Don't include files that lchown.h now includes.
109006         Don't declare chown, since lchown.h now does that.
109007         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
109008         (lchown): Define to rpl_chown if lchown is declared but
109009         does not exist.  Declare using a prototype if lchown is not
109010         declared.  Add a copyright notice.
109011         * lib/mkstemp.h: Include <unistd.h>.
109012         * lib/openat.c: Include lchown.h.
109014         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
109015         we now test for that separately.
109016         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
109017         rather than O_NOFOLLOW, when testing whether it's possible to
109018         avoid a race condition reliably.
109019         * lib/savewd.c (savewd_chdir): Likewise.
109021         Remove macros that are no longer needed now that stdint.h is
109022         reliable.
109023         * lib/fsusage.c (UINTMAX_MAX): Remove.
109024         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
109025         * lib/utimecmp.c (SIZE_MAX): Remove.
109027         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
109029         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
109030         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
109031         O_NOATIME works.
109033 2006-10-05  Bruno Haible  <bruno@clisp.org>
109035         * lib/gl_list.h (gl_sortedlist_search_from_to,
109036         gl_sortedlist_indexof_from_to): New declarations.
109037         (gl_list_implementation): New fields sortedlist_search_from_to,
109038         sortedlist_indexof_from_to.
109039         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
109040         inline functions.
109041         * lib/gl_list.c (gl_sortedlist_search_from_to,
109042         gl_sortedlist_indexof_from_to): New functions.
109043         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
109044         function.
109045         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
109046         (gl_array_sortedlist_search_from_to): New function.
109047         (gl_array_list_implementation): Update.
109048         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
109049         function.
109050         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
109051         (gl_carray_sortedlist_search_from_to): New function.
109052         (gl_carray_list_implementation): Update.
109053         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
109054         gl_linked_sortedlist_indexof_from_to): New functions.
109055         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
109056         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
109057         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
109058         gl_tree_sortedlist_indexof_from_to): New functions.
109059         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
109060         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
109061         Update.
109062         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
109063         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
109064         Update.
109066 2006-10-05  Bruno Haible  <bruno@clisp.org>
109068         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
109069         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
109070         (struct gl_list_implementation): Add fields search_from_to,
109071         indexof_from_to. Remove fields search, indexof.
109072         (gl_list_search): Use the search_from_to method.
109073         (gl_list_search_from, gl_list_search_from_to): New functions.
109074         (gl_list_indexof): Use the indexof_from_to method.
109075         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
109076         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
109077         (gl_list_search_from, gl_list_search_from_to): New functions.
109078         (gl_list_indexof): Use the indexof_from_to method.
109079         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
109080         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
109081         gl_array_indexof. Add start_index, end_index arguments.
109082         (gl_array_search_from_to): Renamed from gl_array_search. Add
109083         start_index, end_index arguments.
109084         (gl_array_remove, gl_array_list_implementation): Update.
109085         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
109086         gl_carray_indexof. Add start_index, end_index arguments.
109087         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
109088         start_index, end_index arguments.
109089         (gl_carray_remove, gl_carray_list_implementation): Update.
109090         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
109091         gl_linked_search. Add start_index, end_index arguments.
109092         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
109093         start_index, end_index arguments.
109094         (gl_linked_remove): Update.
109095         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
109096         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
109097         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
109098         field to 'size_t'.
109099         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
109100         gl_tree_search. Add start_index, end_index arguments.
109101         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
109102         start_index, end_index arguments.
109103         (gl_tree_remove): Update.
109104         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
109105         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
109106         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
109107         function.
109108         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
109109         gl_tree_search. Add start_index, end_index arguments.
109110         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
109111         start_index, end_index arguments.
109112         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
109113         Update.
109114         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
109116 2006-10-05  Bruno Haible  <bruno@clisp.org>
109118         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
109120         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
109121         fwriteerror_temp): New declarations.
109122         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
109123         (descriptors): New variable.
109124         (cleanup): First, close the descriptors.
109125         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
109126         fclose_temp, fwriteerror_temp): New functions.
109128 2006-10-04  Jim Meyering  <jim@meyering.net>
109130         * lib/fts.c (fts_open): Tiny comment change.
109132 2006-10-04  Bruno Haible  <bruno@clisp.org>
109134         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
109135         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
109136         gl_LOCK_BODY.
109137         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
109138         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
109139         gl_LOCK_EARLY_BODY.
109140         (gl_LOCK): Require gl_LOCK_BODY.
109142 2006-10-04  Bruno Haible  <bruno@clisp.org>
109144         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
109145         (gl_oset_search_atleast): New declaration.
109146         (struct gl_oset_implementation): Add field 'search_atleast'.
109147         (gl_oset_search_atleast): New inline function.
109148         * lib/gl_oset.c (gl_oset_search_atleast): New function.
109149         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
109150         (gl_array_oset_implementation): Update.
109151         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
109152         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
109153         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
109155 2006-10-04  Bruno Haible  <bruno@clisp.org>
109157         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
109159 2006-10-03  Bruno Haible  <bruno@clisp.org>
109161         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
109162         from gl_avltreehash_list_implementation.
109164 2006-10-03  Bruno Haible  <bruno@clisp.org>
109166         * lib/gl_oset.c (gl_oset_add): Fix return type.
109168 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
109170         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
109172 2006-10-02  Eric Blake  <ebb9@byu.net>
109174         * modules/strnlen (Depends-on): Add extensions.
109176 2006-10-02  Eric Blake  <ebb9@byu.net>
109178         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
109179         definition in 2.60+.
109181 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
109183         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
109184         checks.
109186 2006-10-02  Bruno Haible  <bruno@clisp.org>
109188         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
109189         to the AUTOMAKE_OPTIONS.
109190         Reported by Jim Meyering.
109192 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
109194         Work around bug in Solaris 10 /proc file system:
109195         /proc/self/fd/NNN/.. isn't the parent directory of
109196         the directory whose file descriptor is NNN.  This needs to
109197         be worked around at run time, not compile time, since a
109198         program might be built on Solaris 8, where things work, and
109199         run on Solaris 10.
109200         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
109201         to use the following interface instead:
109202         (OPENAT_BUFFER_SIZE): New macro.
109203         (openat_proc_name): New function.
109204         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
109205         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
109206         Likewise.
109207         * lib/openat-proc.c: New file.
109208         * modules/openat (Files): Add lib/openat-proc.c.
109209         (Depends-on): Add same-inode, stdbool.
109210         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
109212 2006-09-29  Bruno Haible  <bruno@clisp.org>
109214         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
109215         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
109216         argument. Set stdout_closed before testing for ferror, not after.
109217         (fwriteerror, fwriteerror_no_ebadf): New functions.
109219 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109221         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
109223 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
109225         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
109226         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
109228 2006-09-28  Jim Meyering  <jim@meyering.net>
109230         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
109231         Include <unistd.h>.
109233 2006-09-28  Bruno Haible  <bruno@clisp.org>
109235         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
109236         * modules/linkedhash-list (Depends-on): Likewise.
109237         * modules/rbtreehash-list (Depends-on): Likewise.
109239 2006-09-28  Bruno Haible  <bruno@clisp.org>
109241         * lib/strndup.h: Simplify the redefinition of strndup.
109242         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
109243         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
109245 2006-09-28  Bruno Haible  <bruno@clisp.org>
109247         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
109248         * lib/gl_linkedhash_list.c: Likewise.
109249         * lib/gl_rbtreehash_list.c: Likewise.
109251 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
109253         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
109254         getaddrinfo.
109256         * lib/__fpending.h: Don't include <stdio_ext.h> unless
109257         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
109258         it causes <stdio_ext.h> to cause a compile-time error.
109259         Problem reported by Nelson H. F. Beebe.
109260         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
109261         of HAVE_DECL___PENDING.
109263         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
109264         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
109265         declaration.
109267 2006-09-27  Jim Meyering  <jim@meyering.net>
109269         This file could end up with a definition for a function
109270         named __strndup, rather than rpl_strndup on a system with
109271         incomplete weak_alias support.
109272         * lib/strndup.c (strndup): Rename from __strndup.
109273         Remove #defines that used to map __strndup to strndup.
109274         Don't use K&R prototypes.
109275         Remove LIBC-related code, since this file is not sync'd with glibc.
109276         * lib/strndup.h: Revamp, accordingly.
109277         * m4/strndup.m4: Modernize.
109279 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
109281         * modules/savewd (Depends-on): Add 'raise'.
109282         * lib/savewd.c: Include <signal.h>, for 'raise'.
109284 2006-09-26  Jim Meyering  <jim@meyering.net>
109286         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
109287         when we detect Darwin 8.7.0's acl_get_file bug.
109288         Rearrange to perform the new (below) run-test while $LIBS
109289         contains any acl-related library.  Set USE_ACL at the end.
109290         (gl_ACL_GET_FILE): New function.
109292 2006-09-26  Eric Blake  <ebb9@byu.net>
109294         * lib/verror.c: Include <config.h> unconditionally.
109296 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
109298         * modules/clock-time (Maintainer): Add self.
109299         * modules/getlogin_r (Depends-on): Add extensions.
109301 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109303         * modules/clock-time: New module.
109304         * modules/nanosleep (Depends-on): Add clock-time.
109305         * modules/gethrxtime (Depends-on): Likewise.
109306         * modules/gettime (Depends-on): Likewise.
109307         * modules/settime (Depends-on): Likewise.
109309         * modules/fts-lgpl: Depend on openat.
109310         * modules/mkancesdirs: Depend on savewd.
109311         * modules/mkdir-p: Likewise.
109313 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109315         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
109317         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
109318         `gl_have_arbitrary_file_name_length_limit' to
109319         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
109320         actually works between configure runs.
109322 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109323             Bruno Haible  <bruno@clisp.org>
109325         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
109327 2006-09-25  Jim Meyering  <jim@meyering.net>
109329         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
109330         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
109332 2006-09-25  Eric Blake  <ebb9@byu.net>
109334         * gnulib-tool (func_import, func_create_testdir): Fix typos in
109335         exec's in 2006-09-18 patch when shuffling fds.
109337 2006-09-25  Bruno Haible  <bruno@clisp.org>
109339         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
109340         Reported by Jim Meyering.
109342 2006-09-24  Jim Meyering  <jim@meyering.net>
109344         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
109345         compare a pointer against a literal "0".  That caused failures with
109346         at least HP-UX's hpcc.
109348 2006-09-22  Simon Josefsson  <jas@extundo.com>
109350         * modules/gc-sha1:
109351         * modules/gc-md4:
109352         * modules/gc-hmac-sha1:
109353         * modules/gc-hmac-md5:
109354         * modules/gc-des:
109355         * modules/gc-arcfour: Distribute more files.
109357 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109359         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
109360         (gl_linked_iterator_from_to): Initialize struct completely.
109361         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
109362         (gl_tree_iterator_from_to): Likewise
109363         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
109364         * lib/gl_array_list.c [lint] (gl_array_iterator)
109365         (gl_array_iterator_from_to): Likewise.
109366         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
109367         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
109368         (gl_carray_iterator_from_to): Likewise.
109370         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
109371         * lib/md4.c (md4_process_block): Remove unused variable.
109372         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
109373         parentheses for clarity.
109375 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109377         * modules/bison-i18n (Depends-on): Add gettext.
109379 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109381         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
109382         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
109383         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
109384         also add missing comma that caused broken test.
109385         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
109386         stdlib.h, for `abort'.
109387         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
109388         variables.
109389         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
109390         include unistd.h if present, for `rmdir'.
109391         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
109392         variables.
109393         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
109394         in the process include standard headers for prototypes.
109395         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
109396         gets declared on GNU/Linux.
109397         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
109398         unistd.h, for `rmdir'.
109399         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
109401         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
109402         always true.
109403         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
109405         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
109407 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109409         * gnulib-tool (func_version): Create output all at once.  This
109410         may help avoid triggering unnecessary SIGPIPEs, and at any
109411         rate it doesn't hurt.
109413 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109414             Bruno Haible  <bruno@clisp.org>
109416         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
109417         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
109418         * m4/signed.m4 (bh_C_SIGNED): Likewise.
109420         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
109421         (gl_FUNC_VASPRINTF): Invoke it.
109423 2006-09-22  Bruno Haible  <bruno@clisp.org>
109425         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
109426         getloadavg.c as first argument.
109428 2006-09-22  Bruno Haible  <bruno@clisp.org>
109430         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
109431         at the beginning of the gl_INIT macro.
109432         * modules/getloadavg (configure.ac): Pass $gl_source_base to
109433         gl_GETLOADAVG.
109435 2006-09-22  Bruno Haible  <bruno@clisp.org>
109437         * gnulib-tool (func_create_megatestdir): Don't include the config-h
109438         module.
109439         Suggested by Ralf Wildenhues.
109441 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
109443         Import this patch from libc:
109445         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
109447         * lib/regex_internal.c (re_string_reconstruct): Handle
109448         offset < pstr->valid_raw_len && pstr->offsets_needed case.
109449         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
109450         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
109451         re_string_context_at.
109453         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
109454         now requires it.
109455         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
109456         gl_REGEX now does it for us.
109457         (gl_REGEX): Add test taken from
109458         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
109460         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
109461         Check that large offsets work.  Modernize Autoconf usages.
109462         Prefer "yes" to mean a good thing rather than a bad.
109463         Don't put "#define mkstemp" in config.h, as this might interfere
109464         with standard system headers that "#define mkstemp mkstemp64".
109466         * modules/mkstemp (Depends-on): Add extensions, so that
109467         mkstemp is visible on some platforms.
109468         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
109469         (Include): Change to "mkstemp.h" from <stdlib.h>.
109470         (Files): Add mkstemp.h.
109472         * lib/mkstemp.h: New file, since some standard headers
109473         #define mkstemp.
109474         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
109475         Include "mkstemp.h".
109476         Make the _LIBC code resemble glibc original more,
109477         e.g., use K&R style.
109478         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
109479         (mkstemp): Remove, since mkstemp.h does this for us.
109480         * lib/stdlib--.h: Include mkstemp.h.
109482         Import this patch from libc:
109484         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
109486         * lib/tempname.c (__gen_tempname): Change attempts_min
109487         into a macro.  Use preprocessor to decide how to initialize
109488         attempts [Coverity CID 67].
109490 2006-09-20  Bruno Haible  <bruno@clisp.org>
109492         * lib/mkdtemp.c: Import from libc.
109493         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
109494                 * sysdeps/posix/tempname.c (__gen_tempname): Change
109495                 attempts_min into a macro.  Use preprocessor to decide how to
109496                 initialize attempts [Coverity CID 67].
109497         2001-11-27  Paul Eggert  <eggert@twinsun.com>
109498                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
109499                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
109501 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109503         * gnulib-tool (func_exit): New function, to allow to pass the
109504         exit status portably through the trap.  Use everywhere.
109505         (--help, --version): Signal a write error.
109506         (trap): catch SIGPIPE, for write errors.
109507         Exit at the end of the trap, with the correct exit status.
109509 2006-09-19  Karl Berry  <karl@gnu.org>
109511         * doc/gnulib.texi: note about the license texinfo files.
109513 2006-09-19  Eric Blake  <ebb9@byu.net>
109515         * gnulib-tool: Avoid space-tab.
109517 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
109519         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
109520         that prevented coreutils 6.1 from building.  Problem reported
109521         by Petter Reinholdtsen.
109523 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
109525         * gnulib-tool (avoidlist): Fix typo that broke options like
109526         --avoid=lock that are used by coreutils bootstrap.
109528 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
109530         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
109531         more systematically.
109533 2006-09-18  Jim Meyering  <jim@meyering.net>
109535         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
109537 2006-09-18  Bruno Haible  <bruno@clisp.org>
109539         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
109541 2006-09-18  Bruno Haible  <bruno@clisp.org>
109543         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
109544         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
109545         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
109546         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
109547         * m4/gettext.m4: Require autoconf >= 2.52.
109548         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
109549         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
109550         of gl_cv_header_inttypes_h.
109552 2006-09-18  Bruno Haible  <bruno@clisp.org>
109554         * lib/javaversion.c: Include configmake.h.
109556 2006-09-18  Bruno Haible  <bruno@clisp.org>
109558         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
109559         avoid that the while loops be executed in a subshell.
109561 2006-09-18  Bruno Haible  <bruno@clisp.org>
109563         * MODULES.html.sh (func_module): Break long lines.
109564         Suggested by Bruce Korb <bkorb@gnu.org>.
109566 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109568         Speed up by a factor of 1.12.
109569         * gnulib-tool (nl): New variable.
109570         (func_import): Rewrite include directive extraction to only read each
109571         directive once.
109573 2006-09-17  Bruno Haible  <bruno@clisp.org>
109575         * modules/javaversion (Makefile.am): Remove DEFS setting.
109576         (Depends-on): Add configmake, for PKGDATADIR definition.
109578 2006-09-17  Bruno Haible  <bruno@clisp.org>
109580         * gnulib-tool (func_create_testdir): Rewrite all files at once.
109582 2006-09-17  Bruno Haible  <bruno@clisp.org>
109584         * gnulib-tool (func_append): New function, stolen from libtool.m4.
109585         (func_modules_transitive_closure, func_modules_add_dummy,
109586         func_modules_to_filelist, func_import, func_create_testdir,
109587         func_create_megatestdir, ...): Use it wherever possible.
109588         Suggested by Ralf Wildenhues.
109590 2006-09-16  Karl Berry  <karl@gnu.org>
109592         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
109593         to avoid sectioning errors.
109594         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
109595         [ifinfo]: blank line after @center-ed titles.
109596         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
109597         Spell FSF address consistently with others.
109598         (These changes approved by rms.)
109600 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109602         Speed up by a factor of 1.61.
109603         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
109604         already checked module names again.
109606 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109608         Speed up by a factor of 1.13.
109609         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
109610         for new_files, and the input to func_add_or_update.
109612 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109614         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
109615         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
109617 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
109619         * modules/mkancesdirs (Depends-on): Add fcntl.
109620         * modules/savewd: New file.
109621         * MODULES.html.sh (File system functions): Add savewd.
109623         * modules/configmake (Makefile.am): Add support for the
109624         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
109626 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
109628         * m4/savewd.m4: New file.
109630 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
109632         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
109633         (dirchownmod): New arg FD.  All callers changed.
109634         Use FD rather than opening the directory ourself, as opening is
109635         now the caller's responsibility.
109636         * lib/dirchownmod.h: Likewise.
109637         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
109638         hosts that require <sys/types.h> before <sys/stat.h>.  Include
109639         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
109640         (test_dir): Remove.
109641         (mkancesdirs): Return length of prefix of FILE that has already
109642         been made, or -2 if there is a child doing the work.  Redo
109643         algorithm so that it is O(N) rather than O(N**2).  Optimize away
109644         ".", and treat ".." specially since it might stray back into
109645         already-created areas.  Use a subprocess if necessary.  New arg
109646         WD; all users changed.  MAKE_DIR function should now return 1
109647         if it creates a directory that is not readable.  Return -2 if
109648         a child process is spun off.
109649         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
109650         Adjust signature to match code.
109651         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
109652         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
109653         all users changed.
109654         * lib/savewd.c, lib/savewd.h: New files.
109656 2006-09-15  Jim Meyering  <jim@meyering.net>
109658         * modules/rename-dest-slash: New module.
109659         * MODULES.html.sh (posix_compat): Add it here.
109661         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
109663 2006-09-15  Jim Meyering  <jim@meyering.net>
109665         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
109666         file.
109668         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
109670 2006-09-15  Jim Meyering  <jim@meyering.net>
109672         * lib/rename-dest-slash.c (has_trailing_slash): Use
109673         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
109674         (rpl_rename_dest_slash): Perform the cheaper trailing slash
109675         test before testing whether SRC is a directory.
109676         Suggestions from Bruno Haible.
109678         Avoid a warning about an unused variable.
109679         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
109680         into the #ifdef block where it's used.
109682         * lib/rename-dest-slash.c: New file.
109684 2006-09-14  Bruno Haible  <bruno@clisp.org>
109686         * lib/allocsa.c: Include <config.h> unconditionally.
109687         * lib/asnprintf.c: Likewise.
109688         * lib/asprintf.c: Likewise.
109689         * lib/c-strcasecmp.c: Likewise.
109690         * lib/c-strcasestr.c: Likewise.
109691         * lib/c-strncasecmp.c: Likewise.
109692         * lib/c-strstr.c: Likewise.
109693         * lib/classpath.c: Likewise.
109694         * lib/clean-temp.c: Likewise.
109695         * lib/concatpath.c: Likewise.
109696         * lib/copy-file.c: Likewise.
109697         * lib/csharpcomp.c: Likewise.
109698         * lib/csharpexec.c: Likewise.
109699         * lib/execute.c: Likewise.
109700         * lib/fatal-signal.c: Likewise.
109701         * lib/findprog.c: Likewise.
109702         * lib/fwriteerror.c: Likewise.
109703         * lib/gl_array_list.c: Likewise.
109704         * lib/gl_array_oset.c: Likewise.
109705         * lib/gl_avltree_list.c: Likewise.
109706         * lib/gl_avltree_oset.c: Likewise.
109707         * lib/gl_avltreehash_list.c: Likewise.
109708         * lib/gl_carray_list.c: Likewise.
109709         * lib/gl_linked_list.c: Likewise.
109710         * lib/gl_linkedhash_list.c: Likewise.
109711         * lib/gl_list.c: Likewise.
109712         * lib/gl_oset.c: Likewise.
109713         * lib/gl_rbtree_list.c: Likewise.
109714         * lib/gl_rbtree_oset.c: Likewise.
109715         * lib/gl_rbtreehash_list.c: Likewise.
109716         * lib/imaxabs.c: Likewise.
109717         * lib/imaxdiv.c: Likewise.
109718         * lib/javacomp.c: Likewise.
109719         * lib/javaexec.c: Likewise.
109720         * lib/javaversion.c: Likewise.
109721         * lib/linebreak.c: Likewise.
109722         * lib/localcharset.c: Likewise.
109723         * lib/lock.c: Likewise.
109724         * lib/mbchar.c: Likewise.
109725         * lib/mbswidth.c: Likewise.
109726         * lib/mkdtemp.c: Likewise.
109727         * lib/pipe.c: Likewise.
109728         * lib/printf-args.c: Likewise.
109729         * lib/printf-parse.c: Likewise.
109730         * lib/progname.c: Likewise.
109731         * lib/progreloc.c: Likewise.
109732         * lib/readlink.c: Likewise.
109733         * lib/sh-quote.c: Likewise.
109734         * lib/stpcpy.c: Likewise.
109735         * lib/stpncpy.c: Likewise.
109736         * lib/strcasecmp.c: Likewise.
109737         * lib/strcasestr.c: Likewise.
109738         * lib/strcspn.c: Likewise.
109739         * lib/striconv.c: Likewise.
109740         * lib/strncasecmp.c: Likewise.
109741         * lib/strnlen1.c: Likewise.
109742         * lib/strstr.c: Likewise.
109743         * lib/strtok_r.c: Likewise.
109744         * lib/tls.c: Likewise.
109745         * lib/tmpdir.c: Likewise.
109746         * lib/unicodeio.c: Likewise.
109747         * lib/unsetenv.c: Likewise.
109748         * lib/vasnprintf.c: Likewise.
109749         * lib/vasprintf.c: Likewise.
109750         * lib/wait-process.c: Likewise.
109751         * lib/xallocsa.c: Likewise.
109752         * lib/xsetenv.c: Likewise.
109753         * lib/xstriconv.c: Likewise.
109755 2006-09-13  Simon Josefsson  <jas@extundo.com>
109757         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
109758         that internally, suggested by Ralf Wildenhues
109759         <Ralf.Wildenhues@gmx.de>.
109761 2006-09-13  Simon Josefsson  <jas@extundo.com>
109763         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
109764         @LIBOBJS@.
109765         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
109767 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
109769         * lib/_fpending.c: Include <config.h> unconditionally, since we no
109770         longer worry about uses that don't define HAVE_CONFIG_H.
109771         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
109772         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
109773         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
109774         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
109775         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
109776         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
109777         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
109778         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
109779         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
109780         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
109781         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
109782         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
109783         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
109784         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
109785         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
109786         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
109787         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
109788         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
109789         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
109790         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
109791         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
109792         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
109793         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
109794         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
109795         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
109796         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
109797         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
109798         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
109799         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
109800         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
109801         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
109802         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
109803         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
109804         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
109805         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
109806         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
109807         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
109808         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
109809         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
109810         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
109811         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
109812         Likewise.
109814 2006-09-13  Eric Blake  <ebb9@byu.net>
109816         * lib/getopt.c: Fix typo in last commit.
109818 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
109820         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
109821         dgettext.
109823 2006-09-12  Jim Meyering  <jim@meyering.net>
109825         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
109826         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
109827         Reported by Nelson H. F. Beebe.
109829 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
109831         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
109832         program_invocation_name and program_invocation_short_name are
109833         initialized.
109834         * lib/argp-namefrob.h: Move declarations of program_invocation_name
109835         and program_invocation_short_name to argp.h, so they are visible
109836         to user programs.
109837         * lib/argp.h: Likewise
109839 2006-09-10  Bruno Haible  <bruno@clisp.org>
109841         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
109842         m4/inttypes_h.m4, m4/uintmax_t.m4.
109844 2006-09-10  Bruno Haible  <bruno@clisp.org>
109846         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
109847         gl_AC_TYPE_UINTMAX_T.
109849 2006-09-10  Bruno Haible  <bruno@clisp.org>
109851         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
109853 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
109855         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
109856         convention.  Text proposed by Bruno Haible.
109857         (struct argp_option): Document the use of N_() wrappers.
109859         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
109860         '\v', and translate the two parts separately, instead of feeding
109861         the whole string to gettext.  This allows to exclude
109862         '\v' from the strings visible to the translator by writing doc
109863         strings as N_("..") "\v" N_("..").
109865 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
109867         * config/srclist.txt: Undo latest change; the bug was fixed.
109869 2006-09-09  Bruno Haible  <bruno@clisp.org>
109871         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
109872         assignments if building a library without libtool.
109873         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
109874         in func_emit_lib_Makefile_am.
109875         (func_import): When building a static library libfoo.a, arrange to
109876         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
109877         (func_create_testdir): Likewise.
109878         * modules/gc (configure.ac, Makefile.am): If building statically,
109879         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
109880         * modules/iconvme (configure.ac, Makefile.am): Likewise.
109881         * modules/striconv (configure.ac, Makefile.am): Likewise.
109882         Based on a suggestion by Ralf Wildenhues.
109884 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109886         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
109887         Check for unistd.h too, since Autoconf doesn't assume POSIX.
109888         Also:
109890         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109891         Add year_2050_test to catch glibc bug 2821
109892         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
109894         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
109895         Prefer #ifdef to #if.
109897         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
109898         Return from 'main' instead of calling 'exit'.
109900 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109902         * lib/mktime.c (guess_time_tm): Fix bug where mktime
109903         returned the maximum time_t value rather than (time_t) -1.
109904         Problem originally reported by William Bardwell
109905         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
109907         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
109908         Moved to here ...
109909         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
109910         ... from here.
109912 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109914         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
109915         2821 is fixed.
109917 2006-09-08  Jim Meyering  <jim@meyering.net>
109919         Don't make generated files read-only.  That would bother too many
109920         people.  However, do retain the ability to work when targets are
109921         read-only: remove the destination and temporary files before writing
109922         them (when generated via sed or echo), or by using the -f option for
109923         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
109924         * modules/alloca-opt, modules/argz, modules/arpa_inet:
109925         * modules/byteswap, modules/configmake, modules/fcntl:
109926         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
109927         * modules/localcharset, modules/netinet_in, modules/poll:
109928         * modules/stdbool, modules/stdint, modules/sys_select:
109929         * modules/sys_socket, modules/sys_stat, modules/sysexits:
109931 2006-09-08  Jim Meyering  <jim@meyering.net>
109933         Avoid new build failure on FreeBSD 6.0.
109934         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
109935         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
109936         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
109938 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109940         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
109942 2006-09-07  Jim Meyering  <jim@meyering.net>
109944         Fix global typo in last change: use chmod u-w, not chmod u-x.
109945         Spotted by Paul Eggert and Bruce Korb.
109946         * modules/alloca-opt, modules/argz, modules/arpa_inet:
109947         * modules/byteswap, modules/configmake, modules/fcntl:
109948         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
109949         * modules/localcharset, modules/netinet_in, modules/poll:
109950         * modules/stdbool, modules/stdint, modules/sys_select:
109951         * modules/sys_socket, modules/sys_stat, modules/sysexits:
109953 2006-09-06  Jim Meyering  <jim@meyering.net>
109955         Make generated files be read-only.
109956         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
109957         Ensure that each generated file is now read-only.
109958         * modules/argz: Likewise.
109959         * modules/arpa_inet: Likewise.
109960         * modules/byteswap: Likewise.
109961         * modules/configmake: Likewise.
109962         * modules/fcntl: Likewise.
109963         * modules/fnmatch: Likewise.
109964         * modules/getopt: Likewise.
109965         * modules/glob: Likewise.
109966         * modules/inttypes: Likewise.
109967         * modules/netinet_in: Likewise.
109968         * modules/poll: Likewise.
109969         * modules/stdbool: Likewise.
109970         * modules/stdint: Likewise.
109971         * modules/sys_select: Likewise.
109972         * modules/sys_socket: Likewise.
109973         * modules/sys_stat: Likewise.
109974         * modules/sysexits: Likewise.
109975         * modules/localcharset: Same as above, but continue using temporary
109976         file named "t-$@" (why different?) rather than the "$@-t" used
109977         everywhere else.
109979         * modules/sysexits (Makefile.am): Replace literal occurrences
109980         of "sysexit.h" more readable, and more consistent, "$@".
109982 2006-09-06  Bruno Haible  <bruno@clisp.org>
109984         * modules/striconv: New file.
109985         * modules/xstriconv: New file.
109986         * MODULES.html.sh (Internationalization functions): Add striconv,
109987         xstriconv.
109989 2006-09-06  Bruno Haible  <bruno@clisp.org>
109991         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
109992         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
109993         not using libtool correctly.
109995 2006-09-06  Bruno Haible  <bruno@clisp.org>
109997         * lib/striconv.h: New file.
109998         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
109999         iconvstring.c.
110000         * lib/xstriconv.h: New file.
110001         * lib/xstriconv.c: New file.
110003 2006-09-06  Bruno Haible  <bruno@clisp.org>
110005         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
110006         lib_..._LDFLAGS.
110008 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110010         * lib/argz_.h: Sync from Libtool.
110012         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
110013                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
110015         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
110017 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
110019         * modules/trim: New file.
110021 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
110023         * lib/trim.h: New file.
110024         * lib/trim.c: New file.
110026 2006-09-05  Bruno Haible  <bruno@clisp.org>
110028         * MODULES.html.sh (String handling): Add trim.
110030 2006-09-04  Karl Berry  <karl@gnu.org>
110032         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
110033         until next release.
110035 2006-09-03  Bruno Haible  <bruno@clisp.org>
110037         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
110038         correctly.
110040 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
110042         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
110043         not gl_GETLOADAVG.  Omit unneeded semicolons.
110044         Problems reported by Ralf Wildenhues in
110045         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
110046         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
110047         at the end, which is the usual gnulib style.
110049         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
110050         of doing all the work ourselves.
110051         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
110052         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
110054 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
110056         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
110057         Problem reported by Ralf Wildenhues in
110058         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
110060         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
110061         HAVE_STRUCT_STATFS_F_FSTYPENAME.
110063 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
110065         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
110066         yesterday's patch by changing test -n to test -z.
110068 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
110070         * modules/getloadavg (Files): Add m4/getloadavg.m4.
110071         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
110072         the former is now obsolescent.
110074         * modules/chdir-long (Depends-on): Add fcntl.
110076 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
110078         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
110079         obsolescent, and programs should use gnulib instead.
110080         * m4/getloadavg.m4: New file, with contents taken from Autoconf
110081         but with prefixes changed.
110083 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
110085         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
110086         or stdbool.h, because they might not exist while configuring.
110088         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
110089         Don't include unistd.h or limits.h; not needed, since chdir-long.h
110090         does that for us.
110091         (O_DIRECTORY): Remove.
110093 2006-08-31  Eric Blake  <ebb9@byu.net>
110095         * gnulib-tool: Don't let emacs change spaces to TAB.
110097 2006-08-31  Bruno Haible  <bruno@clisp.org>
110099         * gnulib-tool: When calling func_import more than once, do it in a
110100         subshell.
110101         Reported by Eric Blake <ebb9@byu.net>.
110103 2006-08-31  Bruno Haible  <bruno@clisp.org>
110105         * gnulib-tool (nl): Remove variable.
110106         (sed_transform_lib_file): Use more robust test for config-h module.
110107         (func_import): Fix typo in 2006-08-25 patch.
110109 2006-08-31  Bruno Haible  <bruno@clisp.org>
110111         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
110112         specified, augment Makefile.am variables instead of assigning them.
110114 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
110116         Work around a bug in both the Linux and SunOS 64-bit kernels:
110117         nanosleep mishandles sleeps for longer than 2**31 seconds.
110118         Problem reported by Frank v Waveren in
110119         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
110120         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
110121         Check for nanosleep bug.
110122         (LIB_NANOSLEEP): Append clock_gettime library if needed.
110124 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
110126         Work around a bug in both the Linux and SunOS 64-bit kernels:
110127         nanosleep mishandles sleeps for longer than 2**31 seconds.
110128         Problem reported by Frank v Waveren in
110129         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
110130         * lib/nanosleep.c (BILLION): New constant.
110131         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
110132         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
110133         implementation.
110135 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
110137         * modules/nanosleep (Depends-on): Add gettime.
110139 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
110140         and Simon Josefsson  <jas@extundo.com>
110141         and Oskar Liljeblad  <oskar@osk.mine.nu>
110143         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
110144         * gnulib-tool (func_import): New license type 'unmodifiable license
110145         text'.
110146         * modules/fdl: Use it.  Longer description.
110147         * module/gpl, module/lgpl: New files.
110149 2006-08-30  Jim Meyering  <jim@meyering.net>
110151         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
110152         shadowing the parameter.
110154 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110156         Sync from Libtool:
110158         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110160         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
110161         sharing with gnulib.  Report by Eric Blake.
110163 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
110165         * modules/isapipe: New file.
110166         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
110168 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
110170         * modules/configmake (Makefile.am): Add a comment, and omit
110171         the CONFIGMAKE_ prefix from generated macro names.  Suggested
110172         by Bruno Haible.
110174 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
110176         * m4/isapipe.m4: New file.
110178 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
110180         * lib/isapipe.c, lib/isapipe.h: New files.
110182 2006-08-29  Jim Meyering  <jim@meyering.net>
110184         * modules/configmake (Makefile.am): Make configmake.h depend on
110185         Makefile.  Otherwise, a stale configmake.h could hang around.
110187 2006-08-29  Eric Blake  <ebb9@byu.net>
110189         * lib/error.c (error_at_line, print_errno_message): Match libc, after
110190         resolution of upstream bug 3044.
110192 2006-08-29  Bruno Haible  <bruno@clisp.org>
110194         * modules/localcharset (Depends-on): Add configmake.
110195         (Makefile.am): Remove setting of LIBDIR through DEFS.
110197 2006-08-29  Bruno Haible  <bruno@clisp.org>
110199         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
110200         defined.
110202 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
110204         * modules/fcntl: New file.
110205         * modules/chdir-safer (Depends-on): Add fcntl.
110206         * modules/fts: Likewise.
110207         * modules/mkdir-p: Likewise.
110209         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
110210         This undoes the most recent change, since we're now addressing the
110211         problem in a different way.
110213         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
110214         into output, since the output might be called Makefile.am even
110215         if $makefile_name is something different.
110216         (func_import): Use $makefile_am rather than
110217         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
110218         empty.
110220         * modules/inttypes (Files): Add m4/inttypes-h.m4.
110222 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
110224         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
110225         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
110226         recent change to stdint.m4, since we're now addressing the problem in a
110227         different way.
110229 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
110231         * m4/fcntl_h.m4: New file.
110233 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
110235         * lib/fcntl_.h: New file.
110236         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
110237         the fcntl module.
110238         * lib/dirchownmod.c: Likewise.
110239         * lib/fts.c: Likewise.
110241         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
110242         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
110243         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
110244         just before including <inttypes.h>, to avoid circular inclusion.
110246 2006-08-28  Jim Meyering  <jim@meyering.net>
110248         * doc/visibility.texi: Actually read and correct the grammar of the
110249         sentence affected by yesterday's change.
110251 2006-08-28  Eric Blake  <ebb9@byu.net>
110253         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
110254         needs wrapper.
110256 2006-08-28  Eric Blake  <ebb9@byu.net>
110258         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
110260 2006-08-28  Eric Blake  <ebb9@byu.net>
110262         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
110264 2006-08-28  Bruno Haible  <bruno@clisp.org>
110266         * modules/c-strstr: New file, from GNU gettext.
110267         * MODULES.html.sh (String handling): Add c-strstr.
110269 2006-08-28  Bruno Haible  <bruno@clisp.org>
110271         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
110272         macros.
110273         Reported by Eric Blake.
110275 2006-08-28  Bruno Haible  <bruno@clisp.org>
110277         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
110278         (VASNPRINTF): Return a string of length > INT_MAX without failing.
110279         * lib/vasprintf.c: Include errno.h, limits.h.
110280         (EOVERFLOW): New fallback definition.
110281         (vasprintf): Test here whether the string length is > INT_MAX.
110282         * lib/vsnprintf.c: Include errno.h, limits.h.
110283         (EOVERFLOW): New fallback definition.
110284         (vsnprintf): Fix bug when generated string was too long for the buffer.
110285         Test here whether the string length is > INT_MAX.
110287 2006-08-28  Bruno Haible  <bruno@clisp.org>
110289         * lib/inttypes_.h (SCNX*): Remove definitions.
110290         Reported by Eric Blake.
110292 2006-08-28  Bruno Haible  <bruno@clisp.org>
110294         * lib/c-strstr.h: New file, from GNU gettext.
110295         * lib/c-strstr.c: New file, from GNU gettext.
110297 2006-08-28  Bruno Haible  <bruno@clisp.org>
110299         * gnulib-tool: Reorder some statements.
110301 2006-08-28  Bruno Haible  <bruno@clisp.org>
110303         * gnulib-tool: New option --makefile-name.
110304         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
110305         $makefile_name.
110306         (func_import): Write $makefile_name to the cache file, and read it from
110307         there unless explicitly specified. Use $makefile_name as file name
110308         instead of Makefile.am. Adjust the recommendations accordingly.
110310 2006-08-28  Bruno Haible  <bruno@clisp.org>
110312         * gnulib-tool (func_verify_module): Check against misapplying patch.
110314 2006-08-28  Bruno Haible  <bruno@clisp.org>
110316         * gnulib-tool (func_relativize, func_relconcat): New functions.
110317         Give an error if --local-dir is given with --update.
110318         Remove trailing slashes from $local_gnulib_dir.
110319         (func_import): Store the relativized $local_gnulib_dir in
110320         gnulib-cache.m4, and read it from there if not specified explicitly.
110322 2006-08-28  Bruno Haible  <bruno@clisp.org>
110324         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
110325         is the current directory. Respect also $local_gnulib_dir.
110327 2006-08-28  Bruno Haible  <bruno@clisp.org>
110328             Simon Josefsson  <jas@extundo.com>
110330         BeOS portability.
110331         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
110333 2006-08-27  Jim Meyering  <jim@meyering.net>
110335         * doc/visibility.texi: Remove duplicate word: "pointer".
110337 2006-08-26  Bruno Haible  <bruno@clisp.org>
110339         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
110340         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
110341         (Makefile.am): Create inttypes.h from inttypes_.h.
110342         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
110344         * modules/imaxabs: New file.
110346         * modules/imaxdiv: New file.
110348 2006-08-26  Bruno Haible  <bruno@clisp.org>
110350         * m4/inttypes.m4: New file.
110351         * m4/_inttypes_h.m4: Remove file.
110352         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
110353         PRI_MACROS_BROKEN.
110354         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
110356         * m4/imaxabs.m4: New file.
110358         * m4/imaxdiv.m4: New file.
110360 2006-08-26  Bruno Haible  <bruno@clisp.org>
110362         * lib/inttypes_.h: New file.
110363         * lib/inttypes.h: Remove file.
110364         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
110366         * lib/imaxabs.c: New file.
110368         * lib/imaxdiv.c: New file.
110370 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
110372         New config-h module, so that "make" output needn't be cluttered
110373         by -DHAVE_CONFIG_H.
110374         * MODULES.html.sh (Support for building libraries and executables):
110375         Add config-h.
110376         * modules/config-h: New file.
110377         * gnulib-tool (nl, sed_transform_lib_file): New vars.
110378         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
110379         the config-h module is used.
110381         New configmake module, so that "make" output needn't be cluttered
110382         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
110383         * MODULES.html.sh (Support for building libraries and executables):
110384         Add configmake.
110385         * modules/configmake: New file.
110387 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
110389         * m4/config-h.m4: New file.
110391 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
110393         * config/srclist.txt: Add elisp-comp.
110395 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
110397         * MODULES.html.sh (Support for building libraries and executables):
110398         Add elisp-comp.
110399         * build-aux/elisp-comp: New file.
110400         * modules/elisp-comp: New file.
110402 2006-08-24  Bruno Haible  <bruno@clisp.org>
110404         * gnulib-tool (func_create_testdir): Use non-default values of
110405         sourcebase and m4base.
110407 2006-08-24  Bruno Haible  <bruno@clisp.org>
110409         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
110410         HTML structure.
110412 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
110414         * modules/openat (Depends-on): Add lchown.
110416 2006-08-23  Bruno Haible  <bruno@clisp.org>
110418         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
110419         of gl_LOCK_EARLY instead of gl_LOCK.
110421 2006-08-23  Bruno Haible  <bruno@clisp.org>
110423         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
110424         on OSF/1 to no.
110425         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
110427 2006-08-23  Bruno Haible  <bruno@clisp.org>
110429         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
110430         as unusable.
110432         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
110433         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
110434         (gl_LOCK): New macro.
110436 2006-08-22  Simon Josefsson  <jas@extundo.com>
110438         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
110439         to md5 module.
110441 2006-08-22  Simon Josefsson  <jas@extundo.com>
110443         * MODULES.html.sh: Add "Support for maintaining and release
110444         projects".
110446         * build-aux/gnupload: New file, from coreutils.
110448 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
110450         Avoid the need for AC_LIBSOURCES in m4 macros.
110451         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
110452         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
110453         * modules/check-version (EXTRA_DIST): Add check-version.h.
110454         * modules/crc (EXTRA_DIST): Add crc.h.
110455         * modules/des (EXTRA_DIST): Add des.h.
110456         * modules/gc (EXTRA_DIST): Add gc.h.
110457         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
110458         * modules/getline (EXTRA_DIST): Add getline.h.
110459         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
110460         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
110461         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
110462         * modules/md2 (EXTRA_DIST): Add md2.h.
110463         * modules/md4 (EXTRA_DIST): Add md4.h.
110464         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
110465         * modules/read-file (EXTRA_DIST): Add read-file.h.
110466         * modules/readline (EXTRA_DIST): Add readline.h.
110467         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
110468         rijndael-api-fst.h.
110470 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
110472         * m4/rijndael.m4 (gl_ARCFOUR):
110473         * m4/arctwo.m4 (gl_ARCTWO):
110474         * m4/check-version.m4 (gl_CHECK_VERSION):
110475         * m4/crc.m4 (gl_CRC):
110476         * m4/des.m4 (gl_DES):
110477         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
110478         * m4/gc.m4 (gl_GC):
110479         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
110480         * m4/getline.m4 (gl_FUNC_GETLINE):
110481         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
110482         * m4/hmac-md5.m4 (gl_HMAC_MD5):
110483         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
110484         * m4/md2.m4 (gl_MD2):
110485         * m4/md4.m4 (gl_MD4):
110486         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
110487         * m4/read-file.m4 (gl_FUNC_READ_FILE):
110488         * m4/readline.m4 (gl_FUNC_READLINE):
110489         * m4/rijndael.m4 (gl_RIJNDAEL):
110490         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
110491         to get the necessary .h files and whatnot.
110493 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
110495         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
110496         gnulib rather than the other way around.
110497         * config/srclistvars.sh (COREUTILS): Remove.
110499 2006-08-22  Jim Meyering  <jim@meyering.net>
110501         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
110503         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
110505 2006-08-22  Eric Blake  <ebb9@byu.net>
110507         * modules/regexprops-generic: New file.
110508         * MODULES.html.sh (Support for building documentation): List it.
110510 2006-08-22  Eric Blake  <ebb9@byu.net>
110512         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
110513         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
110514         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
110515         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
110517 2006-08-22  Bruno Haible  <bruno@clisp.org>
110519         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
110520         and lib_LTLIBRARIES like the other lib_* variables.
110522 2006-08-22  Bruno Haible  <bruno@clisp.org>
110524         * build-aux/x-to-1.in: New file, from GNU gettext.
110526 2006-08-22  Bruno Haible  <bruno@clisp.org>
110528         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
110529         <utmpx.h> exists.
110531 2006-08-22  Bruno Haible  <bruno@clisp.org>
110533         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
110534         <utmpx.h> exists.
110536 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
110538         BeOS portability.
110539         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
110540         exist.
110541         Problem reported by Bruno Haible.
110543 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
110545         Avoid the need for AC_LIBSOURCES in m4 macros.
110546         * modules/acl (EXTRA_DIST): Add acl.h.
110547         * modules/argmatch (Files): Add m4/argmatch.m4.
110548         (configure.ac): Add gl_ARGMATCH.
110549         (EXTRA_DIST): Renamed from lib_SOURCES, for
110550         consistency with the other modules.  Remove argmatch.c.
110551         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
110552         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
110553         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
110554         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
110555         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
110556         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
110557         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
110558         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
110559         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
110560         * modules/closeout (EXTRA_DIST): Add closeout.h.
110561         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
110562         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
110563         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
110564         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
110565         dirname.h; remove basename.c and stripslash.c.
110566         * modules/exclude (EXTRA_DIST): Add exclude.h.
110567         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
110568         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
110569         * modules/file-type (EXTRA_DIST): Add file-type.h.
110570         * modules/filemode (EXTRA_DIST): Add filemode.h.
110571         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
110572         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
110573         * modules/fpending (EXTRA_DIST): Add __fpending.h.
110574         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
110575         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
110576         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
110577         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
110578         * modules/getdate (EXTRA_DIST): Add getdate.c.
110579         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
110580         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
110581         * modules/getpass (EXTRA_DIST): Add getpass.h.
110582         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
110583         * modules/group-member (EXTRA_DIST): Add group-member.h.
110584         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
110585         * modules/hash (EXTRA_DIST): Add hash.h.
110586         * modules/human (EXTRA_DIST): Add human.h.
110587         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
110588         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
110589         * modules/lchown (EXTRA_DIST): Add lchown.h.
110590         * modules/long-options (EXTRA_DIST): Add long-options.h.
110591         * modules/lstat (EXTRA_DIST): Add lstat.h.
110592         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
110593         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
110594         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
110595         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
110596         * modules/memxor (EXTRA_DIST): Add memxor.h.
110597         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
110598         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
110599         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
110600         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
110601         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
110602         * modules/physmem (EXTRA_DIST): Add physmem.h.
110603         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
110604         * modules/posixver (EXTRA_DIST): Add posixver.h.
110605         * modules/quote (EXTRA_DIST): Add quote.h.
110606         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
110607         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
110608         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
110609         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
110610         regex_internal.h regexec.c.
110611         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
110612         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
110613         * modules/same (EXTRA_DIST): Add same.h.
110614         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
110615         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
110616         * modules/savedir (EXTRA_DIST): Add savedir.h.
110617         * modules/sha1 (EXTRA_DIST): Add sha1.h.
110618         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
110619         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
110620         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
110621         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
110622         * modules/strdup (EXTRA_DIST): Add strdup.h.
110623         * modules/strftime (EXTRA_DIST): Add strftime.h.
110624         * modules/strndup (EXTRA_DIST): Add strndup.h.
110625         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
110626         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
110627         * modules/time_r (EXTRA_DIST): Add time_r.h.
110628         * modules/timespec (EXTRA_DIST): Add timespec.h.
110629         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
110630         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
110631         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
110632         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
110633         * modules/userspec (EXTRA_DIST): Add userspec.h.
110634         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
110635         * modules/utimens (EXTRA_DIST): Add utimens.h.
110636         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
110637         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
110638         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
110639         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
110640         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
110641         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
110642         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
110643         * modules/yesno (EXTRA_DIST): Add yesno.h.
110645 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
110647         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
110649         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
110650         * m4/dev-ino.m4, same-inode.m4: Remove.
110652         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
110653         * m4/acl.m4 (AC_FUNC_ACL):
110654         * m4/backupfile.m4 (gl_BACKUPFILE):
110655         * m4/c-strtod.m4 (gl_C99_STRTOLD):
110656         * m4/canon-host.m4 (gl_CANON_HOST):
110657         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
110658         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
110659         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
110660         * m4/cloexec.m4 (gl_CLOEXEC):
110661         * m4/close-stream.m4 (gl_CLOSE_STREAM):
110662         * m4/closeout.m4 (gl_CLOSEOUT):
110663         * m4/dirfd.m4 (gl_FUNC_DIRFD):
110664         * m4/dirname.m4 (gl_DIRNAME):
110665         * m4/exclude.m4 (gl_EXCLUDE):
110666         * m4/exitfail.m4 (gl_EXITFAIL):
110667         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
110668         * m4/file-type.m4 (gl_FILE_TYPE):
110669         * m4/filemode.m4 (gl_FILEMODE):
110670         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
110671         * m4/fpending.m4 (gl_FUNC_FPENDING):
110672         * m4/fprintftime.m4 (gl_FPRINTFTIME):
110673         * m4/fts.m4 (gl_FUNC_FTS):
110674         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
110675         * m4/getdate.m4 (gl_GETDATE):
110676         * m4/gethrxtime.m4 (gl_GETHRXTIME):
110677         * m4/getpagesize.m4 (gl_GETPAGESIZE):
110678         * m4/getpass.m4 (gl_FUNC_GETPASS):
110679         * m4/gettime.m4 (gl_GETTIME):
110680         * m4/getugroups.m4 (gl_GETUGROUPS):
110681         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
110682         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
110683         * m4/hard-locale.m4 (gl_HARD_LOCALE):
110684         * m4/hash.m4 (gl_HASH):
110685         * m4/idcache.m4 (gl_IDCACHE):
110686         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
110687         * m4/lchown.m4 (gl_FUNC_LCHOWN):
110688         * m4/long-options.m4 (gl_LONG_OPTIONS):
110689         * m4/lstat.m4 (gl_FUNC_LSTAT):
110690         * m4/md5.m4 (gl_MD5):
110691         * m4/memcasecmp.m4 (gl_MEMCASECMP):
110692         * m4/memcoll.m4 (gl_MEMCOLL):
110693         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
110694         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
110695         * m4/memxor.m4 (gl_MEMXOR):
110696         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
110697         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
110698         * m4/modechange.m4 (gl_MODECHANGE):
110699         * m4/mountlist.m4 (gl_MOUNTLIST):
110700         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
110701         * m4/openat.m4 (gl_FUNC_OPENAT):
110702         * m4/pathmax.m4 (gl_PATHMAX):
110703         * m4/physmem.m4 (gl_PHYSMEM):
110704         * m4/posixtm.m4 (gl_POSIXTM):
110705         * m4/posixver.m4 (gl_POSIXVER):
110706         * m4/quote.m4 (gl_QUOTE):
110707         * m4/quotearg.m4 (gl_QUOTEARG):
110708         * m4/readtokens.m4 (gl_READTOKENS):
110709         * m4/readutmp.m4 (gl_READUTMP):
110710         * m4/regex.m4 (gl_REGEX):
110711         * m4/safe-read.m4 (gl_SAFE_READ):
110712         * m4/safe-write.m4 (gl_SAFE_WRITE):
110713         * m4/same.m4 (gl_SAME):
110714         * m4/save-cwd.m4 (gl_SAVE_CWD):
110715         * m4/savedir.m4 (gl_SAVEDIR):
110716         * m4/settime.m4 (gl_SETTIME):
110717         * m4/sha1.m4 (gl_SHA1):
110718         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
110719         * m4/stat-macros.m4 (gl_STAT_MACROS):
110720         * m4/stat-time.m4 (gl_STAT_TIME):
110721         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
110722         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
110723         * m4/strdup.m4 (gl_FUNC_STRDUP):
110724         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
110725         * m4/strndup.m4 (gl_FUNC_STRNDUP):
110726         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
110727         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
110728         * m4/time_r.m4 (gl_TIME_R):
110729         * m4/timespec.m4 (gl_TIMESPEC):
110730         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
110731         * m4/unlinkdir.m4 (gl_UNLINKDIR):
110732         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
110733         * m4/userspec.m4 (gl_USERSPEC):
110734         * m4/utimecmp.m4 (gl_UTIMECMP):
110735         * m4/utimens.m4 (gl_UTIMENS):
110736         * m4/xalloc.m4 (gl_XALLOC):
110737         * m4/xgetcwd.m4 (gl_XGETCWD):
110738         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
110739         * m4/xreadlink.m4 (gl_XREADLINK):
110740         * m4/xstrtod.m4 (gl_XSTRTOD):
110741         * m4/yesno.m4 (gl_YESNO):
110742         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
110743         to get the necessary .h files and whatnot.
110745 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
110746             Bruno Haible  <bruno@clisp.org>
110748         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
110749         /bin/sh understanding of '!' conditional negation.
110751 2006-08-21  Jim Meyering  <jim@meyering.net>
110753         * modules/openat (Depends-on): Really alphabetize.
110755         * modules/acl (Depends-on): Add error and quote.
110757         * check-module (find_included_lib_files): Add at-func.c to the
110758         ok-to-include-more-than-once white list.
110760         * modules/openat (Depends-on): Add lstat.  Alphabetize.
110762 2006-08-21  Bruno Haible  <bruno@clisp.org>
110764         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
110765         Emit a pkgdata_DATA variable only if some snippets add contents to it.
110766         Reported by Martin Lambers <marlam@marlam.de>.
110768 2006-08-21  Bruno Haible  <bruno@clisp.org>
110770         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
110771         specify an installation location, don't emit a noinst_LIBRARIES or
110772         noinst_LTLIBRARIES assignment.
110774 2006-08-21  Bruno Haible  <bruno@clisp.org>
110776         BeOS portability.
110777         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
110778         BeOS has mbrtowc() but no <wctype.h>.
110780 2006-08-21  Bruno Haible  <bruno@clisp.org>
110782         BeOS portability.
110783         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
110784         exist.
110786 2006-08-21  Bruno Haible  <bruno@clisp.org>
110788         BeOS portability.
110789         * lib/mbchar.h: Include <wctype.h> only if it exists.
110791 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
110793         Remove files that are no longer needed by their respective modules.
110794         * m4/obstack.m4: Remove.
110795         * m4/strerror_r.m4: Remove.
110796         * m4/uint32_t.m4: Remove.
110797         * m4/uintptr_t.m4: Remove.
110798         * m4/ullong_max.m4: Remove.
110799         * m4/xstrtoimax.m4: Remove.
110800         * m4/xstrtoumax.m4: Remove.
110802         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
110803         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
110804         dependencies now capture this.
110806         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
110807         Do not use AC_LIBSOURCES, since gnulib modules now do this.
110808         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
110809         * m4/human.m4 (gl_HUMAN): Likewise.
110810         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
110811         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
110813         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
110815         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
110816         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
110817         stdint.
110818         * m4/human.m4 (gl_HUMAN): Likewise.
110819         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
110820         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
110821         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
110822         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
110823         * m4/xstrtol (gl_XSTRTOL): Likewise.
110825         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
110826         AC_TYPE_LONG_LONG_INT.
110827         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
110828         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
110829         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
110830         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
110832         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
110833         on stdbool.
110835         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
110836         (gl_PREREQ_XSTRTOUL): Remove.
110838         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
110840         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
110841         mode.
110843 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
110845         Add and change modules to make it easier for coreutils to use
110846         gnulib-tool.
110847         * modules/backupfile (Files): Remove m4/d-ino.m4.
110848         (Depends-on): Add d-ino.
110849         * modules/cycle-check (Depends-on): Add stdint.
110850         (lib_SOURCES): Add cycle-check.h.
110851         * modules/d-ino: New module.
110852         * modules/d-type: New module.
110853         * modules/error (Files): Remove m4/strerror_r.m4.
110854         * modules/filemode (Files): Add m4/st_dm_mode.m4.
110855         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
110856         m4/inttypes_h.m4, m4/uintmax_t.m4.
110857         (Depends-on): Add stdint.
110858         (lib_SOURCES): Add fsusage.h.
110859         * modules/getcwd (Files): Remove d-ino.m4.
110860         (Depends-on): Add d-ino.
110861         * modules/getndelim2 (Depends-on): Add stdint.
110862         * modules/glob (Files): Remove m4/d-type.m4.
110863         (Depends-on): Add d-type.
110864         * modules/host-os: New module.
110865         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
110866         m4/inttypes_h.m4, m4/uintmax_t.m4.
110867         * Depends-on: Add stdint.
110868         (lib_SOURCES): Add human.h.
110869         * modules/inttostr (Files): Remove m4/intmax_t.m4,
110870         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
110871         m4/uintmax_t.m4, m4/ulonglong.m4.
110872         (Depends-on): Add stdint.
110873         (EXTRA_DIST): Add inttostr.h.
110874         * modules/lchmod: New module.
110875         * modules/link-follow: New module.
110876         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
110877         (Depends-on): Add lchmod.
110878         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
110879         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
110880         (Depends-on): Add stdint.
110881         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
110882         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
110883         (Depends-on): Add stdint.
110884         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
110885         * modules/perl: New module.
110886         * modules/regex (Depends-on): Add stdint.
110887         * modules/rmdir-errno: New module.
110888         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
110889         m4/intmax_t.m4.
110890         (Depends-on): Add stdint.
110891         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
110892         m4/uintmax_t.m4.
110893         (Depends-on): Add stdint.
110894         * modules/unlink-busy: New module.
110895         * modules/utimecmp (Depends-on): Add stdint.
110896         * modules/uptime: New module.
110897         * modules/winsz-ioctl: New module.
110898         * modules/winsz-termios: New module.
110899         * modules/xnanosleep (Depends-on): Add nanosleep.
110900         * modules/ullong_max: Remove.
110901         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
110902         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
110903         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
110904         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
110905         (Depends-on): Add inttypes.
110906         (lib_SOURCES): Add xstrtol.h.
110907         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
110908         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
110909         * MODULES.html.sh: Move 'assert' into the assert section.
110910         Move 'dummy' into the linking section.
110911         Remove ullong_max.
110912         Add section for compatibility checks for POSIX:2001 functions,
110913         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
110914         winsz-ioctl, and winsz-termios into it.
110915         Add lchmod.
110916         Add top-level Misc section and put host-os, perl, and uptime
110917         into it.
110919 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
110921         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
110922         now assume the stdint module.  Do not include inttypes.h.
110923         * lib/fsusage.h: Likewise.
110924         * lib/getndelim2.c: Likewise.
110925         * lib/human.h: Likewise.
110926         * lib/inttostr.h: Likewise.
110927         * lib/obstack.c: Likewise.
110928         * lib/regex_internal.h: Likewise.
110929         * lib/tempname.c: Likewise.
110930         * lib/utimecmp.c: Likewise.
110931         * lib/xstrtol.h: Likewise.
110933         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
110935         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
110936         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
110937         * lib/xtime.h: Likewise.
110939 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
110941         * modules/openat (Files): Add lib/fchmodat.c.
110942         Fixes problem reported by Jay Youngman.
110944 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
110946         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
110947         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
110949 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
110950             Bruno Haible  <bruno@clisp.org>
110952         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
110953         and is a script that invokes bison. Tighten the code. Add comments.
110955 2006-08-18  Jim Meyering  <jim@meyering.net>
110957         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
110958         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
110959         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
110960         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
110962 2006-08-18  Bruno Haible  <bruno@clisp.org>
110964         * modules/bison-i18n: New file.
110965         * MODULES.html.sh (Internationalization functions): Add it.
110967 2006-08-18  Bruno Haible  <bruno@clisp.org>
110969         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
110970         sys/statvfs.h. When getmntinfo was found, check its declaration and
110971         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
110973 2006-08-18  Bruno Haible  <bruno@clisp.org>
110975         * m4/bison-i18n.m4: New file, from bison.
110977 2006-08-18  Bruno Haible  <bruno@clisp.org>
110979         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
110980         (ME_DUMMY): Treat "kernfs" as a dummy.
110981         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
110983 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
110985         Update from coreutils.
110987         2006-08-15  Jim Meyering  <jim@meyering.net>
110989         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
110991         2006-01-17  Jim Meyering  <jim@meyering.net>
110993         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
110995         2006-01-11  Jim Meyering  <jim@meyering.net>
110997         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
110998         Check for the lchmod function.
111000 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
111002         Update from coreutils.
111004         * lib/__fpending.h: Add copyright notice.
111005         * lib/fprintftime.h: Likewise.
111006         * lib/savedir.c: Use (C) in copyright notice.
111007         * lib/savedir.h: Likewise.
111009         2006-08-15  Jim Meyering  <jim@meyering.net>
111011         * lib/at-func.c: New file, with the logic of all emulated at-functions.
111012         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
111013         in support of the EXPECTED_ERRNO macro.
111014         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
111015         definitions.  Instead, define the appropriate symbols and include
111016         "at-func.c".
111017         * lib/mkdirat.c (mkdirat): Likewise.
111018         * lib/fchmodat.c (fchmodat): Likewise.
111019         (ENOSYS): Remove definition.
111020         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
111021         it.  Don't include "unistd--.h" -- it wasn't ever used.
111023         2006-01-17  Jim Meyering  <jim@meyering.net>
111025         Rewrite fts.c not to change the current working directory,
111026         by using openat, fstatat, fdopendir, etc..
111028         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
111029         (HAVE_OPENAT_SUPPORT): Define.
111030         [_LIBC] (fchdir): Don't undef or define; no longer used.
111031         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
111032         Now, this `function' always succeeds, and consumes its file descriptor
111033         parameter -- so callers must not close such FDs.  Update callers.
111034         (diropen_fd, opendirat, cwd_advance_fd): New functions.
111035         (diropen): Add parameter, SP.  Adjust all callers.
111036         Implement using diropen_fd, rather than open.
111037         (fts_open): Initialize new member, fts_cwd_fd.
111038         Remove fts_rft-setting code.
111039         (fts_close): Close fts_cwd_fd, if necessary.
111040         (__opendir2): Define in terms of opendir or opendirat,
111041         depending on whether the FST_NOCHDIR flag is set.
111042         (fts_build): Since fts_safe_changedir consumes its FD, and since
111043         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
111044         and close the dup'd file descriptor upon failure.
111045         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
111046         (fts_safe_changedir): Tweak semantics to reflect that this function
111047         now calls cwd_advance_fd and hence consumes its FD argument.
111048         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
111049         [struct FTS] (fts_rft): Remove now-unused member.
111050         [struct FTS] (fts_cycle.state): Improve comment.
111052         * lib/openat.c (openat_needs_fchdir): New function.
111053         * lib/openat.h (openat_needs_fchdir): Declare it.
111055 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
111057         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
111058         Problem and fix reported by Pádraig Brady in
111059         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
111061 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
111063         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
111065 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
111067         * lib/memcoll.c (memcoll): Optimize for the common case where the
111068         arguments are bytewise equal.
111070 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
111072         * doc/regexprops-generic.texi: Add a copyright notice.
111074 2006-08-15  Bruno Haible  <bruno@clisp.org>
111076         * modules/tmpdir (License): Change to LGPL.
111078 2006-08-15  Bruno Haible  <bruno@clisp.org>
111080         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
111081         module.
111083 2006-08-14  Simon Josefsson  <jas@extundo.com>
111085         * config/srclist.txt: Add gnupload.
111087 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
111089         Change copyright notice from LGPL 2 to GPL 2, since that's the
111090         standard form used in the gnulib repository.
111091         * tests/test-lock.c: Likewise.
111092         * tests/test-stdint.c: Likewise.
111093         * tests/test-tls.c: Likewise.
111095         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
111096         prelude-manager.  User shorter URLs for GNU projects, without '?'.
111097         Add copyright notice.
111099         * check-module: Add copyright notice.  Output a copyright
111100         notice if "--version" is specified.
111101         * modules/COPYING: New file.
111102         * tests/test-getaddrinfo.c: Add copyright notice.
111103         * tests/test-verify.c: Likewise.
111105 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
111107         Change copyright notice from LGPL 2 to GPL 2, since that's the
111108         standard form used in the gnulib repository.
111109         * lib/lock.c: LGPL -> GPL.
111110         * lib/lock.h: Likewise.
111111         * lib/strnlen1.c: Likewise.
111112         * lib/strnlen1.h: Likewise.
111113         * lib/tls.c: Likewise.
111114         * lib/tls.h: Likewise.
111115         * lib/tmpdir.c: Likewise.
111117         * lib/TODO: Remove; this belongs only in coreutils.
111119 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
111121         Add copyright notices to long-enough files that lack them, since
111122         otherwise the files aren't clearly free.  Use the same notice that
111123         getdate.texi already uses.
111124         * doc/alloca-opt.texi: Add copyright notice.
111125         * doc/alloca.texi: Likewise.
111126         * doc/ctime.texi: Likewise.
111127         * doc/functions.texi: Likewise.
111128         * doc/gcd.texi: Likewise.
111129         * doc/gnulib-tool.texi: Likewise.
111130         * doc/inet_ntoa.texi: Likewise.
111131         * doc/visibility.texi: Likewise.
111133         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
111134         * doc/quote.texi: Add copyright notice.
111136         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
111137         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
111138         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
111139         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
111140         is now obsolete, and give a pointer to the Sun list.
111141         Add copyright notice.
111143 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
111145         * config/srclistvars.sh: Add copyright notice.
111147 2006-08-14  Eric Blake  <ebb9@byu.net>
111149         Import the following change from libc:
111151         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
111153         Upstream bug 2997.
111154         * lib/misc/error.c: Add space between program name and message if file
111155         name is missing.
111157 2006-08-12  Karl Berry  <karl@gnu.org>
111159         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
111160         remove, these originate in gnulib now.
111162 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111164         * doc/Makefile (standards.info standards.html standards.dvi):
111165         Also depend on make-stds.texi.
111167 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
111169         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
111170         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
111172         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
111173         in wchar_t.  Problem reported by Eric Blake.
111175         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
111176         LEN is smaller than SIZE.  Suggested by Bruno Haible.
111177         Also, help the compiler to keep LEN in a register.
111179 2006-08-11  Eric Blake  <ebb9@byu.net>
111181         * users.txt: Sort.  Add tar.
111183 2006-08-11  Bruno Haible  <bruno@clisp.org>
111185         * users.txt: New file.
111187 2006-08-11  Bruno Haible  <bruno@clisp.org>
111189         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
111190         before <wchar.h>. Needed for OSF/1 and BSD/OS.
111192 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
111194         * modules/snprintf (Depends-on): Remove minmax.
111195         (Maintainer): Add self and Bruno.
111197 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
111199         * lib/.cppi-disable: Add snprintf.h, socket_.h.
111200         * lib/snprintf.c: Include <errno.h> and <limits.h>.
111201         (EOVERFLOW): Define if the system does not.
111202         Do not include "minmax.h"; it wasn't used.
111203         (snprintf): Don't assume size_t promotes to an unsigned type.
111204         Fix bug when generated string was too long for the buffer: the
111205         buffer's contents are supposed to be the initial prefix of the
111206         output.  Don't assume vasnprintf returns EOVERFLOW if the size
111207         exceeds INT_MAX; do the check ourselves.
111209         Import the following changes from libc:
111211         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
111213         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
111214         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
111215         set wc to the byte which couldn't be converted.
111216         (re_string_reconstruct): Don't clear valid_raw_len before calling
111217         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
111218         tip_context using re_string_context_at.
111220         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
111222         * lib/posix/regex.h: g++ still cannot handled [restrict].
111224         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
111226         * lib/posix/regex.h: Remove special handling for VMS.
111228 2006-08-10  Jim Meyering  <jim@meyering.net>
111230         * modules/same-inode: New module.
111231         * modules/dev-ino: New module.
111232         * modules/cycle-check: Depend on these modules, rather than simply
111233         including their .h files.
111234         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
111235         required via m4/cycle-check.m4.
111236         * modules/same: Depend on new same-inode module, rather than
111237         including same-inode.h.
111238         * modules/chdir-safer: New file.
111240         * modules/chown (Depends-on): Add stat-macros.
111242 2006-08-10  Jim Meyering  <jim@meyering.net>
111244         * m4/cycle-check.m4: New file.
111245         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
111246         * m4/dev-ino.m4, m4/same-inode.m4: New files.
111248 2006-08-10  Eric Blake  <ebb9@byu.net>
111250         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
111251         in from original proposal.
111253 2006-08-10  Eric Blake  <ebb9@byu.net>
111254         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
111256         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
111257         namespace.
111259 2006-08-10  Bruno Haible  <bruno@clisp.org>
111261         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
111262         as well.
111264 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
111266         Sync from coreutils.
111268         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
111270         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
111271         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
111273 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
111275         * modules/restrict: Remove; no longer needed now that we assume
111276         Autoconf 2.59 or later.
111277         * MODULES.html.sh: Remove 'restrict'.
111278         * modules/argp (Depends-on): Remove 'restrict'.
111279         * modules/base64 (Depends-on): Likewise.
111280         * modules/gc (Depends-on): Likewise.
111281         * modules/getaddrinfo (Depends-on): Likewise.
111282         * modules/glob (Depends-on): Likewise.
111283         * modules/inet_ntop (Depends-on): Likewise.
111284         * modules/inet_pton (Depends-on): Likewise.
111285         * modules/memxor (Depends-on): Likewise.
111286         * modules/regex (Depends-on): Likewise.
111287         * modules/strtok_r (Depends-on): Likewise.
111288         * modules/time_r (Depends-on): Likewise.
111290 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
111292         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
111293         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
111294         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
111295         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
111296         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
111297         * m4/memxor.m4 (gl_MEMXOR): Likewise.
111298         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
111299         gl_C_RESTRICT replaced by AC_C_RESTRICT.
111301         Merge from coreutils.
111302         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
111303         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
111304         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
111305         * m4/time_r.m4 (gl_TIME_R): Likewise.
111307 2006-08-09  Karl Berry  <karl@gnu.org>
111309         * config/srclist.txt: no more gettext-tools, per Bruno.
111311 2006-08-08  Eric Blake  <ebb9@byu.net>
111313         * modules/verror: New module.
111314         * MODULES.html.sh: Document it.
111316 2006-08-08  Eric Blake  <ebb9@byu.net>
111318         * lib/verror.h, lib/verror.c: New files.
111320 2006-08-08  Eric Blake  <ebb9@byu.net>
111322         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
111323         verror_at_line output complies with GNU Coding Standards even when
111324         file is NULL.
111326 2006-08-07  Bruno Haible  <bruno@clisp.org>
111328         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
111329         versions of AIX.
111330         Reported by Ralf Wildenhues.
111332 2006-08-07  Bruno Haible  <bruno@clisp.org>
111334         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
111335         in an AC_DEFUN. Needed so that the autoconf snippets can use
111336         AC_REQUIRE.
111338 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111340         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
111341         Initialize pkgdata_DATA.
111342         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
111343         overriding it.
111345 2006-08-06  Eric Blake  <ebb9@byu.net>
111347         * lib/error.h: Fold in some upstream changes from glibc.
111348         * lib/error.c: Likewise.
111350 2006-08-04  Bruno Haible  <bruno@clisp.org>
111352         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
111353         Make the mostlyclean-local rule depend on mostlyclean-generic.
111354         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
111356 2006-07-31  Bruno Haible  <bruno@clisp.org>
111358         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
111359         <stdlib.h>, <string.h>.
111361 2006-07-30  Bruno Haible  <bruno@clisp.org>
111363         * modules/readlink (License): Change to LGPL.
111365 2006-07-30  Bruno Haible  <bruno@clisp.org>
111367         * modules/javaversion (Makefile.am): Distribute javaversion.java and
111368         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
111369         set PKGDATADIR to point to it.
111371 2006-07-30  Bruno Haible  <bruno@clisp.org>
111373         * modules/csharpexec (configure.ac): Comment out macro invocation.
111374         * modules/javaexec (configure.ac): Likewise.
111375         * modules/javacomp-script (configure.ac): Likewise.
111377         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
111379 2006-07-30  Bruno Haible  <bruno@clisp.org>
111381         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
111382         linked-list.
111384 2006-07-30  Bruno Haible  <bruno@clisp.org>
111386         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
111388 2006-07-30  Bruno Haible  <bruno@clisp.org>
111390         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
111391         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
111392         get removed.
111394 2006-07-29  Bruno Haible  <bruno@clisp.org>
111396         Make it possible for gnulib-tool to work with locally modified or
111397         augmented gnulib repositories.
111398         * gnulib-tool (func_usage): Document --local-dir option.
111399         (local_gnulib_dir): New variable.
111400         Handle --local-dir option.
111401         (func_lookup_file): New function.
111402         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
111403         (func_get_description, func_get_filelist, func_get_description,
111404         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
111405         func_get_automake_snippet, func_get_include_directive,
111406         func_get_license, func_get_maintainer): Use func_lookup_file.
111407         (func_import, func_create_testdir): Use func_lookup_file.
111409 2006-07-29  Bruno Haible  <bruno@clisp.org>
111411         * modules/setenv (Depends-on): Add unistd.
111413 2006-07-29  Bruno Haible  <bruno@clisp.org>
111415         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
111417 2006-07-29  Bruno Haible  <bruno@clisp.org>
111419         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
111421 2006-07-29  Bruno Haible  <bruno@clisp.org>
111423         * gnulib-tool (import, update): If there is no Makefile.am, look at
111424         aclocal.m4, instead of bailing out.
111426 2006-07-29  Bruno Haible  <bruno@clisp.org>
111428         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
111429         Categorize the options by when they are useful.
111431 2006-07-29  Bruno Haible  <bruno@clisp.org>
111433         * gnulib-tool (func_usage): Document option --no-libtool.
111434         Handle option --no-libtool.
111435         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
111436         for changed semantics of $libtool variable.
111437         (func_import): Likewise. If libtool is not used, show this through
111438         an option --no-libtool.
111439         (func_create_testdir): Update.
111441 2006-07-29  Bruno Haible  <bruno@clisp.org>
111443         * gnulib-tool (func_import): Extend error message about missing
111444         --doc-base.
111446 2006-07-29  Bruno Haible  <bruno@clisp.org>
111448         * gnulib-tool (func_import): Don't create the $docbase directory if
111449         there is no file to store there.
111451 2006-07-29  Bruno Haible  <bruno@clisp.org>
111453         * gnulib-tool (autoconf_minversion): If a --dir option is given and
111454         relevant, look for configure.ac there, not in the current directory.
111455         Also use a simple search for AC_PREREQ, not "autoconf --trace".
111457 2006-07-29  Bruno Haible  <bruno@clisp.org>
111459         * gnulib-tool (SORT): New variable.
111460         (func_usage): Undocument --assume-autoconf option.
111461         Remove --assume-autoconf option handling.
111462         (autoconf_minversion): Determine from the contents of configure.ac.
111463         (func_import): Remove autoconf_minversion handling.
111464         Suggested by Eric Blake.
111466 2006-07-29  Bruno Haible  <bruno@clisp.org>
111468         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
111470 2006-07-29  Bruno Haible  <bruno@clisp.org>
111472         * config/srclist.txt (*setenv.[ch]): Remove rules.
111474 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
111476         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
111478 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
111480         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
111481         arpa/inet.h.
111483 2006-07-28  Simon Josefsson  <jas@extundo.com>
111485         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
111486         * modules/inet_pton (Depends-on): Likewise.
111488 2006-07-28  Simon Josefsson  <jas@extundo.com>
111490         * m4/netinet_in_h.m4: New file.
111492 2006-07-28  Simon Josefsson  <jas@extundo.com>
111494         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
111495         #include's.
111497 2006-07-28  Simon Josefsson  <jas@extundo.com>
111499         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
111500         #include's.
111502 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
111504         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
111505         setgid on directories only if they set these bits.
111506         * lib/modechange.h: Remove obsolete comment about masks.
111508 2006-07-28  Eric Blake  <ebb9@byu.net>
111510         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
111511         macro expansion.
111513 2006-07-28  Bruno Haible  <bruno@clisp.org>
111515         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
111517 2006-07-28  Bruno Haible  <bruno@clisp.org>
111519         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
111521 2006-07-28  Bruno Haible  <bruno@clisp.org>
111523         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
111524         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
111525         Define fallbacks.
111526         Avoids link error on FreeBSD 4.x.
111527         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
111529         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
111530         encoding.
111531         * lib/mbswidth.c (iswcntrl): Likewise.
111533 2006-07-27  Bruno Haible  <bruno@clisp.org>
111535         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
111536         test.
111538 2006-07-27  Bruno Haible  <bruno@clisp.org>
111540         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
111541         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
111542         defined.
111544 2006-07-26  Eric Blake  <ebb9@byu.net>
111546         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
111548 2006-07-26  Eric Blake  <ebb9@byu.net>
111550         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
111551         like mingw that lack mkstemp.
111552         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
111553         avoid compilation warning on mingw.
111555 2006-07-26  Bruno Haible  <bruno@clisp.org>
111557         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
111558         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
111559         INT_FAST*_MIN, INTPTR_MIN.
111561 2006-07-25  Bruno Haible  <bruno@clisp.org>
111563         * modules/version-etc (Depends-on): Add stdarg.
111565 2006-07-25  Bruno Haible  <bruno@clisp.org>
111567         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
111568         complex commands.
111570 2006-07-25  Bruno Haible  <bruno@clisp.org>
111572         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
111573         defined in <stdarg.h> or config.h.
111575 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
111577         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
111578         (gl_STDIO_SAFER): Remove.
111580 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
111582         * MODULES.html.sh (File stream based Input/Output):
111583         Add fopen-safer, tmpfile-safer; remove stdio-safer.
111584         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
111585         * modules/fopen-safer, modules/tmpfile-safer: New files.
111586         * modules/stdio-safer: Remove.
111588 2006-07-24  Bruno Haible  <bruno@clisp.org>
111590         * modules/tmpdir: New file.
111591         * MODULES.html.sh (File system functions): Add it.
111593 2006-07-24  Bruno Haible  <bruno@clisp.org>
111595         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
111596         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
111598 2006-07-24  Bruno Haible  <bruno@clisp.org>
111600         * modules/clean-temp: New file.
111602 2006-07-24  Bruno Haible  <bruno@clisp.org>
111604         * m4/tmpdir.m4: New file, from GNU gettext.
111606 2006-07-24  Bruno Haible  <bruno@clisp.org>
111608         * lib/tmpdir.h: New file, from GNU gettext.
111609         * lib/tmpdir.c: New file, from GNU gettext.
111611 2006-07-24  Bruno Haible  <bruno@clisp.org>
111613         * lib/clean-temp.h: New file, from GNU gettext.
111614         * lib/clean-temp.c: New file, from GNU gettext.
111616 2006-07-23  Eric Blake  <ebb9@byu.net>
111618         * modules/stdio-safer (Files): Add tmpfile-safer.c.
111619         (Depends-on): Add binary-io.
111621 2006-07-23  Eric Blake  <ebb9@byu.net>
111623         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
111625 2006-07-23  Eric Blake  <ebb9@byu.net>
111627         * lib/tmpfile-safer.c: New file.
111628         * lib/stdio-safer.h (fopen_safer): Add prototype.
111629         * lib/stdio--.h (tmpfile): Make safer.
111631 2006-07-23  Bruno Haible  <bruno@clisp.org>
111633         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
111634         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
111635         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
111636         gl_linked_remove_at): Use it.
111638 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
111639         and Simon Josefsson <jas@extundo.com>
111641         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
111643         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
111645 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
111647         * modules/close-stream: New file.
111648         * modules/closeout (Description): Make it clear that it exits
111649         with a diagnostic on error.
111650         (Depends-on): Add close-stream.  Remove fpending, stdbool.
111651         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
111653 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
111655         * m4/close-stream.m4: New file.
111657 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
111659         * lib/close-stream.c, lib/close-stream.h: New files.
111661 2006-07-22  Bruno Haible  <bruno@clisp.org>
111663         Merge from GNU gettext 0.15.
111665         2006-05-01  Bruno Haible  <bruno@clisp.org>
111667                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
111669         2006-07-22  Bruno Haible  <bruno@clisp.org>
111671                 * modules/javaversion: New file.
111672                 * MODULES.html.sh (Java): Add javaversion.
111674         2006-03-12  Bruno Haible  <bruno@clisp.org>
111676                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
111678         2005-12-04  Bruno Haible  <bruno@clisp.org>
111680                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
111681                 (untested).
111683         2006-06-21  Bruno Haible  <bruno@clisp.org>
111685                 Avoid warnings from recent versions of mcs.
111686                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
111687                 -o, -L, -r any more. Use options documented since mcs-1.0
111688                 instead. Similarly for -g.
111690         2005-12-04  Bruno Haible  <bruno@clisp.org>
111692                 * build-aux/csharpcomp.sh.in: Suffix for resources is
111693                 .resources, not .resource.
111695         2005-07-09  Bruno Haible  <bruno@clisp.org>
111697                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
111698                 add a .dll suffix.
111699                 Reported by Mark Junker <mjscod@gmx.de>.
111701         2006-07-22  Bruno Haible  <bruno@clisp.org>
111703                 * modules/gettext: Upgrade to gettext-0.15.
111704                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
111705                 m4/visibility.m4.
111706                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
111708 2006-07-22  Bruno Haible  <bruno@clisp.org>
111710         Merge from GNU gettext 0.15.
111712         2006-03-25  Bruno Haible  <bruno@clisp.org>
111714                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
111716         2006-07-21  Bruno Haible  <bruno@clisp.org>
111718                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
111719                 "1.1".
111721         2006-05-09  Bruno Haible  <bruno@clisp.org>
111723                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
111724                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
111725                 for the conftestver execution.
111727         2006-05-01  Bruno Haible  <bruno@clisp.org>
111729                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
111730                 optional target-version argument. Verify that the compiler
111731                 groks source of the specified source-version, or add -source
111732                 option as necessary. Verify that the compiler produces
111733                 bytecode in the specified target-version, or add -target and
111734                 -source options as necessary. Make the result of the test
111735                 available as variable CONF_JAVAC. Also log error output in
111736                 config.log.
111738         2006-03-11  Bruno Haible  <bruno@clisp.org>
111740                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
111742         2006-05-09  Bruno Haible  <bruno@clisp.org>
111744                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
111745                 CLASSPATH_SEPARATOR to a semicolon.
111747         2006-03-12  Bruno Haible  <bruno@clisp.org>
111749                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
111750                 available as variable CONF_JAVA, for subsequent autoconf
111751                 tests. Also log error output in config.log.
111753         2006-07-19  Bruno Haible  <bruno@clisp.org>
111755                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
111756                 that getline works on glibc2 systems. Needed to avoid trouble
111757                 in relocatable.c.
111758                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
111760         2005-12-04  Bruno Haible  <bruno@clisp.org>
111762                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
111763                 launcher (untested).
111765         2005-12-04  Bruno Haible  <bruno@clisp.org>
111767                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
111769         2006-07-22  Bruno Haible  <bruno@clisp.org>
111771                 * gettext.m4: Update from GNU gettext-0.15.
111772                 * nls.m4: Likewise.
111773                 * po.m4: Likewise.
111774                 * inttypes-pri.m4: Likewise.
111775                 * inttypes-h.m4: Renamed from inttypes.m4.
111776                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
111778 2006-07-22  Bruno Haible  <bruno@clisp.org>
111780         Merge from GNU gettext 0.15.
111782         2005-07-05  Bruno Haible  <bruno@clisp.org>
111784                 * printf-args.c (printf_fetchargs): Work around broken
111785                 definition of wint_t on mingw.
111787         2005-02-12  Bruno Haible  <bruno@clisp.org>
111789                 * xallocsa.h: Add extern "C" for C++.
111791         2006-05-17  Bruno Haible  <bruno@clisp.org>
111793                 Cygwin portability.
111794                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
111796         2006-04-30  Bruno Haible  <bruno@clisp.org>
111798                 * progreloc.c: Include <mach-o/dyld.h> if available.
111799                 (find_executable): Use _NSGetExecutablePath when possible.
111801         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
111803                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
111804                 function.
111806         2005-12-29  Bruno Haible  <bruno@clisp.org>
111808                 * progreloc.c (set_program_name_and_installdir): Fix
111809                 compilation error.
111811         2005-12-04  Bruno Haible  <bruno@clisp.org>
111813                 Cygwin portability.
111814                 * progreloc.c: Include <windows.h> also on Cygwin.
111815                 (find_executable): Add support for Cygwin.
111816                 (set_program_name_and_installdir): Handle also platforms with
111817                 nonempty EXEEXT.
111819         2006-07-11  Bruno Haible  <bruno@clisp.org>
111821                 * javacomp.c: Fix a comment.
111822                 Reported by Jim Meyering.
111824         2006-04-30  Bruno Haible  <bruno@clisp.org>
111826                 * javacomp.h (compile_java_class): Add source_version,
111827                 target_version arguments.
111828                 * javacomp.c: Rewritten to choose only a compiler that
111829                 respects the specified source_version and target_version.
111831         2006-06-27  Bruno Haible  <bruno@clisp.org>
111833                 Assume correct S_ISDIR macro.
111834                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
111836         2006-07-22  Bruno Haible  <bruno@clisp.org>
111838                 * javaversion.h: New file, from GNU gettext.
111839                 * javaversion.c: New file, from GNU gettext.
111840                 * javaversion.java: New file, from GNU gettext.
111841                 * javaversion.class: New file, from GNU gettext.
111843         2006-05-17  Bruno Haible  <bruno@clisp.org>
111845                 Cygwin portability.
111846                 * javaexec.c (execute_java_class): Test for jview program
111847                 also on Cygwin.
111849         2006-04-09  Bruno Haible  <bruno@clisp.org>
111851                 * fatal-signal.c: Don't include string.h.
111852                 (at_fatal_signal): Use a copying loop instead of memcpy.
111854         2005-12-04  Bruno Haible  <bruno@clisp.org>
111856                 * csharpexec.c: Add support for 'clix' launcher (untested).
111857                 (execute_csharp_using_sscli): New function.
111858                 (execute_csharp_program): Call it.
111860         2006-06-21  Bruno Haible  <bruno@clisp.org>
111862                 Avoid warnings from recent versions of mcs.
111863                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
111864                 -o, -L, -r any more. Use options documented since mcs-1.0
111865                 instead. Similarly for -g.
111867         2005-07-09  Bruno Haible  <bruno@clisp.org>
111869                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
111870                 add a .dll suffix.
111871                 Reported by Mark Junker <mjscod@gmx.de>.
111873         2006-06-17  Bruno Haible  <bruno@clisp.org>
111875                 * config.charset: Update for NetBSD 3.0.
111877         2006-05-17  Bruno Haible  <bruno@clisp.org>
111879                 Cygwin portability.
111880                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
111882         2006-05-16  Bruno Haible  <bruno@clisp.org>
111884                 * localcharset.c [CYGWIN]: Include <windows.h>.
111885                 (get_charset_aliases): For Cygwin, return the same CPxxx
111886                 aliases list as under WIN32.
111887                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
111888                 the environment variables. Fall back to GetACP().
111890         2006-04-05  Bruno Haible  <bruno@clisp.org>
111892                 * config.charset: Update Juan Manuel Guerrero's address.
111894         2005-02-12  Bruno Haible  <bruno@clisp.org>
111896                 * allocsa.h: Add extern "C" for C++.
111898         2005-02-10  Bruno Haible  <bruno@clisp.org>
111900                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
111901                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
111903         2006-07-22  Bruno Haible  <bruno@clisp.org>
111905                 * gettext.h: Update to GNU gettext-0.15.
111907 2006-07-22  Bruno Haible  <bruno@clisp.org>
111909         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
111910         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
111911         lib-prefix.m4, longdouble.m4, ssize_t.m4.
111913 2006-07-21  Eric Blake  <ebb9@byu.net>
111915         * modules/stdlib-safer: New file.
111916         * MODULES.html.sh (File stream based Input/Output): Add
111917         stdlib-safer.
111919 2006-07-21  Eric Blake  <ebb9@byu.net>
111921         * lib/stdlib-safer.h: New file from coreutils, required by
111922         stdlib--.h.
111924 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
111926         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
111928 2006-07-20  Bruno Haible  <bruno@clisp.org>
111930         * gnulib-tool: Recognize new option --assume-autoconf.
111931         (autoconf_minversion): New variable.
111932         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
111934 2006-07-20  Bruno Haible  <bruno@clisp.org>
111936         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
111938 2006-07-19  Derek R. Price  <derek@ximbiot.com>
111940         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
111941         Reindent and repaginate.
111943 2006-07-19  Derek Price  <derek@ximbiot.com>
111945         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
111946         Correct grammar.
111948 2006-07-17  Bruno Haible  <bruno@clisp.org>
111950         * modules/list: New file.
111951         * modules/array-list: New file.
111952         * modules/carray-list, modules/carray-list-tests: New files.
111953         * modules/linked-list, modules/linked-list-tests: New files.
111954         * modules/avltree-list, modules/avltree-list-tests: New files.
111955         * modules/rbtree-list, modules/rbtree-list-tests: New files.
111956         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
111957         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
111958         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
111959         * modules/oset: New file.
111960         * modules/array-oset: New file.
111961         * modules/avltree-oset, modules/avltree-oset-tests: New files.
111962         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
111963         * tests/test-carray_list.c: New file.
111964         * tests/test-linked_list.c: New file.
111965         * tests/test-avltree_list.c: New file.
111966         * tests/test-rbtree_list.c: New file.
111967         * tests/test-linkedhash_list.c: New file.
111968         * tests/test-avltreehash_list.c: New file.
111969         * tests/test-rbtreehash_list.c: New file.
111970         * tests/test-avltree_oset.c: New file.
111971         * tests/test-rbtree_oset.c: New file.
111972         * MODULES.html.sh (Container data structures): New section.
111974 2006-07-17  Bruno Haible  <bruno@clisp.org>
111976         * m4/gl_list.m4: New file.
111978 2006-07-17  Bruno Haible  <bruno@clisp.org>
111980         * lib/gl_list.h: New file.
111981         * lib/gl_list.c: New file.
111982         * lib/gl_array_list.h: New file.
111983         * lib/gl_array_list.c: New file.
111984         * lib/gl_carray_list.h: New file.
111985         * lib/gl_carray_list.c: New file.
111986         * lib/gl_linked_list.h: New file.
111987         * lib/gl_linked_list.c: New file.
111988         * lib/gl_anylinked_list1.h: New file.
111989         * lib/gl_anylinked_list2.h: New file.
111990         * lib/gl_avltree_list.h: New file.
111991         * lib/gl_avltree_list.c: New file.
111992         * lib/gl_anyavltree_list1.h: New file.
111993         * lib/gl_anyavltree_list2.h: New file.
111994         * lib/gl_rbtree_list.h: New file.
111995         * lib/gl_rbtree_list.c: New file.
111996         * lib/gl_anyrbtree_list1.h: New file.
111997         * lib/gl_anyrbtree_list2.h: New file.
111998         * lib/gl_anytree_list1.h: New file.
111999         * lib/gl_anytree_list2.h: New file.
112000         * lib/gl_linkedhash_list.h: New file.
112001         * lib/gl_linkedhash_list.c: New file.
112002         * lib/gl_anyhash_list1.h: New file.
112003         * lib/gl_anyhash_list2.h: New file.
112004         * lib/gl_avltreehash_list.h: New file.
112005         * lib/gl_avltreehash_list.c: New file.
112006         * lib/gl_rbtreehash_list.h: New file.
112007         * lib/gl_rbtreehash_list.c: New file.
112008         * lib/gl_anytreehash_list1.h: New file.
112009         * lib/gl_anytreehash_list2.h: New file.
112011         * lib/gl_oset.h: New file.
112012         * lib/gl_oset.c: New file.
112013         * lib/gl_array_oset.h: New file.
112014         * lib/gl_array_oset.c: New file.
112015         * lib/gl_avltree_oset.h: New file.
112016         * lib/gl_avltree_oset.c: New file.
112017         * lib/gl_rbtree_oset.h: New file.
112018         * lib/gl_rbtree_oset.c: New file.
112019         * lib/gl_anytree_oset.h: New file.
112021 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
112023         * m4/mkancesdirs.m4: New file.
112024         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
112025         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
112026         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
112027         it.
112029 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
112031         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
112032         * lib/mkancesdirs.h: New files.
112033         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
112034         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
112035         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
112036         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
112037         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
112038         callers changed.  Revamp internals significantly, by not
112039         attempting to create directories that are temporarily more
112040         permissive than the final results.  Do not attempt to use
112041         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
112042         This removes some race conditions, fixes some bugs, and simplifies
112043         things.  Use new dirchownmod function to do owner and mode changes.
112044         * lib/mkdir-p.h: Likewise.
112045         * lib/modechange.c (octal_to_mode): New function.
112046         (struct mode_change): New member mentioned.
112047         (make_node_op_equals): New arg mentioned.  All callers changed.
112048         (mode_compile): Keep track of which mode bits the user has explicitly
112049         mentioned.
112050         (mode_adjust): New arg DIR, so that we implement the X op correctly.
112051         New arg PMODE_BITS, to keep track of which mode bits the user
112052         mentioned; it treats S_ISUID and S_ISGID speciall.
112053         All callers changed.
112054         * lib/modechange.h: Likewise.
112056 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
112058         * MODULES.html.sh: Add mkancestors.
112059         * modules/mkancesdirs: New module.
112060         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
112061         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
112062         The chdir-safer and afs files are now orphans; I'll remove them
112063         unless someone speaks up.
112064         Add lib/dirchownmod.c, lib/dirchownmod.h.
112065         (Depends-on): Remove alloca, chown, save-cwd, dirname.
112066         Add lchown, mkancesdirs.
112067         (Maintainer): Add self.
112069 2006-07-15  Karl Berry  <karl@gnu.org>
112071         * gnulib-tool: help message wording/arrangement.
112073 2006-07-14  Simon Josefsson  <jas@extundo.com>
112075         * doc/gnulib.texi (Libtool and Windows): New section.
112077 2006-07-12  Simon Josefsson  <jas@extundo.com>
112079         * modules/gendocs (License): Fix license, approved by Karl.
112081 2006-07-12  Eric Blake  <ebb9@byu.net>
112083         * MODULES.html.sh: Add gendocs.
112085 2006-07-11  Eric Blake  <ebb9@byu.net>
112087         * modules/fdl: New module, to install doc/fdl.texi.
112088         * MODULES.html.sh: Add new section for documentation modules.
112089         * gnulib-tool: Avoid space-tab.
112090         (--doc-base): New option, to manage files from doc.
112092 2006-07-11  Eric Blake  <ebb9@byu.net>
112094         * m4/absolute-header.m4: Fix comments to match recent change.
112096 2006-07-11  Eric Blake  <ebb9@byu.net>
112098         * gnulib-tool: List --doc-base before --tests-base.
112100 2006-07-11  Derek R. Price  <derek@ximbiot.com>
112102         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
112104 2006-07-11  Bruno Haible  <bruno@clisp.org>
112106         * README: Mention where to put documentation.
112108 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112110         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
112112 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
112114         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
112115         to stdint.m4.
112117 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
112119         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
112120         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
112121         "no/such/file/stdint.h" when there is no such file, so that
112122         the resulting C code can be parsed by dodgy compilers.
112123         Problems reported by Bob Proulx.
112125 2006-07-10  Derek R. Price  <derek@ximbiot.com>
112127         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
112128         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
112129         macros into the GNU _D_EXACT_NAMLEN.
112130         * lib/savedir.c:  Likewise.
112131         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
112133 2006-07-10  Derek R. Price  <derek@ximbiot.com>
112134         and Paul Eggert  <eggert@cs.ucla.edu>
112136         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
112137         * m4/savedir.m4:
112138         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
112139         macros into the GNU _D_EXACT_NAMLEN.
112141 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
112143         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
112144         around the absolute name, to work around a problem with the HP-UX
112145         11.23 native C compiler, reported by Bob Proulx.
112147 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
112149         * doc/maintain.texi, make-stds.texi: Sync from
112150         <http://savannah.gnu.org/projects/gnustandards>.
112152 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
112154         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
112156 2006-07-09  Jim Meyering  <jim@meyering.net>
112158         * m4/glob.m4: Remove a doubled word in a comment.
112160 2006-07-09  Jim Meyering  <jim@meyering.net>
112162         * lib/argp-pv.c: Remove a doubled word in a comment.
112163         * lib/check-version.c (check_version): Likewise.
112164         * lib/javacomp.c (compile_java_class): Likewise.
112166 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
112168         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
112169         for the benefit of people using Autoconf 2.60.  If you want to
112170         support older Autoconf versions you can copy m4/onceonly_2_57.m4
112171         (or m4/onceonly.m4, if pre-2.57) manually.
112173 2006-07-08  Jim Meyering  <jim@meyering.net>
112175         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
112176         comment.
112177         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
112178         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
112179         comment.
112181 2006-07-08  Jim Meyering  <jim@meyering.net>
112183         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
112185 2006-07-07  Simon Josefsson  <jas@extundo.com>
112187         * tests/test-crc.c: Change expected crc value, the test vector
112188         were probably computed using the old broken crc.c?
112190 2006-07-06  Simon Josefsson  <jas@extundo.com>
112192         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
112193         now the canonical place for the M4 file).
112195         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
112196         from the sys_socket dependency now.
112198         * modules/inet_pton (Files): Ditto.
112200         * modules/inet_ntop (Files): Ditto.
112202 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
112204         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
112205         not gl_PREREQ_GETUSERSHELL.
112207 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112209         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
112210         with only one argument, for Autoconf 2.60.
112211         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
112212         expand to nothing, so add a shell command to avoid syntax error.
112213         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
112215 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112217         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
112219 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
112221         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
112222         no longer needed.  Check for isblank decl.
112223         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
112224         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
112225         of existence.
112227 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
112229         * lib/getloadavg.c: Use __VMS, not VMS.
112230         * lib/getopt.c: Likewise.
112231         * lib/getpagesize.h: Likewise.
112232         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
112233         and probably does not work.
112235 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
112237         * lib/.cppi-disable: Add wcwidth.
112238         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
112239         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
112240         (ISGRAPH): Remove.  All uses changed to isgraph.
112241         (FOLD) [!defined _LIBC]: Remove special case.
112242         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
112243         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
112244         HAVE_ISBLANK.
112245         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
112246         case.
112248 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
112250         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
112251         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
112252         brackets.  Other minor changes to suppress some compiler
112253         warnings.
112255 2006-07-06  Derek R. Price  <derek@ximbiot.com>
112256         and Paul Eggert  <eggert@cs.ucla.edu>
112258         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
112259         of invoking obsolescent AC_HEADER_DIRENT macro.
112260         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
112261         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
112262         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
112263         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
112264         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
112265         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
112266         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
112267         * m4/readdir.m4: Remove; no longer needed.
112269 2006-07-06  Derek R. Price  <derek@ximbiot.com>
112270         and Paul Eggert  <eggert@cs.ucla.edu>
112272         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
112273         Don't worry about this obsolete case any more.
112274         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
112275         directories.
112276         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
112277         worry about this obsolete case any more.
112278         * lib/fts.c: Likewise.
112279         * lib/getcwd.c: Likewise.
112280         * lib/glob.h: Likewise.
112281         * lib/savedir.c: Likewise.
112283 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
112285         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
112286         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
112287         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
112288         needed.
112289         All uses removed.
112290         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
112291         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
112292         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
112293         needed.
112294         * m4/getdate.m4 (gl_GETDATE): Likewise.
112295         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
112296         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
112297         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
112298         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
112299         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
112300         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
112301         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
112302         needed.
112304 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
112306         * lib/memcasecmp.c: Include <limits.h>.
112307         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
112308         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
112309         Don't assume isdigit succeeds only on '0' through '9'.
112311 2006-07-05  Eric Blake  <ebb9@byu.net>
112313         * modules/getaddrinfo (Depends-on): Add snprintf.
112315 2006-07-05  Eric Blake  <ebb9@byu.net>
112317         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
112318         to avoid 'header present but could not be compiled' on cygwin.
112320 2006-07-05  Eric Blake  <ebb9@byu.net>
112322         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
112323         missing from netdb.h.
112324         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
112326 2006-07-05  Derek R. Price  <derek@ximbiot.com>
112328         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
112329         no longer needed.
112330         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
112331         * m4/getdate.m4 (gl_GETDATE): Likewise.
112332         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
112333         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
112334         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
112335         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
112336         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
112338 2006-07-05  Derek R. Price  <derek@ximbiot.com>
112340         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
112341         All uses of is_space replaced by isspace.
112342         * lib/exit.h: Don't talk about STDC_HEADERS.
112343         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
112344         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
112345         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
112346         replaced by isprint etc.
112347         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
112348         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
112349         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
112350         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
112351         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
112352         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
112354 2006-07-05  Bruno Haible  <bruno@clisp.org>
112356         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
112357         the function exists, before testing against AIX.
112358         Reported by Martin Lambers <marlam@marlam.de>.
112360 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
112362         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
112363         From Mark D. Baushke.
112365 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
112367         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
112368         to the absolute name, not just one, to bypass Sun C 5.8's
112369         "warning: #include of /usr/include/... may be non-portable".
112371 2006-07-04  Eric Blake  <ebb9@byu.net>
112373         * modules/dirname-tests: New test module.
112374         * tests/test-dirname.c: New file, replacing dirname.c
112375         TEST_DIRNAME section that was recently deleted.
112377 2006-07-04  Bruno Haible  <bruno@clisp.org>
112379         Assume ANSI C header files and <ctype.h> functions.
112380         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
112381         (mbsnwidth): Use isprint, iscntrl instead.
112383 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
112385         Merge from coreutils.
112386         * MODULES.html.sh: Add xstrtold.
112387         * modules/xstrtold: New file.
112388         * modules/cycle-check (Files): Add lib/same-inode.h.
112389         * modules/dirname (Files): Add m4/double-slash-root.m4.
112390         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
112391         * modules/mkdir-p (Files): Add lib/same-inode.h.
112392         * modules/same (Files): Add lib/same-inode.h.
112394 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
112396         * m4/absolute-header.m4: Renamed from full-header-path.m4.
112397         This is to keep the terminology clean; POSIX talks about
112398         "absolute pathnames", not "full pathnames", but the GNU
112399         Coding Standards say to use "path" for something else;
112400         so use "absolute" to keep both sides happy.
112401         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
112402         Set gl_absolute_header, not gl_full_header_path.
112403         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
112404         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
112405         All uses changed.
112407         Merge from coreutils.
112409         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
112411         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
112412         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
112413         want to require the building of c-strtod.o.
112414         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
112415         needs -lm directly.
112416         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
112418         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
112420         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
112421         --as-needed option if available.  Problem reported by Albert Chin in
112422         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
112423         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
112424         cc merely issues a bunch of annoying warnings for --as-needed
112425         (this problem was reported by Bob Proulx).  Also, try linking with
112426         -lm to detect a bug in binutils 2.16 (this problem was reported
112427         by Ralf Wildenhues).
112429         2006-06-18  Jim Meyering  <jim@meyering.net>
112431         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
112432         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
112433         macro.
112434         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
112435         also check for glibc-2.4's abort-inducing bug.
112437         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
112438         Low-probability clean-up should be to use rmdir to get rid of
112439         the just-created directory, not unlink.
112441         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
112442         configure fail, and request a bug report to inform us about it.
112443         Add a comment that, barring reports to the contrary, in 2007 we'll
112444         assume ftruncate is universally available.
112446         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
112448         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
112450         2006-03-12  Jim Meyering  <jim@meyering.net>
112452         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
112453         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
112454         * m4/same.m4 (gl_SAME): Likewise.
112455         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
112457         2006-03-11  Eric Blake  <ebb9@byu.net>
112459         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
112460         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
112461         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
112462         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
112464 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
112466         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
112467         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
112468         reported by Mark D. Baushke, one in
112469         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
112471         Merge from coreutils.
112473         * lib/.cppi-disable: Add stdint_.h.
112474         * lib/.cvsignore: Add stdint.h.
112476         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
112478         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
112479         both double and long double versions.
112480         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
112481         * lib/xstrtold.c: New file.
112482         * lib/xstrtod.h (xstrtold): New decl.
112484         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
112486         * lib/filemode.c (setst): Remove.
112487         (strmode): Rewrite to avoid setst.  This makes the code shorter,
112488         (arguably) clearer, and the generated code is a bit smaller on my
112489         Debian GNU/Linux stable x86 host.
112491         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
112493         * lib/filemode.c: Include "filemode.h" first, to test the interface.
112494         Assume that filemode.h includes sys/types.h and sys/stat.h.
112495         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
112496         (ftypelet): Reorder to put common cases first, for efficiency.
112497         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
112498         to do 'M'.
112499         (strmode): Renamed from mode_string, and now stores 12 bytes instead
112500         of 10, for compatibility with FreeBSD.  All callers changed.
112501         (filemodestring): Now stores 12 bytes instead of 10, and sets file
112502         types that can't be deduced solely from st_mode.  First arg is now a
112503         const pointer.
112504         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
112505         (strmode): Renamed from mode_string.
112506         (filemodestring): New decl.
112507         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
112508         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
112509         needed.
112510         (S_ISPORT, S_ISWHT): New macros, if not already defined.
112512         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
112514         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
112515         fsusage.h now does that.  Include fsusage.h first, to test interface.
112516         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
112517         at most one method (the old code could have generated decls that
112518         didn't conform to C89, not that this was ever exercised).
112519         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
112521         2006-03-19  Jim Meyering  <jim@meyering.net>
112523         Work even in a chroot where d_ino values for entries in "/"
112524         don't match the stat.st_ino values for the same names.
112525         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
112526         number, iterate through all entries again, using lstat instead.
112527         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
112528         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
112530         * lib/getcwd.c (__getcwd): Clarify a comment.
112531         Use memcpy in place of a call to strcpy.
112533         2006-03-12  Jim Meyering  <jim@meyering.net>
112535         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
112536         matches that of the current directory (which we're about to chdir ".."
112537         out of), then save the dev-ino of the parent, instead.
112539         * lib/same-inode.h (SAME_INODE): New file/macro.
112540         * lib/chdir-safer.c (SAME_INODE): Remove definition.
112541         Include "same-inode.h", instead.
112542         * lib/same.c: Likewise.
112543         * lib/cycle-check.h: Include "same-inode.h".
112544         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
112545         * lib/cycle-check.c (SAME_INODE): Remove definition.
112546         * lib/root-dev-ino.h: Include "same-inode.h".
112548         2006-03-11  Eric Blake  <ebb9@byu.net>
112550         * lib/same.c (same_name): s/base_name/last_component/
112551         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
112552         * lib/filenamecat.c (file_name_concat): Likewise.
112554         2006-03-11  Eric Blake  <ebb9@byu.net>,
112555                     Paul Eggert  <eggert@cs.ucla.edu>
112557         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
112558         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
112559         drive prefix.
112560         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
112561         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
112562         (last_component): New method.
112563         * lib/dirname.c (dir_len): Determine when drive letters need a
112564         subsequent slash.  Preserve // when it is special.
112565         (dir_name): Don't append dot when drive letter is absolute.
112566         [TEST_DIRNAME]: Move into a full-blown gnulib test.
112567         * lib/basename.c (base_name): New semantics - malloc the result.
112568         Preserve // when it is special.  Preserve relative files that look
112569         like drive letters.
112570         (base_len): Preserve // when it is special.
112571         (last_component): New method, similar to old base_name semantics.
112572         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
112573         base_name.  Strip redundant slashes from ///.
112575 2006-07-03  Jim Meyering  <jim@meyering.net>
112577         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
112578         macro is used before the first cycle_check call.
112580 2006-07-03  Eric Blake  <ebb9@byu.net>
112582         * modules/dirname (Depends-on): Add xstrndup.
112584 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
112586         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
112587         test cases, so that config.log is a bit easier to follow.
112589 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
112591         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
112592         both are 64 bits, since this seems to be the tradition, and this
112593         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
112594         we ever run into a host that prefers long long to long in this
112595         case, we'll need another configure-time test.  Problem reported by
112596         Jim Meyering.
112598 2006-07-02  Eric Blake  <ebb9@byu.net>
112600         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
112602 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
112604         * modules/inttypes (Depends-on): No longer depends on stdint.
112605         * modules/stdint (Description): Say more about assumptions.
112606         Say that the fast types might differ.  Say macros are used.
112607         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
112608         (Makefile.am): Revise list of substituted symbols to match
112609         new stdint.m4.
112610         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
112611         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
112612         * tests/test-stdint.c (verify_same_types)
112613         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
112614         the code conforms to C99/C89.
112615         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
112616         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
112618 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
112620         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
112621         but fix a bug, by requiring at least 64 bits.
112622         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
112623         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
112624         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
112625         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
112627         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
112628         changes.  Make 2.59 a prerequisite.  Check and substitute for
112629         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
112630         inttypes.h.  Do not use special include files; just use the
112631         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
112632         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
112633         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
112634         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
112635         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
112636         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
112637         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
112638         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
112639         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
112640         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
112641         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
112642         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
112643         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
112644         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
112645         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
112646         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
112647         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
112648         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
112649         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
112650         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
112651         WINT_MAX.  Check for C99 conformance more strictly, by detecting
112652         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
112653         not check for things that C99 does not require, e.g., int8_t.  If
112654         a test isn't needed unless <stdint.h> isn't working, and is
112655         unlikely to be needed for any other reason, then don't do it
112656         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
112657         size_t, since we assume C89 freestanding at least.  Do not check
112658         for sig_atomic_t, wchar_t, or wint_t, since the code now does
112659         the right thing even if the types are not defined.  Instead use:
112660         (gl_STDINT_TYPE_PROPERTIES): New macro.
112661         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
112662         testing whether <sys/types.h> clashes, as Autoconf does this for
112663         us now.  All uses removed.
112664         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
112665         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
112666         (gl_CHECK_TYPE_SAME):
112667         Remove; no longer needed.
112668         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
112669         exists, since we'll return 0 anyway in that case.
112670         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
112672 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
112674         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
112675         possible collision with system files.
112676         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
112677         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
112678         WCHAR_MIN and WCHAR_MAX in this case.
112679         (<stddef.h>): Do not include; no longer needed.
112680         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
112681         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
112682         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
112683         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
112684         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
112685         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
112686         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
112687         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
112688         !defined(__c99))]: Include in this case too, since it's harmless
112689         now.
112690         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
112691         dangerous to do so.
112692         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
112693         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
112694         (_STDINT_MIN, _STDINT_MAX): New macros.
112695         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
112696         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
112697         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
112698         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
112699         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
112700         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
112701         macros, not typedefs; this simplifies things quite a bit.
112702         Use long int for all types narrower than int64_t.
112703         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
112704         Define in terms of long long int or int64_t or long int,
112705         not int64_t or int32_t.  This saves some compile-time testing.
112706         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
112707         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
112708         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
112709         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
112710         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
112711         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
112712         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
112713         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
112714         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
112715         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
112716         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
112717         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
112718         undef any previous version and define our own version, for
112719         simplicity and consistency with the new macros for types.
112720         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
112721         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
112722         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
112723         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
112724         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
112725         @WINT_T_SUFFIX@ to keep things simple here.
112726         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
112727         Simplify by assuming typical 8/16/32/64 host, since we're
112728         already doing that elsewhere anyway.
112729         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
112730         and assume long long int is 64 bits if available.  This
112731         speeds up 'configure'.
112733 2006-07-01  Eric Blake  <ebb9@byu.net>
112735         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
112736         Reported by Andreas Buening.
112738 2006-07-01  Eric Blake  <ebb9@byu.net>
112740         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
112742 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
112744         * lib/getaddrinfo.c: fixed typo
112746 2006-06-29  Jim Meyering  <jim@meyering.net>
112748         * modules/strftime (Maintainer): Add my name, since with the
112749         FPRINTFTIME changes strftime.c has forked from glibc.
112751 2006-06-29  Eric Blake  <ebb9@byu.net>
112753         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
112755 2006-06-29  Eric Blake  <ebb9@byu.net>
112757         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
112759 2006-06-29  Eric Blake  <ebb9@byu.net>
112761         * lib/stat_.h: New file.
112763 2006-06-29  Eric Blake  <ebb9@byu.net>
112765         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
112766         unused static function.
112768 2006-06-29  Eric Blake  <ebb9@byu.net>
112770         * doc/functions.texi (Function Portability): Document missing lstat
112771         on mingw.
112773 2006-06-29  Eric Blake  <ebb9@byu.net>
112775         * MODULES.html.sh: Add sys_stat.
112776         * modules/sys_stat: New module.
112777         * modules/mkstemp (Depends-on): Add sys_stat.
112779 2006-06-29  Derek R. Price  <derek@ximbiot.com>
112781         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
112783 2006-06-29  Derek R. Price  <derek@ximbiot.com>
112785         * m4/c-bs-a.m4: Removed.
112787 2006-06-29  Derek R. Price  <derek@ximbiot.com>
112789         * lib/strftime.c: Assume strftime() exists.
112791 2006-06-29  Derek Price  <derek@ximbiot.com>
112793         * modules/c-bs-a: Removed - \a is C89.
112794         * MODULES.html.sh: Remove c-bs-a.
112796 2006-06-29  Bruno Haible  <bruno@clisp.org>
112798         * modules/wcwidth (License): Change to LGPL.
112800 2006-06-28  Simon Josefsson  <jas@extundo.com>
112802         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
112803         on _WIN32.
112805         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
112806         getnameinfo.
112808 2006-06-28  Simon Josefsson  <jas@extundo.com>
112810         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
112812 2006-06-28  Simon Josefsson  <jas@extundo.com>
112814         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
112815         functions there.  It will succeed on Windows XP, but on Windows
112816         2000 and (presumably) earlier, it will fail, and use the internal
112817         re-implementation.
112818         (use_win32_p): New function.
112819         (getaddrinfo): Use strtoul on servname, to support numeric ports.
112820         Support AI_NUMERICSERV to disable getservbyname.
112821         (getnameinfo): New function, only supports
112822         NI_NUMERICHOST|NI_NUMERICSERV for now.
112824         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
112825         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
112826         getnameinfo.
112828 2006-06-28  Eric Blake  <ebb9@byu.net>
112830         * modules/wcwidth: New file.
112831         * modules/mbchar (Depends-on): Add wcwidth.
112832         * modules/mbswidth (Depends-on): Add wcwidth.
112833         * MODULES.html.sh: Add wcwidth.
112835 2006-06-28  Eric Blake  <ebb9@byu.net>
112837         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
112838         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
112840 2006-06-28  Eric Blake  <ebb9@byu.net>
112842         * lib/xvasprintf.h: Fix comments.
112844 2006-06-28  Eric Blake  <ebb9@byu.net>
112846         * lib/mbchar.h (wcwidth): Include wcwidth.h.
112847         * lib/mbswidth.c (wcwidth): Move from here...
112848         * lib/wcwidth.h: ...to this new file.
112850 2006-06-28  Derek R. Price  <derek@ximbiot.com>
112852         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
112854         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
112855         it's obsolete.
112856         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
112858 2006-06-28  Derek R. Price  <derek@ximbiot.com>
112860         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
112861         Autoconf 2.60 says this stuff was obsolete.
112863 2006-06-28  Bruno Haible  <bruno@clisp.org>
112865         * modules/wcwidth (Files): Add m4/wchar_t.m4.
112867 2006-06-28  Bruno Haible  <bruno@clisp.org>
112869         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
112870         gt_TYPE_WCHAR_T.
112872 2006-06-28  Bruno Haible  <bruno@clisp.org>
112874         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
112875         declaration for wcwidth.
112876         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
112878 2006-06-28  Bruno Haible  <bruno@clisp.org>
112880         * lib/mkdtemp.c [MINGW]: Include <io.h>.
112881         (mkdir): Define using _mkdir.
112883 2006-06-28  Bruno Haible  <bruno@clisp.org>
112885         * lib/getaddrinfo.h: Fix POSIX URL.
112886         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
112887         _WIN32.
112888         (use_win32_p): Make static.
112889         (getaddrinfo): Reject service name if it is empty or does not consist
112890         solely of decimal digits, or if its value is > 65535.
112891         (getnameinfo): Remove useless casts.
112893 2006-06-27  Simon Josefsson  <jas@extundo.com>
112895         * modules/sys_select: New file, suggested by Bruno Haible, Paul
112896         Eggert and Martin Lambers.
112898 2006-06-27  Simon Josefsson  <jas@extundo.com>
112900         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
112901         Eggert and Martin Lambers.
112903 2006-06-27  Bruno Haible  <bruno@clisp.org>
112905         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
112906         result to 0, not to empty.
112907         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
112909 2006-06-27  Bruno Haible  <bruno@clisp.org>
112911         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
112913 2006-06-26  Simon Josefsson  <jas@extundo.com>
112915         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
112916         present.
112918 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
112920         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
112921         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
112922         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
112924 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
112926         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
112928 2006-06-26  Bruno Haible  <bruno@clisp.org>
112930         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
112932 2006-06-26  Bruno Haible  <bruno@clisp.org>
112934         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
112936 2006-06-26  Bruno Haible  <bruno@clisp.org>
112938         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
112939         SGI C compiler in pre-C99 mode.
112940         Suggested by Mark D. Baushke and Larry Jones.
112942 2006-06-26  Bruno Haible  <bruno@clisp.org>
112944         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
112945         WCHAR_MAX.
112946         Reported by Mark D. Baushke and Larry Jones.
112948 2006-06-26  Bruno Haible  <bruno@clisp.org>
112950         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
112951         in pre-C99 mode.
112952         Suggested by Mark D. Baushke and Larry Jones.
112954 2006-06-23  Simon Josefsson  <jas@extundo.com>
112955             Bruno Haible  <bruno@clisp.org>
112957         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
112958         Emit mostlyclean-local rule.
112959         (func_emit_tests_Makefile_am): Likewise.
112960         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
112962 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
112964         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
112966 2006-06-23  Bruno Haible  <bruno@clisp.org>
112968         * tests/test-stdint.c: Update to match ISO C 99 Technical
112969         Corrigendum 1.
112971 2006-06-23  Bruno Haible  <bruno@clisp.org>
112973         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
112975 2006-06-23  Bruno Haible  <bruno@clisp.org>
112977         * lib/stdint_.h: Treat IRIX like OpenBSD.
112979 2006-06-23  Bruno Haible  <bruno@clisp.org>
112981         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
112982         ISO C 99 Technical Corrigendum 1.
112984 2006-06-22  Simon Josefsson  <jas@extundo.com>
112986         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
112987         MinGW.
112989 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
112991         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
112992         needed.  Some compiler complained about some of them.  Problem reported
112993         by Larry Jones in
112994         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
112996 2006-06-21  Simon Josefsson  <jas@extundo.com>
112998         * tests/test-getaddrinfo.c: New file.
113000         * modules/getaddrinfo-tests: New file.
113002         * MODULES.html.sh: Add inet_pton.
113004         * modules/inet_pton: New file.
113006 2006-06-21  Simon Josefsson  <jas@extundo.com>
113008         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
113009         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
113010         of using the (limited) gnulib implementation on Windows XP.
113012         * m4/inet_pton.m4: New file.
113014 2006-06-21  Simon Josefsson  <jas@extundo.com>
113016         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
113017         variable.
113019         * lib/socket_.h: Don't define WINVER.
113021         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
113022         slightly modified to work in gnulib.
113024 2006-06-21  Simon Josefsson  <jas@extundo.com>
113026         * doc/gnulib.texi (Windows sockets): Add.
113028 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
113030         * lib/read-file.c (fread_file): Start with buffer allocation of
113031         0 bytes rather than 1 byte; this simplifies the code.
113032         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
113033         code to free buffer and save/restore errno.
113034         (internal_read_file): Remove unused local.
113036 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
113038         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
113039         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
113040         Problem reported by Denis Excoffier in
113041         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
113043 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
113045         * modules/sys_socket, modules/socklen: Include sys/types since
113046         FreeBSD 4.x's sys/socket.h needs it.
113048 2006-06-19  Simon Josefsson  <jas@extundo.com>
113050         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
113052 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
113054         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
113056 2006-06-19  Bruno Haible  <bruno@clisp.org>
113058         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
113059         and FULL_PATH_INTTYPES_H in angle brackets.
113060         Reported by Mark D. Baushke <mdb@gnu.org>.
113062 2006-06-17  Eric Blake  <ebb9@byu.net>
113064         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
113065         errno.
113067 2006-06-17  Bruno Haible  <bruno@clisp.org>
113069         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
113070         <sys/inttypes.h>.
113072 2006-06-17  Bruno Haible  <bruno@clisp.org>
113074         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
113075         whether errno is declared. Assume <errno.h> declares errno.
113077 2006-06-17  Bruno Haible  <bruno@clisp.org>
113079         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
113081 2006-06-17  Bruno Haible  <bruno@clisp.org>
113083         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
113084         problem on Solaris 2.5.1.
113086 2006-06-16  Eric Blake  <ebb9@byu.net>
113088         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
113089         * lib/unicodeio.c [!defined errno]: Likewise.
113090         * lib/strtol.c [!defined errno]: Likewise.
113091         * lib/strtod.c [!defined errno]: Likewise.
113093 2006-06-15  Eric Blake  <ebb9@byu.net>
113095         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
113097 2006-06-15  Eric Blake  <ebb9@byu.net>
113099         * config/srclist.txt (ssize_t.m4): Lose sync.
113101 2006-06-15  Bruno Haible  <bruno@clisp.org>
113103         * modules/stdint (Files): Include m4/full-header-path.m4,
113104         m4/size_max.m4, m4/wchar_t.m4.
113105         (Makefile.am): Many more substitutions.
113106         * modules/stdint-tests: New file.
113107         * tests/test-stdint.c: New file.
113109 2006-06-15  Bruno Haible  <bruno@clisp.org>
113111         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
113112         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
113113         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
113114         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
113115         gl_CHECK_TYPE_SAME): New macros.
113117 2006-06-15  Bruno Haible  <bruno@clisp.org>
113119         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
113121 2006-06-15  Bruno Haible  <bruno@clisp.org>
113123         * lib/stdint_.h: Rewritten to be fully auto-configured.
113124         Fixes bug on HP-UX/IA64.
113126 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
113128         * lib/getdate.y (__attribute__): Don't define if already defined.
113129         Problem reported by Larry Jones.
113130         * lib/utimens.c (__attribute__): Likewise.
113132 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
113134         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
113135         reported by Andreas Schwab.
113137 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113138             Bruno Haible  <bruno@clisp.org>
113140         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
113141         check for the declaration of strnlen and a run test that exposes the
113142         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
113143         rpl_strndup.
113145 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113146             Bruno Haible  <bruno@clisp.org>
113148         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
113150 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113152         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
113153         compile test, for Tru64 4.0D.
113155 2006-05-28  Karl Berry  <karl@gnu.org>
113157         * config/srclist.txt (printf-args.c): lose sync.
113159 2006-05-26  Martin Lambers  <marlam@marlam.de>
113161         * lib/getpass.c: Updates the test for the native W32 API, and adds
113162         missing includes, thus fixing compilation warnings.
113164 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
113166         * lib/exclude.c (exclude_fnmatch): New function.
113167         (excluded_file_name): Call exclude_fnmatch.
113168         * lib/exclude.h (excluded_file_name): New prototype
113170 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
113172         * lib/tempname.c (small_open, large_open): New macros.
113173         (__open, __open64) [!_LIBC]: Remove.
113174         (__gen_tempname): Use small_open and large_open instead of __open
113175         and __open64.  This fixes a portability bug on HP-UX 11.11i
113176         reported by Simon Wing-Tang in
113177         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
113179 2006-05-24  Bruno Haible  <bruno@clisp.org>
113181         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
113182         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
113183         Reported by Thorsten Maerz <torte@netztorte.de> via
113184         Aaron Stone <aaron@serendipity.cx>.
113186 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
113188         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
113189         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
113190         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
113191         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
113192         not really conditional on the cache.
113193         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
113195 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
113197         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
113198         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
113199         (my_usleep): Don't mishandle maximum value.
113201 2006-05-19  Jim Meyering  <jim@meyering.net>
113203         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
113205 2006-05-17  Bruno Haible  <bruno@clisp.org>
113207         Cygwin portability.
113208         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
113210 2006-05-17  Bruno Haible  <bruno@clisp.org>
113212         * lib/stdint_.h: Fix recognition of Cygwin.
113214 2006-05-15  Bruno Haible  <bruno@clisp.org>
113216         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
113217         on libtool patch by Ralf Wildenhues.
113219 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
113221         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
113222         test for C99 conformance; (bool) 0.5 is an integer constant
113223         expression, but (bool) -0.5 is not.  Problem reported by Fedor
113224         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
113226 2006-05-11  Simon Josefsson  <jas@extundo.com>
113228         * m4/xvasprintf.m4: Fix obvious typo.
113230 2006-05-11  Jim Meyering  <jim@meyering.net>
113232         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
113233         James Lemley.
113235 2006-05-10  Simon Josefsson  <jas@extundo.com>
113237         * lib/md4.c: Typo fix, update copyright years.
113238         (K1, K2): Don't use L because it turn computations into 64-bit on
113239         64-bit platforms.
113241 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
113243         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
113244         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
113245         unwanted sign propagation, e.g., on hosts with 64-bit int.
113246         There still are some problems with reeelly weird theoretical hosts
113247         (e.g., 33-bit int) but it's not worth worrying about now.
113248         * lib/sha1.c (rol): Likewise.
113249         (K1, K2, K3, K4): Remove unnecessary L suffix.
113251 2006-05-10  Bruno Haible  <bruno@clisp.org>
113253         * lib/des.c: Cast to avoid warnings.
113255 2006-05-09  Bruno Haible  <bruno@clisp.org>
113257         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
113258         (Depends-on): Depend also on xsize, stdarg.
113259         (configure.ac): Add gl_XVASPRINTF.
113261 2006-05-09  Bruno Haible  <bruno@clisp.org>
113263         * m4/xvasprintf.m4: New file.
113265 2006-05-09  Bruno Haible  <bruno@clisp.org>
113267         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
113268         (EOVERFLOW): Define fallback value.
113269         (xstrcat): New function.
113270         (xvasprintf): Recognize the special case of a string concatenation.
113272 2006-05-08  Eric Blake  <ebb9@byu.net>
113274         * gnulib-tool (func_version): Base copyright year on CVS date.
113275         (func_emit_copyright_notice): New function.
113276         (func_emit_lib_Makefile_am): Use it.
113277         (func_emit_tests_Makefile_am): Likewise.
113278         (func_import): Likewise.
113280 2006-05-08  Bruno Haible  <bruno@clisp.org>
113282         * modules/stdarg: New file.
113283         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
113285 2006-05-08  Bruno Haible  <bruno@clisp.org>
113287         * m4/stdarg.m4: New file, from GNU gettext.
113289 2006-05-08  Bruno Haible  <bruno@clisp.org>
113291         * config/srclist.txt (build-aux/config.rpath): different from latest
113292         release.
113294 2006-05-08  Bruno Haible  <bruno@clisp.org>
113296         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
113298 2006-05-05  Jim Meyering  <jim@meyering.net>
113300         * m4/warning.m4: New file, derived from bison's file by the same name.
113302 2006-05-03  Bruno Haible  <bruno@clisp.org>
113304         * lib/stdint_.h: Shorter URL.
113305         * lib/inttypes.h: Likewise.
113307 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
113309         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
113311 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
113313         * lib/verify.h: Document the internals better.  Most of this change
113314         was written by Bruno Haible.
113316 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
113318         * doc/verify.texi: New file, partly based on a proposal by
113319         Bruno Haible.
113321 2006-05-02  Bruno Haible  <bruno@clisp.org>
113323         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
113324         test from here...
113325         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
113327 2006-04-29  Bruno Haible  <bruno@clisp.org>
113329         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
113330         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
113332 2006-04-29  Bruno Haible  <bruno@clisp.org>
113334         * gnulib-tool: Make --update option actually work.
113336 2006-04-29  Bruno Haible  <bruno@clisp.org>
113338         * doc/gcd.texi: New file.
113339         * doc/gnulib.texi: Include it.
113341 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
113343         * lib/getdate.y (get_date): When adding relative date, start with the
113344         initial time, not with the result of the first mktime call.
113346 2006-04-25  Bruno Haible  <bruno@clisp.org>
113348         * gnulib-tool (func_import): Output the include directives in three
113349         blocks, sorted separately.
113350         Reported by Ben Pfaff <blp@cs.stanford.edu>.
113352 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
113354         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
113355         to define main with arguments, for C++.  Reported by Eric Blake.
113356         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
113357         Prefer 'int main ()' to 'int main (void)', for C++.
113358         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
113359         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
113360         for 'main', for C99 and C++.
113362 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
113364         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
113365         Don't assume that exit status -1 is valid.
113366         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
113367         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
113368         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
113369         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
113370         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
113371         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
113372         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
113373         functions can be used without declaring them, or that you can
113374         exit with status -1.
113375         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
113377 2006-04-24  Karl Berry  <karl@gnu.org>
113379         * config/srclist.txt (longdouble.m4): sync lost.
113381 2006-04-24  Eric Blake  <ebb9@byu.net>
113383         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
113385 2006-04-24  Bruno Haible  <bruno@clisp.org>
113387         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
113388         poll() implementation in AIX.
113389         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113391 2006-04-24  Bruno Haible  <bruno@clisp.org>
113393         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
113394         assigned exactly once.
113396 2006-04-23  Claudio Fontana  <claudio@gnu.org>
113397             Bruno Haible  <bruno@clisp.org>
113399         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
113400         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
113401         for AM_CPPFLAGS.
113403 2006-04-23  Bruno Haible  <bruno@clisp.org>
113405         * modules/copy-file: Depend on unistd.
113406         * modules/execute: Likewise.
113407         * modules/fatal-signal: Likewise.
113408         * modules/findprog: Likewise.
113409         * modules/mkdtemp : Likewise.
113410         * modules/pipe: Likewise.
113411         * modules/wait-process: Likewise.
113413 2006-04-23  Bruno Haible  <bruno@clisp.org>
113415         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
113416         condition was already detected.
113417         Reported by Ben Pfaff <blp@cs.stanford.edu>.
113419 2006-04-23  Bruno Haible  <bruno@clisp.org>
113421         * lib/copy-file.c: Include <unistd.h> unconditionally.
113422         * lib/execute.c: Likewise.
113423         * lib/fatal-signal.c: Likewise.
113424         * lib/findprog.c: Likewise.
113425         * lib/mkdtemp.c: Likewise.
113426         * lib/pipe.h: Likewise.
113427         * lib/pipe.c: Likewise.
113428         * lib/wait-process.h: Likewise.
113430 2006-04-23  Bruno Haible  <bruno@clisp.org>
113432         * gnulib-tool (func_usage): Fix --import description. Document
113433         --update.
113434         (func_import): Create temporary file in a temporary directory, if
113435         --dry-run is specified. Silence errors from 'grep' when there are no
113436         m4 files in $m4dir.
113437         (func_create_testdir): Silence errors from 'grep' when there are no
113438         m4 files in $m4dir.
113439         Reported by Karl Berry <karl@freefriends.org>.
113441 2006-04-20  Bruno Haible  <bruno@clisp.org>
113443         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
113444         one argument, so that the code will be portable to Autoconf 2.60.
113445         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
113446         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
113447         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
113449 2006-04-19  Derek Price  <derek@ximbiot.com>
113450             Eric Blake  <ebb9@byu.net>
113452         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
113453         rather than "/full/path.h".  Update comment to match.  Shorten &
113454         generalize m4_translit call via AS_TR_CPP.
113456 2006-04-19  Derek Price  <derek@ximbiot.com>
113457             Eric Blake  <ebb9@byu.net>
113459         * lib/inttypes.h: Correct grammar in comment.
113461 2006-04-18  Derek Price  <derek@ximbiot.com>
113462             Paul Eggert  <eggert@cs.ucla.edu>
113464         * modules/inttypes: New file.
113465         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
113467 2006-04-18  Derek Price  <derek@ximbiot.com>
113468             Paul Eggert  <eggert@cs.ucla.edu>
113470         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
113471         New files.
113473 2006-04-18  Derek Price  <derek@ximbiot.com>
113474             Paul Eggert  <eggert@cs.ucla.edu>
113476         * lib/inttypes.h: New file.
113477         * lib/strtoimax.c: Assume <inttypes.h>.
113479 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
113481         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
113482         isn't mounted.  Problem reported by Kir Kolyshkin.
113484 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
113486         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
113487         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
113488         Derek R. Price.
113489         * lib/regex.h (RE_DUP_MAX): Update comment to match current
113490         implementation.
113492 2006-04-12  Eric Blake  <ebb9@byu.net>
113494         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
113495         is now done automatically by the corresponding Autoconf macro.
113497 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
113499         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
113500         time_r.h.
113502 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
113504         Merge regex changes from libc, removing some of our
113505         POSIX-conformance changes that were rejected and redoing them in a
113506         less-intrusive way.
113508         * lib/regcomp.c (re_compile_internal, init_dfa):
113509         Length arg is now size_t, not Idx.  All uses changed.
113510         (peek_token): Forward decl now says internal_function.
113511         (__re_error_msgid, __re_error_msgid_idx):
113512         Now static rather than extern with attribute_hidden.
113513         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
113514         For some reason libc prefers K&R style defns for external functions.
113515         (regerror) [!defined _LIBC]: Likewise.
113516         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
113517         (seek_collating_symbol_entry, lookup_collation_sequence_value):
113518         (build_range_exp, build_collating_symbol):
113519         Use K&R-style defn.
113520         (re_compile_fastmap): Use '\0' to memset, not 0.
113521         (utf8_sb_map): Make the calculations more obvious.
113522         (init_dfa, parse_bracket_exp, build_charclass_op):
113523         Call calloc and cast result, as glibc does.
113524         (init_word_char, fetch_token, peek_token, peek_token_bracket):
113525         (build_range_exp, build_collating_symbol):
113526         Now internal functions.
113528         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
113530         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
113531         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
113532         Don't depend on VMS; depend on __VMS instead, for POSIX
113533         namespace cleanness.
113534         (regoff_t): Define to ssize_t, not long int.
113536         Remove the REG_ macros named below.  Instead, make the old names
113537         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
113538         __USE_GNU_REGEX.
113539         (REG_BACKSLASH_ESCAPE_IN_LISTS):
113540         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
113541         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
113542         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
113543         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
113544         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
113545         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
113546         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
113547         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
113548         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
113549         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
113550         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
113551         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
113552         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
113553         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
113554         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
113555         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
113556         (REG_NREGS):
113557         Remove.  All uses replaced by the old RE_* names.
113558         (RE_BACKSLASH_ESCAPE_IN_LISTS):
113559         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
113560         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
113561         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
113562         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
113563         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
113564         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
113565         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
113566         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
113567         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
113568         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
113569         Don't bother having these macros be independent of each others'
113570         values, since they no longer exist in the POSIX name space.
113572         Rename the following member names back to their old names,
113573         unless !__USE_GNU_REGEX.  All uses changed back.
113574         (buffer): Renamed from re_buffer.
113575         (allocated): Renamed from re_allocated.
113576         (used): Renamed from re_used.
113577         (syntax): Renamed from re_syntax.
113578         (fastmap): Renamed from re_fastmap.
113579         (translate): Renamed from re_translate.
113580         (can_be_null): Renamed from re_can_be_null.
113581         (regs_allocated): Renamed from re_regs_allocated.
113582         (fastmap_accurate): Renamed from re_fastmap_accurate.
113583         (no_sub): Renamed from re_no_sub.
113584         (not_bol): Renamed from re_not_bol.
113585         (not_eol): Renamed from re_not_eol.
113586         (newline_anchor): Renamed from re_newline_anchor.
113587         (num_regs): Renamed from rm_num_regs.
113588         (start): Renamed from rm_start.
113589         (end): Renamed from rm_end.
113591         (free_state): Move up a bit.
113593         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
113594         #define to be empty.
113595         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
113596         when that is what is intended.
113597         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
113598         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
113599         (MAX): New macro.
113600         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
113601         All uses changed back to re_malloc, etc.  It's now the caller's
113602         responsibility to check for overflow; all callers changed.
113603         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
113604         (re_x2nrealloc): Remove.
113605         (free_state): Remove decl.
113607         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
113608         (re_set_registers, re_exec):
113609         Use K&R-style defn.
113611         2006-01-31  Roland McGrath  <roland@redhat.com>
113613         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
113614         Reported by Mike Frysinger <vapier@gentoo.org>.
113616         2006-01-15  Andreas Jaeger  <aj@suse.de>
113618         [BZ #1950]
113619         * lib/regex_internal.c (re_string_reconstruct): Adjust for
113620         build_wcs_upper_buffer change.
113621         (build_wcs_upper_buffer): Change return type.
113623         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
113625         * lib/regex_internal.h: Include <stdint.h> if available.
113627         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
113629         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
113631         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
113633         * lib/regcomp.c: Adjust for changed secondary hash function.
113635         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
113637         * lib/regex.h: Pretty printing.
113638         Clean up namespace a bit.
113640         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
113642         * lib/regexec.c (update_cur_sifted_state, check_arrival,
113643         check_arrival_add_next_nodes): Avoid using uninitialized variable.
113645         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
113646                     Ulrich Drepper  <drepper@redhat.com>
113648         [BZ #1302]
113649         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
113650         changed.
113651         (bitset_word_t): Renamed from bitset_word.  All uses changed.
113653         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
113655         [BZ #281]
113656         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
113657         * lib/regcomp.c: Remove unnecessary uses of
113658         unsigned RE_TRANSLATE_TYPE.
113659         * lib/regex_internal.h: Likewise.
113660         * lib/regex_internal.c: Likewise.
113661         * lib/regexec.c: Likewise.
113662         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
113664         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
113666         * lib/regexec.c (find_recover_state): Remove unnecessary
113667         initialization.
113668         (transit_state_bkref): Make DFA a const pointer.
113669         (get_subexp): Likewise.
113670         (check_arrival): Likewise.
113671         (update_cur_sifted_state): Likewise.
113672         (re_search_internal): Likewise.
113673         (prune_impossible_nodes): Likewise.
113674         (acquire_init_state_context): Likewise.
113675         (proceed_next_node): Likewise.
113676         (set_regs): Likewise.
113677         (free_fail_stack_return): Likewise.
113678         (check_arrival_expand_ecl): Mark DFA parameter as const.
113679         (check_arrival_expand_ecl_sub): Likewise.
113680         (check_subexp_limits): Likewise.
113681         (sub_epsilon_src_nodes):  Likewise.
113682         (add_epsilon_src_nodes):  Likewise.
113683         (merge_state_array): Likewise.
113684         (update_regs): Likewise.
113685         (build_trtable): Likewise.
113686         (sift_states_backward): Mark MCTX parameter as const.
113687         (build_sifted_states): Likewise.
113688         (update_cur_sifted_state): Likewise.
113689         (sift_states_mkref): Likewise.
113690         (check_arrival_expand_ecl): Mark eclosure as const.
113691         (check_dst_limits_calc_pos_1): Likewise.
113692         * lib/regex_internal.h (re_match_context_t): Make dfa a const
113693         pointer.
113695         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
113697         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
113698         (transit_state_sb): Likewise.
113699         (transit_state_mb): Likewise.
113700         (sift_states_iter_mb): Likewise.
113701         (check_arrival_add_next_nodes): Likewise.
113702         (check_node_accept_bytes): Change first parameter to pointer-to-const.
113703         [_LIBC] (re_search_2_stub): Use mempcpy.
113705         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
113706         mbrtowc for very simple UTF-8 case.
113708         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
113709         a pointer-to-const.
113710         (re_acquire_state_context): Likewise.
113711         * lib/regex_internal.h: Adjust prototypes.
113713         * lib/regex.c: Prevent using C++ compilers.
113715         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
113716         (re_acquire_state_context): Likewise.
113718 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
113720         * modules/regex (Depends-on): Add ssize_t.
113722 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
113724         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
113725         translation table.
113727 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
113729         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
113731 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
113732             Bruno Haible  <bruno@clisp.org>
113734         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
113735         <sys/types.h> and <inttypes.h>.
113737 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113739         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
113740         `__error_t_defined', so argp.h will not typedef the former.
113742 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
113744         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
113745         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
113746         glibc names.  Even if glibc is changed to conform to POSIX, the
113747         traditional names will be available anyway, since regex depends on
113748         the extensions module.  Also, fix a longstanding typo in the
113749         implementation of Spencer ERE test #75 from grep 2.3.  Problems
113750         reported by Emanuele Giaquinta.  Also, change sense of cached
113751         variable, so that the message makes sense.
113753 2006-03-24  Simon Josefsson  <jas@extundo.com>
113755         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
113756         including some doc fixes.
113757         (base64_encode_alloc): Fix +1 bug on allocation failures.
113759 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113761         * lib/base64.c (base64_encode): Do not read past end of array with
113762         unsanitized input on systems with CHAR_BIT > 8.
113764 2006-03-24  Eric Blake  <ebb9@byu.net>
113766         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
113768 2006-03-22  Karl Berry  <karl@gnu.org>
113770         * config/srclist.txt (*setenv.[ch]): get from coreutils.
113771         * config/srclistvars.sh (COREUTILS): new var.
113773 2006-03-17  Jim Meyering  <jim@meyering.net>
113775         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
113776         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
113778 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
113780         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
113781         no longer needs it.  Instead, check that regoff_t is as least
113782         as wide as ptrdiff_t.
113784         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
113785         so that our regex.h stays compatible with the installed regex.
113786         This is helpful for installers who configure --without-included-regex.
113787         Problem reported by Emanuele Giaquinta.
113789 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
113791         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
113792         Typedef to long int, not to off_, as POSIX will likely change
113793         in that direction.
113795 2006-03-15  Eric Blake  <ebb9@byu.net>
113797         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
113799 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
113801         * lib/argp-help.c (validate_uparams): Fix typo
113802         * lib/argp-parse.c (argp_default_options): Consistently begin help
113803         messages with a lowercase letter.
113805 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
113807         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
113808         overrun buffers and shouldn't be used (much as gets shouldn't be
113809         used).
113810         * lib/time_r.c (asctime_r, ctime_r): Likewise.
113812 2006-03-08  Simon Josefsson  <jas@extundo.com>
113814         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
113815         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113817 2006-03-08  Simon Josefsson  <jas@extundo.com>
113819         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
113820         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113822 2006-03-08  Simon Josefsson  <jas@extundo.com>
113824         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
113825         signal that configure disabled the device.
113827 2006-03-08  Simon Josefsson  <jas@extundo.com>
113829         * build-aux/maint.mk: Fix refresh-po, to handle no translated
113830         languages.
113832 2006-03-07  Simon Josefsson  <jas@extundo.com>
113834         * modules/getopt (Depends-on): Add unistd.
113836         * modules/unistd: New file.
113838 2006-03-07  Simon Josefsson  <jas@extundo.com>
113840         * modules/gc-random: New file.
113842 2006-03-07  Simon Josefsson  <jas@extundo.com>
113844         * m4/unistd_h.m4: New file.
113846 2006-03-07  Simon Josefsson  <jas@extundo.com>
113848         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
113849         test to be side-effect free by storing the result in the cache
113850         variable gl_cv_lib_readline, and moving the assignment of
113851         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
113852         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113854 2006-03-07  Simon Josefsson  <jas@extundo.com>
113856         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
113857         error on missing devices (the functions will return an error).
113859         * m4/gc.m4: Move random stuff to gc-random.m4
113861 2006-03-07  Simon Josefsson  <jas@extundo.com>
113863         * lib/unistd_.h: New file.
113865 2006-03-07  Simon Josefsson  <jas@extundo.com>
113867         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
113869 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
113871         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
113872         Problem reported by Juan Manuel Guerrero.
113874 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
113876         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
113877         the unistd module.
113878         * lib/getlogin_r.c: Likewise.
113879         * lib/getlogin_r.h: Likewise.
113880         * lib/glob.c: Likewise.
113881         * lib/pagealign_alloc.c: Likewise.
113882         * lib/unistd_.h: Remove; no longer needed.
113884 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
113886         * MODULES.html.sh (Support for systems lacking POSIX:2001):
113887         Add unistd.
113888         * modules/c-stack (Depends-on): Add unistd.
113889         * modules/getlogin_r: Likewise.
113890         * modules/glob: Likewise.
113891         * modules/pagealign_alloc: Likewise.
113892         * modules/unistd (Files): Remove lib/unistd_.h.
113893         (EXTRA_DIST): Remove.
113894         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
113895         need unistd_.h.
113896         (MOSTLYCLEANFILES): Remove unistd.h-t.
113898 2006-03-03  Simon Josefsson  <jas@extundo.com>
113900         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
113902 2006-03-03  Simon Josefsson  <jas@extundo.com>
113904         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
113905         libidn and bison.
113907 2006-03-03  Simon Josefsson  <jas@extundo.com>
113909         * build-aux/maint.mk: Add indent target.
113911 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
113913         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
113914         our replacement poll.h in any case, to avoid a differing
113915         declaration from a system header.  Seen on AIX.
113917 2006-03-01  Simon Josefsson  <jas@extundo.com>
113919         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
113920         <kasal@ucw.cz>.
113922 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
113924         * modules/gettime (Depends-on): Add extensions module.
113925         * modules/nanosleep (Depends-on): Likewise.
113926         * modules/settime (Depends-on): Likewise.
113928 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
113930         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
113931         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
113932         pedantically.
113933         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
113934         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
113936         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
113937         not "==".  Reported by Ralf Wildenhues.
113939 2006-03-01  Karl Berry  <karl@gnu.org>
113941         * doc/Copyright/request-*: new files, synced from gnuorg.
113943 2006-03-01  Karl Berry  <karl@gnu.org>
113945         * config/srclist.txt (Copyright/*): new entries.
113947 2006-02-28  Simon Josefsson  <jas@extundo.com>
113949         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
113951 2006-02-27  Simon Josefsson  <jas@extundo.com>
113953         * lib/base64.h: Indent #define's.  From Jim Meyering
113954         <jim@meyering.net>.
113956 2006-02-27  Jim Meyering  <jim@meyering.net>
113958         Revert the change of 2006-02-24, so these files can continue
113959         to be sync'd from gettext.
113960         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
113961         of `config.h'.
113963 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
113965         * modules/intprops: New file.
113966         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
113967         Add intprops.
113968         * modules/getloadavg (Files): Remove lib/intprops.h.
113969         (Depends-on): Add intprops.
113970         * modules/human: Likewise.
113971         * modules/inttostr: Likewise.
113972         * modules/openat: Likewise.
113973         * modules/sig2str: Likewise.
113974         * modules/userspec: Likewise.
113975         * modules/utimecmp: Likewise.
113976         * modules/xnanosleep: Likewise.
113977         * modules/xstrtol: Likewise.
113979 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
113981         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
113982         * modules/lock-tests (TESTS): Use $(EXEEXT).
113983         * modules/tls-tests: Likewise.
113984         * modules/argp-tests: Likewise.
113985         (check_PROGRAMS): New var, replacing...
113986         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
113988 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113990         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
113991         `config.h'.
113993 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
113995         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
113997 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113999         Sync from coreutils.
114000         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
114001         gl_CHDIR_SAFER.
114003 2006-02-22  Jim Meyering  <jim@meyering.net>
114005         Sync from coreutils.
114006         * m4/chdir-safer.m4: New file.
114008 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
114010         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
114011         AT_FDCWD exceeds INT_MAX.
114012         * lib/openat.h (AT_FDCWD): Likewise.
114014 2006-02-17  Eric Blake  <address@hidden>
114016         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
114018 2006-02-16  Simon Josefsson  <jas@extundo.com>
114020         * modules/getaddrinfo (Depends-on): Add sys_socket.
114022 2006-02-15  Simon Josefsson  <jas@extundo.com>
114024         * build-aux/maint.mk: Add dsyntax-check rule.
114026 2006-02-15  Eric Blake  <ebb9@byu.net>
114028         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
114029         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
114030         'present but cannot compile' warnings on cygwin.
114031         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
114032         use ws2tcpip.h if sys/socket.h works.
114033         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
114034         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
114036 2006-02-14  Simon Josefsson  <jas@extundo.com>
114038         * modules/maintainer-makefile (Files): Rename.
114040         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
114041         and (the local) Makefile.cfg to maint-cfg.mk.
114043         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
114044         to the latter.
114046         * modules/maintainer-makefile: New module.
114048         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
114049         severaly stripped to make it possible to build it up from scratch
114050         with reliable tests.
114052         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
114053         fixes to permit overriding the default actions when configure and
114054         makefile are not available.
114056 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
114058         Sync from coreutils.
114059         * modules/lstat (Depends-on): Don't depend on xalloc.
114060         (License): Change from GPL to LGPL, since this is now simply a
114061         replacement for a libc function.
114063 2006-02-14  Jim Meyering  <jim@meyering.net>
114065         Sync from coreutils.
114067         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
114068         failure on deficient systems, and simplify gnulib lgpl dependencies.
114069         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
114070         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
114072         * lib/xalloc-die.c: Remove unused definition of N_.
114074 2006-02-14  Jim Meyering  <jim@meyering.net>
114076         Sync from coreutils.
114077         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
114078         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
114079         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
114080         double-quote uses of that variable, to accommodate the rare case in
114081         which getmntent is available in none of the libraries checked.  This
114082         happens at least on FreeBSD 5.0.
114084 2006-02-13  Simon Josefsson  <jas@extundo.com>
114086         * gnulib-tool (Usage): Fix --import, from
114087         karl@freefriends.org (Karl Berry).
114089 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
114091         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
114093 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
114095         * lib/argp-namefrob.h: Restore changes accidentally lost during the
114096         "autoupdate" on 2005-12-12.
114098 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
114100         * modules/closeout (Depends-on): Remove atexit.
114102 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
114104         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
114105         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
114107 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
114109         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
114110         __EXTENSIONS__ if this causes compilation to fail.  Problem
114111         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
114112         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
114114 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
114116         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
114117         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
114118         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
114119         All uses changed.
114121 2006-01-26  Simon Josefsson  <jas@extundo.com>
114123         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
114124         prototype is visible on mingw32.
114126         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
114127         for mingw32.
114129         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
114130         mingw32).
114132 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
114134         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
114135         attempt to open for write; this always fails, at least on POSIX
114136         hosts.  This reinstates the 2006-01-09 change, which was
114137         inadvertently removed.
114139 2006-01-26  Bruno Haible  <bruno@clisp.org>
114141         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
114142         Reported by Paul Eggert.
114144 2006-01-26  Bruno Haible  <bruno@clisp.org>
114145             Paul Eggert  <eggert@cs.ucla.edu>
114147         * lib/stdbool_.h (_Bool)
114148         [(! (defined __cplusplus || defined __BEOS__)
114149           && !defined __GNUC__
114150           && !(defined __HP_cc || defined __xlc__
114151                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
114152                || defined __sgi))]:
114153         #define to signed char in these cases too; this simplifies
114154         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
114155         etc., separately) and makes it more conservative.
114157 2006-01-25  Simon Josefsson  <jas@extundo.com>
114159         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
114160         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
114161         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
114163 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
114165         * lib/argp-namefrob.h: Bugfix. Remove stray #
114167 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
114169         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
114170         so that we test the test.
114171         Check for yet another HP-UX cc bug involving *bool |= bool.
114173 2006-01-25  Karl Berry  <karl@gnu.org>
114175         * config/srclist.txt (vasnprintf.c): sync lost.
114177 2006-01-25  Jim Meyering  <jim@meyering.net>
114179         Sync from the stable (b5) branch of coreutils:
114181         * lib/fts.c (fts_children): Don't let close() clobber errno from
114182         failed fchdir().
114184         * lib/fts.c (fts_stat): When following a symlink-to-directory,
114185         don't necessarily interpret stat-fails+lstat-succeeds as indicating
114186         a dangling symlink.  That can also happen at least for ELOOP.
114187         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
114188         FYI, this bug predates the inclusion of fts.c in coreutils.
114190         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
114191         in their own block, so pre-c99 compilers don't object.
114193         Avoid the double-free (first in fts_read, second in fts_close) that
114194         would occur when an `active' directory is made inaccessible (e.g.,
114195         via chmod a-x) during a traversal.
114196         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
114197         before returning.  Reproduce this failure by
114198         mkdir -p a/b; cd a; chmod a-x . b
114199         Reported by Stavros Passas.
114201 2006-01-25  Jim Meyering  <jim@meyering.net>
114203         * lib/fileblocks.c: Remove more useless parentheses.
114204         * lib/readutmp.h: Likewise.
114206 2006-01-25  Bruno Haible  <bruno@clisp.org>
114208         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
114209         warnings.
114210         Reported by Paul Eggert.
114212 2006-01-25  Bruno Haible  <bruno@clisp.org>
114214         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
114215         rid of a trap command. For Solaris sh.
114216         Reported by Mark D. Baushke <mdb@gnu.org>.
114218 2006-01-24  Simon Josefsson  <jas@extundo.com>
114220         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
114221         Bruno.
114223 2006-01-24  Karl Berry  <karl@gnu.org>
114225         * config/srclist.txt (argp-namefrob.h): sync lost.
114227 2006-01-24  Jim Meyering  <jim@meyering.net>
114229         * modules/openat (Files): Add lib/intprops.h.
114230         From Mark D. Baushke.
114232 2006-01-24  Jim Meyering  <jim@meyering.net>
114234         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
114235         Reported by Mark D. Baushke.
114237 2006-01-24  Jim Meyering  <jim@meyering.net>
114239         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
114241 2006-01-24  Bruno Haible  <bruno@clisp.org>
114243         * modules/strnlen (Maintainer): Change from glibc to all.
114245 2006-01-24  Bruno Haible  <bruno@clisp.org>
114247         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
114248         Patch by Paul Eggert.
114250 2006-01-24  Bruno Haible  <bruno@clisp.org>
114252         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
114253         already has it.
114254         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
114255         2005-11-26.
114257         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
114258         'signed char' to avoid problems with the built-in _Bool type.
114259         Reported by Paul Eggert on 2005-11-26.
114261 2006-01-24  Bruno Haible  <bruno@clisp.org>
114263         * gnulib-tool (func_import): Avoid constructing complicated sed
114264         expressions inside backquote.
114265         Report and solution by Mark D. Baushke <mdb@gnu.org>.
114267 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
114269         These changes imported from libc.
114270         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
114271         test and two separate function calls.
114272         * lib/strndup.c (__strndup): Add libc_hidden_def.
114274 2006-01-23  Simon Josefsson  <jas@extundo.com>
114276         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
114277         Remove the test_*_SOURCES variable: automake infers it by default.
114278         * modules/tls-tests: Likewise.
114280 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
114282         Work around porting bugs reported by Dieter in
114283         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
114284         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
114285         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
114286         Include "getopt.h" first, to check interface.
114287         (getenv): Declare only if defined HAVE_DECL_GETENV &&
114288         !HAVE_DECL_GETENV.
114289         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
114290         (__strndup): Revert to K&R-style function dfns, the glibc style.
114291         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
114292         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
114293         Include strnlen.h first, to get prototype properly.
114294         (strnlen): Renamed from __strnlen.
114295         Remove weak alias.
114297 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
114299         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
114301 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
114303         * config/srclist.txt: Adjust to reflect glibc reorganization.
114304         This affects only comments.
114306 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
114308          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
114309          Reported by Bruce Korb <bkorb@gnu.org>.
114311 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
114313         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
114314         to pacify gcc -Wswitch-default.
114316 2006-01-22  Bruno Haible  <bruno@clisp.org>
114318         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
114319         temporary buffer for sprintf, take into account the precision also
114320         for 'd', 'i', 'u', 'o', 'x', 'X'.
114322 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
114324         * modules/argp-tests: New module
114325         * tests/test-argp.c: New file
114326         * tests/test-argp-2.sh: New file
114328 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
114330         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
114331         (__argp_base_name): Removed
114332         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
114333         typo.
114334         (__argp_base_name): Provide macro definition or extern declaration
114335         depending on the configuration
114337 2006-01-20  Simon Josefsson  <jas@extundo.com>
114339         * modules/inet_ntop (Depends-on): Depend on sys_socket.
114341 2006-01-20  Simon Josefsson  <jas@extundo.com>
114343         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
114345 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
114347         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
114348         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
114349         Suggested by Bruno Haible.
114351 2006-01-20  Karl Berry  <karl@gnu.org>
114353         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
114354         until changes propagate, I guess.
114356 2006-01-19  Simon Josefsson  <jas@extundo.com>
114358         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
114360 2006-01-19  Simon Josefsson  <jas@extundo.com>
114362         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
114364 2006-01-19  Simon Josefsson  <jas@extundo.com>
114366         * gnulib-tool: Set check_PROGRAMS.
114368         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
114369         modules/des-tests, modules/gc-arcfour-tests,
114370         modules/gc-arctwo-tests, modules/gc-des-tests,
114371         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
114372         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
114373         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
114374         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
114375         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
114376         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
114377         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
114378         test_*_SOURCES.
114380 2006-01-18  Simon Josefsson  <jas@extundo.com>
114382         * modules/socklen (Depends-on): Depend on sys_socket.
114384 2006-01-18  Simon Josefsson  <jas@extundo.com>
114386         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
114387         modules/des-tests, modules/gc-arcfour-tests,
114388         modules/gc-arctwo-tests, modules/gc-des-tests,
114389         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
114390         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
114391         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
114392         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
114393         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
114394         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
114395         $(EXEEXT) to automake TESTS variable, for mingw32.
114397 2006-01-17  Simon Josefsson  <jas@extundo.com>
114399         * modules/socklen (Include): Need sys/socket.h.
114401 2006-01-17  Bruno Haible  <bruno@clisp.org>
114403         * modules/ssize_t (Include): Add <sys/types.h>.
114405 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
114407         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
114408         it's not portable and it doesn't work with cross-compiles.
114409         Problem reported by Bruno Haible.  Fix missing-$ typo in
114410         'test "gl_cv_ignore_unused_libraries" ...' that prevented
114411         -zignore from being used with Sun's C compiler.
114413 2006-01-12  Simon Josefsson  <jas@extundo.com>
114415         * lib/base64.c: Fix warning, reported by Bruno Haible
114416         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
114418 2006-01-12  Bruno Haible  <bruno@clisp.org>
114420         * modules/ldd: New file.
114421         * build-aux/ldd.sh.in: New file.
114422         * MODULES.html.sh (Support for building libraries and executables): Add
114423         ldd.
114425 2006-01-12  Bruno Haible  <bruno@clisp.org>
114427         * m4/ldd.m4: New file.
114429 2006-01-12  Bruno Haible  <bruno@clisp.org>
114431         * gnulib-tool (func_import, func_create_testdir): Don't go into an
114432         endless loop while replacing $auxdir with build-aux.
114434 2006-01-11  Simon Josefsson  <jas@extundo.com>
114436         * lib/stdint_.h (SIZE_MAX): Add missing (.
114438 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
114440         Sync from coreutils.
114441         * lib/md5.c: Fix commentary typos.
114442         (alignof, UNALIGNED_P): No need for a GCC-specific version.
114443         * lib/md5.h (__attribute__): Remove; unused.
114444         * lib/sha1.c: Fix commentary to match md5 better.
114445         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
114446         so that we don't need to worry about alignment.  All uses changed.
114447         This merges the 2005-10-28 md5 change into sha1.
114449 2006-01-11  Jim Meyering  <jim@meyering.net>
114451         Sync from coreutils.
114452         * lib/md5.c (OP): Fix spacing.
114454 2006-01-11  Bruno Haible  <bruno@clisp.org>
114456         Ensure automatic ordering between gl_LOCK and gl_ARGP.
114457         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
114458         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
114460 2006-01-11  Bruno Haible  <bruno@clisp.org>
114462         Ensure automatic ordering between gl_LOCK and gl_ARGP.
114463         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
114464         the "early" section as well.
114466 2006-01-11  Bruno Haible  <bruno@clisp.org>
114468         Avoid "ar: no archive members specified" error on MacOS X.
114469         * gnulib-tool (func_modules_add_dummy): New function.
114470         (func_import, func_create_testdir): Invoke it.
114472 2006-01-11  Bruno Haible  <bruno@clisp.org>
114474         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
114475         with $auxdir in AC_CONFIG_FILES statements.
114477 2006-01-11  Bruno Haible  <bruno@clisp.org>
114479         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
114480         Initialize also noinst_HEADERS to empty.
114482 2006-01-11  Bruno Haible  <bruno@clisp.org>
114484         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
114485         variables.
114486         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
114487         autoreconf.
114489 2006-01-11  Bruno Haible  <bruno@clisp.org>
114491         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
114492         overridable by the user.
114493         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
114495 2006-01-10  Simon Josefsson  <jas@extundo.com>
114497         * modules/sys_socket: New file.
114499 2006-01-10  Simon Josefsson  <jas@extundo.com>
114501         * m4/sys_socket_h.m4: New file.
114503 2006-01-10  Simon Josefsson  <jas@extundo.com>
114505         * lib/socket_.h: New file.
114507 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
114509         * modules/readutmp (Maintainer): Add myself.
114511 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
114513         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
114514         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
114515         People who are still concerned with buggy memcmp implementations
114516         can invoke gl_FUNC_MEMCMP themselves.
114518 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
114520         * lib/regex_internal.h (BITSET_WORD_BITS):
114521         Work around a bug in 64-bit PGC (before version 6.1-2), where the
114522         preprocessor mishandles large unsigned values as if they were signed.
114523         Problem reported by Claudio Fontana in
114524         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
114526 2006-01-10  Jim Meyering  <jim@meyering.net>
114528         Avoid the double-free (first in fts_read, second in fts_close) that
114529         would occur when an `active' directory is made inaccessible (e.g.,
114530         via chmod a-x) during a traversal.
114531         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
114532         before returning.  Reproduce this failure by
114533         mkdir -p a/b; cd a; chmod a-x . b
114534         Reported by Stavros Passas.
114536         Sync from coreutils.
114537         * lib/sha1.c: Tweak grammar in a comment.
114539 2006-01-10  Jim Meyering  <jim@meyering.net>
114541         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
114542         Patch by Joerg Sonnenberger.
114544 2006-01-10  Bruno Haible  <bruno@clisp.org>
114546         * modules/readutmp: Depend on module free.
114547         * modules/strtok_r: Depend on module restrict.
114549 2006-01-10  Bruno Haible  <bruno@clisp.org>
114551         * modules/gettext (configure.ac): Add an invocation of
114552         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
114554 2006-01-10  Bruno Haible  <bruno@clisp.org>
114556         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
114557         Reported by Werner Lemberg <wl@gnu.org>.
114559 2006-01-10  Bruno Haible  <bruno@clisp.org>
114561         * lib/localcharset.c: Update from GNU gettext.
114563 2006-01-10  Bruno Haible  <bruno@clisp.org>
114565         * lib/argp.h (__const): Remove macro. Use const instead.
114566         * lib/argp-fmtstream.h (__const): Likewise.
114567         * lib/glob_.h (__const): Remove macro.
114568         * lib/glob-libc.h: Use const instead of __const.
114570 2006-01-10  Bruno Haible  <bruno@clisp.org>
114572         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
114573         variable.
114574         Needed to avoid an automake error regarding the 'gettext' module.
114576 2006-01-09  Simon Josefsson  <jas@extundo.com>
114578         * modules/inet_ntop (Depends-on): Add restrict.
114580 2006-01-09  Simon Josefsson  <jas@extundo.com>
114582         * modules/gc-rijndael-tests (License): Put under LGPL.
114584         * modules/gc-des-tests (License): Likewise.
114586         * modules/gc-arcfour-tests (License): Likewise.
114588         * modules/gc-arctwo-tests (License): Likewise.
114590         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
114592         * modules/gc-hmac-sha1-tests (Files): Likewise.
114594         * modules/gc-hmac-md5-tests (License): Likewise.
114596         * modules/gc-sha1-tests (License): Likewise.
114598         * modules/gc-md5-tests (License): Likewise.
114600         * modules/gc-md4-tests (License): Likewise.
114602         * modules/gc-md2-tests (License): Likewise.
114604         * modules/gc-tests (License): Likewise.
114606         * modules/des-tests (License): Likewise.
114608         * modules/md4-tests (License): Likewise.
114610         * modules/md2-tests (License): Likewise.
114612 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
114614         Sync from coreutils:
114616         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
114617         * modules/lib-ignore: New file.
114618         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
114619         chdir-safer.m4, lchmod.m4.
114620         * modules/openat: Add mkdirat.c, openat-priv.h.
114622 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
114624         Sync from coreutils.
114625         * m4/lib-ignore.m4: New file.
114626         * m4/lchmod.m4: New file.
114628 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
114630         Sync from coreutils.
114631         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
114632         for write access: POSIX says that must fail.
114633         * lib/fts.c (diropen): Likewise.
114634         * lib/save-cwd.c (save_cwd): Likewise.
114635         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
114636         well, for minor improvements on hosts that lack O_DIRECTORY.
114637         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
114638         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
114639         Fall back on chown if open failed with EACCES.
114641         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
114642         Report an error at compile-time if only a 1-second nominal clock
114643         resolution is found.
114645         * lib/lchmod.h: New file.
114646         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
114647         (make_dir_parents): Use lchown rather than chown, and
114648         lchmod rather than chmod.
114650         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
114651         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
114652         "proc" reported by n0dalus.
114654         * lib/mountlist.c: Include <limits.h>.
114655         (dev_from_mount_options)
114656         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
114657         New function.  It no longer assumes "dev=" has the System V meaning
114658         on Linux (since it doesn't).  It also parses "dev=" more carefully.
114659         (read_file_system_list)
114660         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
114661         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
114662         dev= in that case.
114664         * lib/posixtm.h (PDS_PRE_2000): New macro.
114665         * lib/posixtm.c (year): Arg is now syntax_bits rather than
114666         allow_century.  All usages changed.  Reject dates outside the range
114667         1969-1999 if PDS_PRE_2000 is used.
114669 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
114671         Sync from coreutils.
114672         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
114673         (Time of day items): Mention the possibility of leap seconds.
114674         Problem reported by Dr. David Alan Gilbert.
114676 2006-01-09  Jim Meyering  <jim@meyering.net>
114678         Sync from coreutils.
114680         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
114682         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
114684         * lib/modechange.c (mode_compile): Reject an invalid mode string
114685         that starts with an octal digit.  From Andreas Gruenbacher.
114687         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
114688         and dup to open_safer and dup_safer, respectively.
114689         (openat_permissive): Fix typo in comment.
114691         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
114692         "gettext.h"; either no longer needed or are guaranteed by openat.h.
114693         (_): Remove; no longer needed.
114694         (openat): Renamed from rpl_openat; no need for rpl_openat
114695         since openat.h renames openat for us.
114696         Replace most of the body with a call to openat_permissive,
114697         to avoid duplicate code.
114698         Port to (probably hypothetical) environments were mode_t is
114699         wider than int.
114700         (openat_permissive): Require mode arg, so that we can check
114701         types better.  Put it just after flags.  Change cwd failure
114702         indicator from pointer-to-bool to pointer-to-errno-value.
114703         All callers changed.
114704         Invoke openat_save_fail and/or openat_restore_fail if
114705         cwd_errno is null, so that openat can call us.
114706         (openat_permissive, fdopendir, fstatat, unlinkat):
114707         Simplify errno handling to avoid some duplicate code,
114708         as it's OK to set errno on success.
114709         * lib/openat.h: Revamp code so that function macros depend on
114710         __OPENAT_PREFIX only, not also on AT_FDCWD.
114711         (openat_ro): Remove.  Caller changed to use openat_permissive.
114712         (openat_permissive): Now a macro, if not a function.
114713         (openat_restore_fail, openat_save_fail): Now always functions,
114714         since mkdirat needs them even if __OPENAT_PREFIX is defined.
114716         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
114717         and openat.c.
114718         * lib/mkdirat.c: Include openat-priv.h.
114719         Remove definitions of macros defined therein.
114720         * lib/openat.c: Likewise.
114722         * lib/mkdirat.c (mkdirat): New file and function.
114723         * lib/openat.h (mkdirat): Declare.
114725         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
114727         * lib/openat.h (openat_permissive): Declare.
114728         (openat_ro): Define.
114730         * lib/openat.c (EXPECTED_ERRNO): New macro.
114731         (openat_permissive): New function -- used in remove.c rewrite.
114732         (all functions): Set errno just before returning, only if there
114733         was an actual failure.
114734         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
114736         Emulate openat-family functions using Linux's procfs, if possible.
114737         Idea and some code based on Ulrich Drepper's glibc changes.
114739         * lib/openat.c: (BUILD_PROC_NAME): New macro.
114740         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
114741         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
114742         before falling back on save_cwd and restore_cwd.
114743         (fdopendir, fstatat, unlinkat): Likewise.
114745         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
114746         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
114748         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
114749         as second argument to va_arg.  Otherwise, some versions of gcc
114750         warn that `if this code is reached, the program will abort'.
114752 2006-01-09  Jim Meyering  <jim@meyering.net>
114754         Sync from coreutils.
114755         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
114756         Require openat-priv.h.
114758 2006-01-09  Bruno Haible  <bruno@clisp.org>
114760         * modules/strnlen (Include): Use strnlen.h.
114762 2006-01-09  Bruno Haible  <bruno@clisp.org>
114764         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
114766 2006-01-09  Bruno Haible  <bruno@clisp.org>
114768         * lib/sysexit_.h (EX_OK): New macro.
114769         Suggested by Martin Lambers <marlam@marlam.de>.
114771 2006-01-09  Bruno Haible  <bruno@clisp.org>
114773         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
114774         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
114776 2006-01-09  Bruno Haible  <bruno@clisp.org>
114778         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
114779         numbers.
114781 2006-01-09  Bruno Haible  <bruno@clisp.org>
114783         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
114784         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
114785         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
114786         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
114788 2006-01-09  Bruno Haible  <bruno@clisp.org>
114790         * build-aux/javacomp.sh.in: New file, moved from lib/.
114791         * modules/javacomp-script (Files): Update.
114792         (configure.ac): Add AC_CONFIG_FILES invocation.
114793         (EXTRA_DIST): Remove variable.
114795         * build-aux/javaexec.sh.in: New file, moved from lib/.
114796         * modules/javaexec (Files): Update.
114797         (configure.ac): Add AC_CONFIG_FILES invocation.
114798         (EXTRA_DIST): Remove javaexec.sh.in.
114800         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
114801         * modules/csharpcomp-script (Files): Update.
114802         (configure.ac): Add AC_CONFIG_FILES invocation.
114803         (EXTRA_DIST): Remove variable.
114805         * build-aux/csharpexec.sh.in: New file, moved from lib/.
114806         * modules/csharpexec (Files): Update.
114807         (configure.ac): Add AC_CONFIG_FILES invocation.
114808         (EXTRA_DIST): Remove csharpexec.sh.in.
114810 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
114812         Sync from coreutils.
114814         Add POSIX ACL support
114815         * lib/acl.h (copy_acl, set_acl): Add declarations.
114816         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
114817         systems other than Linux.
114818         (chmod_or_fchmod): New function: use fchmod when possible,
114819         and chmod otherwise.
114820         (file_has_acl): Add a POSIX ACL implementation, with a
114821         Linux-specific subcase.
114822         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
114823         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
114824         acls are unsupported.
114825         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
114826         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
114827         are unsupported.
114829 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
114831         Sync from coreutils.
114832         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
114834 2006-01-07  Bruno Haible  <bruno@clisp.org>
114836         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
114837         gl_EARLY.
114839 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
114841         * lib/strftime.c (tzname): Don't declare if it is already #defined.
114842         Problem reported for Mingw by Mark Junker.
114844 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
114846         * README: Gnulib normally doesn't generate a tarball.
114848 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
114850         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
114851         long int, not int, for nanosecond counts, so that people who are
114852         used to POSIX struct timespec won't be surprised.  Reported by Jim
114853         Meyering.
114855 2005-12-28  Bruno Haible  <bruno@clisp.org>
114857         * build-aux/config.rpath: Update from GNU gettext.
114859 2005-12-16  Jim Meyering  <jim@meyering.net>
114861         * modules/fprintftime: New module.
114862         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
114864 2005-12-16  Jim Meyering  <jim@meyering.net>
114866         * m4/fprintftime.m4: New file.
114868 2005-12-16  Jim Meyering  <jim@meyering.net>
114870         * lib/fprintftime.c, lib/fprintftime.h: New files.
114872 2005-12-15  Simon Josefsson  <jas@extundo.com>
114874         * modules/socklen (configure.ac): Fix M4 macro name, to align with
114875         new m4/socklen.m4.
114877 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
114879         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
114880         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
114882 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
114884         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
114885         * lib/argp-help.c (fill_in_uparams): Check if the constructed
114886         struct uparams is valid. Fall back to the default values if it is
114887         not.
114889 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
114891         * modules/argp (Files): Add argp-pin.c
114892         (Depends-on): dirname
114893         (lib_SOURCES): Add argp-pin.c
114895 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
114897         * m4/argp.m4:  Check if program_invocation_name and
114898         program_invocation_short_name are declared and define appropriate
114899         macros if they are not.
114901 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
114903         * lib/argp-help.c (__argp_base_name): New function
114904         (__argp_short_program_name): Rewrite using __argp_base_name
114905         * lib/argp-namefrob.h: Define program_invocation_name and
114906         program_invocation_short_name if requested
114907         (__argp_base_name): Add prototype
114908         * lib/argp-parse.c (argp_def): Use gettext wrappers
114909         (argp_default_parser): Use __argp_base_name
114910         * lib/argp-pin.c: New file. Defines program_invocation_name and
114911         program_invocation_short_name on systems that lack them.
114913 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
114915         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
114916         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
114917         porting problem reported by Georg Schwarz in
114918         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
114920 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
114922         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
114923         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
114924         porting problem reported by Georg Schwarz in
114925         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
114927 2005-12-05  Bruno Haible  <bruno@clisp.org>
114929         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
114930         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
114931         Reported by Mark Junker <mjscod@gmx.de>.
114933 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
114935         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
114936         Use implementation from Albert Chin, with some
114937         comments/corrections by Stepan Kasal and myself.
114939 2005-12-02  Bruno Haible  <bruno@clisp.org>
114941         * gnulib-tool (func_import): Accept GPLed build tool modules when
114942         --lgpl is given.
114943         * modules/csharpcomp-script: New file.
114944         * modules/csharpcomp: Depend on it.
114945         * modules/javacomp-script: New file.
114946         * modules/javacomp: Depend on it.
114947         Suggested by Simon Josefsson.
114949 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
114951         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
114952         statement, to work around an HP-UX 10.20 compiler bug reported by
114953         Peter O'Gorman.
114955 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
114957         * modules/savedir (Depends-on): Add openat.
114959 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
114961         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
114962         (uintmax_t) [defined uintmax_t]: Do not declare.
114963         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
114964         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
114965         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
114966         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
114967         sake of portability to weird hosts that C allows (though we don't
114968         know of any practical examples).
114970         * lib/savedir.h (fdsavedir): New decl.
114971         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
114972         contains most of the former guts of savedir.
114973         (savedir): Use savedirstream.
114974         Include "openat.h".
114976 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
114978         * modules/obstack (Files): Add m4/ulonglong.m4.
114979         Problem reported by Davide Angelocola.
114981 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
114983         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
114984         coreutils no longer futzes with rounding modes.
114986 2005-11-14  Jim Meyering  <jim@meyering.net>
114988         * lib/mkstemp-safer.c: Include <config.h>, required for possible
114989         replacement of mkstemp.
114991 2005-11-10  Simon Josefsson  <jas@extundo.com>
114993         * lib/readline.c: Remove EOL.
114995 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
114997         * modules/gethrxtime (Depends-on): Add gettime.
114999 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
115001         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
115002         or gettimeofday; no longer needed.
115004 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
115006         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
115007         time business.
115008         (gethrxtime) [! (HAVE_NANOUPTIME
115009         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
115010         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
115011         our own approximation.
115013 2005-11-08  Eric Blake  <ebb9@byu.net>
115015         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
115017 2005-11-08  Eric Blake  <ebb9@byu.net>
115019         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
115021 2005-11-04  Bruno Haible  <bruno@clisp.org>
115023         * gnulib-tool: Implement --update mode.
115025 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
115027         Fix porting problem reported by Theodoros V. Kalamatianos.
115028         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
115029         Don't assume that futimes failing means we must fail.
115031 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
115033         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
115034         variables to suggest the intended function of the PATH_MAX check.
115036 2005-10-30  Kean Johnston  <jkj@sco.com>
115038         Trivial changes to support SCO systems.
115039         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
115040         as PATH_MAX.
115041         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
115042         where __ptr is null when no I/O is pending.
115044 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
115046         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
115047         leave errno alone.  Problem reported by Dmitry V. Levin.
115049 2005-10-28  Simon Josefsson  <jas@extundo.com>
115051         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
115052         Test more.
115054         * tests/test-gc-md2.c, tests/test-md2.c: New files.
115056         * modules/md2, modules/md2-tests: New files.
115058 2005-10-28  Simon Josefsson  <jas@extundo.com>
115060         * m4/inet_ntop.m4: More tests.
115062         * m4/gc-md2.m4, md2.m4: New file.
115064 2005-10-28  Simon Josefsson  <jas@extundo.com>
115066         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
115067         "restrict" keywords, as per POSIX.  Protect the function
115068         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
115069         Don't use K&R prototypes.  Check the sprintf return values.
115070         Re-define EAFNOSUPPORT if not present.  Indent.
115072         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
115073         suggested by Bruno Haible <bruno@clisp.org>.
115075         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
115077         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
115079         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
115080         libgcrypt).
115082         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
115084         * lib/md2.h, lib/md2.c: New files.
115086 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
115088         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
115089         errno alone.  Problem reported by Frederic Jolliton.
115091 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
115093         * modules/verify (License): Change from GPL to LGPL.  This is a
115094         tiny module and there are apparently near-equivalents that are
115095         under the BSD license.
115097 2005-10-24  Simon Josefsson  <jas@extundo.com>
115099         * modules/sha1: Relicense to LGPL.
115101 2005-10-24  Simon Josefsson  <jas@extundo.com>
115103         * lib/md4.h: Shrink buffer size, now that we changed the type.
115105 2005-10-23  Simon Josefsson  <jas@extundo.com>
115107         * gnulib-tool (func_import): Fix --tests-base.
115109 2005-10-22  Simon Josefsson  <jas@extundo.com>
115111         * modules/arcfour (Depends-on): Need stdint.
115113 2005-10-22  Simon Josefsson  <jas@extundo.com>
115115         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
115116         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
115118 2005-10-22  Simon Josefsson  <jas@extundo.com>
115120         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
115121         suggested by Bruno Haible <bruno@clisp.org>.
115123 2005-10-22  Simon Josefsson  <jas@extundo.com>
115125         * lib/crc.h: Include stddef.h, for size_t.
115127 2005-10-22  Simon Josefsson  <jas@extundo.com>
115129         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
115130         arcfour_context struct (simplify test vector testing in GNU
115131         Shishi).
115133 2005-10-21  Simon Josefsson  <jas@extundo.com>
115135         * modules/des, modules/des-tests: New files.
115137         * modules/gc-des, modules/gc-des-tests: New files.
115139         * tests/test-des.c, tests/test-gc-des.c: New file.
115141 2005-10-21  Simon Josefsson  <jas@extundo.com>
115143         * modules/arctwo, modules/arctwo-tests: New files.
115145         * tests/test-arctwo.c: New file.
115147         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
115149         * tests/test-gc-arctwo.c: New file.
115151 2005-10-21  Simon Josefsson  <jas@extundo.com>
115153         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
115154         Bruno Haible <bruno@clisp.org>.
115156         * m4/gc-des.m4: New file.
115158 2005-10-21  Simon Josefsson  <jas@extundo.com>
115160         * m4/arctwo.m4: New file.
115162         * m4/gc-arctwo.m4: New file.
115164 2005-10-21  Simon Josefsson  <jas@extundo.com>
115166         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
115167         block.
115169 2005-10-21  Simon Josefsson  <jas@extundo.com>
115171         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
115172         <bruno@clisp.org>.
115174         * lib/hmac-sha1.c (hmac_sha1): Likewise.
115176         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
115177         Bruno Haible <bruno@clisp.org>.
115179         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
115180         <bruno@clisp.org>.
115182 2005-10-21  Simon Josefsson  <jas@extundo.com>
115184         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
115186 2005-10-21  Simon Josefsson  <jas@extundo.com>
115188         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
115190 2005-10-21  Simon Josefsson  <jas@extundo.com>
115192         * lib/des.h, lib/des.c: New files.
115194         * lib/gc-gnulib.c: Support DES.c
115196 2005-10-21  Simon Josefsson  <jas@extundo.com>
115198         * lib/arctwo.h, lib/arctwo.c: New files.
115200         * lib/gc-gnulib.c: Support ARCTWO.
115202 2005-10-21  Simon Josefsson  <jas@extundo.com>
115204         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
115205         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
115207 2005-10-21  Simon Josefsson  <jas@extundo.com>
115209         * gnulib-tool (func_import, func_create_testdir): Define automake
115210         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
115211         Makefile.am snippet),
115212         suggested by Bruno Haible <bruno@clisp.org>.
115214         * modules/gc (Makefile.am): Use it.
115216 2005-10-21  Bruno Haible  <bruno@clisp.org>
115218         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
115219         patch.
115221 2005-10-19  Simon Josefsson  <jas@extundo.com>
115223         * tests/test-gc-rijndael.c: New file.
115225         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
115227 2005-10-19  Simon Josefsson  <jas@extundo.com>
115229         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
115230         interface too.
115232 2005-10-19  Simon Josefsson  <jas@extundo.com>
115234         * tests/test-gc-arcfour.c: New file.
115236         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
115238 2005-10-19  Simon Josefsson  <jas@extundo.com>
115240         * modules/gc-md4, modules/gc-md4-tests: New file.
115242         * tests/test-gc-md4.c: New file.
115244 2005-10-19  Simon Josefsson  <jas@extundo.com>
115246         * m4/gc-md4.m4: New file.
115248 2005-10-19  Simon Josefsson  <jas@extundo.com>
115250         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
115251         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
115252         <kasal@ucw.cz>.
115254 2005-10-19  Simon Josefsson  <jas@extundo.com>
115256         * m4/gc-arcfour.m4: New file.
115258         * m4/gc-rijndael.m4: New file.
115260 2005-10-19  Simon Josefsson  <jas@extundo.com>
115262         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
115264 2005-10-19  Simon Josefsson  <jas@extundo.com>
115266         * lib/gc-gnulib.c: Support ARCFOUR.
115268 2005-10-19  Simon Josefsson  <jas@extundo.com>
115270         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
115271         support.
115273         * lib/gc.h: Add ECB enum type.
115275         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
115277 2005-10-18  Simon Josefsson  <jas@extundo.com>
115279         * tests/test-md5.c: New file.
115281         * modules/md5-tests: New file.
115283 2005-10-18  Simon Josefsson  <jas@extundo.com>
115285         * tests/test-md4.c: New file.
115287         * modules/md4, modules/md4-tests: New files.
115289 2005-10-18  Simon Josefsson  <jas@extundo.com>
115291         * m4/md4.m4: New file.
115293 2005-10-18  Simon Josefsson  <jas@extundo.com>
115295         * lib/md4.h, lib/md4.c: New files, based on md5.?.
115297 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
115299         * gnulib-tool (func_create_testdir): Omit the second check whether
115300         BUILT_SOURCES in nonempty.
115302 2005-10-17  Simon Josefsson  <jas@extundo.com>
115304         * tests/test-rijndael.c: New file.
115306 2005-10-17  Simon Josefsson  <jas@extundo.com>
115308         * modules/sha1: Depend on stdint instead of md5.
115310         * modules/md5: Depend on stdint, remove uint32_t.
115312 2005-10-17  Simon Josefsson  <jas@extundo.com>
115314         * modules/gc-sha1-tests: New file.
115316         * tests/test-gc-sha1.c: New file.
115318 2005-10-17  Simon Josefsson  <jas@extundo.com>
115320         * m4/md5.m4: Remove call to uint32_t.m4.
115322 2005-10-17  Simon Josefsson  <jas@extundo.com>
115324         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
115326         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
115327         md5.h.
115329         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
115331         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
115333 2005-10-17  Simon Josefsson  <jas@extundo.com>
115335         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
115337 2005-10-17  Simon Josefsson  <jas@extundo.com>
115339         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
115341 2005-10-17  Simon Josefsson  <jas@extundo.com>
115343         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
115345         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
115347 2005-10-17  Bruno Haible  <bruno@clisp.org>
115349         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
115350         that it can also be used in a test.
115352 2005-10-16  Bruno Haible  <bruno@clisp.org>
115354         * gnulib-tool (func_emit_tests_Makefile_am): Also define
115355         TESTS_ENVIRONMENT, so that individual tests can augment it.
115357         * gnulib-tool (func_create_testdir): Use an intermediate target for
115358         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
115359         macros, like $(ALLOCA_H), which cannot be passed through the command
115360         line.
115362 2005-10-15  Simon Josefsson  <jas@extundo.com>
115364         * modules/rijndael-tests: New file.
115366         * modules/rijndael: New file.
115368 2005-10-15  Simon Josefsson  <jas@extundo.com>
115370         * m4/rijndael.m4: New file.
115372 2005-10-15  Simon Josefsson  <jas@extundo.com>
115374         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
115376         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
115378 2005-10-14  Simon Josefsson  <jas@extundo.com>
115380         * tests/test-arcfour.c: New file.
115382         * modules/arcfour, modules/arcfour-tests: New files.
115384 2005-10-14  Simon Josefsson  <jas@extundo.com>
115386         * m4/arcfour.m4: New file.
115388 2005-10-14  Simon Josefsson  <jas@extundo.com>
115390         * lib/arcfour.h, lib/arcfour.c: New files.
115392 2005-10-14  Roland McGrath  <roland@redhat.com>
115394         Import from libc.  [BZ #1331]
115395         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
115396         macro argument.
115397         Reported by Matej Vela <vela@debian.org>.
115399 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
115401         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
115402         include <wchar.h>; no longer needed.
115404 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
115406         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
115408 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
115409         and  Ulrich Drepper  <drepper@redhat.com>
115411         Import from libc.
115412         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
115413         instead of inline stream orientation test and two separate
115414         function calls.  Pay no attention to USE_IN_LIBIO.
115416 2005-10-13  Simon Josefsson  <jas@extundo.com>
115418         * modules/gc-hmac-md5-tests: New file.
115420         * tests/test-gc-hmac-sha1.c: New file.
115422         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
115424         * modules/gc-hmac-md5-tests: New file.
115426         * tests/test-gc-md5.c: New file.
115428         * modules/gc-md5-tests: New file.
115430 2005-10-13  Simon Josefsson  <jas@extundo.com>
115432         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
115433         Move memory allocation outside of loop.
115435 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
115437         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
115438         intermediate directory is in a read-only file system.  Problem
115439         reported by Eric Blake.
115441 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
115443         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
115445 2005-10-12  Simon Josefsson  <jas@extundo.com>
115447         * tests/test-hmac-sha1.c: New file.
115449         * modules/hmac-sha1-tests: New file.
115451         * modules/hmac-sha1: New file.
115453 2005-10-12  Simon Josefsson  <jas@extundo.com>
115455         * modules/gc-sha1: New file.
115457 2005-10-12  Simon Josefsson  <jas@extundo.com>
115459         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
115461         * tests/test-gc-pbkdf2-sha1.c: New file.
115463 2005-10-12  Simon Josefsson  <jas@extundo.com>
115465         * modules/gc-md5, modules/gc-hmac-md5: New files.
115467         * modules/gc (Files): Remove md5, memxor and hmac files.
115469 2005-10-12  Simon Josefsson  <jas@extundo.com>
115471         * m4/gc-pbkdf2-sha1.m4: New file.
115473         * m4/gc-hmac-sha1.m4: New file.
115475         * m4/gc-sha1: New file.
115477         * m4/hmac-sha1.m4: New file.
115479 2005-10-12  Simon Josefsson  <jas@extundo.com>
115481         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
115483         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
115485 2005-10-12  Simon Josefsson  <jas@extundo.com>
115487         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
115488         suggested by Bruno Haible <bruno@clisp.org>.
115490 2005-10-12  Simon Josefsson  <jas@extundo.com>
115492         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
115494 2005-10-12  Simon Josefsson  <jas@extundo.com>
115496         * lib/gc-pbkdf2-sha1.c: New file.
115498         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
115500 2005-10-12  Simon Josefsson  <jas@extundo.com>
115502         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
115504         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
115506 2005-10-12  Simon Josefsson  <jas@extundo.com>
115508         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
115509         GC_USE_HMAC_MD5, respectively.
115511         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
115512         (gc_md5): Fix typo.
115514         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
115516         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
115518         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
115520 2005-10-12  Bruno Haible  <bruno@clisp.org>
115522         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
115523         Reported by Stepan Kasal <kasal@ucw.cz>.
115525 2005-10-11  Simon Josefsson  <jas@extundo.com>
115527         * tests/test-crc.c: New file.
115529         * modules/crc, modules/crc-tests: New files.
115531 2005-10-11  Simon Josefsson  <jas@extundo.com>
115533         * m4/crc.m4: New file.
115535 2005-10-11  Simon Josefsson  <jas@extundo.com>
115537         * lib/gc.h: Add gc_hash and gc_hash_buffer.
115539         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
115541         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
115543 2005-10-11  Simon Josefsson  <jas@extundo.com>
115545         * lib/crc.h, lib/crc.c: New files.
115547         * lib/gc.h (gc_hash_buffer): Add doc.
115549 2005-10-11  Bruno Haible  <bruno@clisp.org>
115551         * modules/c-strcasestr: New file.
115552         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
115554 2005-10-11  Bruno Haible  <bruno@clisp.org>
115556         * modules/c-strcase: New file.
115557         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
115559 2005-10-11  Bruno Haible  <bruno@clisp.org>
115561         * lib/strcasecmp.c: Include limits.h.
115562         (strcasecmp): Avoid integer overflow on exotic platforms.
115563         * lib/strncasecmp.c: Include limits.h.
115564         (strncasecmp): Avoid integer overflow on exotic platforms.
115565         Reported by Paul Eggert.
115567 2005-10-11  Bruno Haible  <bruno@clisp.org>
115569         * lib/c-strcasestr.h: New file, from GNU gettext.
115570         * lib/c-strcasestr.c: New file, from GNU gettext.
115572 2005-10-11  Bruno Haible  <bruno@clisp.org>
115574         * lib/c-strcase.h: New file, from GNU gettext.
115575         * lib/c-strcasecmp.c: New file, from GNU gettext.
115576         * lib/c-strncasecmp.c: New file, from GNU gettext.
115578 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
115580         * modules/mempcpy (License): GPL -> LGPL.
115581         * modules/strchrnul (License): Likewise.
115582         * modules/sysexits (License): Likewise.
115584 2005-10-08  Simon Josefsson  <jas@extundo.com>
115586         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
115588 2005-10-07  Simon Josefsson  <jas@extundo.com>
115590         * m4/memxor.m4: Remove gl_C_RESTRICT call.
115592 2005-10-06  Simon Josefsson  <jas@extundo.com>
115594         * tests/test-hmac-md5.c: New file.
115596         * modules/hmac-md5-tests: New file.
115598         * modules/hmac-md5: New file.
115600 2005-10-06  Simon Josefsson  <jas@extundo.com>
115602         * m4/hmac-md5.m4: New file.
115604         * m4/memxor.m4: Require gl_C_RESTRICT.
115606 2005-10-06  Simon Josefsson  <jas@extundo.com>
115608         * lib/memxor.c (memxor): Avoid casts and warnings.
115610 2005-10-06  Simon Josefsson  <jas@extundo.com>
115612         * lib/hmac-md5.c: New file.
115614         * lib/hmac.h: New file.
115616 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
115618         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
115619         promotes to int, not unsigned int, to catch the AIX 5.3
115620         compiler bug.
115622 2005-10-05  Simon Josefsson  <jas@extundo.com>
115624         * modules/memxor: New file.
115626         * modules/iconv (Files): Move config.rpath to havelib, it is used
115627         there.
115629         * modules/havelib (Files): Add config.rpath.
115631 2005-10-05  Simon Josefsson  <jas@extundo.com>
115633         * m4/memxor.m4: New file.
115635 2005-10-05  Simon Josefsson  <jas@extundo.com>
115637         * lib/memxor.c (memxor): Fix compiler error.
115639         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
115640         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
115642         * lib/memxor.h, lib/memxor.c: New files.
115644         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
115645         we assume all systems have it, suggested by Jim Meyering
115646         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
115647         any systems lack sys/socket.h; mingw32 is known to lack it, but we
115648         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
115649         same reasons.
115651 2005-10-05  Simon Josefsson  <jas@extundo.com>
115653         * config/srclist.txt: Add glibc bug 1423 for md5.h.
115655 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
115657         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
115658         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
115659         needed, since the source code now assumes these .h files.
115661 2005-10-05  Derek Price  <derek@ximbiot.com>
115663         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
115665 2005-10-05  Bruno Haible  <bruno@clisp.org>
115667         * modules/stdint (License): Change to LGPL.
115669 2005-10-04  Simon Josefsson  <jas@extundo.com>
115671         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
115672         D. Baushke" <mdb@gnu.org>.
115674 2005-10-04  Bruno Haible  <bruno@clisp.org>
115676         * lib/verify.h (verify_true): Provide alternative definition for C++.
115678 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
115680         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
115681         (SSIZE_MAX): New macro, if not already defined.
115682         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
115683         than 2 GiB.
115685 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
115687         Sync from coreutils.
115688         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
115689         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
115690         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
115691         ULLONG_MAX doesn't work with 2.7.2.1.
115693 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
115695         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
115696         From Ben Pfaff.
115698         * modules/exclude (Depends-on): Depend on verify.
115699         * modules/strtoimax (Depends-on): Likewise.
115700         * modules/utimecmp (Depends-on): Likewise.
115702 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
115704         * lib/exclude.c: Include verify.h.
115705         (verify): Remove.  All callers changed to use verify.h's version.
115706         * lib/strtoimax.c: Likewise.
115707         * lib/utimecmp.c: Likewis.e
115709         Sync from coreutils.
115710         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
115711         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
115712         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
115713         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
115714         bother returning ENOSYS if settimeofday or stime fails; just let
115715         them return whatever errno they want to return.
115716         * lib/utimens.c: Include unistd.h, for dup2.
115717         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
115718         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
115720 2005-10-02  Jim Meyering  <jim@meyering.net>
115722         Sync from coreutils.
115723         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
115724         from glibc-2.2.5 that fails for read-only files.
115726 2005-10-02  Jim Meyering  <jim@meyering.net>
115728         Sync from coreutils.
115729         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
115730         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
115731         `#if HAVE_CONFIG_H'.
115732         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
115733         Remove AT_FDCWD test.
115734         Do not consume the fd unless successful.
115735         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
115736         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
115737         block, so that we don't even try to compile it if settimeofday is
115738         available.  This works around a compilation failure on OSF1 V5.1,
115739         due to stime requiring a `long int*' while tv_sec is `int'.
115741 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
115743         Sync from coreutils.
115744         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
115745         against `yes', rather than just testing for nonempty.
115747 2005-10-01  Simon Josefsson  <jas@extundo.com>
115749         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
115750         and Darwin.
115752         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
115753         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
115754         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
115755         freeaddrinfo and gai_strerror are declared by the POSIX headers.
115756         Check if struct addrinfo is declared.
115758 2005-10-01  Simon Josefsson  <jas@extundo.com>
115760         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
115761         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
115762         AI_* and EAI_* definitions.  Protect function declarations.
115764 2005-10-01  Jim Meyering  <jim@meyering.net>
115766         Sync from coreutils.
115768         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
115769         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
115770         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
115771         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
115772         in the inet and nsl libraries.  Required on Solaris 5.7.
115774 2005-10-01  Jim Meyering  <jim@meyering.net>
115776         Sync from coreutils.
115777         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
115778         in the inet and nsl libraries.  Required on Solaris 5.7.
115780 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
115782         * lib/getdelim.c (getdelim): Remove unused variables.
115784 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
115786         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
115787         so that the code works even with ancient cpp.  Portability problem
115788         with GCC 2.7.2.1 reported by Thomas M.Ott.
115790 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
115792         * modules/regex (Depends-on): Add strcase.
115794         * modules/gethostname (Licence): Change from GPL to LGPL, since
115795         gethostname.c is a trivial implementation of a standard library
115796         function.
115797         * modules/poll (License): Change from GPL to LGPL, since it's
115798         derived from LGPL code.
115800 2005-09-27  Jim Meyering  <jim@meyering.net>
115802         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
115803         HAVE_CONFIG_H.
115805         * lib/intprops.h (signed_type_or_expr__): Define.
115806         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
115807         for unsigned types.
115809 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
115811         * lib/verify.h (verify_expr): Remove, replacing with:
115812         (verify_true): New macro that returns true instead of void.
115813         (verify_type__): Remove.
115814         (verify): Use verify_true rather than verify_type__.
115816 2005-09-26  Bruno Haible  <bruno@clisp.org>
115818         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
115819         is necessary.
115820         (lib_SOURCES): Remove mbchar.c.
115821         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
115822         (Files): Add m4/mbrtowc.m4.
115823         * modules/mbiter: Likewise.
115824         * modules/mbuiter: Likewise.
115826 2005-09-26  Bruno Haible  <bruno@clisp.org>
115828         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
115829         compile mbchar.c if they are not both present.
115830         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
115831         * m4/mbiter.m4 (gl_MBITER): Likewise.
115832         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
115833         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
115834         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
115836 2005-09-25  Jim Meyering  <jim@meyering.net>
115838         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
115839         also uses socklen_t.
115841 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
115843         * lib/utimens.c (ENOSYS): Define if not already defined.
115844         (futimens): Support having a null PATH if the file descriptor
115845         is nonnegative.
115847         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
115848         Remove.
115849         (__attribute): Define to empty unless GCC 3.1 or later.
115850         This works around a core dump on OpenBSD 3.4, which has GCC
115851         2.95.3, which dumps core when given __attribute__(()).  It also
115852         simplifies other tests, since we really don't want to bother with
115853         worrying about which ancient version of GCC supported what.
115854         Original problem reported by Yoann Vandoorselaere, with part of
115855         the fix suggested by Derek Price.
115857 2005-09-24  Jim Meyering  <jim@meyering.net>
115859         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
115860         so we can once again use a positive bitfield width of 1 -- now we
115861         don't have to explain why we were using a bitfield width of 2.
115863 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
115865         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
115866         and similarly for the other external symbols.  Problem reported
115867         by James Gallager.
115869         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
115870         bug reported by Jim Meyering.
115872         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
115873         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
115874         not needed, since socklen is a prerequisite module.
115876 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
115878         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
115879         Problem reported by Eric Blake.
115880         (getaddrinfo): Initialize se so that it's not garbage.
115881         Redo internal storage allocation so that it doesn't make unportable
115882         assumptions about alignment.
115883         Fix a memory leak.
115885         * lib/utimens.c (futimens): Use futimesat if available.
115886         Prefer it to futimes since it doesn't have the futimes bug.
115888         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
115889         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
115890         Instead, declare a function that returns a pointer to an array,
115891         and use verify_type__ to declare the size of the array.
115892         Problem and germ of a solution reported by Bruno Haible.
115893         (verify_type__): Use 2, not 1, for bitfield size, to avoid
115894         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
115896 2005-09-23  Jim Meyering  <jim@meyering.net>
115898         Sync from coreutils.
115899         Correct build failure (socklen_t not defined) on at least
115900         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
115901         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
115903 2005-09-23  Jim Meyering  <jim@meyering.net>
115905         * modules/getaddrinfo (Depends-on): Add socklen.
115907 2005-09-23  Bruno Haible  <bruno@clisp.org>
115909         * tests/test-verify.c: New file.
115911 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
115913         Sync from coreutils.
115915         * modules/argmatch (Depends-on): Add verify.
115916         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
115917         unistd-safer.
115918         * modules/save-cwd (Depends-on): Likewise.
115920         * modules/openat (Files): Add lib/openat-die.c.
115921         (Depends-on): Remove error, exitfail.
115922         Add dirname.
115924         * modules/verify: New file.
115925         * MODULES.html.sh (Diagnostics <assert.h>): New section,
115926         with "verify" module.
115928 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
115930         Sync from coreutils.
115932         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
115933         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
115934         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
115935         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
115936         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
115937         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
115938         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
115939         Don't bother checking for string.h, stdlib.h, unistd.h.
115940         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
115941         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
115942         module's job.
115943         * m4/jm-macros.m4 (gl_MACROS): Likewise.
115944         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
115946         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
115947         (gl_GETDATE): Use it.
115949         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
115951 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
115953         Sync from coreutils.
115955         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
115956         stat-time.h.
115957         * lib/argmatch.h: Include verify.h
115958         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
115959         (ARGMATCH_ASSERT): Remove; unused.
115960         * lib/canonicalize.c: Assume STDC_HEADERS.
115961         * lib/exclude.c: Include "strcase.h".
115962         * lib/regex_internal.h [!defined _LIBC]: Likewise.
115963         * lib/getusershell.c: Include stdio--.h rather than stdio.h
115964         and stdio-safer.h.
115965         (getusershell): Call fopen, not fopen_safer.
115966         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
115967         Do not include unistd-safer.h.
115968         (save_cwd): Don't call fd_safer; no longer needed
115969         now that we include fcntl--.h.
115971         * lib/getdate.y (relative_time): New type.
115972         (RELATIVE_TIME_0): New constant.
115973         (parser_control): Use relative_time instead of doing it ourselves.
115974         (%union): Add new relative_time rel member.
115975         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
115976         Now typeless.
115977         (relunit, relunit_snumber): Now of type rel.
115978         (zone, rel, relunit, get_date): Adjust to above changes.
115980         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
115981         Do not include unistd-safer.h.
115982         (getloadavg): Don't call fd_safer; no longer needed
115983         now that we include fcntl--.h.
115985         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
115986         (make_dir_parents): Treat ENOSYS like EEXIST.
115988         Improve quality of diagnostics on restore_cwd failure.
115989         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
115990         (make_dir_parents): Last arg is now int * (for errno), not bool *.
115991         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
115992         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
115993         each time through the loop.  Do not diagnose restore_cwd failure;
115994         that is the caller's job (and perhaps the caller does not care).
115996         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
115997         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
115998         If the file already exists but is not a directory, don't bother
115999         to try to make its parents.
116000         Close potential file descriptor leak if we can't chdir("/") (!).
116001         Don't always return true if chdir($PWD) fails; return true only
116002         if the requested action was done successfully (except for the
116003         chdir($PWD)).
116004         Don't log final directory unless we actually made it.
116005         Refactor to avoid duplicate code to fix up permissions.
116006         Don't attempt to fix up parent permissions if chdir($PWD) fails.
116008         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
116009         to make it a bit faster and (I hope) clearer.
116010         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
116011         Fix bug in formats like %2N.
116013         * lib/verify.h: New file.
116015 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
116017         Sync from coreutils.
116018         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
116020 2005-09-22  Jim Meyering  <jim@meyering.net>
116022         Sync from coreutils.
116024         * m4/lstat.m4 (gl_FUNC_LSTAT):
116025         Use AC_LIBSOURCES to require lstat.c and lstat.h.
116026         Remove obsolete comment.
116027         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
116028         * m4/xstrtod.m4: Likewise.
116030         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
116032 2005-09-22  Jim Meyering  <jim@meyering.net>
116034         Sync from coreutils.
116036         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
116038         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
116039         the .tm_year member, since otherwise gcc-4.0 would now warn about
116040         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
116042         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
116043         order to avoid an unsuppressible warning from gcc on 64-bit systems.
116045         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
116046         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
116047         when run in a time zone for which daylight savings time is in effect
116048         for the starting date.
116050         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
116051         stop us from restricting permissions of just-created absolute-named
116052         directories.
116053         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
116054         to restore initial working directory.
116055         * lib/mkdir-p.c (make_dir_parents): New parameter:
116056         different_working_dir, to tell caller if/when we change the working
116057         directory and are unable to return to the initial one.
116058         * lib/mkdir-p.h (make_dir_parents): Update prototype.
116059         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
116060         `return false'.  This fixes a bug introduced on 2004-07-30.
116062         * lib/openat.c (fdopendir): Be sure to close the supplied
116063         file descriptor before returning.  This makes our replacement
116064         implementation a little closer to Solaris's, where fdopendir
116065         ties the file descriptor to the returned DIR* pointer.
116066         * lib/openat.c (unlinkat): New function.
116067         * lib/openat.h (unlinkat): Add prototype.
116068         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
116069         (openat_restore_fail): Rename from openat_restore_die.
116070         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
116072         Provide an alternative to exiting immediately upon save_cwd or
116073         restore_cwd failure.  Now, an application can arrange e.g.,
116074         to perform a longjump in that case.
116075         * lib/openat.c: Include dirname.h.
116076         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
116077         (rpl_openat, fdopendir, fstatat): Call openat_save_die
116078         and openat_restore_die rather than calling error directly.
116079         Don't include "error.h" or "exitfail.h"; they're no longer needed.
116081         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
116082         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
116083         define.
116085         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
116086         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
116087                             int utc, int nanoseconds);
116088         Background:
116089         date should not have to allocate a megabyte of virtual memory to
116090         handle a format argument like +%1048575T.  When implemented with
116091         strftime, it must allocate such a buffer, use strftime to fill it
116092         in, print it, then free it.
116093         With fprintftime, it simply prints everything and exits.
116094         With no need for memory allocation, that's one fewer way to fail.
116095         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
116096         optional field width, not before, so we accept %9:z, not %:9z.
116097         (my_strftime): Be sure to use L_('x') for literals.
116099         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
116100         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
116101         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
116102         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
116103         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
116104         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
116105         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
116106         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
116107         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
116108         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
116109         * lib/xgethostname.c, lib/xreadlink.c:
116110         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
116112         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
116113         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
116114         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
116115         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
116116         and don't include <sys/file.h>).
116118 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
116120         Sync from coreutils.
116122         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
116123         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
116124         [!LDAV_DONE]: Avoid unused variable warning.
116126 2005-09-21  Bruno Haible  <bruno@clisp.org>
116128         * lib/unicodeio.h (unicode_to_mb): New declaration.
116130 2005-09-20  Derek Price  <derek@ximbiot.com>
116132         * lib/getaddrinfo.c: Don't include <netdb.h> included from
116133         getaddrinfo.h.
116135 2005-09-20  Bruno Haible  <bruno@clisp.org>
116137         * gnulib-tool: Remove trailing slashes from the values specified for
116138         --source-base, --m4-base, --tests-base, --aux-dir.
116139         Suggested by Simon Josefsson <jas@extundo.com>.
116141 2005-09-20  Bruno Haible  <bruno@clisp.org>
116143         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
116144         func_modules_to_filelist, func_import, func_create_testdir): Make all
116145         sorting results locale-independent, so that gnulib-cache.m4 doesn't
116146         change when gnulib-tool is invoked in a different locale.
116148 2005-09-19  Simon Josefsson  <jas@extundo.com>
116150         * m4/socklen.m4: Fix typo.
116152 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116154         Use a consistent style for including <config.h>.
116155         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
116156         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
116157         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
116158         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
116159         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
116160         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
116161         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
116162         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
116163         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
116164         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
116165         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
116166         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
116167         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
116168         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
116169         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
116170         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
116171         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
116172         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
116173         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
116174         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
116175         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
116176         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
116177         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
116178         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
116179         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
116180         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
116181         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
116182         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
116183         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
116184         lib/xstrtoumax.c, lib/yesno.c:
116185         Standardize inclusion of config.h.
116186         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
116187         lib/inttostr.h:  Removed inclusion of config.h from header files.
116188         * lib/inttostr.c:  Adjusted in-tree users.
116189         * lib/timespec.h: Remove superfluous warning to include config.h.
116190         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
116191         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
116192         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
116193         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
116194         config.h with HAVE_CONFIG_H.
116196 2005-09-19  Jim Meyering  <jim@meyering.net>
116198         * modules/pathmax (License): Change to LGPL.
116200 2005-09-19  Derek Price  <derek@ximbiot.com>
116202         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
116204 2005-09-19  Bruno Haible  <bruno@clisp.org>
116206         * gnulib-tool (import): Provide default for --tests-base.
116208 2005-09-19  Bruno Haible  <bruno@clisp.org>
116210         * doc/quote.texi: New file, extracted from gnulib.texi.
116211         * doc/ctime.texi: New file, extracted from gnulib.texi.
116212         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
116213         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
116214         * doc/gnulib.texi: Include them.
116216 2005-09-18  Bruno Haible  <bruno@clisp.org>
116218         Portability fix.
116219         * gnulib-tool (func_readlink): New function.
116220         (func_ln_if_changed): Use it.
116222 2005-09-18  Bruno Haible  <bruno@clisp.org>
116224         * gnulib-tool: Support --with-tests also with --import.
116225         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
116226         (func_import): Use variables $testsbase and $inctests. Emit a
116227         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
116228         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
116229         SUBDIRS += $testsdir.
116230         (func_create_testdir): Update.
116232 2005-09-18  Bruno Haible  <bruno@clisp.org>
116234         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
116235         instead of $dry_run.
116236         (func_cp_if_changed, func_mv_if_changed): Remove functions.
116237         (func_ln_if_changed): Don't handle dry-run here.
116238         (func_import): In dry-run mode, detect more precisely which actions
116239         would be performed, and don't use "...ing" verbs.
116241 2005-09-18  Bruno Haible  <bruno@clisp.org>
116243         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
116244         (func_import): Use join on two temporary files instead of three nested
116245         loops, in order to determine which files are new or old.
116247 2005-09-18  Bruno Haible  <bruno@clisp.org>
116249         * gnulib-tool (func_import): Comment out code that spits out the
116250         new files with --dry-run.
116252 2005-09-18  Bruno Haible  <bruno@clisp.org>
116254         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
116256 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
116258         * lib/stat-time.h: New file.
116259         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
116260         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
116261         in a different way.
116262         (timespec_cmp): New function.
116263         * lib/utimecmp.c: Include stat-time.h.
116264         (SYSCALL_RESOLUTION): Depend on whether various struct stat
116265         members exist, not on the obsolescent ST_MTIM_NSEC.
116266         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
116268 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
116270         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
116272 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
116274         * MODULES.html.sh (File system functions): Add stat-time.
116275         * modules/stat-time: New file.
116276         * modules/timespec (Files): Remove m4/st_mtim.m4; this
116277         is now done in a different way, by the stat-time module.
116278         * modules/utimecmp (Depends-on): Add stat-time.
116280 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
116282         * m4/st_mtim.m4: Remove.  Superseded by...
116283         * m4/stat-time.m4: New file.
116284         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
116285         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
116287 2005-09-15  Derek Price  <derek@ximbiot.com>
116289         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
116291 2005-09-15  Derek Price  <derek@ximbiot.com>
116293         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
116294         * lib/regex_internal.c: Ditto, using this...
116295         (__GNUC_PREREQ): ...new macro.
116296         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
116297         using...
116298         (__GNUC_PREREQ): ...this new macro.
116300         * lib/strstr.h: Include string.h. Define strstr as a macro here.
116302 2005-09-15  Derek Price  <derek@ximbiot.com>
116303             Paul Eggert  <eggert@cs.ucla.edu>
116305         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
116306         changes, consolidating in...
116307         * lib/regex_internal.h: ...this file.
116309 2005-09-13  Jim Meyering  <jim@meyering.net>
116311         * lib/canon-host.c: Filter through gnu indent and reword comments
116312         slightly.
116313         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
116315 2005-09-13  Derek Price  <derek@ximbiot.com>
116317         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
116318         failure.
116319         Reported by Jim Meyering  <jim@meyering.net>.
116321 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
116323         * lib/base64.c: Typo.
116324         (base64_encode): Put b64str in initialized data section.
116326 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
116328         Merge glibc and coreutils changes into gnulib, plus a few
116329         extra fixes.
116330         * lib/md5.c: Use #error rather than a string.
116331         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
116332         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
116333         (__attribute__): Define to empty for non recent-GCC.
116334         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
116335         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
116336         Renamed from their non-__ counterparts, with new macros replacing
116337         them if not _LIBC.  Add __THROW attribute.
116338         (rol): Remove.
116339         (struct md5_ctx): Align buffer if using GCC.
116340         * lib/sha1.h (struct sha1_ctx): Likewise.
116341         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
116342         The old name was backwards.
116343         (NOTSWAP): Remove; not used.
116344         (rol): New macro, moved here from md5.h.
116345         (sha1_process_block): Remove a FIXME that doesn't make sense.
116347 2005-09-12  Derek Price  <derek@ximbiot.com>
116349         Return usable errors from canon-host.
116350         * lib/canon-host.h: New file.
116351         * lib/canon-host.c (canon_host): Wrap...
116352         (canon_host_r): ...this new function, which now relies exclusively on
116353         getaddrinfo.
116354         (ch_strerror): New function.
116355         (last_cherror): New global.
116356         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
116357         interface.
116358         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
116359         void *.
116360         (freeaddrinfo): Free ai->ai_canonname when set.
116362 2005-09-12  Derek Price  <derek@ximbiot.com>
116364         Make canon-host require getaddrinfo.
116365         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
116366         AC_LIBSOURCE canon-host.h.  Call...
116367         (gl_PREREQ_CANON_HOST): ...this new function, which requires
116368         gl_GETADDRINFO.
116369         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
116371 2005-09-12  Derek Price  <derek@ximbiot.com>
116373         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
116374         LGPL.
116375         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
116377 2005-09-12  Derek Price  <derek@ximbiot.com>
116379         * lib/gai_strerror.c: Include config.h when available.  Include
116380         getaddrinfo.h before other headers to test interface.
116381         Reported by Larry Jones <lawrence.jones@ugs.com>.
116383 2005-09-12  Derek Price  <derek@ximbiot.com>
116384             Paul Eggert  <eggert@cs.ucla.edu>
116386         * modules/glob (Files): Add glob-libc.h.
116388 2005-09-12  Derek Price  <derek@ximbiot.com>
116389             Paul Eggert  <eggert@cs.ucla.edu>
116391         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
116392         glob_.h, glob-libc.h.
116393         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
116395 2005-09-12  Derek Price  <derek@ximbiot.com>
116396             Paul Eggert  <eggert@cs.ucla.edu>
116398         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
116399         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
116400         protecting things that should be done only in gnulib contexts.
116401         * lib/glob_.h: New file, containing only the glob things needed for
116402         gnulib.
116403         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
116404         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
116405         (glob, globfree, glob_pattern_p): Now defined simply in terms of
116406         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
116407         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
116408         and to respect the namespace rules better.
116410 2005-09-08  Simon Josefsson  <jas@extundo.com>
116412         * modules/socklen: New file.
116414 2005-09-08  Simon Josefsson  <jas@extundo.com>
116416         * m4/socklen.m4: New file.
116418 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
116420         * modules/utimens (Files): Add m4/utimbuf.m4, since
116421         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
116422         Reported by Sergey Poznyakoff.
116424 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
116426         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
116427         definitions, since that's the preferred style in glibc.
116428         Fix a minor spacing issue, and update copyright notice to match
116429         glibc's.
116431 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
116433         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
116435 2005-09-06  Simon Josefsson  <jas@extundo.com>
116437         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
116438         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
116440 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
116442         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
116443         warning.
116445 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
116447         * config/srclist.txt: Add glibc bug 1302.
116449 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
116451         Change bitset word type from unsigned int to unsigned long int,
116452         as this has better performance on typical 64-bit hosts.
116453         Port bitset code to hosts with unusual word sizes.
116454         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
116455         (build_collating_symbol):
116456         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
116457         argument is a bitset.  This is merely a style issue, but it makes
116458         it clearer that an entire array is expected.
116459         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
116460         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
116461         Port to the case where bitset_word is not the same as unsigned int.
116462         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
116463         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
116464         Likewise.
116465         * lib/regexec.c (check_dst_limits_calc_pos_1,
116466         check_subexp_matching_top):
116467         (build_trtable, group_nodes_into_DFAstates):
116468         Likewise.
116469         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
116470         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
116471         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
116472         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
116473         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
116474         * lib/regcomp.c (optimize_subexps, lower_subexp):
116475         Work even if bitset_word has holes in its bitwise representation.
116476         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
116477         * lib/regexec.c (check_dst_limits_calc_pos_1,
116478         check_subexp_matching_top):
116479         Likewise.
116480         * lib/regex_internal.c (re_string_reconstruct):
116481         Don't assume UCHAR_MAX == 255.
116482         * lib/regex_internal.h (bitset_set_all): Likewise.
116483         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
116484         All uses changed.
116485         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
116486         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
116487         All uses changed.
116488         (BITSET_WORD_MAX): New macro.
116489         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
116490         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
116491         (bitset_empty, bitset_copy):
116492         Prefer sizeof (bitset) to multiplying it out ourselves.
116493         (bitset_not_merge): Remove; unused.
116494         (bitset_contain): Return bool, not unsigned int with one bit on.
116495         All callers changed.
116496         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
116497         alignment than re_node_set; do this by defining a new internal
116498         type struct dests_alloc and using it to allocate memory.
116500 2005-09-05  Bruno Haible  <bruno@clisp.org>
116502         * gnulib-tool (func_import): Fix comparison in handling of symbolic
116503         links.
116505 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
116507         * modules/size_max (Makefile.am): Add size_max.h
116509 2005-09-04  Derek Price  <derek@ximbiot.com>
116511         * gnulib-tool (func_import): Fix reversed $symbolic logic.
116513 2005-09-03  Simon Josefsson  <jas@extundo.com>
116515         * gnulib-tool: Fix typo.
116517 2005-09-03  Simon Josefsson  <jas@extundo.com>
116519         * config/srclist.txt: Add glibc bug 1293.
116521 2005-09-03  Derek Price  <derek@ximbiot.com>
116523         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
116524         From Larry Jones <lawrence.jones@ugs.com>.
116526 2005-09-02  Simon Josefsson  <jas@extundo.com>
116528         * modules/socklen: New file.
116530 2005-09-02  Simon Josefsson  <jas@extundo.com>
116532         * modules/havelib: New module.
116534         * modules/gettext, modules/iconv, modules/lock, modules/readline:
116535         Use havelib.
116537 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
116539         Check for arithmetic overflow when calculating sizes, to prevent
116540         some buffer-overflow issues.  These patches are conservative, in the
116541         sense that when I couldn't determine whether an overflow was possible,
116542         I inserted a run-time check.
116543         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
116544         macros.
116545         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
116546         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
116547         (re_xnrealloc, re_x2nrealloc): New inline functions.
116548         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
116549         parse_bracket_exp):
116550         (build_equiv_class, build_charclass): Check for arithmetic overflow
116551         in size expression calculations.
116552         * lib/regex_internal.c (re_string_realloc_buffers):
116553         (build_wcs_upper_buffer, re_node_set_add_intersect):
116554         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
116555         (re_dfa_add_node, register_state): Likewise.
116556         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
116557         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
116558         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
116559         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
116561 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
116563         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
116564         m4/ulonglong.m4.  Problem reported by Martin Lambers.
116566 2005-09-02  Bruno Haible  <bruno@clisp.org>
116568         Support for lib vs. lib64 distinction on biarch platforms.
116569         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
116570         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
116571         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
116573 2005-09-02  Bruno Haible  <bruno@clisp.org>
116575         * gnulib-tool (import): In the other first-use case, provide defaults
116576         as well.
116578 2005-09-02  Bruno Haible  <bruno@clisp.org>
116580         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
116581         patches not yet found in the latest gettext release.
116583 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
116585         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
116586         to avoid a collision with bits/local_lim.h in glibc.
116587         All uses changed.  Problem reported by Dmitry V. Levin in
116588         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
116590         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
116591         bugs in int versus size_t comparisons.
116592         (re_string_context_at): Fix bug where the code assumed that
116593         Idx is signed.
116595         Use bool where appropriate.
116596         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
116597         All callers changed.
116598         (calc_eclosure_iter): Likewise, for ROOT arg.
116599         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
116600         (build_charclass_op): Likewise, for NON_MATCH arg.
116601         * lib/regex_internal.c (re_string_allocate, re_string_construct):
116602         (re_string_construct_common): Likewise, for ICASE arg.
116603         * lib/regexec.c (re_search_2_stub, re_search_stub):
116604         Likewise, for RET_LEN arg.
116605         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
116606         (set_regs): Likewise, for FL_BACKTRACK arg.
116607         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
116608         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
116609         (calc_eclosure_iter, parse_bracket_exp):
116610         Use bool for internal variables that are booleans.
116611         * lib/regexec.c (re_search_internal, check_matching,
116612         proceed_next_node):
116613         (set_regs, build_sifted_states, sift_states_bkref):
116614         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
116615         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
116616         (find_collation_sequence_value):
116617         Likewise.
116618         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
116619         (re_node_set_compare):
116620         Return bool, not int. All callers changed.
116621         * lib/regexec.c (check_halt_node_context, check_dst_limits):
116622         (build_trtable, check_node_accept): Likewise.
116623         * lib/regex_internal.h: Include stdbool.h.
116625         Fix bugs uncovered when converting to bool.
116626         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
116627         failure instead of charging ahead blindly.
116628         * lib/regex_internal.c (register_state): Likewise.
116629         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
116630         for freeing internal storage.
116631         (group_nodes_into_DFA_states): Use unsigned int, not int, for
116632         bitset pieces used as boolean, to avoid undefined behavior
116633         on hosts that do int overflow checking.
116635 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
116637         * config/srclist.txt: Add glibc bugs 1285-1287.
116639 2005-09-01  Jim Meyering  <jim@meyering.net>
116641         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
116642         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
116643         Require gl_STAT_MACROS, too.
116645 2005-09-01  Bruno Haible  <bruno@clisp.org>
116647         * gnulib-tool (import): In the first-use case, provide defaults.
116649 2005-09-01  Bruno Haible  <bruno@clisp.org>
116651         * gnulib-tool (func_import): Remove the .tmp files.
116653 2005-09-01  Bruno Haible  <bruno@clisp.org>
116655         * gnulib-tool (func_import): Fix handling of symbolic links.
116657 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
116659         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
116660         old glibc regex code mishandles strings longer than 2**31 bytes.
116661         This patch fixes this when the regex code is used in gnulib
116662         (i.e., outside glibc).
116664         This patch should not affect the use of the regex code inside
116665         glibc.  No doubt this problem also needs to be handled for glibc
116666         as well, but the result will be an incompatible change to the
116667         glibc ABI, and the old ABI will have to be supported too.  That
116668         can be the subject for another patch.
116670         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
116671         governing whether the rest of this patch is active.  By default,
116672         the macro is disabled and the patch has no effect.
116673         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
116674         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
116675         (struct re_pattern_buffer, re_search, re_search_2, re_match):
116676         (re_match_2, re_set_registers): Use the new types.
116677         * lib/regex_internal.h (Idx, re_hashval_t): New types.
116678         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
116679         New macros.
116680         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
116681         (re_string_context_at, bin_tree_t, re_dfastate_t):
116682         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
116683         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
116684         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
116685         (re_string_char_size_at, re_string_wchar_at):
116686         (re_string_elem_size_at):
116687         Use the new types and macros to port to 64-bit hosts.
116688         Use unsigned types for internal values, so that the code
116689         mostly works even for arrays larger than SSIZE_MAX.
116690         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
116691         (search_duplicated_node, calc_eclosure_iter, fetch_number):
116692         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
116693         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
116694         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
116695         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
116696         (calc_inveclosure, parse_dup_op, build_range_exp):
116697         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
116698         (fetch_number, create_token_tree, mark_opt_subexp):
116699         Likewise.
116700         * lib/regex_internal.c (re_string_construct_common,
116701         create_ci_newstate):
116702         (create_cd_newstate, re_string_allocate, re_string_construct):
116703         (re_string_realloc_buffers, build_wcs_upper_buffer):
116704         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
116705         (re_string_reconstruct, re_string_peek_byte_case):
116706         (re_string_fetch_byte_case, re_string_context_at):
116707         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
116708         (re_node_set_init_copy, re_node_set_add_intersect):
116709         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
116710         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
116711         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
116712         (re_acquire_state, re_acquire_state_context, register_state):
116713         Likewise.
116714         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
116715         search_cur_bkref_entry):
116716         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
116717         (re_search_internal, re_search_2_stub, re_search_stub)
116718         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
116719         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
116720         (update_cur_sifted_state, check_dst_limits):
116721         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
116722         (check_subexp_limits, sift_states_bkref, merge_state_array):
116723         (check_subexp_matching_top, get_subexp, get_subexp_sub):
116724         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
116725         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
116726         (expand_bkref_cache, check_node_accept_bytes):
116727         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
116728         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
116729         (acquire_init_state_context, check_halt_node_context):
116730         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
116731         (sift_states_backward, clean_state_log_if_needed):
116732         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
116733         (find_recover_state, transit_state_sb, transit_state_mb):
116734         (transit_state_bkref, build_trtable, match_ctx_clean):
116735         Likewise.
116736         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
116737         to work around an assumption that REG_MISSING is negative.
116739         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
116740         (seek_collating_symbol_entry) [defined _LIBC]:
116741         (lookup_collation_sequence_value) [defined _LIBC]:
116742         (build_range_exp, build_collating_symbol) [defined _LIBC]:
116743         Use prototypes rather than old-style function definitions.
116744         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
116745         (transit_state_sb) [0]:
116746         (find_collation_sequence_value) [defined _LIBC]: Likewise.
116748         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
116749         rm_eo.
116751         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
116752         (optimize_subexps, lower_subexp):
116753         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
116754         since the signed shift might overflow.  Use 1u<<31 instead.
116755         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
116756         Likewise.
116757         * lib/regexec.c (check_dst_limits_calc_pos_1,
116758         check_subexp_matching_top): Likewise.
116760         * lib/regcomp.c (optimize_subexps, lower_subexp):
116761         Use CHAR_BIT rather than 8, for clarity.
116762         * lib/regexec.c (check_dst_limits_calc_pos_1):
116763         (check_subexp_matching_top): Likewise.
116764         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
116765         have to worry about portability issues when shifting it left.
116766         Remove no-longer-needed test for table_size > 0.
116767         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
116768         in a word, as the resulting behavior is undefined.
116769         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
116770         in one case, a <= should have been an <, and in another case the
116771         whole test was missing.
116772         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
116773         the standard name CHAR_BIT.
116774         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
116775         this is not true on one's complement and signed-magnitude hosts.
116777         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
116778         next_last_offset.
116779         (struct re_dfa_t): Remove unused member states_alloc.
116780         * lib/regcomp.c (init_dfa): Don't initialize unused members.
116782 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
116784         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
116785         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
116786         and large-file glibc and in 32-bit large-file Solaris.
116788 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
116790         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
116791         lengths fit in regoff_t; this isn't true if regoff_t is the same
116792         width as size_t.
116793         * lib/regex.c (re_search_internal): 5th arg is LAST_START
116794         (= START + RANGE) instead of RANGE.  This avoids overflow
116795         problems when regoff_t is the same width as size_t.
116796         All callers changed.
116797         (re_search_2_stub): Check for overflow when adding the
116798         sizes of the two strings.
116799         (re_search_stub): Check for overflow when adding START
116800         to RANGE; if it occurs, substitute the extreme value.
116802 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
116804         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
116806 2005-08-31  Jim Meyering  <jim@meyering.net>
116808         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
116809         a pointer-to-const.
116810         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
116811         (register_state): Likewise.
116812         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
116813         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
116814         (group_nodes_into_DFAstates): Likewise.
116816 2005-08-31  Jim Meyering  <jim@meyering.net>
116818         * check-module: Add a FIXME comment.
116820 2005-08-31  Eric Blake  <ebb9@byu.net>
116822         * modules/unistd-safer (Files): Add unistd--.h.
116823         * modules/stdio-safer (Files): Add stdio--.h.
116825 2005-08-31  Derek Price  <derek@ximbiot.com>
116827         * lib/getdelim.c (getdelim): Return EOF on EOF.
116828         Reported by Larry Jones <lawrence.jones@ugs.com>.
116830 2005-08-31  Bruno Haible  <bruno@clisp.org>
116832         Avoid unnecessary diffs in the generated lib/Makefile.am.
116833         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
116834         the generated files.
116835         (func_import): Don't set cmd.
116837 2005-08-31  Bruno Haible  <bruno@clisp.org>
116839         * lib/strstr.c: Include <stddef.h>, for NULL.
116840         * lib/strcasestr.c: Likewise.
116841         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
116843 2005-08-31  Bruno Haible  <bruno@clisp.org>
116845         * gnulib-tool: New option --macro-prefix.
116846         (func_import): Use macro_prefix.
116847         (import): Handle option --macro-prefix.
116849 2005-08-31  Bruno Haible  <bruno@clisp.org>
116851         * gnulib-tool (import): Rename most ac_* variables to cached_*.
116852         Also use new variables cached_lgpl, cached_libtool.
116854 2005-08-31  Bruno Haible  <bruno@clisp.org>
116856         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
116857         always instantiating them.
116859 2005-08-31  Bruno Haible  <bruno@clisp.org>
116861         * gnulib-tool (func_import): Read the previous cached settings
116862         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
116863         earlier added by gnulib but are now dropped. Warn when a gnulib file
116864         overwrites a non-gnulib file.
116866 2005-08-31  Bruno Haible  <bruno@clisp.org>
116868         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
116869         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
116870         projects that don't keep autogenerated files in CVS. Put into
116871         actioncmd only the specified modules, not the transitive closure.
116873 2005-08-31  Bruno Haible  <bruno@clisp.org>
116875         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
116876         Create directories that shall be filled.
116877         (import): Don't look for gl_* macros in configure.ac. Recurse across
116878         all directories containing a gnulib-cache.m4 files, if meaningful.
116880 2005-08-31  Bruno Haible  <bruno@clisp.org>
116882         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
116883         (import): Set seen_libtool when we see gl_LIBTOOL.
116885 2005-08-31  Bruno Haible  <bruno@clisp.org>
116887         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
116888         declaration macro definitions from generated gnulib.m4.
116890 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
116892         * lib/iconvme.h: Add prototype for iconv_alloc.
116894 2005-08-29  Simon Josefsson  <jas@extundo.com>
116896         * lib/iconvme.c: Fix errno.
116898 2005-08-29  Bruno Haible  <bruno@clisp.org>
116900         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
116901         that it works when the directory contains spaces.
116903 2005-08-29  Bruno Haible  <bruno@clisp.org>
116905         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
116907 2005-08-29  Bruno Haible  <bruno@clisp.org>
116909         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
116910         Emit more advice.
116912 2005-08-29  Bruno Haible  <bruno@clisp.org>
116913         and Stepan Kasal  <kasal@ucw.cz>
116915         * check-module: If more parameters are given, check each of them
116916         separately; add more exceptions, as noted by Jim Meyering.
116917         (check_module): New procedure.
116918         (%exempt_header): Now contains all exceptions.
116920 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
116922         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
116924 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
116926         * lib/iconvme.c: Split iconv_string into iconv_alloc.
116928 2005-08-28  Bruno Haible  <bruno@clisp.org>
116930         * m4/gnulib-tool.m4: New file.
116932 2005-08-27  Jim Meyering  <jim@meyering.net>
116934         * modules/unistd-safer (Files): Add pipe-safer.c.
116935         * modules/fcntl-safer (Files): Add creat-safer.c.
116937 2005-08-27  Jim Meyering  <jim@meyering.net>
116939         * m4/stdlib-safer.m4: New file.  From coreutils.
116940         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
116941         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
116942         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
116943         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
116944         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
116946 2005-08-27  Jim Meyering  <jim@meyering.net>
116948         * lib/fopen-safer.c: Merge minor changes from coreutils.
116949         * lib/dup-safer.c: Likewise.
116950         * lib/fd-safer.c: Likewise.
116952         Merge from coreutils.
116953         * lib/stdio--.h: New file.
116954         * lib/stdlib--.h: New file.
116955         * lib/mkstemp-safer.c: New file.
116957         GNU tar needs these.
116958         * lib/pipe-safer.c: New file.
116959         * lib/creat-safer.c: New file.
116960         * lib/fcntl--.h (creat): Define to creat_safer.
116961         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
116962         * lib/unistd--.h (pipe): Define to pipe_safer.
116963         * lib/unistd-safer.h: Declare pipe_safer.
116965 2005-08-26  Simon Josefsson  <jas@extundo.com>
116967         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
116968         Haible <bruno@clisp.org>.
116970 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
116972         * lib/regex_internal.h: Remove all references to
116973         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
116974         or better.
116975         (bitset_not, bitset_merge, bitset_not_merge):
116976         (bitset_mask, re_string_allocate, re_string_construct):
116977         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
116978         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
116979         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
116980         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
116981         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
116982         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
116983         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
116984         (re_acquire_state_context):
116985         Remove unnecessary forward decls.
116986         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
116987         Put __attribute at function definition,
116988         now that the function decl has been removed.
116989         * lib/regex_internal.c (re_string_peek_byte_case):
116990         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
116991         Likewise.
116993 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
116995         * m4/regex.m4: Add AC_PREREQ(2.50).
116996         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
116998 2005-08-25  Simon Josefsson  <jas@extundo.com>
117000         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
117001         __fsetlocking.
117003 2005-08-25  Simon Josefsson  <jas@extundo.com>
117005         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
117006         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
117007         GLIBC specific code.
117009 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
117011         Make regex safe for g++.  This fixes one real bug (an "err"
117012         that should have been "*err").  g++ problem reported by
117013         Sam Steingold.
117014         * lib/regex_internal.h (re_calloc): New macro, consistent with
117015         re_malloc etc.  All callers of calloc changed to use re_calloc.
117016         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
117017         not int.  All callers changed.
117018         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
117019         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
117020         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
117021         (find_recover_state): Change "err" to "*err"; this fixes what
117022         appears to be a real bug.
117023         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
117024         versus int.
117026 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
117028         * modules/regex (Depends-on): Add malloc, since the code
117029         assumes that !malloc(0) means failure.
117031 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
117033         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
117035         alloca modernization/simplification for regex.
117036         * lib/regex.c: Remove portability cruft for alloca.  This no longer
117037         needs to be at the start of the file, and can be moved into
117038         regex_internal.h and simplified.
117039         * lib/regex_internal.h: Include <alloca.h>.
117040         (__libc_use_alloca) [!defined _LIBC]: New macro.
117041         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
117042         now works outside glibc.
117044 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
117046         * config/srclist.txt: Add glibc bugs 1241, 1245.
117048 2005-08-25  Jim Meyering  <jim@meyering.net>
117050         * lib/open-safer.c: Include <config.h>.
117051         Otherwise, we'd lose LARGEFILE support in any file using
117052         e.g. "fcntl--.h"
117054 2005-08-25  Bruno Haible  <bruno@clisp.org>
117056         * m4/minmax.m4: Require autoconf 2.52.
117057         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
117058         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
117059         alternatives of translit over the alphabet.
117060         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
117062 2005-08-24  Simon Josefsson  <jas@extundo.com>
117064         * tests/test-getpass.c: New file.
117066 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
117068         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
117069         for GNU regex features.
117071 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
117073         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
117074         * lib/regex.h (regerror): Likewise.
117076         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
117077         requires this.  (The code never needed it.)
117079         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
117080         All uses of recently-renamed identifiers changed to use the new,
117081         POSIX-compliant names.  The code will build and run just fine
117082         without these changes, but it's better to eat our own dog food
117083         and use the standard-conforming names.
117085         * lib/regex.h: Fix a multitude of POSIX name space violations.
117086         These changes have an effect only for programs that define
117087         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
117088         do not change anything for programs compiled in the normal way.
117089         Also, there is no effect on the ABI.
117091         (_REGEX_SOURCE): New macro.
117092         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
117093         defined and _GNU_SOURCE is not; this fixes a name space violation.
117095         Rename the following macros to obey POSIX requirements.
117096         The old names are still visible as macros if _REGEX_SOURCE is defined.
117097         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
117098         RE_BACKSLASH_ESCAPE_IN_LISTS.
117099         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
117100         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
117101         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
117102         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
117103         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
117104         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
117105         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
117106         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
117107         (REG_INTERVALS): renamed from RE_INTERVALS.
117108         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
117109         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
117110         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
117111         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
117112         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
117113         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
117114         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
117115         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
117116         RE_UNMATCHED_RIGHT_PAREN_ORD.
117117         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
117118         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
117119         (REG_DEBUG): renamed from RE_DEBUG.
117120         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
117121         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
117122         unusual, since we can't clash with the POSIX REG_ICASE.
117123         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
117124         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
117125         (REG_NO_SUB): renamed from RE_NO_SUB.
117126         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
117127         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
117128         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
117129         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
117130         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
117131         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
117132         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
117133         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
117134         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
117135         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
117136         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
117137         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
117138         RE_SYNTAX_POSIX_MINIMAL_BASIC.
117139         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
117140         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
117141         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
117142         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
117143         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
117144         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
117145         (REG_FIXED): Renamed from REGS_FIXED.
117146         (REG_NREGS): Renamed from RE_NREGS.
117148         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
117149         of other REG_* macros, since POSIX says the user is allowed to
117150         #undef these macros selectively.
117152         (reg_errcode_t): Update comment stating what other tables need
117153         to be consistent.
117155         Rename the following enum values to obey POSIX requirements.
117156         The old names are still visible as macros.
117157         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
117158         is not defined, since GNU is supposed to be a superset of POSIX as
117159         much as possible, and since we want reg_errcode_t to be a signed
117160         type for implementation consistency.
117161         (_REG_NOERROR): Renamed from REG_NOERROR.
117162         (_REG_NOMATCH): Renamed from REG_NOMATCH.
117163         (_REG_BADPAT): Renamed from REG_BADPAT.
117164         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
117165         (_REG_ECTYPE): Renamed from REG_ECTYPE.
117166         (_REG_EESCAPE): Renamed from REG_EESCAPE.
117167         (_REG_ESUBREG): Renamed from REG_ESUBREG.
117168         (_REG_EBRACK): Renamed from REG_EBRACK.
117169         (_REG_EPAREN): Renamed from REG_EPAREN.
117170         (_REG_EBRACE): Renamed from REG_EBRACE.
117171         (_REG_BADBR): Renamed from REG_BADBR.
117172         (_REG_ERANGE): Renamed from REG_ERANGE.
117173         (_REG_ESPACE): Renamed from REG_ESPACE.
117174         (_REG_BADRPT): Renamed from REG_BADRPT.
117175         (_REG_EEND): Renamed from REG_EEND.
117176         (_REG_ESIZE): Renamed from REG_ESIZE.
117177         (_REG_ERPAREN): Renamed from REG_ERPAREN.
117178         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
117179         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
117180         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
117181         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
117183         (_REG_RE_NAME, _REG_RM_NAME): New macros.
117184         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
117185         changed.  But support the old name if the new one is not defined
117186         and if _REGEX_SOURCE.
117188         Change the following member names in struct re_pattern_buffer.
117189         The old names are still supported if !_REGEX_SOURCE.
117190         The new names are always supported, regardless of _REGEX_SOURCE.
117191         (re_buffer): Renamed from buffer.
117192         (re_allocated): Renamed from allocated.
117193         (re_used): Renamed from used.
117194         (re_syntax): Renamed from syntax.
117195         (re_fastmap): Renamed from fastmap.
117196         (re_translate): Renamed from translate.
117197         (re_can_be_null): Renamed from can_be_null.
117198         (re_regs_allocated): Renamed from regs_allocated.
117199         (re_fastmap_accurate): Renamed from fastmap_accurate.
117200         (re_no_sub): Renamed from no_sub.
117201         (re_not_bol): Renamed from not_bol.
117202         (re_not_eol): Renamed from not_eol.
117203         (re_newline_anchor): Renamed from newline_anchor.
117205         Change the following member names in struct re_registers.
117206         The old names are still supported if !_REGEX_SOURCE.
117207         The new names are always supported, regardless of _REGEX_SOURCE.
117208         (rm_num_regs): Renamed from num_regs.
117209         (rm_start): Renamed from start.
117210         (rm_end): Renamed from end.
117212         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
117213         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
117214         Prepend __ to parameter names.
117216         Undo yesterday's changes.
117218 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
117220         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
117221         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
117222         lib/regex.c.
117224 2005-08-24  Jim Meyering  <jim@meyering.net>
117226         Sync from coreutils.
117227         * m4/fcntl-safer.m4: New file.
117229         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
117230         and object files for this module.
117232 2005-08-24  Jim Meyering  <jim@meyering.net>
117234         Sync from coreutils.
117235         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
117237 2005-08-24  Jim Meyering  <jim@meyering.net>
117239         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
117240         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
117242 2005-08-24  Jim Meyering  <jim@meyering.net>
117244         * modules/fcntl-safer: New module.
117245         * modules/fts (Depends-on): Add fcntl-safer.
117246         * MODULES.html.sh (File descriptor based Input/Output):
117247         Add fcntl-safer.
117249 2005-08-24  Bruno Haible  <bruno@clisp.org>
117251         Support for unit test modules.
117252         * modules/README: Mention tests modules.
117253         * modules/TEMPLATE-TESTS: New file.
117254         * gnulib-tool: New options --extract-tests-module, --with-tests and
117255         --tests-base (unused for the moment).
117256         (testsbase, inctests): New variables.
117257         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
117258         (func_verify_module): Exclude TEMPLATE-TESTS.
117259         (func_verify_nontests_module, func_verify_tests_module): New functions.
117260         (func_get_dependencies): Add implicit dependency for tests modules.
117261         (func_get_tests_module): New function.
117262         (func_modules_transitive_closure): When --with-tests was specified,
117263         include the unit tests as well, unless explicitly avoided.
117264         (func_emit_lib_Makefile_am): Ignore the tests modules here.
117265         (func_emit_tests_Makefile_am): New function.
117266         (func_create_testdir): When --with-tests was specified, emit a
117267         tests/ directory.
117268         * MODULES.html.sh (Future developments): Update.
117270 2005-08-24  Bruno Haible  <bruno@clisp.org>
117272         * modules/tls-tests: New file.
117273         * tests/test-tls.c: New file, from GNU gettext.
117275 2005-08-24  Bruno Haible  <bruno@clisp.org>
117277         * modules/lock-tests: New file.
117278         * tests/test-lock.c: New file, from GNU gettext.
117280 2005-08-24  Bruno Haible  <bruno@clisp.org>
117282         * lib/lock.h: Add multiple inclusion guard.
117283         * lib/tls.h: Add multiple inclusion guard.
117285 2005-08-24  Bruno Haible  <bruno@clisp.org>
117287         * gnulib-tool: Add support for the --aux-dir option to
117288         --create-testdir, --create-megatestdir, --test, --megatest.
117289         (func_create_testdir, func_create_megatestdir): Optionally emit a
117290         AC_CONFIG_AUX_DIR directive.
117291         (create-testdir, create-megatestdir, test, megatest): Provide a
117292         default value for $auxdir.
117294 2005-08-24  Bruno Haible  <bruno@clisp.org>
117296         * gnulib-tool (import): Use compound statement instead of subshell
117297         where possible.
117299 2005-08-24  Bruno Haible  <bruno@clisp.org>
117301         * gnulib-tool (import): Change --aux-dir default to "build-aux".
117303 2005-08-24  Bruno Haible  <bruno@clisp.org>
117305         * gnulib-tool (func_version): Update.
117307 2005-08-24  Bruno Haible  <bruno@clisp.org>
117309         * gnulib-tool (func_import, func_create_testdir,
117310         func_create_megatestdir): Quote all autoconf macro arguments.
117312 2005-08-24  Bruno Haible  <bruno@clisp.org>
117314         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
117315         option --force, because --force causes the aclocal.m4 of each
117316         subdirectory to be newer than the corresponding config.h.in.
117318 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
117320         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
117321         All contents moved to gl_REGEX.
117322         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
117323         assume that it does.
117325 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
117327         * lib/regex.h (REG_NOSYS)
117328         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
117329         Define, since POSIX requires it as of 2001.
117330         (_REG_ENOSYS)
117331         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
117332         New private symbol, used to keep the enum signed in all cases.
117333         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
117334         Youngman in
117335         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
117337         * lib/regex_internal.c (re_string_skip_chars, register_state):
117338         (calc_state_hash):
117339         Remove forward decls; no longer needed now that we use prototypes.
117340         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
117341         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
117342         (clean_state_log_if_needed): Likewise.
117344 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
117346         * config/srclist.txt: Add glibc bugs 1231-1233.
117348 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
117350         Fix problems reported by Sam Steingold in
117351         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
117352         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
117353         assumed that reg_errcode_t is a signed type, which is not
117354         necessarily true if _XOPEN_SOURCE is not defined.
117355         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
117356         since some compilers warn about it otherwise.
117358 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
117360         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
117361         (init_word_char, create_initial_state, duplicate_node_closure):
117362         (fetch_token, peek_token_bracket, build_range_exp):
117363         (build_collating_symbol): Remove forward decls; no longer needed
117364         now that we use prototypes.
117366         * lib/regcomp.c:
117367         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
117368         (re_compile_fastmap_iter, regcomp, regerror, regfree):
117369         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
117370         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
117371         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
117372         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
117373         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
117374         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
117375         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
117376         (build_range_exp, build_collating_symbol, parse_bracket_exp):
117377         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
117378         (build_charclass, build_charclass_op, fetch_number, create_tree):
117379         (create_token_tree, mark_opt_subexp, duplicate_tree):
117380         Use prototypes rather than old-style definitions.
117382         * lib/regex_internal.c:
117383         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
117384         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
117385         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
117386         (re_string_reconstruct, re_string_peek_byte_case):
117387         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
117388         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
117389         (re_node_set_init_copy, re_node_set_add_intersect):
117390         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
117391         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
117392         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
117393         (re_acquire_state, re_acquire_state_context, register_state):
117394         (create_ci_newstate, create_cd_newstate, free_state):
117395         Likewise.
117396         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
117397         re_search_2):
117398         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
117399         (re_search_internal, prune_impossible_nodes):
117400         (acquire_init_state_context, check_matching, static):
117401         (check_halt_node_context, check_halt_state_context, proceed_next_node):
117402         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
117403         (update_regs, sift_states_backward, build_sifted_states):
117404         (clean_state_log_if_needed, merge_state_array):
117405         (update_cur_sifted_state, add_epsilon_src_nodes):
117406         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
117407         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
117408         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
117409         (find_recover_state, check_subexp_matching_top, transit_state_mb):
117410         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
117411         (check_arrival, check_arrival_add_next_nodes):
117412         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
117413         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
117414         (check_node_accept_bytes, check_node_accept, extend_buffers):
117415         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
117416         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
117417         (sift_ctx_init):
117418         Likewise.
117420         * lib/regex_internal.h:
117421         (re_string_allocate, re_string_construct, re_string_reconstruct):
117422         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
117423         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
117424         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
117425         (re_string_context_at, re_string_peek_byte_case):
117426         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
117427         is defined, since we now use prototypes always.
117429         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
117430         C89 or better.  All uses removed.
117432 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
117434         * config/srclist.txt: Add glibc bugs 1220-1227.
117436 2005-08-20  Jim Meyering  <jim@meyering.net>
117438         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
117439         of unused local, dfa.
117441 2005-08-20  Bruno Haible  <bruno@clisp.org>
117443         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
117445 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
117447         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
117448         (re_node_set_insert_last, re_dfa_add_node):
117449         Rename local variables to avoid GCC shadowing warnings.
117451 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
117453         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
117454         [defined lint]: Suppress bogus uninitialized-variable warnings.
117456         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
117457         and let the caller return REG_ESPACE if out of space.  This
117458         removes an uninitialied-variable warning with GCC 4.0.1, and also
117459         avoids taking the address of a local variable.  All callers
117460         changed.
117462 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
117464         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
117465         $LIBCSRC/posix/regexec.c.
117466         Add glibc bug 1217 for regcomp.c.
117468 2005-08-19  Jim Meyering  <jim@meyering.net>
117470         * lib/regexec.c (proceed_next_node): Redo local variables to
117471         avoid GCC shadowing warnings.
117473 2005-08-18  Bruno Haible  <bruno@clisp.org>
117475         * lib/strstr.c (strstr): Fix return value in multibyte case.
117476         * lib/strcasestr.c (strcasestr): Likewise.
117478 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
117480         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
117482 2005-08-17  Jim Meyering  <jim@meyering.net>
117484         Make the %s format (seconds since the epoch) work for a negative
117485         number and when used with a zero-padded field width, e.g. %015s.
117487         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
117488         label so that it precedes the code to set `digits'.  Otherwise,
117489         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
117490         print `00-22'.  Now, it prints `-0022', as it should.
117492 2005-08-17  Bruno Haible  <bruno@clisp.org>
117494         * modules/strstr (Files): Add m4/mbrtowc.m4.
117495         (Depends-on): Add mbuiter.
117497 2005-08-17  Bruno Haible  <bruno@clisp.org>
117499         * modules/strcasestr: New file.
117500         * MODULES.html.sh (String handling, based on ANSI C 89): Add
117501         strcasestr.
117503 2005-08-17  Bruno Haible  <bruno@clisp.org>
117505         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
117507 2005-08-17  Bruno Haible  <bruno@clisp.org>
117509         * modules/mbuiter: New file.
117510         * MODULES.html.sh (Extended multibyte and wide character utilities):
117511         Add mbuiter.
117513 2005-08-17  Bruno Haible  <bruno@clisp.org>
117515         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
117516         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
117518 2005-08-17  Bruno Haible  <bruno@clisp.org>
117520         * m4/strcasestr.m4: New file.
117522 2005-08-17  Bruno Haible  <bruno@clisp.org>
117524         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
117525         * lib/strstr.c: Completely rewritten, with multibyte locale support.
117527 2005-08-17  Bruno Haible  <bruno@clisp.org>
117529         * lib/strcasestr.h: New file.
117530         * lib/strcasestr.c: New file.
117532 2005-08-17  Bruno Haible  <bruno@clisp.org>
117534         * lib/strcasecmp.c: Use mbuiter.h.
117536 2005-08-17  Bruno Haible  <bruno@clisp.org>
117538         * lib/mbuiter.h: New file.
117540 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
117542         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
117543         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
117544         and gl_GETOPT are both invoked via different paths (as happens
117545         with GNU tar CVS because it uses both argp and getopt), the former
117546         wins.
117548 2005-08-16  Bruno Haible  <bruno@clisp.org>
117550         * modules/tls: New file.
117551         * MODULES.html.sh (Multithreading): Add tls.
117553 2005-08-16  Bruno Haible  <bruno@clisp.org>
117555         * modules/strnlen1: New file.
117556         * MODULES.html.sh (String handling): Add strnlen1.
117558 2005-08-16  Bruno Haible  <bruno@clisp.org>
117560         * modules/strcase (Files): Add m4/mbrtowc.m4.
117561         (Depends-on): Add strnlen1, mbchar.
117563 2005-08-16  Bruno Haible  <bruno@clisp.org>
117565         * modules/mbiter: New file.
117566         * MODULES.html.sh (Extended multibyte and wide character utilities):
117567         Add mbiter.
117569 2005-08-16  Bruno Haible  <bruno@clisp.org>
117571         * modules/mbfile: New file.
117572         * MODULES.html.sh (Extended multibyte and wide character utilities):
117573         Add mbfile.
117575 2005-08-16  Bruno Haible  <bruno@clisp.org>
117577         * modules/mbchar: New file.
117578         * MODULES.html.sh (Extended multibyte and wide character utilities):
117579         New section.
117581 2005-08-16  Bruno Haible  <bruno@clisp.org>
117583         * m4/tls.m4: New file, from GNU gettext.
117585 2005-08-16  Bruno Haible  <bruno@clisp.org>
117587         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
117588         always.
117589         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
117591 2005-08-16  Bruno Haible  <bruno@clisp.org>
117593         * m4/mbiter.m4: New file.
117595 2005-08-16  Bruno Haible  <bruno@clisp.org>
117597         * m4/mbfile.m4: New file.
117599 2005-08-16  Bruno Haible  <bruno@clisp.org>
117601         * m4/mbchar.m4: New file.
117603 2005-08-16  Bruno Haible  <bruno@clisp.org>
117605         * lib/tls.h: New file, from GNU gettext.
117606         * lib/tls.c: New file, from GNU gettext.
117608 2005-08-16  Bruno Haible  <bruno@clisp.org>
117610         * lib/strnlen1.h: New file.
117611         * lib/strnlen1.c: New file.
117613 2005-08-16  Bruno Haible  <bruno@clisp.org>
117615         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
117616         (mbi_init): Update.
117617         (mbi_avail, mbi_advance): Let the iteration end before the terminating
117618         NUL byte, not after it.
117620 2005-08-16  Bruno Haible  <bruno@clisp.org>
117622         * lib/strcase.h (strcasecmp): Add note in comments.
117623         * lib/strncasecmp.c: Use code from strcasecmp.c.
117624         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
117625         (strcasecmp): Work correctly in multibyte locales.
117627 2005-08-16  Bruno Haible  <bruno@clisp.org>
117629         * lib/mbiter.h: New file.
117631 2005-08-16  Bruno Haible  <bruno@clisp.org>
117633         * lib/mbfile.h: New file.
117635 2005-08-16  Bruno Haible  <bruno@clisp.org>
117637         * lib/mbchar.h: New file.
117638         * lib/mbchar.c: New file.
117640 2005-08-16  Bruno Haible  <bruno@clisp.org>
117642         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
117643         the valid ones. Makes the comparison operations transitive:
117644         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
117645         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
117647 2005-08-15  Simon Josefsson  <jas@extundo.com>
117649         * modules/ssize_t (License): Change to 'unlimited'.
117651         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
117653 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
117655         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
117656         Add comments for each pending glibc patch.
117658 2005-08-15  Bruno Haible  <bruno@clisp.org>
117660         * lib/regex.h (__restrict_arr): Don't define to __restrict if
117661         __cplusplus is defined.
117663 2005-08-14  Jim Meyering  <jim@meyering.net>
117665         Sync from coreutils.
117667         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
117668         Use the hash-table-based cycle-detection code not just when
117669         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
117670         Reported by James Youngman in
117671         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
117672         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
117673         FTS_TIGHT_CYCLE_CHECK.
117674         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
117675         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
117676         once again.
117677         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
117678         * lib/fts.c (fd_safer): Remove decl.
117679         Include fcntl--.h rather than unistd-safer.h
117680         (fts_safe_changedir): Don't call fd_safer; no longer needed
117681         now that we include fcntl--.h.
117683 2005-08-12  Simon Josefsson  <jas@extundo.com>
117685         * modules/getndelim2: Use ssize_t module.
117686         * modules/getnline: Likewise.
117687         * modules/safe-read: Likewise.
117688         * modules/xreadlink: Likewise.
117690         * modules/ssize_t: New file.
117692 2005-08-12  Simon Josefsson  <jas@extundo.com>
117694         * m4/readline.m4: Look for termcap, curses or ncurses if required.
117696 2005-08-12  Simon Josefsson  <jas@extundo.com>
117698         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
117699         ssize_t.
117701 2005-08-12  Simon Josefsson  <jas@extundo.com>
117703         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
117704         readline, getdelim and check_version.
117705         (Support for systems lacking ISO C 99: Sizes of integer types):
117706         Add size_max.
117708 2005-08-12  Bruno Haible  <bruno@clisp.org>
117710         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
117712 2005-08-11  Simon Josefsson  <jas@extundo.com>
117714         * modules/readline: New file.
117716         * modules/strnlen (Files): Add strnlen.h.
117718 2005-08-11  Simon Josefsson  <jas@extundo.com>
117720         * m4/readline.m4: New file.
117722 2005-08-11  Simon Josefsson  <jas@extundo.com>
117724         * lib/readline.h, readline.c: New file.
117726 2005-08-11  Simon Josefsson  <jas@extundo.com>
117728         * doc/gnulib.texi (Initial import, Finishing touches): Mention
117729         gl_AVOID.
117731 2005-08-11  Bruno Haible  <bruno@clisp.org>
117733         * lib/strnlen.h (strnlen): Change parameter name to match comment.
117735 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
117737         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
117739 2005-08-10  Simon Josefsson  <jas@extundo.com>
117741         * tests/test-iconvme.c: New file.
117743 2005-08-10  Simon Josefsson  <jas@extundo.com>
117745         * m4/strnlen.m4: New file.
117747         * m4/strndup.m4: Don't check for strnlen declaration, done in
117748         strnlen.m4.
117750 2005-08-10  Simon Josefsson  <jas@extundo.com>
117752         * lib/strndup.c: Use strnlen.h.
117754         * lib/strnlen.h: New file.
117756 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
117758         * README: Typos.
117760 2005-08-02  Simon Josefsson  <jas@extundo.com>
117762         * modules/readline: New file.
117764 2005-08-02  Simon Josefsson  <jas@extundo.com>
117766         * modules/getdelim: New file.
117768         * modules/getline: Rewrite, don't use getndelim2.
117770 2005-08-02  Simon Josefsson  <jas@extundo.com>
117772         * m4/getline.m4: Separate out getdelim stuff into separate module.
117774         * m4/getdelim.m4: New file.
117776 2005-08-02  Simon Josefsson  <jas@extundo.com>
117778         * lib/getline.h, getline.c: Rewrite.
117780         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
117782 2005-07-31  Bruno Haible  <bruno@clisp.org>
117784         * lib/lock.h (gl_lock_initializer): New macro.
117785         (gl_lock_define_initialized): Use it.
117786         (gl_rwlock_initializer): New macro.
117787         (gl_rwlock_define_initialized): Use it.
117788         (gl_recursive_lock_initializer): New macro.
117789         (gl_recursive_lock_define_initialized): Use it.
117791 2005-07-30  Karl Berry  <karl@gnu.org>
117793         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
117794         Report from Ben Pfaff, regarding getopt.
117796 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
117798         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
117799         normal way.
117800         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
117801         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
117802         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
117803         (gl_GETOPT): Use the new macros.  Most of the implementation
117804         is moved to the new macros.  This is for programs like Emacs
117805         that don't want all the functionality of gl_GETOPT.
117807 2005-07-26  Bruno Haible  <bruno@clisp.org>
117809         * m4/lock.m4: Update from GNU gettext.
117811 2005-07-26  Bruno Haible  <bruno@clisp.org>
117813         * lib/lock.h: Update from GNU gettext.
117814         * lib/lock.c: Update from GNU gettext.
117816 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
117818         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
117819         obsolescent AC_TRY_RUN.  Include the default includes files, for
117820         'exit'.
117822 2005-07-24  Bruno Haible  <bruno@clisp.org>
117824         * modules/visibility: New file.
117825         * MODULES.html.sh (Misc): Add visibility.
117827 2005-07-24  Bruno Haible  <bruno@clisp.org>
117829         * m4/visibility.m4: New file.
117831 2005-07-24  Bruno Haible  <bruno@clisp.org>
117833         * doc/visibility.texi: New file.
117835 2005-07-22  Bruno Haible  <bruno@clisp.org>
117837         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
117838         $(ALLOCA_H), redundant through BUILT_SOURCES.
117839         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
117840         redundant through BUILT_SOURCES.
117841         * modules/byteswap (Makefile.am): Remove explicit dependency on
117842         $(BYTESWAP_H), redundant through BUILT_SOURCES.
117843         * modules/fnmatch (Makefile.am): Remove explicit dependency on
117844         $(FNMATCH_H), redundant through BUILT_SOURCES.
117845         * modules/getopt (Makefile.am): Remove explicit dependency on
117846         $(GETOPT_H), redundant through BUILT_SOURCES.
117847         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
117848         redundant through BUILT_SOURCES.
117849         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
117850         redundant through BUILT_SOURCES.
117851         * modules/stdbool (Makefile.am): Remove explicit dependency on
117852         $(STDBOOL_H), redundant through BUILT_SOURCES.
117853         * modules/stdint (Makefile.am): Remove explicit dependency on
117854         $(STDINT_H), redundant through BUILT_SOURCES.
117855         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
117856         Remove explicit dependency on $(SYSEXITS_H).
117857         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
117859 2005-07-18  Simon Josefsson  <jas@extundo.com>
117861         * lib/check-version.c (check_version): Accept identical versions too.
117863 2005-07-18  Bruno Haible  <bruno@clisp.org>
117865         * modules/lock: New file.
117866         * MODULES.html.sh (Multithreading): New section.
117868 2005-07-18  Bruno Haible  <bruno@clisp.org>
117870         * m4/lock.m4: New file, from GNU gettext.
117872 2005-07-18  Bruno Haible  <bruno@clisp.org>
117874         * lib/lock.h: New file, from GNU gettext.
117875         * lib/lock.c: New file, from GNU gettext.
117877 2005-07-18  Bruno Haible  <bruno@clisp.org>
117879         * lib/lock.h (gl_once_t): New type.
117880         (gl_once_define, gl_once): New macros.
117881         * lib/lock.c (fresh_once): New variable.
117882         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
117883         functions.
117885 2005-07-16  Simon Josefsson  <jas@extundo.com>
117887         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
117888         workaround, suggested by Bruno.
117890 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
117892         * modules/xalloc (Depends-on): Add xalloc-die.
117893         * modules/xvasprintf (Depends-on): Add xalloc-die.
117895 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
117897         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
117898         with a minor change.
117900 2005-07-15  Bruno Haible  <bruno@clisp.org>
117902         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
117903         When using lib/poll.c, define poll as rpl_poll.
117905 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
117907         * modules/argp (Depends-on): Remove unlocked-io.
117909 2005-07-14  Derek Price  <derek@ximbiot.com>
117911         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
117912         for glob symlink bug.
117914 2005-07-14  Bruno Haible  <bruno@clisp.org>
117916         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
117917         Instead, test for *_unlocked function declarations directly.
117919 2005-07-11  Simon Josefsson  <jas@extundo.com>
117921         * modules/size_max: New file.
117923         * modules/xsize: Depend on size_max module for size_max.m4.
117925 2005-07-11  Simon Josefsson  <jas@extundo.com>
117927         * lib/size_max.h: New file.
117929 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
117931         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
117932         copyright symbol and the year.
117933         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
117934         (version_etc_va): Use parameterized copyright notice.
117935         Reword to conform to the current GNU coding standards.
117937 2005-07-11  Karl Berry  <karl@gnu.org>
117939         * doc/gnulib.texi (Quoting): new node.
117940         (Initial import): more info, from Patrice.
117942 2005-07-11  Bruno Haible  <bruno@clisp.org>
117944         * gnulib-tool (func_usage): Document option --avoid.
117945         (Command line options): Handle --avoid.
117946         (func_acceptable): New function.
117947         (func_modules_transitive_closure): Use it.
117949 2005-07-11  Bruno Haible  <bruno@clisp.org>
117951         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
117952         Reported by Jim Meyering.
117954 2005-07-10  Bruno Haible  <bruno@clisp.org>
117956         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
117957         Needed when size_t is smaller than 'unsigned int'.
117958         Reported by Paul Eggert.
117960 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
117962         * modules/argp (Depends-on): Add unlocked-io
117964 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
117966         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
117967         block of defines.
117969 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
117971         * config/srclist.txt: Comment out regcomp.c, since we have a porting
117972         fix now.
117974 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
117975         and Paul Eggert  <eggert@cs.ucla.edu>
117977         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
117978         in wint_t, not wchar_t.  Remove now-unnecessary cast.
117980 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
117982         * modules/regex (Files): Add lib/regex_internal.c,
117983         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
117984         (Depends-on): Add extensions.
117985         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
117987 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
117989         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
117990         pathconf.
117991         * m4/same.m4 (gl_SAME): Likewise.
117992         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
117994         * m4/regex.m4: Adjust to new libc regex implementation.
117995         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
117996         all the .c and .h parts of (the new) regex.
117997         Quote the m4 stuff better.
117998         Check for RE_ICASE bug of old gnulib.
117999         Check for REG_STARTEND of recent libc.
118000         Rename local variables from jm_* to gl_*.
118001         Quote operand of "test -f".
118002         Say "recent enough" version of libc, not "version 2".
118003         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
118004         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
118005         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
118006         Remove check for btowc, isascii.
118007         Require AM_LANGINFO_CODESET.
118009 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
118011         * lib/regex.c, regex.h: Sync from libc.
118012         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
118013         * lib/regexec.c:
118014         New files, synced from libc, except that regex_internal.h
118015         currently has a small porting fix.
118017 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
118019         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
118020         regex_internal.c, regexec.c.
118021         Add regex_internal.h too, but as a comment, since the libc version
118022         is currently broken in gnulib mode.
118024 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
118026         Support programs like Emacs that use gnulib but not gettext.
118027         * MODULES.html.sh (Internationalization functions): Add gettext-h.
118028         * modules/gettext-h: New file.
118029         * modules/gettext (Files): Remove lib/gettext.h.
118030         (Depends-on): Add gettext-h.
118031         (Makefile.am): Remove lib_SOURCES.
118032         * modules/argmatch, modules/c-stack, modules/closeout:
118033         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
118034         * modules/execute, modules/file-type, modules/getaddrinfo:
118035         * modules/getopt, modules/human, modules/javacomp:
118036         * modules/javaexec, modules/mkdir-p, modules/obstack:
118037         * modules/openat, modules/pagealign_alloc, modules/pipe:
118038         * modules/quotearg, modules/regex, modules/rpmatch:
118039         * modules/unicodeio, modules/userspec, modules/version-etc:
118040         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
118041         * modules/xsetenv:
118042         Depend on gettext-h, not gettext.
118044 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
118046         * gnulib-tool (func_import): Add support for 'public domain' license.
118047         * modules/alloca, modules/atexit, modules/memmove:
118048         Now public domain, not GPL.
118049         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
118050         * modules/realloc, modules/strerror, modules/strtod:
118051         Now LGPL, not GPL.
118053 2005-07-05  Bruno Haible  <bruno@clisp.org>
118055         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
118056         autoconf CVS. Needed for mingw.
118058 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
118060         Remove the dependency of the strftime module on the tzset module.
118061         * modules/strftime (Depends-on): Remove dependency on tzset.
118063 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
118065         Remove the dependency of the strftime module on the tzset module.
118066         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
118067         gl_FUNC_TZSET_CLOBBER.
118069 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
118071         Remove the dependency of the strftime module on the tzset module.
118072         * lib/strftime.c (my_strftime)
118073         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
118074         Copy the input structure, to work around some of the bug with
118075         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
118076         Solaris releases, you should also use the tzset module, but we won't
118077         require it as a dependency any more since we don't want LGPLed code
118078         to depend on GPLed code.
118080 2005-07-02  Jim Meyering  <jim@meyering.net>
118082         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
118083         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
118084         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
118085         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
118087 2005-07-02  Jim Meyering  <jim@meyering.net>
118089         * lib/backupfile.c (backup_args): Change a `0' to NULL.
118091 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
118093         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
118094         declares only 'struct timespec;' (!).
118096 2005-07-01  Jim Meyering  <jim@meyering.net>
118098         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
118099         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
118100         * lib/save-cwd.c, tempname.c:
118101         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
118102         and don't include <sys/file.h>).
118104 2005-06-29  Jim Meyering  <jim@meyering.net>
118106         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
118107         type name.  Use the variable name instead.
118108         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
118109         Likewise.
118111 2005-06-28  Simon Josefsson  <jas@extundo.com>
118113         * modules/check-version (Files): Add check-version.m4.
118115 2005-06-28  Simon Josefsson  <jas@extundo.com>
118117         * m4/check-version.m4: New file, suggested by Jim Meyering
118118         <jim@meyering.net>.
118120 2005-06-28  Simon Josefsson  <jas@extundo.com>
118122         * lib/check-version.h, lib/check-version.c: New files.
118124 2005-06-28  Simon Josefsson  <jas@extundo.com>
118126         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
118127         collision with global variable.  Better indentation.  Don't
118128         increment buffer pointer beyond buffer end.  Based on comments
118129         from Paul Eggert <eggert@cs.ucla.edu>.
118131         * lib/base64.h: Indent.
118133 2005-06-28  Simon Josefsson  <jas@extundo.com>
118135         * doc/gnulib.texi (Library version handling): New section.
118137 2005-06-28  Jim Meyering  <jim@meyering.net>
118139         * check-module (find_included_lib_files): Hard-code another
118140         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
118141         but modules/fts-lgpl (correctly) does not list those files.
118143         * modules/canonicalize (Files): Add lib/pathmax.h.
118145 2005-06-25  Simon Josefsson  <jas@extundo.com>
118147         * modules/check-version: New file.
118149 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
118151         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
118152         initializer of struct addrinfo, as an indication that we don't
118153         care how many members the structure has.
118155 2005-06-24  Derek Price  <derek@ximbiot.com>
118156         and Bruno Haible  <bruno@clisp.org>
118158         Remove stat module & update lstat.
118159         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
118160         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
118161         * m4/stat.m4: Remove this file.
118163 2005-06-24  Derek Price  <derek@ximbiot.com>
118164         and Bruno Haible  <bruno@clisp.org>
118166         Remove stat module & update lstat.
118167         * lib/stat.c: Remove this file...
118168         (slash_aware_lstat): ...moving this content and its support...
118169         * lib/lstat.c (rpl_lstat): ...into here.
118170         * lib/lstat.h: New file.
118172 2005-06-24  Derek Price  <derek@ximbiot.com>
118173         and Bruno Haible  <bruno@clisp.org>
118175         Remove stat module & update lstat.
118176         * config/srclist.txt (libc sources): Remove stat.
118178 2005-06-24  Derek Price  <derek@ximbiot.com>
118179         and Bruno Haible  <bruno@clisp.org>
118181         Remove stat module & update lstat.
118182         * MODULES.html.sh (stat): Remove.
118183         * MODULES.html: Regenerated.
118184         * modules/lstat (Description): Correct function name.
118185         (Files): Add "lstat.h".
118186         (Depends-on): Remove stat, add xalloc, stat-macros.
118187         * modules/stat: Remove this file.
118188         (Include): Add "lstat.h", remove <sys/stat.h>.
118190 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
118192         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
118193         (ranged_convert): Don't save conversion in a temporary struct.
118194         This causes a warning with GCC 4.0.0, and anyway in the typical
118195         case it's not worth the extra 100 bytes or so of code.
118196         (ranged_convert, __mktime_internal): When calling a function via a
118197         pointer P, use P () rather than (*P) (), as we now assume C89 or
118198         better.
118200 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
118202         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
118203         "who -r" failed to give output.  Problem reported by Tim Waugh.
118205         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
118206         (xcalloc): Use it to avoid needless tests.
118207         Problem reported by Jim Meyering.
118209 2005-06-20  Derek Price  <derek@ximbiot.com>
118211         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
118212         unnecessary for Autoconfs > 2.59c.
118214 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
118216         * lib/argp.h (__option_is_short): Check upper limit of
118217         __key. Isprint() requires its argument to have the value
118218         of an unsigned char or EOF.
118220 2005-06-16  Jim Meyering  <jim@meyering.net>
118222         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
118223         when either N or S is zero.
118225 2005-06-16  Derek Price  <derek@ximbiot.com>
118227         * m4/bison.m4: Declare YACC & YFLAGS precious.
118229 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
118231         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
118232         multibyte string or pattern, fall back on unibyte matching.
118233         Problem reported by James Youngman.
118235 2005-06-08  Bruno Haible  <bruno@clisp.org>
118237         * modules/csharpcomp: New file.
118238         * MODULES.html.sh (C#): Add csharpcomp.
118240 2005-06-08  Bruno Haible  <bruno@clisp.org>
118242         * m4/csharpcomp.m4: New file, from GNU gettext.
118244 2005-06-08  Bruno Haible  <bruno@clisp.org>
118246         * lib/csharpcomp.h: New file, from GNU gettext.
118247         * lib/csharpcomp.c: New file, from GNU gettext.
118248         * lib/csharpcomp.sh.in: New file, from GNU gettext.
118250 2005-06-08  Bruno Haible  <bruno@clisp.org>
118252         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
118253         warning on mingw.
118255 2005-06-07  Derek Price  <derek@ximbiot.com>
118257         Sync from CVS.
118258         * lib/glob_.h: Indent nested #ifdef.
118260 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
118262         Sync from coreutils.
118263         Use "file name" when talking about file names, instead of "filename"
118264         or "path", as per the GNU coding standards.
118265         * lib/mkdir-p.c: Renamed from makepath.c.
118266         (make_dir_parents): Renamed from make_path.  All callers changed.
118267         * lib/mkdir-p.h: Likewise.  All includers changed.
118268         * lib/filenamecat.c: Renamed from path-concat.c.
118269         (file_name_concat): Renamed from path_concat.  All callers changed.
118270         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
118271         * lib/filenamecat.h: Likewise.  All includers changed.
118272         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
118273         in comments or local variable names.
118274         * lib/basename.c: Likewise.
118275         * lib/canonicalize.c, canonicalize.h: Likewise.
118276         * lib/dirname.c, dirname.h: Likewise.
118277         * lib/euidaccess.c: Likewise.
118278         * lib/exclude.c: Likewise
118279         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
118280         * lib/fsusage.c, fsuage.h: Likewise.
118281         * lib/fts.c, fts_.h: Likewise.
118282         * lib/getcwd.c: Likewise.
118283         * lib/getloadavg.c: Likewise.
118284         * lib/mkstemp.c: Likewise.
118285         * lib/mountlist.c, mountlist.h: Likewise.
118286         * lib/openat.c, openat.h: Likewise.
118287         * lib/readlink-stub.c: Likewise.
118288         * lib/readutmp.c, readutmp.h: Likewise.
118289         * lib/rename.c: Likewise.
118290         * lib/rmdir.c: Likewise.
118291         * lib/same.c: Likewise.
118292         * lib/savedir.c: Likewise.
118293         * lib/stripslash.c: Likewise.
118294         * lib/tempname.c: Likewise.
118295         * lib/xreadlink.c: Likewise.
118296         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
118297         All uses changed.
118298         * lib/exclude.h: Likewise.
118300         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
118301         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
118302         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
118303         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
118304         * lib/pathmax.h: Include <limits.h> unconditionally, since other
118305         files have been getting away with it for years (MORE/BSD 4.3
118306         is extinct now).
118307         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
118308         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
118310         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
118311         Define to 256, not 255, as per modern POSIX.
118313 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
118315         Sync from coreutils.
118316         Use "file name" when talking about file names, instead of "filename"
118317         or "path", as per the GNU coding standards.
118318         * MODULES.html.sh: mkdir-p renamed from makepath.
118319         filenamecat renamed from path-concat.
118320         * modules/filenamecat: Renamed from modules/path-concat.
118321         (Files): filenamecat.h and filenamecat.c renamed from
118322         path-concat.h and path-concat.c.
118323         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
118324         (Include): filenamecat.h, not path-concat.h.
118325         * modules/mkdir-p: Renamed from modules/makepath.
118326         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
118327         makepath.c.
118328         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
118329         (Include): mkdir-p.h, not makepath.h.
118331 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
118333         Sync from coreutils.
118334         * m4/mkdir-p.m4: Renamed from makepath.m4.
118335         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
118336         Rename files from makepath.c to mkdir-p.c, and from
118337         makepath.h to mkdir-p.h.
118338         * m4/filenamecat.m4: Renamed from path-concat.m4.
118339         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
118340         Rename files from path-concat.c to filenamecat.c,
118341         and from path-concat.h to filenamecat.h.
118342         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
118343         "file name" in local variables or comments.
118344         * m4/rename.m4: Likewise.
118346 2005-06-01  Bruno Haible  <bruno@clisp.org>
118348         * modules/csharpexec: New file.
118349         * MODULES.html.sh (C#): New section.
118351 2005-06-01  Bruno Haible  <bruno@clisp.org>
118353         * m4/csharp.m4: New file, from GNU gettext.
118354         * m4/csharpexec.m4: New file, from GNU gettext.
118356 2005-06-01  Bruno Haible  <bruno@clisp.org>
118358         * lib/csharpexec.h: New file, from GNU gettext.
118359         * lib/csharpexec.c: New file, from GNU gettext.
118360         * lib/csharpexec.sh.in: New file, from GNU gettext.
118362 2005-05-31  Derek Price  <derek@ximbiot.com>
118363             Paul Eggert  <eggert@cs.ucla.edu>
118365         Sync from cvs.
118366         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
118368 2005-05-31  Derek Price  <derek@ximbiot.com>
118369             Paul Eggert  <eggert@cs.ucla.edu>
118371         Sync from cvs.
118372         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
118374 2005-05-29  Derek Price  <derek@ximbiot.com>
118376         * config/srclist.txt (glob_.h, glob.c): Add these files.
118378 2005-05-29  Derek Price  <derek@ximbiot.com>
118380         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
118381         * modules/glob: New file.
118382         * modules/getlogin_r: Add link to POSIX spec in description.
118384 2005-05-29  Derek Price  <derek@ximbiot.com>
118385             Paul Eggert  <eggert@cs.ucla.edu>
118387         * m4/glob.m4: New file.
118389 2005-05-29  Derek Price  <derek@ximbiot.com>
118390             Paul Eggert  <eggert@cs.ucla.edu>
118392         * lib/glob_.h, lib/glob.c: New files.
118394 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
118396         * modules/fts (Files): Remove m4/inttypes-pri.m4.
118397         * modules/fts-lgpl (Depends-on): Remove gettext.
118399 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
118401         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
118402         and don't require gt_INTTYPES_PRI.
118404 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
118406         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
118408         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
118409         the configuration hassle isn't worth it.
118410         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
118411         (LONGEST_MODIFIER, PRIuMAX): Remove.
118413 2005-05-27  Bruno Haible  <bruno@clisp.org>
118415         * lib/getlogin_r.h: Remove second include of <stddef.h>.
118417 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
118419         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
118420         _POSIX_PTHREAD_SEMANTICS for Solaris.
118422 2005-05-25  Derek Price  <derek@ximbiot.com>
118424         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
118426 2005-05-25  Derek Price  <derek@ximbiot.com>
118427             Paul Eggert  <eggert@cs.ucla.edu>
118429         * modules/getlogin_r, m4/getlogin_r.m4: New files.
118430         * lib/getlogin_r.c, getlogin_r.h: New files.
118432 2005-05-25  Bruno Haible  <bruno@clisp.org>
118433             Derek Price  <derek@ximbiot.com>
118435         * lib/getlogin_r.h: Simplify API documentation.
118437 2005-05-23  Derek Price  <derek@ximbiot.com>
118439         * modules/minmax (Files): Add m4/minmax.m4.
118440         (configure.ac): Add gl_MINMAX.
118442 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
118444         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
118445         so that unistd-safer.h (GPL'ed code) need not be included.
118447 2005-05-22  Bruno Haible  <bruno@clisp.org>
118449         * m4/minmax.m4: New file.
118450         Based on a patch by Derek Price <derek@ximbiot.com>.
118452 2005-05-22  Bruno Haible  <bruno@clisp.org>
118454         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
118455         (INT64_MIN): Fix definition.
118456         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
118458         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
118459         NEED_SIGNED_INT_TYPES.
118461         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
118462         HAVE_SYSTEM_INTTYPES.
118464 2005-05-22  Bruno Haible  <bruno@clisp.org>
118466         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
118467         Also include <sys/param.h> if it defines MIN, MAX.
118468         Based on a patch by Derek Price <derek@ximbiot.com>.
118470 2005-05-21  Jim Meyering  <jim@meyering.net>
118472         * modules/fts (Files): Add m4/inttypes-pri.m4.
118473         (Depends-on): Add lstat and remove gettext.  Alphabetize.
118475 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
118477         New fts module.
118478         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
118479         (setup_dir, free_dir): New functions.
118480         (enter_dir, leave_dir): Define trivial
118481         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
118482         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
118483         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
118484         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
118485         Move to fts-cycle.c.
118486         (fts_open): Use setup_dir.
118487         (fts_close): Use free_dir.
118488         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
118489         This adds a label and some gotos, but the alternatives were messier.
118490         Check for memory allocation failure when entering a dir.
118491         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
118492         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
118493         (FTS): New member fts_cycle, that is a union that contains the
118494         old active_dir_ht and cycle_state.  All uses changed to mention
118495         fts_cycle.ht and fts_cycle.state.
118496         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
118497         fts.c, with the following changes:
118498         (setup_dir, free_dir): New functions.
118499         (enter_dir): Now returns bool.  Return true if successful, false
118500         if memory exhausted.  All callers changed.
118501         Do not bother partly cleaning up on
118502         memory allocation failure; that is free_dir's job.
118503         However, free ad if hash_insert fails, to avoid memory leak.
118504         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
118505         fts->fts_options to see which union member to use.
118507 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
118509         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
118510         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
118512 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
118514         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
118516 2005-05-20  Jim Meyering  <jim@meyering.net>
118518         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
118519         Now a macro, to pacify GCC.
118521 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
118523         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
118524         of -1.
118526 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
118528         * lib/chown.c (rpl_chown): Return -1 on failure.
118530 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
118532         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
118533         Don't check for stddef.h.
118534         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
118535         don't use its results.
118536         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
118537         since we include them unconditionally.  Don't require
118538         AM_STDBOOL_H, since stdbool is a prerequisite.
118539         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
118540         since we assume C89 or better.
118541         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
118542         as we don't use their results.
118543         Don't check for fchdir, memmove, memset, strrchr, as we use
118544         them unconditionally.
118545         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
118546         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
118548 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
118550         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
118551         Include <stddef.h> unconditionally, since we assume C89 now.
118552         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
118553         * lib/fts.c: Include fts_.h first, to check interface.
118554         Do not include intprops.h; no longer needed.
118555         Include cycle-check.h and hash.h, since fts_.h no longer does.
118556         Remove unnecessary casts of closedir to void.
118557         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
118558         decide whether to decrement nlinks.
118559         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
118560         (FTS): Use struct hash_table * instead of Hash_table, so that
118561         we no longer need to include hash.h here.
118563 2005-05-18  Jim Meyering  <jim@meyering.net>
118565         * modules/dirfd (License): Change to LGPL.  Most of the code
118566         is already in the public domain.
118568 2005-05-18  Jim Meyering  <jim@meyering.net>
118570         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
118571         Reported by Yoann Vandoorselaere.
118573 2005-05-17  Jim Meyering  <jim@meyering.net>
118575         * m4/fts.m4: New file, from coreutils.
118577 2005-05-17  Jim Meyering  <jim@meyering.net>
118579         * lib/fts.c, lib/fts_.h: New files, from coreutils.
118581 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
118583         Sync from coreutils.
118584         * m4/unlinkdir.m4: New file.
118586 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
118588         Sync from coreutils.
118589         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
118590         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
118591         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
118592         White space changes only.
118593         * lib/makepath.c (make_path): Port to hosts where leading "//" is
118594         special.
118595         * lib/yesno.c: Include getline.h, not ctype.h.
118596         (yesno): Don't remove leading white space; POSIX doesn't allow it.
118597         Use getline to remove arbitrary restriction on response length.
118599 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
118601         * config/srclist-update: Spell out "Street" in FSF postal
118602         mail address; this is the style the FSF seems to prefer.
118604         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
118605         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
118606         this updates FSF postal mail address.
118608         Sync from coreutils.
118609         * modules/unlinkdir: New file.
118610         * modules/yesno (Depends-on): Add getline.
118611         * MODULES.html.sh (File system functions): Add unlinkdir.
118613 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
118615         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
118616         lib/strsep.h:
118617         Change the initial comment to refer to GPL, not LGPL.
118618         gnulib-tool will change it to LGPL as needed.
118620         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
118621         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
118622         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
118623         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
118624         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
118625         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
118626         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
118627         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
118628         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
118629         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
118630         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
118631         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
118632         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
118633         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
118634         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
118635         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
118636         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
118637         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
118638         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
118639         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
118640         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
118641         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
118642         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
118643         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
118644         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
118645         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
118646         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
118647         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
118648         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
118649         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
118650         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
118651         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
118652         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
118653         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
118654         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
118655         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
118656         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
118657         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
118658         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
118659         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
118660         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
118661         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
118662         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
118663         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
118664         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
118665         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
118666         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
118667         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
118668         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
118669         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
118670         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
118671         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
118672         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
118673         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
118674         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
118675         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
118676         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
118677         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
118678         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
118679         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
118680         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
118681         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
118682         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
118683         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
118684         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
118685         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
118686         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
118687         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
118688         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
118689         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
118690         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
118691         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
118692         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
118693         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
118694         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
118695         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
118696         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
118697         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
118698         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
118699         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
118700         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
118701         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
118702         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
118703         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
118704         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
118705         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
118706         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
118707         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
118708         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
118709         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
118710         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
118711         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
118712         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
118713         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
118714         lib/yesno.c, lib/yesno.h:
118715         Update FSF postal mail address.
118717 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
118719         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
118720         tests/test-memmem.c, tests/test-stpncpy.c:
118721         Update FSF postal mail address.
118723 2005-05-13  Bruno Haible  <bruno@clisp.org>
118725         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
118726         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
118727         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
118728         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
118729         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
118730         Add support for 64-bit integers in the MSVC compiler.
118732 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
118734         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
118736 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
118738         * gnulib-tool (func_import): Sort and uniquify recommended includes.
118740 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
118742         * doc/getdate.texi (General date syntax): Don't say that date
118743         date --iso-8601=ns generates acceptable dates; it doesn't yet.
118744         Problem reported by Nic Ferrier.
118746 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
118748         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
118749         specified in ai_socktype. Fix invalid ai_protocol
118750         check. ai_protocol is usually set to 0 or depending on
118751         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
118752         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
118753         ai_socktype / ai_protocol in the returned addrinfo structure.
118755 2005-05-10  Simon Josefsson  <jas@extundo.com>
118757         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
118758         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
118760 2005-05-10  Karl Berry  <karl@gnu.org>
118762         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
118763         (from http://www.gnu.org/licenses).
118764         * doc/COPYING.LIB: also rename to COPYING.LESSER.
118765         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
118766         fdl.texi suffices.
118768 2005-05-10  Karl Berry  <karl@gnu.org>
118770         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
118771         (COPYING.DOC): remove.
118773         * config/srclist-update: new FSF address.
118775 2005-05-10  Derek Price  <derek@ximbiot.com>
118777         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
118778         possible.
118780 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
118781             Bruno Haible  <bruno@clisp.org>
118783         * modules/inet_ntop: New file.
118784         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
118785         inet_ntop.
118787 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
118788             Bruno Haible  <bruno@clisp.org>
118790         * m4/inet_ntop.m4: New file.
118792 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
118793             Bruno Haible  <bruno@clisp.org>
118795         * lib/inet_ntop.h: New file.
118796         * lib/inet_ntop.c: New file, from glibc with modifications.
118798 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
118800         * modules/time_r (License): Change to LGPL.
118801         * modules/extensions (License): Change to LGPL.  Actually,
118802         the license is more permissive than that, but currently gnulib-tool
118803         doesn't know how to handle more-permissive licenses.
118805         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
118806         Problem reported by Dave Love.
118808 2005-05-08  Jim Meyering  <jim@meyering.net>
118810         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
118811         blank.
118813 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
118815         * modules/argmatch (Depends-on): Add stdbool.
118816         * modules/backupfile (Depends-on): Likewise.
118817         * modules/chdir-long (Depends-on): Likewise.
118818         * modules/closeout (Depends-on): Likewise.
118819         * modules/cycle-check (Depends-on): Likewise.
118820         * modules/dirname (Depends-on): Likewise.
118821         * modules/fnmatch (Depends-on): Likewise.
118822         * modules/fsusage (Depends-on): Likewise.
118823         * modules/fwriteerror (Depends-on): Likewise.
118824         * modules/getcwd (Depends-on): Likewise.
118825         * modules/getloadavg (Depends-on): Likewise.
118826         * modules/hard-locale (Depends-on): Likewise.
118827         * modules/makepath (Depends-on): Likewise.
118828         * modules/mountlist (Depends-on): Likewise.
118829         * modules/nanosleep (Depends-on): Likewise.
118830         * modules/posixtm (Depends-on): Likewise.
118831         * modules/quotearg (Depends-on): Likewise.
118832         * modules/readtokens (Depends-on): Likewise.
118833         * modules/readtokens0 (Depends-on): Likewise.
118834         * modules/readutmp (Depends-on): Likewise.
118835         * modules/save-cwd (Depends-on): Likewise.
118836         * modules/strftime (Depends-on): Likewise.
118837         * modules/userspec (Depends-on): Likewise.
118838         * modules/utimecmp (Depends-on): Likewise.
118839         * modules/xgetcwd (Depends-on): Likewise.
118840         * modules/xnanosleep (Depends-on): Likewise.
118841         * modules/xstrtod (Depends-on): Likewise.
118842         * modules/yesno (Depends-on): Likewise.
118844 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
118846         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
118847         needless checks.
118849 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
118851         Merge from coreutils.  Among other things,
118852         add bulletproofing for cases where stdin, stdout, or stderr are closed.
118853         * lib/fd-safer.c: New file.
118854         * lib/fcntl-safer.h, open-safer.c: Remove.
118855         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
118856         * lib/dup-safer.c: Include unistd-safer.h first.
118857         Don't include errno.h.
118858         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
118859         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
118860         * lib/file-type.c: Rely on file-type.h change.
118861         * lib/getloadavg.c: Include unistd-safer.h.
118862         (getloadavg): Use safer open.
118863         * lib/getusershell.c: Include "stdio-safer.h".
118864         (getusershell): Use safer fopen.
118865         * lib/long-options.c (long_options): Use NULL rather than 0.
118866         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
118867         'free'.
118868         * lib/modechange.c: Likewise.
118869         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
118870         (MODE_DONE): New constant.
118871         (struct mode_change): Remove 'next' member.
118872         (make_node_op_equals): New function; like the old one of the
118873         same name, except it allocates an array.
118874         (mode_compile, mode_create_from_ref): Use it.
118875         (mode_compile): Allocate result as an array, not a linked list.
118876         Parse octal string ourself, so that we catch mistakes like "+0".
118877         (mode_adjust): Arg is an array, not a linked list.
118878         * lib/modechange.c: Include stat-macros.h, xalloc.h.
118879         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
118880         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
118881         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
118882         Remove.  This is now stat-macros.h's job.
118883         (talloc): Remove.  All callers replaced by xalloc, so that
118884         our invokers don't have to worry about reporting memory failures.
118885         (make_node_op_equals): Remove.
118886         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
118887         New constants.
118888         (struct mode_change): Moved here from modechange.h.
118889         (mode_append_entry): Remove.
118890         (mode_compile): Remove MASKED_OPS arg, since it encouraged
118891         apps to have incorrect behavior.  Use simpler algorithm for head
118892         and tail.  Don't futz with umask; that's now the job of mode_adjust.
118893         Detect more invalid usages rather than having somewhat-random behavior.
118894         Don't insert an "a=" action, as that leads to incorrect behavior.
118895         (mode_compile, mode_create_from_ref): Return NULL on error instead
118896         of an enum, since now there's only one way to have an error.  All
118897         callers changed.
118898         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
118899         at the correct time.  Simplify calculation of "+u" and its ilk.
118900         Don't mishandle "+X".
118901         (mode_free): Remove "register" and localize decls.
118902         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
118903         (struct mode_change): Move to modechange.c; callers don't
118904         need to see this stuff.
118905         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
118906         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
118907         (mode_change, mode_adjust): Reflect the new signatures noted above.
118908         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
118909         that might redefine system include files.
118910         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
118911         (my_usleep): Use NULL rather than (void *) 0.
118912         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
118913         Use siginterrupt to specify that system calls should be interrupted.
118914         (rpl_nanosleep): Move initialization of suspended closer to call of
118915         my_usleep.
118916         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
118917         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
118918         (desirable_utmp_entry): New function.
118919         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
118920         using x2nrealloc, to simplify logic.
118921         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
118922         size calculation.  Do not assume utmp file is a regular file.
118923         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
118924         (READ_UTMP_CHECK_PIDS): New constant.
118925         * lib/save-cwd.c: Include unistd-safer.h.
118926         (save_cwd): Use fd_safer.
118927         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
118928         [!_LIBC] Include "stat-macros.h" instead.
118929         * lib/unistd-safer.h (fd_safer): New decl.
118931 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
118933         * modules/getloadavg (Depends-on): Add unistd-safer.
118934         * modules/getusershell (Depends-on): Add stdio-safer.
118935         * modules/lstat (Depends-on): Remove xalloc.
118936         * modules/mkstemp (Depends-on): Add stat-macros.
118937         * modules/modechange (Depends-on): Remove xstrtol.
118938         Add stat-macros, xalloc.
118939         * modules/save-cwd (Depends-on): Add unistd-safer.
118940         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
118941         * modules/unistd-safer (Files): Add lib/fd-safer.c
118942         (Makefile.am): Remove lib_SOURCES.
118944         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
118945         Remove fcntl-safer; unistd-safer supersedes it.
118947 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
118949         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
118950         AC_HEADER_STAT.
118951         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
118952         (gl_PREREQ_CHOWN): Remove.
118953         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
118954         it.  Don't require AC_HEADER_STAT.
118955         (gl_PREREQ_LSTAT): Remove.
118956         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
118957         Don't require AC_HEADER_STAT.
118958         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
118959         (gl_PREREQ_RMDIR): Remove.
118960         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
118961         mention stat-macros.h or AC_HEADER_STAT, since we'll make
118962         the stat-macros module a prerequisite.
118963         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
118964         * m4/filemode.m4 (gl_FILEMODE): Likewise.
118965         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
118966         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
118967         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
118968         variable names.
118969         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
118970         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
118971         variable prefixes.
118972         * m4/fcntl-safer.m4: Remove.
118973         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
118974         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
118975         Invoke gl_PREREQ_FD_SAFER.
118976         (gl_PREREQ_FD_SAFER): New macro.
118977         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
118978         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
118979         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
118980         Remove duplicate call to AC_LIBOBJ(readutmp).
118981         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
118983         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
118984         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
118986 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
118988         * MODULES.html.sh (Misc): Add byteswap.
118990 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
118992         * modules/getcwd (Depends-on): Add extensions.
118993         * modules/openat (Depends-on): Likewise.
118995 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
118997         * modules/byteswap: New file.
118999 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
119001         * m4/byteswap.m4: New file.
119003 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
119005         * lib/byteswap_.h: New file.
119007 2005-04-25  Karl Berry  <karl@gnu.org>
119009         * m4/gettext.m4: Update from GNU gettext 0.14.4.
119011 2005-04-25  Albert Chin  <china@thewrittenword.com>
119013         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
119014         Toolkit C bug.
119016 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
119018         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
119019         (func_ln_if_changed): Remove forcibly for no error message
119020         in case file does not exist.
119022 2005-04-19  Simon Josefsson  <jas@extundo.com>
119024         * gnulib-tool (Options): Make --symlink mean --symbolic.
119026 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
119028         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
119030 2005-04-16  Simon Josefsson  <jas@extundo.com>
119032         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
119034 2005-04-15  Simon Josefsson  <jas@extundo.com>
119036         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
119038 2005-04-15  Simon Josefsson  <jas@extundo.com>
119040         * gnulib-tool: Rename --symlink to --symbolic.
119042 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
119044         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
119045         symbolic links to files instead of copying/moving.  Add --aux-dir,
119046         specifying directory relative --dir where auxiliary build tools
119047         are placed.
119049 2005-04-14  Bruno Haible  <bruno@clisp.org>
119051         * modules/allocsa (License): Change to LGPL.
119052         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
119054 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
119056         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
119057         that "UTC +1 second" continues to work.  Problem reported
119058         by Dmitry V. Levin.
119059         (relunit_snumber): New rule.
119060         (relunit): Use it.
119062 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
119064         * lib/getdate.y (universal_time_zone_table): New constant.
119065         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
119066         universal_time_zone_table.
119067         (lookup_zone): Prefer universal_time_zone_table to
119068         local_time_zone_table, so that "GMT" time stamps are allowed in
119069         London during the summer.  Problem reported by Ian Abbott.
119071 2005-04-12  Jim Meyering  <jim@meyering.net>
119073         * lib/human.c (humblock): Set *options even when returning due to
119074         xstrtoumax conversion failure.  Thanks to a used-uninitialized
119075         warning from gcc-4.
119077 2005-04-09  Jim Meyering  <jim@meyering.net>
119079         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
119080         -Wuninitialized: initialize tm0.tm_year.
119082 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
119084         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
119085         count, since there's no maximum.  All uses changed.
119086         Add member dsts_seen.
119087         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
119088         not being INT_MAX.
119089         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
119090         Use pc_rels_seen to decide whether a date is absolute.
119092         * lib/getdate.y (number): Don't overwrite year.
119093         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
119094         check.
119096 2005-04-02  Simon Josefsson  <jas@extundo.com>
119098         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
119099         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
119101 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
119103         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
119104         where no absolute path name can be longer than PATH_MAX.
119106 2005-03-27  Jim Meyering  <jim@meyering.net>
119108         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
119110 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
119112         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
119113         "one's complement" -> "ones' complement" in comment, as per Knuth.
119114         "value of type" -> "type or expression" in comment.
119115         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
119117 2005-03-26  Jim Meyering  <jim@meyering.net>
119119         Comment nits.
119120         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
119121         Correct typos: s/or/of/.
119123 2005-03-26  Jim Meyering  <jim@meyering.net>
119125         * modules/check-include-files: Move to ../ and rename to...
119126         * check-module: ...this.
119128 2005-03-25  Jim Meyering  <jim@meyering.net>
119130         * modules/xvasprintf (Files): Add xalloc.h.
119132 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
119134         * modules/gettext (Files): config/config.rpath ->
119135         build-aux/config.rpath
119136         * modules/iconv (Files): Likewise.
119137         Problem reported by Oskar Liljeblad.
119139 2005-03-23  Jim Meyering  <jim@meyering.net>
119141         * modules/check-include-files: New script to check for
119142         missing dependencies, multiple includes, etc.
119144         * modules/c-strtold (Depends-on): Add xalloc.
119145         * modules/c-strtod (Depends-on): Add xalloc.
119146         * modules/hash (Depends-on): Add xalloc.
119147         (Files): Remove lib/xalloc.h.
119149         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
119150         * modules/userspec (Files): Add lib/inttostr.h.
119152 2005-03-23  Jim Meyering  <jim@meyering.net>
119154         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
119156 2005-03-22  Jim Meyering  <jim@meyering.net>
119158         * modules/stat-macros: New module.
119159         * modules/canonicalize, modules/euidaccess, modules/file-type,
119160         * modules/filemode, modules/lchown, modules/makepath,
119161         * modules/rmdir, modules/stat: Depend on new stat-macros module
119162         rather than listing lib/stat-macros.h manually.
119163         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
119165 2005-03-22  Jim Meyering  <jim@meyering.net>
119167         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
119169 2005-03-22  Bruno Haible  <bruno@clisp.org>
119171         * config/srclist.txt: Replace target directory 'config' with
119172         'build-aux'.
119173         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
119174         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
119175         ../build-aux/.
119177 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
119179         * modules/chdir-long (Depends-on): Add mempcpy.
119181         * modules/acl, modules/backupfile, modules/c-strtod,
119182         modules/c-strtold, modules/canon-host, modules/canonicalize,
119183         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
119184         modules/exclude, modules/exitfail, modules/file-type,
119185         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
119186         modules/getdate, modules/getline, modules/getpagesize,
119187         modules/getpass, modules/getugroups, modules/group-member,
119188         modules/hard-locale, modules/hash, modules/human, modules/idcache,
119189         modules/inttostr, modules/long-options, modules/makepath,
119190         modules/md5, modules/memcasecmp, modules/memcoll,
119191         modules/modechange, modules/mountlist, modules/path-concat,
119192         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
119193         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
119194         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
119195         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
119196         modules/strftime, modules/strndup, modules/strverscmp,
119197         modules/timespec, modules/unlocked-io, modules/userspec,
119198         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
119199         modules/yesno:
119200         Remove lib_SOURCES line from Makefile.am section, as this is now
119201         done automatically by the corresponding Autoconf macro.
119203 2005-03-21  Jim Meyering  <jim@meyering.net>
119205         Changes imported from coreutils.
119207         * lib/cycle-check.c: Don't include xalloc.h.
119209         * lib/path-concat.c: Don't include assert.h.
119210         (path_concat): Remove assertion that would have triggered
119211         for ABASE starting with more than one slash.
119212         Reported by Andreas Schwab.
119214         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
119215         properly when ABASE is an absolute file name.
119216         Correct the description of this function.
119217         Include <assert.h>.
119218         Add an assertion and a test driver.
119219         This fixes a bug introduced on 2004-07-02.
119220         Andreas Schwab reported the resulting failure of cp --parents:
119221         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
119223 2005-03-21  Jim Meyering  <jim@meyering.net>
119225         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
119226         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
119228 2005-03-21  Jim Meyering  <jim@meyering.net>
119229         and  Paul Eggert  <eggert@cs.ucla.edu>
119231         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
119232         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
119233         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
119234         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
119235         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
119236         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
119237         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
119238         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
119239         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
119240         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
119241         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
119242         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
119243         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
119244         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
119245         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
119246         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
119247         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
119248         for these modules.
119250 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
119252         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
119253         (which shouldn't happen), generate nothing instead of returning 0
119254         immediately, so that nstrftime (NULL, ...) doesn't return 0.
119256 2005-03-16  Bruno Haible  <bruno@clisp.org>
119258         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
119259         HAVE_LONGLONG_64BIT.
119261 2005-03-16  Bruno Haible  <bruno@clisp.org>
119263         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
119264         HAVE_LONGLONG_64BIT.
119266 2005-03-16  Bruno Haible  <bruno@clisp.org>
119268         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
119269         HAVE_LONGLONG_64BIT.
119271 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
119273         * lib/strftime.c (my_strftime): Prepend space to format so that we can
119274         reliably distinguish strftime failure from empty output on POSIX
119275         hosts.
119277 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
119279         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
119280         (iconv_string): Don't guess a size-zero buffer, as that might cause
119281         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
119282         result would be 'too large', where 'too large' is (heuristically)
119283         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
119284         overflow concerns.  This will prevent some unwanted malloc failures
119285         when the inputs are very large.
119287 2005-03-15  Karl Berry  <karl@gnu.org>
119289         * config/srclist.txt (config.rpath): from gettext.
119290         * config/config.rpath: update.
119292 2005-03-15  Bruno Haible  <bruno@clisp.org>
119294         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
119295         to 'negate'.
119297         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
119298         variable.
119300         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
119301         results.
119303 2005-03-14  Simon Josefsson  <jas@extundo.com>
119305         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
119306         <fx@gnu.org>.
119308 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
119310         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
119311         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
119312         intprops.h.
119313         * lib/strtol.c: Likewise.
119315 2005-03-14  Jim Meyering  <jim@meyering.net>
119317         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
119318         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
119319         to be nonzero so that we (and caller) can detect the difference
119320         between a valid zero-length expansion and an error return, even
119321         when the underlying strftime fails before writing anything into
119322         that location.
119324 2005-03-14  Bruno Haible  <bruno@clisp.org>
119326         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
119327         Update from GNU gettext 0.14.3.
119329 2005-03-10  Jim Meyering  <jim@meyering.net>
119331         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
119333 2005-03-10  Jim Meyering  <jim@meyering.net>
119335         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
119336         so that this module works on systems without fchdir.
119338 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
119340         Factor int-properties macros into a single file, except for
119341         glibc-related files.
119342         * lib/intprops.h: New file.
119343         * lib/getloadavg.c: Include it instead of limits.h.
119344         (INT_STRLEN_BOUND): Remove.
119345         * lib/human.c: Include intprops.h.
119346         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
119347         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
119348         302/1000.
119349         * lib/inttostr.h: Include intprops.h instead of limits.h.
119350         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
119351         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
119352         for consistency with intprops.h.
119353         (time_t_is_integer, twos_complement_arithmetic): Use them.
119354         * lib/sig2str.h: Include <signal.h>, intprops.h.
119355         (INT_STRLEN_BOUND): Remove.
119356         * lib/strftime.c (TYPE_SIGNED): Remove.
119357         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
119358         * lib/strtol.c: Adjust comments to match intprops.h.
119359         * lib/userspec.c: Include intprops.h.
119360         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
119361         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
119362         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
119363         instead of rolling our own expressions.
119364         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
119366         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
119367         instead of int.
119368         (my_strftime): Do not mishandle years close to INT_MAX, by doing
119369         the right thing even if adding 1900 would overflow.  Similarly
119370         for tm_mon + 1 and tm_yday + 1.
119371         Make %Y always equivalent to %C%y, and similarly for %G and %g.
119372         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
119373         (DO_SIGNED_NUMBER): New macro.
119374         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
119376 2005-03-07  Bruno Haible  <bruno@clisp.org>
119378         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
119380 2005-03-07  Bruno Haible  <bruno@clisp.org>
119382         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
119384 2005-03-04  Derek R. Price  <derek@ximbiot.com>
119386         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
119387         (func_import): Only replace files via --import when they have actually
119388         changed.
119390 2005-03-03  Derek R. Price  <derek@ximbiot.com>
119392         * m4/mmap-anon.m4: New file.
119393         * m4/pagealign_alloc.m4: New file.
119395 2005-03-03  Derek R. Price  <derek@ximbiot.com>
119396             Bruno Haible  <bruno@clisp.org>
119398         * modules/pagealign_alloc: New file.
119399         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
119401 2005-03-03  Derek R. Price  <derek@ximbiot.com>
119402             Bruno Haible  <bruno@clisp.org>
119404         * lib/pagealign_alloc.h: New file.
119405         * lib/pagealign_alloc.c: New file.
119407 2005-03-03  Bruno Haible  <bruno@clisp.org>
119409         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
119410         Use an all-permissive copyright notice, recommended by RMS.
119412 2005-03-02  Bruno Haible  <bruno@clisp.org>
119414         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
119415         of AIX, the replacement has to be done only after <string.h> is
119416         included, therefore not in config.h. stpncpy.h does the replacement,
119417         and stpncpy.c uses it.
119419 2005-03-02  Bruno Haible  <bruno@clisp.org>
119421         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
119422         stpncpy.c uses it.
119424 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
119426         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
119427         The workaround isn't strictly needed for POSIX conformance, and
119428         it's too much of a pain to configure and maintain.  We'll ask
119429         people to fix their kernels instead.
119430         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
119431         (NANOSLEEP_BUG_WORKAROUND): Remove.
119432         (xnanosleep): Remove the workaround.
119434 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
119436         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
119437         Reported by Derek Price.
119438         (Include): Add "timespec.h".
119440         * modules/xnanosleep (Depends-on): Remove gethrxtime.
119442 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
119444         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
119445         to detect nanosleep bug.
119447 2005-03-01  Bruno Haible  <bruno@clisp.org>
119449         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
119451 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
119453         * modules/gethrxtime: New file.
119454         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
119455         (Depends-on): Add gethrxtime.
119456         (configure.ac): Add gl_XNANOSLEEP.
119457         (Makefile.am): Remove lib_SOURCES line.
119459 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
119461         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
119462         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
119464 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
119466         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
119467         * lib/timespec.h (gettime): Return void, since it always
119468         succeeds now.  All uses changed.
119469         * lib/gettime.c (gettime): Likewise.
119470         [HAVE_NANOTIME]: Prefer nanotime.
119471         Assume gettimeofday succeeds, as POSIX requires.
119472         Assime time () succeeds, since other code already does.
119473         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
119474         (timespec_subtract): Remove.
119475         (NANOSLEEP_BUG_WORKAROUND): New constant.
119476         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
119477         things considerably.  Use it only on GNU/Linux hosts, since the
119478         workaround shouldn't be needed elsewhere.
119480 2005-02-24  Bruno Haible  <bruno@clisp.org>
119482         * modules/gettext (Files): Add m4/glibc2.m4.
119484 2005-02-24  Bruno Haible  <bruno@clisp.org>
119486         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
119487         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
119488         * m4/progtest.m4:
119489         Update from GNU gettext 0.14.2.
119490         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
119492 2005-02-24  Bruno Haible  <bruno@clisp.org>
119494         * lib/localcharset.c: Update from GNU gettext 0.14.2.
119495         * lib/config.charset: Update from GNU gettext 0.14.2.
119497 2005-02-24  Bruno Haible  <bruno@clisp.org>
119499         * lib/gettext.h: Update from GNU gettext 0.14.2.
119501 2005-02-23  Simon Josefsson  <jas@extundo.com>
119503         * m4/iconvme.m4: New file.
119505 2005-02-23  Jim Meyering  <jim@meyering.net>
119507         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
119508         change.
119509         Thanks to Bruno Haible for catching it.
119511 2005-02-22  Simon Josefsson  <jas@extundo.com>
119513         * modules/iconvme: New file.
119515         * MODULES.html.sh: Add iconvme.
119517 2005-02-22  Simon Josefsson  <jas@extundo.com>
119519         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
119521 2005-02-22  Simon Josefsson  <jas@extundo.com>
119523         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
119525 2005-02-22  Jim Meyering  <jim@meyering.net>
119527         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
119528         s/ifndef/ifdef/.
119530 2005-02-20  Neil Conway  <neilc@samurai.com>
119532         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
119533         returned by OSX/Darwin if the specified buffer is not large
119534         enough for the hostname.
119536 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119538         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
119539         pass it to _help, otherwise the latter coredumps trying to
119540         dereference state.root_argp.
119542 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
119544         * modules/chdir-long (Depends-on): Add memrchr.
119545         * modules/memrchr (Files): Add lib/memrchr.h.
119546         (Include): "memrchr.h".
119548 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
119550         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
119552 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
119554         * lib/memrchr.h: New file.
119555         * lib/chdir-long.c: Include it.
119556         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
119557         Don't bother including stddef.h.
119559 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
119561         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
119562         inclusion.
119563         Include <sys/types.h>, for dev_t.
119564         (ME_DUMMY, ME_REMOTE): Move from here....
119565         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
119566         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
119567         Dmitry V. Levin.
119568         Include mountlist.h first, to test the interface.
119570 2005-01-29  Bruno Haible  <bruno@clisp.org>
119572         * lib/progname.c (program_name): Initialize.
119573         Needed when linking statically on MacOS X.
119575 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
119577         Sync from coreutils.
119578         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
119579         (Depends-on): Add c-strtod.
119580         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
119582 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
119584         Sync from coreutils.
119585         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
119587         Remove files that are specific to coreutils.
119588         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
119590 2005-01-28  Bruno Haible  <bruno@clisp.org>
119592         * modules/javacomp: New file.
119593         * MODULES.html.sh (Java): Add javacomp.
119595 2005-01-28  Bruno Haible  <bruno@clisp.org>
119597         * m4/javacomp.m4: New file, from GNU gettext.
119599 2005-01-28  Bruno Haible  <bruno@clisp.org>
119601         * lib/javacomp.sh.in: New file, from GNU gettext.
119602         * lib/javacomp.h: New file, from GNU gettext.
119603         * lib/javacomp.c: New file, from GNU gettext.
119605 2005-01-26  Simon Josefsson  <jas@extundo.com>
119607         * lib/gai_strerror.c: Use GPL in header.
119609 2005-01-26  Bruno Haible  <bruno@clisp.org>
119611         * modules/javaexec: New file.
119612         * MODULES.html.sh (Java): Add javaexec.
119614 2005-01-26  Bruno Haible  <bruno@clisp.org>
119616         * m4/javaexec.m4: New file, from GNU gettext.
119618 2005-01-26  Bruno Haible  <bruno@clisp.org>
119620         * lib/javaexec.sh.in: New file, from GNU gettext.
119621         * lib/javaexec.h: New file, from GNU gettext.
119622         * lib/javaexec.c: New file, from GNU gettext.
119624 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119626         * modules/lchown (Depends-on): Remove lchown.h
119628 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119630         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
119631         must be defined if the header file was not found, in order
119632         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
119634 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119636         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
119637         initializers for struct pentry_state.
119638         (__argp_error): Check return value of __asprintf
119639         (__argp_failure): Translate error message
119641         * lib/argp-parse.c: Removed braces around the expansion of N_()
119643 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
119645         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
119646         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
119647         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
119648         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
119649         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
119650         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
119651         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
119652         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
119653         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
119654         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
119655         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
119656         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
119657         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
119658         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
119659         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
119660         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
119661         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
119662         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
119663         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
119664         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
119665         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
119666         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
119667         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
119668         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
119669         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
119670         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
119671         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
119672         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
119673         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
119674         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
119675         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
119676         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
119677         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
119678         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
119679         xstrtol.m4, xstrtoumax.m4, yesno.m4:
119680         Use an all-permissive copyright notice, recommended by RMS.
119682 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
119684         * modules/chdir-long (Depends-on): Remove mempcpy.
119686 2005-01-21  Jim Meyering  <jim@meyering.net>
119688         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
119689         same value as for Solaris 9.
119691         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
119692         component length.  This included changing the parameter to be
119693         of type `char *' rather than `char const *'.
119694         * lib/chdir-long.h (chdir_long): Update prototype.
119696         * lib/openat.c (fdopendir, fstatat): New functions.
119697         * lib/openat.h: Include headers required for use of DIR and struct
119698         stat.
119699         [AT_SYMLINK_NOFOLLOW]: Define.
119700         (fdopendir, fstatat): Add prototypes.
119702 2005-01-21  Bruno Haible  <bruno@clisp.org>
119704         * modules/classpath: New file.
119705         * MODULES.html.sh (Java): Add classpath.
119707 2005-01-21  Bruno Haible  <bruno@clisp.org>
119709         * lib/classpath.h: New file, from GNU gettext.
119710         * lib/classpath.c: New file, from GNU gettext.
119712 2005-01-20  Simon Josefsson  <jas@extundo.com>
119714         * modules/version-etc-fsf: New file.
119716 2005-01-20  Simon Josefsson  <jas@extundo.com>
119718         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
119719         * lib/version-etc.c: Remove version_etc_copyright.
119720         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
119721         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
119723 2005-01-20  Simon Josefsson  <jas@extundo.com>
119725         * lib/base64.h (isbase64): Add.
119727         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
119728         using a unsigned prototype, don't inline.
119729         (base64_decode): Use it.
119731 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
119733         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
119734         it.
119736 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
119738         * lib/save-cwd.c (save_cwd): Remove code to support the case
119739         where fchdir is missing or flaky.
119741 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
119743         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
119745 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
119747         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
119748         AC_LIBSOURCES now does this.
119749         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
119750         with new ullong_max module.
119752 2005-01-19  Bruno Haible  <bruno@clisp.org>
119754         * modules/sh-quote: New file.
119755         * MODULES.html.sh (Executing programs): Add sh-quote.
119757 2005-01-19  Bruno Haible  <bruno@clisp.org>
119759         * lib/sh-quote.h: New file, from GNU gettext.
119760         * lib/sh-quote.c: New file, from GNU gettext.
119762 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
119764         Merge from coreutils.
119765         * m4/ullong_max.m4: New file.
119766         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
119767         (gl_MACROS): Assume localeconv exists.
119769 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
119771         Merge changes from coreutils, as described below in several
119772         changelogs dated today.
119774         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
119775         (O_DIRECTORY): Remove; not needed here, since "." must be
119776         a directory.  All uses removed.
119777         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
119778         universal on Suns, and we also need to test for IRIX.
119779         Revamp code to use 'if' rather than '#if'.
119780         Avoid unnecessary comparison of cwd->desc to 0.
119782         * lib/utimens.c (futimens): Robustify the previous patch, by checking
119783         for known valid error numbers rather than observed invalid ones.
119785 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
119787         * modules/ullong_max: New file.
119789         * modules/chdir-long, modules/openat: New files.
119790         * modules/save-cwd (Depends-on): Depend on chdir-long.
119791         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
119793 2005-01-18  Jim Meyering  <jim@meyering.net>
119795         Merge from coreutils.
119796         * m4/chdir-long.m4, m4/openat.m4: New files.
119797         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
119798         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
119799         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
119800         is sane and DOES follow symlinks.  Besides, testing 20 different
119801         systems found no broken chown implementations.
119802         Prompted by a change in rsync's copy of this macro.
119803         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
119805         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
119807         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
119808         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
119809         NULL-means-set-to-current-time semantics.
119810         Remove temporary file immediately, rather than waiting
119811         for configure's at-exit trap code to do it.
119813 2005-01-18  Jim Meyering  <jim@meyering.net>
119815         * lib/version-etc.c (version_etc_copyright): Update copyright date.
119817         * lib/utimens.c (futimens): Account for the fact that futimes
119818         can also fail with errno == ENOSYS or errno == ENOENT.
119819         Patch from Dmitry V. Levin.
119821         Change the name of the robust chdir function from chdir to chdir_long.
119822         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
119823         (restore_cwd): Use chdir_long, not chdir.
119824         * lib/chdir-long.c: Renamed from chdir.c.
119825         * lib/chdir-long.h: Renamed from chdir.h.
119826         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
119827         Hurd.
119829 2005-01-18  Bruno Haible  <bruno@clisp.org>
119831         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
119832         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
119833         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
119834         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
119835         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
119836         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
119837         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
119838         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
119839         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
119840         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
119841         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
119842         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
119843         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
119844         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
119845         Use an all-permissive copyright notice, recommended by RMS.
119847 2005-01-18  Bob Proulx  <bob@proulx.com>
119849         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
119850         simplify offsetof() macro construct to avoid compile failure with
119851         native HP-UX 11.0 ANSI C compiler.
119853 2005-01-17  Bruno Haible  <bruno@clisp.org>
119855         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
119856         redundant because stpncpy.m4 takes care of it.
119858 2005-01-17  Bruno Haible  <bruno@clisp.org>
119860         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
119862 2005-01-17  Bruno Haible  <bruno@clisp.org>
119864         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
119865         used.
119867 2005-01-17  Bruno Haible  <bruno@clisp.org>
119869         * lib/fwriteerror.h (fwriteerror): Change specification to include
119870         fclose.
119871         * lib/fwriteerror.c: Include <stdbool.h>.
119872         (fwriteerror): At the end, close the file stream. Record whether
119873         stdout was already closed.
119875 2005-01-17  Bruno Haible  <bruno@clisp.org>
119877         * lib/execute.c (environ): Declare if needed.
119878         * lib/pipe.c (environ): Likewise.
119879         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
119881 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119883         * modules/argp: Depend on vsnprintf
119885 2005-01-10  Jim Meyering  <jim@meyering.net>
119887         * modules/closeout (Depends-on): Add atexit.
119889 2005-01-06  Bruno Haible  <bruno@clisp.org>
119891         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
119893 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
119895         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
119896         definitions to be after all include files, to avoid collisions.
119897         Problem reported by Bob Proulx.
119899 2005-01-04  Jim Meyering  <jim@meyering.net>
119901         Changes imported from coreutils.
119902         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
119903         as the mkstemp template, use a temporary directory and an
119904         8.3-friendly template to avoid trouble on systems like DJGPP.
119905         Reported by Juan M. Guerrero via Stepan Kasal.
119906         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
119907         close. Remove the temporary directory right away, rather than waiting
119908         for configure's at-exit trap code to do it.
119909         Suggestion from Stepan Kasal.
119911 2005-01-01  Simon Josefsson  <jas@extundo.com>
119913         * gnulib-tool: Print #include directives when --import'ing.
119915 2004-12-28  Simon Josefsson  <jas@extundo.com>
119917         * tests/test-base64.c: Include required header files.  Remove
119918         unused variables.
119920 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
119922         * modules/error (Depends-on): Remove gettext.
119924 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
119926         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
119927         not needed.  This removes a dependency on the gettext module.
119928         [defined _LIBC]: Do not include <libintl.h>; not needed.
119930 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
119932         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
119933         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
119935 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
119937         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
119938         HAVE_DECL_STRTOLD.
119940 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
119942         * modules/getdate (Depends-on): Remove alloca-opt.
119944 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
119946         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
119948 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
119950         * lib/argp-parse.c: Include <stddef.h>.
119951         (alignof, alignto): New macros.
119952         (parser_init): Don't assume that void * is aligned sufficiently
119953         for struct option.
119955         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
119956         need to extend the stack.
119957         (YYINITDEPTH): New macro, so that the initial stack isn't overly
119958         large.
119960 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119962         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
119964 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
119966         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
119967         (2004-10-24) change.  Apparently this was a false alarm.
119969         * modules/getdate: Depend on alloca-opt, not alloca.
119971 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
119973         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
119974         Remove now-obsolete comment about AIX.
119975         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
119976         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
119977         (YYMAXDEPTH): New macro.
119979 2004-12-18  Simon Josefsson  <jas@extundo.com>
119981         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
119983 2004-12-18  Bruno Haible  <bruno@clisp.org>
119985         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
119987 2004-12-18  Bruno Haible  <bruno@clisp.org>
119989         * lib/fatal-signal.c (fatal_signals): Make non-const.
119990         (init_fatal_signals): New function.
119991         (uninstall_handlers, install_handlers): Ignore signals that were set to
119992         SIG_IGN.
119993         (at_fatal_signal): Call init_fatal_signals.
119994         (init_fatal_signal_set): Likewise. Ignore signals that were set to
119995         SIG_IGN.
119996         Reported by Paul Eggert.
119998 2004-12-18  Bruno Haible  <bruno@clisp.org>
120000         * doc/alloca.texi: New file.
120001         * doc/alloca-opt.texi: New file.
120003 2004-12-17  Jim Meyering  <jim@meyering.net>
120005         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
120006         Otherwise, install-sh could exit with improper exit status when
120007         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
120009 2004-12-16  Simon Josefsson  <jas@extundo.com>
120011         * tests/test-base64.c: Add license.
120013 2004-12-15  Stepan Kasal  <address@hidden>
120015         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
120017 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
120019         * modules/getcwd (Files): Add m4/d-ino.m4.
120020         Suggested by Mark D. Baushke.
120022 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
120024         * lib/getdate.y (textint): New member "negative".
120025         (time_zone_hhmm): New function.
120026         Expect 14 shift-reduce conflicts, not 13.
120027         (o_colon_minutes): New rule.
120028         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
120029         (yylex): Set the "negative" member of signed numbers.
120031 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
120033         * doc/getdate.texi (Time of day items, Time zone items):
120034         Describe new formats +00:00, UTC+00:00.
120036 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
120038         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
120039         spurious "-l"s.  Problem reported by Stepan Kasal.
120041 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
120043         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
120044         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
120046 2004-12-04  Simon Josefsson  <jas@extundo.com>
120048         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
120049         Vandoorselaere <yoann@prelude-ids.org>.
120051 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
120053         Changes imported from coreutils.
120054         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
120055         exist.
120056         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
120058 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
120060         Changes imported from coreutils.
120061         * lib/hard-locale.c: Assume <locale.h> exists.
120062         Include "strdup.h".
120063         (GLIBC_VERSION): New macro.
120064         (hard_locale): Assume setlocale exists.
120065         Rewrite to avoid #ifdef.
120066         Use strdup rather than malloc + strcpy.
120067         * lib/human.c: Assume <locale.h> exists.
120068         (human_readable): Assume localeconv exists.
120070 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
120072         * modules/hard-locale (Depends-on): Add strdup.
120074 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
120076         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
120077         convert T2, not T.  (Imported from libc.)
120079 2004-11-30  Simon Josefsson  <jas@extundo.com>
120081         * modules/restrict (License): Change to LGPL.
120083 2004-11-30  Simon Josefsson  <jas@extundo.com>
120085         * m4/restrict.m4: Add copyright and copying conditions.
120087 2004-11-30  Simon Josefsson  <jas@extundo.com>
120089         * m4/base64.m4: New file.
120091 2004-11-30  Simon Josefsson  <jas@extundo.com>
120093         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
120094         base64.
120096         * tests/test-base64.c: New file.
120098         * modules/base64: New file.
120100 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
120102         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
120103         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
120105         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
120107 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
120109         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
120110         (__getcwd.c): Don't restore errno; glibc doesn't.
120111         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
120112         first, falling back to our code only if its results look suspicious.
120113         Ensure that the resulting buffer is only as large as necessary.
120115         * lib/readutmp.c: Include readutmp.h first.
120116         Include <errno.h>, since readutmp.h no longer does that.
120117         * lib/readutmp.h: Don't include <errno.h>,
120118         <sys/param.h>, <time.h>; not needed to establish interface.
120119         (errno): Remove decl.
120120         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
120121         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
120122         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
120124 2004-11-28  Simon Josefsson  <jas@extundo.com>
120126         * lib/base64.h, base64.c: New file.
120128 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
120130         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
120132 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
120134         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
120135         (Depends-on): Remove pathmax, same.  Add mempcpy.
120136         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
120137         (Makefile.am): Append getcwd.h to lib_SOURCES.
120138         (Include): Add getcwd.h.
120139         (Maintainer): Change from Jim Meyering to "all, glibc",
120140         since getdate now uses intended-for-glibc code.
120141         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
120142         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
120144 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
120146         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
120147         HP's ANSI C compiler.
120148         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
120149         Declaring int functions causes warnings on some modern systems and
120150         shouldn't be needed to compile on ancient ones.
120151         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
120152         defined.
120154         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
120155         with the following changes.
120156         (__set_errno): Parenthesize properly.
120157         Include <stdbool.h>.
120158         (MIN, MAX, MATCHING_INO): New macros.
120159         (__getcwd): Define with prototype, not K&R form.
120160         Use heuristics to allocate default buffer on stack if possible.
120161         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
120162         behavior, and to avoid the PATH_MAX limit when computing
120163         ../../../../...
120164         Use MATCHING_INO to compare inode number to file.
120165         Check for arithmetic overflow in size calculations.
120166         Fix bug in reallocation of dot array that caused getcwd to fail
120167         on directories nested deeper than 75.
120168         Be more careful about saving errno on error.
120169         Do not use realloc; use only free+malloc, as this is a bit
120170         more flexible and avoids a needless copy operation.
120171         Do not inspect st_dev and st_ino for symbolic links; POSIX
120172         doesn't specify the latter.
120173         Check for closedir errors.
120174         Avoid needless casts.
120175         Use "#ifdef weak_alias" around weak_alias, to be like other
120176         glibc code.
120177         The following changes to getcwd.c have effect only when used in
120178         gnulib; they have no effect inside glibc proper.
120179         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
120180         as alloca isn't used.
120181         (alloca, __alloca): Likewise.
120182         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
120183         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
120184         unconditionally, as gnulib assumes C89 or better.
120185         Do not include <sys/param.h>.
120186         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
120187         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
120188         better.
120189         (NULL) [!defined NULL]: Remove; we assume C89 or better.
120190         Include <dirent.h> in a way that is compatible with modern Autoconf.
120191         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
120192         New macros, if not already defined.
120193         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
120194         Use "_LIBC", not "defined _LIBC", for consistency.
120195         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
120196         a mempcpy module.
120197         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
120198         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
120199         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
120200         credit only to Jim Meyering and adjust the copyright dates.
120201         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
120202         <stdlib.h>, <unistd.h>, "pathmax.h".
120203         Instead, include "xgetcwd.h" (first) and "getcwd.h".
120204         (INITIAL_BUFFER_SIZE): Remove.
120205         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
120207 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
120209         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
120210         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
120211         Use the _ONCE methods, for efficiency.
120212         Check for fcntl.h.  In test program, include <errno.h>
120213         and <fcntl.h> if available.  Remove old K&R cruft from
120214         test program.  Check for common errors in GNU/Linux,
120215         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
120216         don't do AC_LIBOBJ, as that's getcwd.m4's job.
120217         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
120218         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
120219         name accordingly.
120220         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
120221         accommodate new getcwd.c.
120222         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
120223         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
120224         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
120225         that's all we need now.
120227 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120229         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
120230         argp-parse.c depends on getopt internals, that means we should
120231         always use our getopt, to be on the safe side.
120232         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
120233         order not to spoil the result of an eventual previous invocation
120234         of gl_GETOPT_SUBSTITUTE.
120236 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120238         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
120239         redefinition warnings. To avoid them, include the defines
120240         in `#if !defined __need_getopt ... #endif'. The only place
120241         where __getopt_argv_const is used is in definitions
120242         of getopt_long and getopt_long_only below, which are as well
120243         protected by `#ifndef __need_getopt'.
120244         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
120245         __need_getopt after including <stdio.h> and <unistd.h> These
120246         headers might have defined it.
120248 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
120250         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
120252 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
120254         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
120255         (futimens): New function, which uses futimes if available.
120256         (futimens, utimens): Support timespec==NULL, with same semantics
120257         as utime and utimens.
120258         * lib/utimens.h (futimens): New decl.
120260 2004-11-23  Jim Meyering  <jim@meyering.net>
120262         * lib/getopt_.h: Remove trailing blanks.
120264 2004-11-23  Jim Meyering  <jim@meyering.net>
120266         * lib/__fpending.c: Add comment.
120268 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
120270         * modules/canonicalize (Depends-on): Add xreadlink.
120271         Problem reported by James Youngman.
120273 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
120275         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
120276         New macros.
120277         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
120278         optopt): Use them instead of invoking ## directly; otherwise, the
120279         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
120281 2004-11-19  Bruno Haible  <bruno@clisp.org>
120283         * lib/strtok_r.c: Move comments from here...
120284         * lib/strtok_r.h: ... to here.
120286 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
120288         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
120289         implementations that mishandle size_t overflow.
120291 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
120293         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
120294         might fail.  Problem reported by Yoann Vandoorselaere.
120295         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
120296         implementations that mishandle size_t overflow.
120298 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
120300         * modules/canon-host (Depends-on): Add strdup.
120302 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
120304         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
120306 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
120308         * lib/canon-host.c: Include "strdup.h".
120309         (canon_host): Use getaddrinfo if available, so that IPv6 works.
120310         Use strdup instead of malloc/strcpy to duplicate strings.
120312         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
120313         (human_space_before_unit): New constant.
120314         * lib/human.c (human_readable): Support it.
120316         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
120317         (xgetcwd): Set errno correctly when failing.
120318         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
120319         the failure is actually due to a PATH_MAX problem.
120321         Further getopt changes to make it more likely that glibc will
120322         buy the changes back.
120323         * lib/getopt.c (POSIXLY_CORRECT): New constant.
120324         (getopt): Use it, so to preserve glibc semantic
120325         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
120326         when compiling for libc.
120327         * lib/getopt_.h (__getopt_argv_const): Bring it back.
120328         (getopt_long, getopt_long_only): Use it.
120330         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
120331         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
120332         (getopt): Argv is now char * const *, as per standard.
120333         (_getopt_internal_r, _getopt_internal): Argv is now char **,
120334         not char *__getopt_argv_const *.
120335         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
120336         _getopt_long_only_r): Likewise.
120337         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
120338         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
120339         _getopt_long_r, _getopt_long_only_r): Likewise.
120340         * lib/getopt_.h (__getopt_argv_const): Remove.
120341         (getopt): Argv is now char * const *, as per standard.
120343         * lib/getdate.y (tORDINAL): New token.
120344         (day, relunit): Allow it for relative times.
120345         (relative_time_table): Use tORDINAL for ordinals.
120347 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
120349         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
120350         Document that "second" isn't allowed as an ordinal number.
120352 2004-11-16  Jim Meyering  <jim@meyering.net>
120354         * modules/closeout (Depends-on): Add fpending.
120356 2004-11-15  Jim Meyering  <jim@meyering.net>
120358         * lib/closeout.c: Include "__fpending.h" once again.
120359         Include <stdbool.h>.
120360         (close_stdout): Don't fail just because stdout was closed initially,
120361         since some programs don't write to stdout in the normal course of
120362         operation (other than --version and --help), and we don't want this
120363         function to make e.g. `touch file >&-' fail.
120364         But do fail if it was closed and someone has tried to write to it.
120365         E.g., `printf foo >&-' must fail.
120367 2004-11-13  Jim Meyering  <jim@meyering.net>
120369         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
120371 2004-11-12  Simon Josefsson  <jas@extundo.com>
120373         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
120374         small doc fix is still pending.
120376 2004-11-11  Simon Josefsson  <jas@extundo.com>
120378         * modules/strtok_r: New file.
120380         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
120381         strtok_r.
120383 2004-11-11  Simon Josefsson  <jas@extundo.com>
120385         * m4/strtok_r.m4: New file.
120387         * m4/getopt.m4: Replace opterr.
120389 2004-11-11  Simon Josefsson  <jas@extundo.com>
120391         * lib/strtok_r.h, strtok_r.c: New file.
120393 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
120395         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
120396         of replacing opterr, getopt, etc.  This should handle the
120397         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
120399 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
120401         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
120402         we can stop lying to compilers about the constness of argv when we
120403         are compiled outside glibc.
120404         (getopt, getopt_long, getopt_long_only): Use it.
120405         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
120406         _getopt_internal, getopt): Likewise.
120407         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
120408         _getopt_long_only_r): Likewise.
120409         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
120410         _getopt_long_r, _getopt_long_only_r): Likewise.
120412         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
120413         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
120414         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
120415         the other external symbols.
120416         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
120417         declaration, since the above renaming now works around collisions.
120419 2004-11-11  Jim Meyering  <jim@meyering.net>
120421         * lib/linebreak.c: Remove trailing blanks.
120422         * lib/alloca_.h: Likewise.
120423         * lib/acosl.c: Likewise.
120424         * lib/euidaccess.c: Likewise.
120425         * lib/allocsa.h: Likewise.
120427 2004-11-10  Simon Josefsson  <jas@extundo.com>
120429         * m4/getaddrinfo.m4: New file.
120431 2004-11-10  Simon Josefsson  <jas@extundo.com>
120433         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
120435 2004-11-10  Simon Josefsson  <jas@extundo.com>
120437         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
120438         getaddrinfo.
120440         * modules/getaddrinfo: New file.
120442 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
120444         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
120446 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
120448         * lib/mktime.c (SHR): New macro, which is a portable
120449         substitute for >> that should work even on Crays.
120450         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
120451         Problem reported by Mark D. Baushke in
120452         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
120453         * lib/getdate.y (SHR): Likewise.
120454         (tm_diff): Use it.
120455         * lib/strftime.c (SHR): Likewise.
120456         (tm_diff): Use it.
120457         * lib/quotearg.c (struct quoting_options): Use unsigned int for
120458         quote_these_too, so that right shifts are well defined.  All uses
120459         changed.
120461 2004-11-10  Jim Meyering  <jim@meyering.net>
120463         Ensure that no close failure goes unreported.
120464         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
120465         return early when it seems there's nothing to flush.
120466         Don't include __fpending.h.
120468 2004-11-10  Jim Meyering  <jim@meyering.net>
120470         * modules/closeout (Depends-on): Remove fpending.
120472 2004-11-10  Jim Meyering  <jim@meyering.net>
120474         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
120476 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
120478         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
120479         gl_FUNC_STRFTIME.
120480         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
120481         and AC_REQUIRE when possible, to avoid duplicate checks.
120482         Check for <wchar.h>.
120484 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
120486         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
120488 2004-11-09  Bruno Haible  <bruno@clisp.org>
120490         * m4/sockpfaf.m4: New file.
120492 2004-11-05  Bruno Haible  <bruno@clisp.org>
120494         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
120495         Reported by Mark D. Baushke <mdb@cvshome.org>.
120497 2004-11-04  Bruno Haible  <bruno@clisp.org>
120499         2004-09-11  Bruno Haible  <bruno@clisp.org>
120500                 * allocsa.valgrind: New file.
120501         2004-02-06  Bruno Haible  <bruno@clisp.org>
120502                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
120503                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
120504                 Reported by Christopher Seip <chris.seip@hp.com>.
120506 2004-11-04  Bruno Haible  <bruno@clisp.org>
120508         * modules/allocsa (Files): Add lib/allocsa.valgrind.
120509         (Makefile.am): Distribute it.
120511 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
120513         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
120514         with errno == ERANGE if the buffer is too small.
120515         Problem reported by Mark D. Baushke.
120517 2004-11-03  Albert Chin  <china@thewrittenword.com>
120518             Paul Eggert  <eggert@cs.ucla.edu>
120520         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
120521         equivalent, substitute $ac_type for equivalent type rather than
120522         blindly using uint32_t *always* which won't work if uint32_t is not
120523         available.  Define _UINT32_T to work around typedef of uint32_t if
120524         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
120525         2.5.1.
120527 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
120529         * m4/jm-macros.m4: Sync from coreutils.
120530         (gl_MACROS): Check for mbrlen, for pathchk.
120531         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
120533 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
120535         * lib/xreadlink.c (MAXSIZE): New macro.
120536         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
120537         size does not exceed MAXSIZE.  Avoid cast.
120538         As suggested by Mark D. Baushke in
120539         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
120540         if readlink fails with buffer size just under MAXSIZE, try again
120541         with MAXSIZE.
120543 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
120545         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
120547 2004-11-02  Derek R. Price  <derek@ximbiot.com>
120548         and  Paul Eggert  <eggert@cs.ucla.edu>
120550         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
120551         (get_date): Overparenthesize to avoid GCC warning.
120553 2004-11-02  Bruno Haible  <bruno@clisp.org>
120555         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
120556         returns void.
120558 2004-11-02  Bruno Haible  <bruno@clisp.org>
120560         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
120561         function returns void.
120563 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
120565         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
120566         fflush_unlocked, flockfile, funlockfile, funlockfile,
120567         fputs_unlocked, putc_unlocked.
120569 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
120571         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
120572         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
120573         already declared.
120575 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
120577         * modules/getdate (Files): Add doc/getdate.texi.
120578         (Depends-on): Add setenv, xalloc.
120580 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
120582         * lib/getdate.y: Add support for TZ="foo" within a date string.
120583         Fix some bugs near time_t boundaries.  Reject dates with
120584         out-of-range components, e.g., "Sept 31".
120585         Include <stdlib.h>, "setenv.h", "xalloc.h".
120586         (ISDIGIT_LOCALE): Remove; unused.
120587         Note that the TZ and time functions used here are not reentrant.
120588         (mktime_ok, get_tz): New functions.
120589         (TZBUFSIZE): New constant.
120590         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
120591         This requires that we sometimes generate our own TZ="XXX..." setting.
120593 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
120595         * doc/getdate.texi: New file, from coreutils with modifications for
120596         the new TZ parsing.
120598 2004-10-27  Derek R. Price  <derek@ximbiot.com>
120600         * lib/mktime.c (not_equal_tm): Remove redundant check.
120602 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
120604         * modules/regex (lib_SOURCES): Add regex.c.
120605         Reported by James Youngman in
120606         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
120608 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
120610         * lib/getdate.y: Use Bison 1.875 features, and some minor
120611         code cleanups.  This change does not affect semantics.
120612         Don't include <stdlib.h>; no longer needed.
120613         Don't include unlocked-io.h; only the "#if TEST" code uses
120614         stdio, and performance isn't crucial there.
120615         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
120616         Bison 1.875 features as described below.
120617         All uses of "PC." replaced by "pc->".
120618         (YYSTYPE): Add a forward declaration.
120619         (yylex, yyerror): Use full prototypes in forward decls.
120620         Use "%pure-parser" rather than obsolescent "%pure_parser".
120621         Use %parse-param and %lex-param instead of obsolescent
120622         YYPARSE_PARAM and YYLEX_PARAM.
120623         (meridian_table, month_and_day_table, time_units_table,
120624         relative_time_table, time_zone_table, military_table,
120625         lookup_zone, lookup_word, get_date):
120626         Use NULL instead of 0 where appropriate.
120627         (to_hour): Avoid abort (), to avoid a dependency on
120628         stdlib.h.
120629         (yyerror, yylex): Now accepts parser_control * arg.
120630         (main) [TEST]: Use '\0' rather than 0 for char.
120632 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
120634         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
120636 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
120638         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
120639         It's now the caller's responsibility to handle the case where
120640         !HAVE_GETPAGESIZE && !defined getpagesize.
120642         * lib/mktime.c (leapyear): Arg is long int, not int.
120644 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
120646         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
120648 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
120650         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
120651         missing.  Problem reported by James Youngman.
120653 2004-10-16  Simon Josefsson  <jas@extundo.com>
120655         * gnulib-tool: Fix comments.  Fix parse problem.
120656         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
120658 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
120660         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
120661         implementation of getopt_long.  Problem reported by Alexander Taler in:
120662         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
120664 2004-10-15  Bruno Haible  <bruno@clisp.org>
120666         * gnulib-tool: Untabify. Initialize supplied_libname.
120667         (func_usage): More homogenous output.
120668         (func_modules_transitive_closure, func_modules_to_filelist,
120669         func_emit_lib_Makefile_am): New functions.
120670         (func_import): New function, extracted from big case statement. Use
120671         func_get_license, func_modules_transitive_closure,
120672         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
120673         opt_lgpl. Don't use test -a, as it's not portable.
120674         (func_create_testdir): Use func_modules_transitive_closure,
120675         func_modules_to_filelist, func_emit_lib_Makefile_am.
120677 2004-10-15  Bruno Haible  <bruno@clisp.org>
120679         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
120681 2004-10-15  Bruno Haible  <bruno@clisp.org>
120683         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
120684         the portions belonging to each module.
120685         Suggested by Derek Robert Price <derek@ximbiot.com>.
120687 2004-10-12  Simon Josefsson  <jas@extundo.com>
120689         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
120690         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
120691         to real functions.
120693 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120695         * modules/vsnprintf: New file.
120697 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120699         * m4/vsnprintf.m4: New file.
120701 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120703         * lib/vsnprintf.h: New file.
120704         * lib/vsnprintf.c: New file.
120706 2004-10-11  Bruno Haible  <bruno@clisp.org>
120708         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
120709         vsnprintf.
120711 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
120713         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
120715 2004-10-07  Bruno Haible  <bruno@clisp.org>
120717         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
120718         fits into the provided buffer.
120720 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
120722         * lib/diacrit.c, diacrit.h: Add GPL notice.
120724         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
120725         notice.
120726         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
120727         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
120728         This avoids a potential constant-folding bug.
120730 2004-10-05  Bruno Haible  <bruno@clisp.org>
120732         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
120733         for the declaration of strsep.
120735 2004-10-05  Bruno Haible  <bruno@clisp.org>
120737         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
120739 2004-10-04  Simon Josefsson  <jas@extundo.com>
120741         * modules/memmem: New file.
120742         * tests/test-memmem.c: New file.
120743         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
120745 2004-10-04  Simon Josefsson  <jas@extundo.com>
120747         * m4/memmem.m4: New file.
120749 2004-10-04  Simon Josefsson  <jas@extundo.com>
120751         * lib/memmem.h: New file.
120752         * lib/memmem.c: New file, taken from glibc.
120754 2004-10-04  Simon Josefsson  <jas@extundo.com>
120756         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
120757         '#ifdef USE_UNLOCKED_IO'.
120759 2004-10-04  Simon Josefsson  <jas@extundo.com>
120761         * config/srclist.txt: Add memmem from glibc.
120763 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
120765         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
120767         * modules/argmatch, modules/argp, modules/closeout, modules/error,
120768         modules/exclude, modules/getdate, modules/getline,
120769         modules/getndelim2, modules/getpass, modules/getpass-gnu,
120770         modules/getusershell, modules/linebuffer, modules/md5,
120771         modules/mountlist, modules/posixtm, modules/readtokens,
120772         modules/readutmp, modules/regex, modules/sha1,
120773         modules/version-etc, modules/yesno:
120774         Remove dependency on unlocked-io.
120776 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
120778         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
120780         * m4/unlocked-io.m4: Add copyright notice.
120781         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
120783 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
120785         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
120786         * lib/xmalloc.c (xmemdup): Likewise.
120787         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
120788         XFREE): Remove these long-obsolescent macros.
120789         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
120790         * lib/xstrdup.c: Remove.
120792         * lib/regex.c (re_comp): Cast gettext return value to char *,
120793         Problem reported by Martin Neitzel via Mark D. Baushke.
120795 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
120797         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
120798         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
120799         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
120800         regex.c, sha1.c, version-etc.c, yesno.c:
120801         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
120802         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
120803         the includer's responsibility.
120805         Sync from coreutils.
120807         * lib/modechange.c (mode_compile): Don't decrement a pointer that
120808         points to the start of a string, as the C Standard says the
120809         resulting behavior is undefined.
120811         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
120812         simple -> simple_backups, numbered_existing ->
120813         numbered_existing_backups, numbered -> numbered_backups
120814         to avoid shadowing problems.  All uses changed.
120815         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
120816         * lib/backupfile.c (check_extension, numbered_backup):
120817         Rename locals to avoid shadowing 'basename'.
120818         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
120819         once.
120821         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
120822         * lib/.cvsignore: Add getopt.h.
120824 2004-10-04  Bruno Haible  <bruno@clisp.org>
120826         * modules/README: New file.
120827         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
120828         not a module.
120830 2004-10-02  Jim Meyering  <jim@meyering.net>
120832         * lib/dirfd.h, getpagesize.h: Add copyright notice.
120834 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120836         * modules/strsep: New file.
120838 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120840         * m4/strsep.m4: New file.
120842 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120844         * lib/strsep.h: New file.
120845         * lib/strsep.c: New file.
120847 2004-10-01  Simon Josefsson  <jas@extundo.com>
120849         * lib/snprintf.c (snprintf): Handle size==0.
120851 2004-10-01  Simon Josefsson  <jas@extundo.com>
120852             Bruno Haible  <bruno@clisp.org>
120854         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
120855         (snprintf): Declare 'args'.
120857 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
120859         * lib/snprintf.c: Remove comments as to why each header is needed.
120861 2004-10-01  Bruno Haible  <bruno@clisp.org>
120863         * MODULES.html.sh: Add strsep.
120865 2004-09-30  Simon Josefsson  <jas@extundo.com>
120867         * modules/snprintf: New file.
120869 2004-09-30  Simon Josefsson  <jas@extundo.com>
120871         * m4/snprintf.m4: New file.
120873 2004-09-30  Simon Josefsson  <jas@extundo.com>
120875         * lib/snprintf.h, lib/snprintf.c: New files.
120877 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120879         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
120880         (hol_entry_help): Never translate an empty string.
120881         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
120882         * lib/argp.h (OPTION_NO_TRANS): New option.
120884 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
120886         * modules/argp (Maintainer): Replace Simon Josefsson
120887         by Sergey Poznyakoff.
120889 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
120891         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
120892         changes merged back into glibc.
120894 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
120896         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
120898 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
120900         * lib/xvasprintf.c: Include xalloc.h.
120901         (xvasprintf): Use xalloc_die, not xmalloc_die.
120903 2004-09-29  Bruno Haible  <bruno@clisp.org>
120905         * modules/alloca-opt: New file, derived from modules/alloca.
120906         * modules/allocsa: Depend on alloca-opt instead of alloca.
120907         * modules/setenv: Likewise.
120908         * modules/vasnprintf: Likewise.
120909         * MODULES.html.sh: Add alloca-opt.
120911 2004-09-28  Simon Josefsson  <jas@extundo.com>
120913         * gnulib-tool: New parameter --lgpl, to asseert that modules are
120914         LGPL, and to replace license template from GPL to LGPL.
120916 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
120918         * modules/dummy: Change license to LGPL.
120920 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
120922         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
120924 2004-09-24  Simon Josefsson  <jas@extundo.com>
120926         * modules/minmax (License): Change from GPL to LGPL.
120928 2004-09-23  Simon Josefsson  <jas@extundo.com>
120930         * gnulib-tool (--import): Typo.
120932 2004-09-23  Simon Josefsson  <jas@extundo.com>
120934         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
120936 2004-09-22  Bruno Haible  <bruno@clisp.org>
120938         * modules/*: Add 'License' field.
120939         * gnulib-tool: Accept --extract-license option.
120940         (func_get_license): New function.
120942 2004-09-21  Bruno Haible  <bruno@clisp.org>
120944         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
120945         Reported by Simon Josefsson.
120947 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
120949         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
120950         gl_AC_TYPE_LONG_LONG.
120952 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
120954         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
120956 2004-09-18  Simon Josefsson  <jas@extundo.com>
120957         and  Paul Eggert  <eggert@cs.ucla.edu>
120959         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
120960         calls with autoreconf.  Define GL_LIB.
120962 2004-09-14  Karl Berry  <karl@gnu.org>
120964         * config/srclist.txt: unsync setenv.c, sigh.
120966 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
120968         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
120969         Problem reported by Bruno Haible in:
120970         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
120972 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
120974         * config/srclist.txt: Comment out argp-pvh.c.
120976 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
120978         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
120979         in case some system header has #define'd it.  Problem reported by
120980         Soeren D. Schulze in
120981         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
120983 2004-09-09  Karl Berry  <karl@gnu.org>
120985         * regex.[ch]: delete from the root.  These were supposed to be
120986                 synced with emacs cvs, but this has not happened for about
120987                 a year, and anyway nothing else uses emacs regex.[ch].
120988                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
120989                 lib/regex[.ch] is untouched.
120991 2004-09-09  Bruno Haible  <bruno@clisp.org>
120993         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
120995 2004-09-09  Bruno Haible  <bruno@clisp.org>
120997         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
120998         modifications.
120999         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
121001 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
121003         * modules/xvasprintf: New file.
121004         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
121006 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
121008         * lib/xvasprintf.h: New file.
121009         * lib/xvasprintf.c: New file.
121010         * lib/xasprintf.c: New file.
121012 2004-09-08  Bruno Haible  <bruno@clisp.org>
121014         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
121016 2004-09-08  Bruno Haible  <bruno@clisp.org>
121018         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
121019         length is > INT_MAX.
121020         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
121021         more.
121023 2004-09-08  Bruno Haible  <bruno@clisp.org>
121025         * lib/stdint_.h: New file, taken from GNU clisp.
121027 2004-09-08  Bruno Haible  <bruno@clisp.org>
121028             Oskar Liljeblad  <oskar@osk.mine.nu>
121030         * modules/stdint: New file.
121031         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
121033 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121035         Import from coreutils.
121036         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
121037         strings on unbounded length.  alloca's performance benefits aren't
121038         that important here.
121039         (V_STRDUP): Remove.
121040         (parse_with_separator): New function, with most of the internals
121041         of the old parse_user_spec.  Allow user to omit both user and group,
121042         for compatibility with FreeBSD.
121043         Clone only the user name, not the entire spec.
121044         Do not set *uid, *gid unless entirely successful.
121045         Avoid memory leak in some failing cases.
121046         Fix regression for USER.GROUP reported by Dmitry V. Levin in
121047         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
121048         (parse_user_spec): Rewrite to use parse_with_separator.
121050 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121052         * modules/userspec: Don't depend on alloca.
121054 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121056         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
121058 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
121060         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
121061         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
121062         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
121064 2004-08-16  Simon Josefsson  <jas@extundo.com>
121066         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
121067         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
121068         Add --dry-run for --import.
121069         Let user provided command line parameters override configure.ac
121070         settings.
121072 2004-08-12  Simon Josefsson  <jas@extundo.com>
121074         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
121075         as discussed with Paul Eggert in threads rooted at
121076         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
121077         and
121078         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
121079         Before, the test was empty, and relied on ELIDE_CODE in source
121080         code.)
121081         (gl_PREREQ_GETOPT): New macro.
121082         (gl_GETOPT): Use them.
121084 2004-08-12  Simon Josefsson  <jas@extundo.com>
121086         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
121087         * lib/getopt_.h: Renamed from getopt.h.
121089 2004-08-12  Simon Josefsson  <jas@extundo.com>
121091         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
121092         Change default library name from libfoo to libgnu.
121093         Now, if you have a configure.ac that says:
121094                 gl_SOURCE_BASE(gl)
121095                 gl_M4_BASE(gl/m4)
121096                 gl_MODULES(error getopt etcetera)
121097                 gl_INIT
121098         you can import all you need by running:
121099                 ../gnulib/gnulib-tool --import
121101         * modules/getopt (Files): Rename getopt.h to getopt_.h.
121102         (Makefile.am): Rewrite, use logic from argz.
121103         (Include): Use <getopt.h> instead of "getopt.h".
121105 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
121107         * modules/argp (Files): Add m4/unlocked-io.m4.
121108         (Depends-on): Add extensions.
121110 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
121112         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
121113         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
121114         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
121115         Check for program_invocation_name, program_invocation_short_name,
121116         flockfile, funlockfile, features.h, _getopt_long_only_r.
121118 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
121120         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
121121         its complicated substitute.
121122         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
121123         and program_invocation_name.
121124         (__argp_basename) [!_LIBC]: Remove; the only use was
121125         replaced by its body.
121126         (__argp_short_program_name): Change condition from
121127         !defined __argp_short_program_name to
121128         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
121129         to match argp-namefrob.h.
121130         (__argp_failure): Don't assume strerror_r returns char *.
121131         * lib/argp-parse.c (N_): Define unconditionally.
121132         (argp_default_options): Fill out initializers with 0 to avoid
121133         gcc warnings.
121135 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
121137         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
121138         getopt1.c.
121140 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
121142         Merge from coreutils.
121144         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
121146         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
121147         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
121149 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
121151         Merge from coreutils.
121153         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
121154         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
121155         for Reliant Unix 5.43.
121157         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
121158         (union fooround): Use uintmax_t, not long int.
121159         The rest is a merge from libc:
121160         [defined _LIBC]: Include <shlib-compat.h>.
121161         (_obstack) [defined _LIBC]: Remove after 2.3.4.
121163         * lib/settime.c (settime): Recode to avoid warning with
121164         Sun Forte C 6U2.
121166         * lib/strverscmp.c: Convert to UTF-8.
121168 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
121170         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
121171         m4/uintmax_t.m4.
121173 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
121175         * modules/xalloc-die: New file.
121176         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
121178         * modules/md5 (Files): Add m4/uint32_t.m4.
121179         * modules/sha1: Renamed from modules/sha.
121180         (Files):
121181         Rename lib/sha.h to lib/sha1.h.
121182         Rename lib/sha.c to lib/sha1.c.
121183         Rename m4/sha.m4 to m4/sha1.m4.
121184         (lib_SOURCES): Likewise.
121185         (configure.ac): Rename gl_SHA to gl_SHA1.
121186         (Include): sha.h -> sha1.h.
121188 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
121190         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
121191         * m4/sha1.m4: Renamed from sha.m4.
121192         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
121194 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
121196         * lib/obstack.h (obstack_empty_p):
121197         Don't assume that chunk->contents is suitably aligned.
121198         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
121199         Likewise. Problem reported by Benno in
121200         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
121202         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
121203         readable.  This could be improved further but it'd take some work.
121205 2004-08-08  Simon Josefsson  <jas@extundo.com>
121207         * modules/xgethostname (Depends-on): Remove exit and error (not
121208         used).
121210         * modules/getpass-gnu: Add getpass.h.
121211         (Depends-on): Add stdbool.
121212         * modules/getpass: Add getpass.h.
121214 2004-08-08  Simon Josefsson  <jas@extundo.com>
121216         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
121217         Check getpass declaration.
121219 2004-08-08  Simon Josefsson  <jas@extundo.com>
121221         * lib/xgethostname.c: Don't include error.h (not used).
121223         * lib/getpass.h: Add.
121224         * lib/getpass.c: Include getpass.h first.
121226 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
121228         * lib/xalloc-die.c: New file.
121229         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
121230         All uses removed.
121231         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
121232         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
121233         xalloc-die.c.
121234         (_, N_, xalloc_die): Move to xalloc-die.c.
121235         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
121236         so that we needn't mess with xalloc_msg_memory_exhausted.
121238         * lib/sha1.h: Renamed from sha.h.
121239         (SHA1_H): Renamed from _SHA_H.
121240         (sha1_ctx): Renamed from sha_ctx.
121241         (sha1_init_ctx): Renamed from sha_init_ctx.
121242         (sha1_process_block): Renamed from sha_process_block.
121243         (sha1_process_bytes): Renamed from sha_process_bytes.
121244         (sha1_finish_ctx): Renamed from sha_finish_ctx.
121245         (sha1_read_ctx): Renamed from sha_read_ctx.
121246         (sha1_stream): Renamed from sha_stream.
121247         (sha1_buffer): Renamed from sha_buffer.
121248         * lib/sha1.c: Likewise; renamed from sha.c.
121249         Do not include <sys/types.h>.
121250         Include <stddef.h> rather than <stdlib.h>.
121252 2004-08-08  Bruno Haible  <bruno@clisp.org>
121254         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
121255         FILESYSTEM_PREFIX_LEN.
121256         * lib/progreloc.c: Likewise.
121257         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
121259 2004-08-06  Simon Josefsson  <jas@extundo.com>
121261         * modules/progname (Depends-on): Don't depend on stdbool.
121263 2004-08-06  Simon Josefsson  <jas@extundo.com>
121265         * modules/getsubopt: New file.
121266         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
121267         getsubopt.
121269 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
121271         More merge from coreutils.
121273         * m4/utimens.m4, m4/utimecmp.m4: New files.
121274         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
121275         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
121276         prereq.m4, sha.m4: Import changes from coreutils.
121278 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
121280         More merge from coreutils.
121281         * modules/raise, modules/readtokens0, modules/utimens:
121282         * modules/utimecmp, module/xnanosleep: New files.
121283         * modules/strftime: Add lib/strftime.h.
121284         Change include from <time.h> to "strftime.h".
121285         * modules/yesno: Add lib/yesno.h.
121286         * modules/backupfile: Remove lib/addext.c.
121287         * modules/euidaccess: Add stat-macros.h.
121288         * modules/canonicalize, modules/euidaccess,
121289         modules/filemode, modules/lchown, modules/makepath,
121290         modules/rmdir, modules/stat: Likewise.
121292 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
121294         Merge from tar.
121295         * lib/argp-help.c (make_hol, hol_append): Don't assume that
121296         SIZE_MAX is a valid preprocessor constant.
121297         (__argp_basename): Change from "#ifndef _LIBC"
121298         to "#ifndef __argp_short_program_name", so that
121299         we don't compile these functions for tar.
121301         More merges from coreutils.
121302         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
121303         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
121304         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
121305         * lib/addext.c: Remove; no longer needed.
121306         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
121307         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
121308         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
121309         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
121310         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
121311         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
121312         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
121313         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
121314         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
121315         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
121316         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
121317         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
121318         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
121319         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
121320         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
121321         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
121322         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
121323         Import changes from coreutils.
121325 2004-08-05  Simon Josefsson  <jas@extundo.com>
121327         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
121329 2004-08-05  Simon Josefsson  <jas@extundo.com>
121331         * m4/getsubopt.m4: New file.
121333 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
121335         Merge from coreutils.
121337         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
121338         * m4/getcwd-path-max.m4: New files.
121340         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
121341         FILESYSTEM_PREFIX_LEN ->
121342         FILE_SYSTEM_PREFIX_LEN.
121343         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
121344         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
121345         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
121346         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
121348         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
121349         prerequisite modules now handle the DOS stuff.
121350         Don't check for unistd.h.
121352 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
121354         Merge from coreutils.
121356         * lib/.gdb-history: Remove; this doesn't belong here.
121358         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
121359         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
121360         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
121361         * lib/getcwd.c: New files.
121363         * lib/dirname.h: Include <stdbool.h>.
121364         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
121365         for consistency with POSIX terminology.  All uses changed.
121366         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
121367         (strip_trailing_slashes): Use bool for booleans.
121368         * lib/stripslash.c (strip_trailing_slashes): Likewise.
121370         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
121371         sometimes returns a positive errno value even when it succeeds.
121372         (print_errno_message) [!LIBC]: Fall back on strerror if
121373         __strerror_r fails.
121375         * lib/path-concat.c (mempcpy): Don't define if a system header defines
121376         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
121377         (longest_relative_suffix): New function.
121378         (path_concat): Use it.  Assume first argument is not NULL.
121379         Port to DOS.  Omit redundant separators.
121380         Report an error instead of returning NULL.
121381         Use mempcpy instead of memcpy.
121382         (xpath_concat): Remove: not declared or used.
121384         * lib/same.h: Include <stdbool.h>
121385         (same_name): Return bool, not int.
121386         * lib/same.c (same_name): Likewise.
121387         (errno): Don't declare; we assume C89 or better now.
121389         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
121390         if not already defined.
121392         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
121393         * lib/dup-safer.c (errno): Likewise.
121395 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
121397         Merge from coreutils.
121398         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
121399         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
121400         * modules/path-concat: Don't depend on strdup.
121402 2004-08-03  Simon Josefsson  <jas@extundo.com>
121404         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
121405         * lib/progname.h: Don't include stdbool.h.
121407 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
121409         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
121410         * MODULES.html.sh (func_all_modules): Remove fatal.
121412 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
121414         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
121416 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
121418         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
121419         working.
121421 2004-08-02  Simon Josefsson  <jas@extundo.com>
121423         * lib/getsubopt.h: New file, with comments from Bruno Haible.
121424         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
121425         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
121427 2004-08-01  Simon Josefsson  <jas@extundo.com>
121429         * lib/xgetdomainname.c: Include stdlib.h, for free().
121431 2004-07-19  Bruno Haible  <bruno@clisp.org>
121433         * MODULES.html.sh (func_all_modules): Add dummy.
121435 2004-07-16  Simon Josefsson  <jas@extundo.com>
121437         * modules/dummy: New file.
121439 2004-07-16  Simon Josefsson  <jas@extundo.com>
121441         * lib/dummy.c: New file.
121443 2004-07-16  Bruno Haible  <bruno@clisp.org>
121445         * lib/backupfile.h: Add extern "C" for C++.
121446         * lib/closeout.h: Likewise.
121447         * lib/copy-file.h: Likewise.
121448         * lib/findprog.h: Likewise.
121449         * lib/full-write.h: Likewise.
121450         * lib/pathname.h: Likewise.
121451         * lib/progname.h: Likewise.
121452         * lib/stpcpy.h: Likewise.
121453         * lib/stpncpy.h: Likewise.
121454         * lib/strcase.h: Likewise.
121455         * lib/strstr.h: Likewise.
121456         * lib/xalloc.h: Likewise.
121458         * lib/mbswidth.h: Add extern "C" for C++.
121459         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
121461 2004-07-13  Robert Millan  <robertmh@gnu.org>
121463         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
121465 2004-07-09  Simon Josefsson  <jas@extundo.com>
121467         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
121468         failed without this.)
121470 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
121472         * modules/chown (Files): Add lib/fchown-stub.c, since
121473         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
121475 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
121477         * lib/fchown-stub.c: New file.
121479 2004-06-24  Jim Meyering  <jim@meyering.net>
121481         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
121483 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
121485         * modules/argz: Omit "#include".
121487         * MODULES.html.sh (func_all_modules): Add calloc, to match
121488         2004-06-01 addition of calloc module.
121490 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
121492         * m4/argz.m4: New file, which is autoupdated from libtool.
121494 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
121496         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
121497         libtool.
121499 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
121501         * config/srclist-update: Don't insist on "USA." before the
121502         close-comment, as libtool omits the period and puts the */ on a
121503         separate line.
121504         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
121505         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
121507 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
121509         * modules/argz: New file.
121510         * MODULES.html.sh (func_all_modules): Add argz.
121512 2004-06-12  Jim Meyering  <jim@meyering.net>
121513         and  Paul Eggert  <eggert@cs.ucla.edu>
121515         * modules/hash (Files): Add lib/xalloc.h.
121516         * modules/pipe (Depends-on): Add wait-process.
121517         * modules/stat (Depends-on): Add xalloc.
121518         * modules/userspec (Files): Add lib/userspec.h.
121519         * modules/xstrto
121521         Upgrade from gettext-0.13.
121522         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
121523         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
121524         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
121526 2004-06-10  Jim Meyering  <jim@meyering.net>
121528         * lib/calloc.c: New file.
121530 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
121532         * lib/getdate.y (yylex): Allow space between sign and number.
121533         Problem reported by Dan Jacobson.
121535 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
121537         Merge from coreutils CVS.
121539         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
121540         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
121541         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
121542         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
121543         xstrtol.m4: Fix copyright date and/or serial number.
121545         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
121546         See if we need an fchown replacement.
121547         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
121548         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
121549         and use the replacement function if we detect either defect.
121551         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
121552         gl_UTIMECMP.
121554 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
121555         and  Jim Meyering  <jim@meyering.net>
121557         Merge from coreutils CVS.
121559         * lib/stat-macros.h: New file, with contents from file-type.h
121560         and coreutils' system.h.
121561         * lib/file-type.c: Include "stat-macros.h".
121562         * lib/file-type.h (file_type): Move all macro definitions to new file,
121563         stat-macros.h.
121565         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
121566         Wrap old code with this conditional.
121567         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
121568         function that does not dereference symlinks.
121569         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
121571         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
121572         dependency problems.
121573         (xreadlink): Accept new arg SIZE, for efficiency.
121574         All decls and uses changed.
121575         * lib/xreadlink.h: Include <stddef.h>, for size_t.
121577         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
121578         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
121580         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
121581         sysexits.h.
121583 2004-06-01  Jim Meyering  <jim@meyering.net>
121585         * m4/calloc.m4: New file.
121587 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
121589         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
121590         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
121591         Also, fix a typo in a diagnostic.
121593 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
121595         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
121596         or AC_FUNC_REALLOC.
121598 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
121600         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
121601         macros to be defined.
121602         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
121603         the allocator returns NULL because the requested size is zero.
121605 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
121607         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
121608         var.  Add comment explaining why libc still defines it.  This
121609         merges the following patch from glibc:
121610         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
121612 2004-05-20  Andreas Schwab  <schwab@suse.de>
121614         * m4/free.m4: Replace free if it not known to work, not the other
121615         way round.
121617 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
121619         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
121620         present in glibc since revision 1.1 of this file.
121621         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
121622         obstack_alignment_mask, obstack_alloc, obstack_base,
121623         obstack_blank, obstack_blank_fast, obstack_chunk_size,
121624         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
121625         obstack_grow0, obstack_init, obstack_int_grow,
121626         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
121627         obstack_next_free, obstack_object_size, obstack_ptr_grow,
121628         obstack_ptr_grow_fast, obstack_room): Remove declarations of
121629         nonexistent functions.
121631 2004-05-18  Karl Berry  <karl@gnu.org>
121633         * config/srclist.txt: break link for vasnprintf.c.
121635 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
121637         Port obstack to the AS/400, where pointers are 16 bytes wide and
121638         you cannot cast an integer to a valid pointer.  This patch is
121639         currently waiting to be integrated into glibc; see
121640         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
121642         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
121643         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
121644         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
121645         (struct obstack): temp member is now a union of a pointer and
121646         an integer, instead of an integer.  All integer uses changed.
121647         This does not affect the physical layout of struct obstack,
121648         except on hosts (like the AS/400) where the size or alignment of
121649         void * is greater than that of ptrdiff_t.
121650         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
121651         __STDC__)]: Store temporary in pointer member of union, not
121652         integer member.
121653         * lib/obstack.c: Include <stddef.h>, for offsetof.
121654         (struct fooalign): Remove; it doesn't need a name.
121655         (union fooround): Change double to long double, and add void *.
121656         (DEFAULT_ALIGNMENT): Use offsetof to compute.
121657         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
121658         not a macro.  Hence the values are always int; so remove all
121659         casts-to-int in uses.
121661 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
121663         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
121664         we can get this patch merged into glibc.
121666 2004-05-17  Derek R. Price  <derek@ximbiot.com>
121667             Paul Eggert  <eggert@cs.ucla.edu>
121669         * m4/argp: Depend on alloca.
121671 2004-05-17  Derek R. Price  <derek@ximbiot.com>
121672             Paul Eggert  <eggert@cs.ucla.edu>
121674         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
121675         freecoding.
121677 2004-05-17  Bruno Haible  <bruno@clisp.org>
121679         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
121680         precision that consists of a '.' followed by an empty digit string.
121681         Patch by Tor Lillqvist <tml@iki.fi>.
121683 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
121685         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
121686         for backward compatibility with older code.  We need our own
121687         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
121688         it under some other name, and our alloca.h will define it.
121690 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
121691             Derek Price  <derek@ximbiot.com>
121693         * lib/alloca.c: Include <alloca.h>, to get our interface.
121694         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
121695         include <alloca.h> first.  Use C89 prototype for alloca; this
121696         requires including <stddef.h> for size_t.  Use extern "C" if C++.
121697         Use #elif for simplicity, since we can assume C89 now.
121698         Don't try to source the system alloca.h since it will not be found
121699         and to prevent recursively including its replacement.
121700         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
121701         * lib/regex.c: Likewise.
121703 2004-05-16  Derek Price  <derek@ximbiot.com>
121704             Paul Eggert  <eggert@cs.ucla.edu>
121706         getline cleanup.  This changes the getndelim2 API: both order of
121707         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
121708         no delimiter).
121710         * lib/getline.c: Don't include stddef.h or stdio.h, since our
121711         interface does that.
121712         (getline): Always use getdelim, so that we don't have two
121713         copies of this code.
121714         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
121715         if available.
121716         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
121717         (GETNDELIM2_MAXIMUM): New macro.
121718         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
121719         instead of the old practice of delim2==0.  All callers changed.
121720         Return -1 on overflow, instead of returning junk.
121721         Do not set *linesize unless allocation succeeds.
121722         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
121723         that we include sys/types.h.
121724         * lib/getnline.h: Likewise.
121725         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
121726         (getndelim2): Reorder arguments.
121727         * lib/getnline.c (getnline, getndelim):
121728         Don't discard the NMAX argument.
121729         (getnline): Invoke getndelim, to avoid code duplication.
121730         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
121731         of (size_t) -1 by callers of the getnline family.
121733 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
121735         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
121736         Check for gettimeofday.
121737         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
121738         Check for settimeofday, stime.
121740 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
121742         * lib/nanosleep.c (suspended): Change its type from int to
121743         sig_atomic_t volatile.
121744         (first_call): Make it private to rpl_nanosleep, and have it
121745         be zero initially as that's a bit faster.
121746         (my_usleep): Round up fractional times instead of truncating them,
121747         as this is the usual meaning for 'sleep'.
121749         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
121750         doesn't work.
121751         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
121752         (ENOSYS): Define if not defined.
121753         (settime): Fall back on stime if it exists and settimeofday fails.
121754         But don't bother with fallbacks if a method fails with errno == EPERM.
121756 2004-05-11  Jim Meyering  <jim@meyering.net>
121758         Prior to this change, the save_cwd caller required read access to the
121759         current directory on most systems (ones with the fchdir function).
121761         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
121762         fails, try write-only, and finally, resort to using xgetcwd.
121764 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
121766         * lib/obstack.c, obstack.h: Import changes from libc.
121768 2004-04-28  Bruno Haible  <bruno@clisp.org>
121770         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
121771         also implicitly appends .exe to executables.
121772         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
121773         accepts Windows pathnames.
121774         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
121775         Treat Cygwin like Windows, since it now accepts Windows pathnames.
121776         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
121777         Treat Cygwin like Windows, since it now accepts Windows pathnames.
121778         Reported by Derek Robert Price <derek@ximbiot.com>.
121780 2004-04-21  Karl Berry  <karl@gnu.org>
121782         * config/srclist.txt (localcharset.c): break sync.
121784 2004-04-20  Paul Eggert  <eggert@twinsun.com>
121786         * m4/host-os.m4: Add a copyright notice.
121788 2004-04-20  Jim Meyering  <jim@meyering.net>
121790         Change UTILS_ to gl_ in AC_DEFINE'd names.
121791         Change utils_- and jm_-prefixed variables, too.
121792         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
121793         UTILS_FUNC_MKDIR_TRAILING_SLASH.
121794         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
121796         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
121797         Don't emit trailing blanks.
121798         Also rename jm_-prefixed variables to have gl_ prefix.
121800         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
121801         Also rename jm_-prefixed variables to have gl_ prefix.
121803         * m4/jm-macros.m4: Reflect the renamings.
121804         * m4/prereq.m4: Likewise.
121806 2004-04-20  Jim Meyering  <jim@meyering.net>
121808         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
121809         memory.
121811 2004-04-20  Jim Meyering  <jim@meyering.net>
121812             Bruno Haible  <bruno@clisp.org>
121814         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
121815         memory when realloc fails.
121817 2004-04-19  Jim Meyering  <jim@meyering.net>
121819         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
121820         now that readutmp.c may call `free (0)'.
121822 2004-04-19  Bruno Haible  <bruno@clisp.org>
121824         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
121825         * m4/inttypes_h.m4: Likewise.
121826         * m4/stdint_h.m4: Likewise.
121827         * m4/intmax_t.m4: Likewise.
121828         * m4/uintmax_t.m4: Likewise.
121830 2004-04-18  Jim Meyering  <jim@meyering.net>
121832         * m4/prereq.m4: Don't forbid jm_ prefix.
121834         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
121835         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
121836         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
121837         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
121838         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
121839         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
121840         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
121841         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
121842         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
121843         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
121844         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
121845         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
121846         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
121847         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
121848         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
121849         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
121850         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
121851         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
121852         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
121854 2004-04-18  Jim Meyering  <jim@meyering.net>
121856         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
121857         failure, don't leak memory and do call END_UTMP_ENT.
121859 2004-04-16  Jim Meyering  <jim@meyering.net>
121861         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
121862         coreutils' stat program.
121863         (gl_PREREQ): Don't require jm_PREREQ_STAT.
121865 2004-04-11  Paul Eggert  <eggert@twinsun.com>
121867         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
121868         C89.
121869         (CHAR_BIT): Remove, since we assume C89.
121870         Include <stdint.h> if available, as per current Autoconf CVS advice.
121872 2004-03-31  Jim Meyering  <jim@meyering.net>
121874         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
121875         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
121876         * m4/xalloc.m4: Likewise.
121878 2004-03-30  Paul Eggert  <eggert@twinsun.com>
121880         Merge from coreutils.
121882         * m4/inttostr.m4: New file.
121883         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
121884         Require AM_STDBOOL_H and gl_TIMESPEC instead.
121885         Require gl_CLOCK_TIME.
121886         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
121888 2004-03-30  Paul Eggert  <eggert@twinsun.com>
121890         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
121891         not bool, to be more consistent with Unix conventions.
121892         Suggested by Bruno Haible.
121894         Merge from coreutils.
121896         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
121897         * lib/umaxtostr.c: New files.
121899         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
121900         the usual <time.h> dance.
121901         (get_date): Change signature to support fractional time stamps.
121902         All callers changed.
121903         * lib/getdate.y: Include "getdate.h" first, as we can now
121904         assume C89 and don't need to worry about 'const'.
121905         Similarly, include "unlocked-io.h" near start, not in middle.
121906         Include <limits.h>.
121907         (textint.value): Use long int rather than int.
121908         (textint.digits): Use size_t rather than int.
121909         (BILLION, LOG10_BILLION): New constants.
121910         (parser_control): New member rel_ns.  Members day_ordinal,
121911         time_zone, month, day, hour, minutes, rel_year, rel_month,
121912         rel_day, rel_hour, rel_minutes, rel_seconds
121913         are now long int, not int.  Member seconds is now struct timespec,
121914         not int.  New member timespec_seen.  Members dates_seen, days_seen,
121915         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
121916         not int.
121917         (%union.intval): Now long int, not int.
121918         New member timespec.
121919         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
121920         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
121921         (spec): Now is a timespec or an item list.
121922         (timespec, items): New nonterminals.
121923         (time, rel, relunit, number, get_date):
121924         Add support for fractional seconds.
121925         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
121926         (gmtime, localtime, mktime): Remove decls; not needed with C89.
121927         (to_hour): First arg is now long int, not int.
121928         (to_year): Returns long int, not int.
121929         Don't treat year -70 like 70.
121930         (tm_diff): Returns long int, not int.
121931         (lookup_word): Use bool instead of int when appropriate.
121932         (yylex): Use size_t for count, not int.
121933         Detect overflow when parsing large integer constants.
121934         Add support for fractions.
121935         (get_date): Make pointers 'const' if possible.
121936         Use more-portable code to detect integer overflow.
121937         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
121938         Don't use ctime; it's not reliable if the year has >4 digits.
121940         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
121941         This is for compatibility with BSD.
121943         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
121944         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
121945         From coreutils' system.h.
121947         * lib/userspec.c: Don't include "posixver.h".
121948         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
121949         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
121950         compatible extension.  Simplify code by removing a boolean int
121951         that was always nonzero if a string was nonnull.
121953 2004-03-30  Jim Meyering  <jim@meyering.net>
121955         Merge from coreutils.
121957         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
121958         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
121959         on some systems one must include <grp.h> before it.
121960         Reported by Christian Krackowizer.
121962 2004-03-30  Jim Meyering  <jim@meyering.net>
121964         Merge from coreutils.
121966         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
121968         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
121969         an empty input stream.
121971         * lib/readtokens.c: Include <stdbool.h>.
121972         (readtoken): Use `size_t' rather than int/long.
121973         All callers adjusted.
121974         Use `bool' rather than `int' where appropriate.
121975         Use memset rather than an explicit loop.
121976         Use x2nrealloc rather than xrealloc.
121977         Allow the use of `\0' as a delimiter.
121978         (readtokens): Likewise.
121979         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
121981 2004-03-30  Jim Meyering  <jim@meyering.net>
121983         * m4/realloc.m4: Remove file, since now it does no more than
121984         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
121985         the `configure.ac' section of module/realloc.
121986         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
121988 2004-03-30  Bruno Haible  <bruno@clisp.org>
121990         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
121991         nonnull.
121993 2004-03-29  Paul Eggert  <eggert@twinsun.com>
121995         Merge changes to getloadavg.c from coreutils and Emacs.
121997         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
121998         Define to an expression, not to the empty string.
121999         Include cloexec.h and xalloc.h.
122000         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
122001         Use set_cloexec_flag rather than rolling our own.
122002         * lib/cloexec.c, lib/cloexec.h: New files.
122004 2004-03-29  Paul Eggert  <eggert@twinsun.com>
122006         * m4/cloexec.m4: New file.
122008 2004-03-18  Paul Eggert  <eggert@twinsun.com>
122010         * lib/getopt.h: Sync with libc CVS.
122012 2004-03-18  Paul Eggert  <eggert@twinsun.com>
122013             Bruno Haible  <bruno@clisp.org>
122015         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
122016         mbswidth.
122018 2004-03-18  Paul Eggert  <eggert@twinsun.com>
122019             Bruno Haible  <bruno@clisp.org>
122021         * lib/mbswidth.h: Include <wchar.h> only if
122022         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
122023         <wchar.h>.
122024         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
122026 2004-03-09  Paul Eggert  <eggert@twinsun.com>
122028         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
122029         Sync with libc CVS.
122030         * lib/getopt_int.h: New file, also synced from libc.
122032 2004-03-09  Paul Eggert  <eggert@twinsun.com>
122034         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
122035         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
122036         Bring back getopt.c, getopt.h, getopt1.c.
122038 2004-03-07  Paul Eggert  <eggert@twinsun.com>
122040         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
122041         All uses changed.  Check for sa_sigaction member; this fixes
122042         a bug first reported by Jason Andrade in
122043         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
122045 2004-03-07  Paul Eggert  <eggert@twinsun.com>
122047         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
122048         '#if' expressions.  Unlike the code it replaces, it does not
122049         depend on (defined _SC_PAGESIZE).  However, it does depend on
122050         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
122051         first reported by Jason Andrade in
122052         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
122054 2004-02-25  Simon Josefsson  <jas@extundo.com>
122056         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
122058 2004-02-25  Simon Josefsson  <jas@extundo.com>
122060         * lib/strdup.h: New file.
122061         * lib/strdup.c: Include it.
122062         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
122063         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
122065 2004-02-23  Karl Berry  <karl@gnu.org>
122067         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
122068         (from fencepost.gnu.org:/gd/gnuorg).
122070 2004-02-23  Karl Berry  <karl@gnu.org>
122072         * config/srclistvars.sh (GNUORG) [karl]: redefine.
122073         * config/srclist.txt: add maintain/standards documents.
122075 2004-02-18  Bruno Haible  <bruno@clisp.org>
122077         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
122078         Reported by Derek Robert Price <derek@ximbiot.com>.
122080 2004-02-16  Karl Berry  <karl@gnu.org>
122082         * config/mkinstalldirs, install-sh: update from automake.
122084 2004-02-06  Karl Berry  <karl@gnu.org>
122086         * m4/po.m4: update from gettext 0.14.1.
122088 2004-02-06  Karl Berry  <karl@gnu.org>
122090         * lib/config.charset: update from gettext 0.14.1.
122092 2004-02-05  Paul Eggert  <eggert@twinsun.com>
122094         Add comments and code, prompted by suggestions from Bruno Haible
122095         for sh-quote.
122096         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
122097         describing the enum quoting_style values.
122098         * lib/quotearg.c (quotearg_alloc): New function.
122099         (quotearg_buffer_restyled): Treat lone { and } as special.
122100         Treat = as special.  Work around bug with older shells
122101         that "see" a '\' that is really the 2nd byte of a multibyte char.
122102         Quote empty string with shell_quoting_style.
122104 2004-02-03  Bruno Haible  <bruno@clisp.org>
122106         * m4/pipe.m4: New file, from GNU gettext.
122108 2004-02-03  Bruno Haible  <bruno@clisp.org>
122110         * lib/pipe.h: New file, from GNU gettext.
122111         * lib/pipe.c: New file, from GNU gettext.
122113 2004-01-27  Bruno Haible  <bruno@clisp.org>
122115         * m4/execute.m4: New file, from GNU gettext.
122117 2004-01-27  Bruno Haible  <bruno@clisp.org>
122119         * lib/execute.h: New file, from GNU gettext.
122120         * lib/execute.c: New file, from GNU gettext.
122121         * lib/w32spawn.h: New file, from GNU gettext.
122123 2004-01-24  Paul Eggert  <eggert@twinsun.com>
122125         Merge from diffutils.
122127         * lib/file-type.c (file_type): Add typed memory objects.
122128         * lib/file-type.h (S_TYPEISTMO): New macro.
122130         * lib/c-stack.h (c_stack_action): Remove argv argument.
122131         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
122132         (die): Don't calculate message unless segv_action returns.
122133         (get_stack_location, min_address_from_argv, max_address_from_argv,
122134         volatile stack_base, volatile_stack_size): Remove.
122135         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
122136         that every segmentation violation is a stack overflow.  (Ouch!)
122137         See Debian bug 136249 (still outstanding) for more info about why
122138         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
122140 2004-01-24  Paul Eggert  <eggert@twinsun.com>
122142         Exit-status fix from coreutils.
122144         Use exit_failure consistently in place of EXIT_FAILURE,
122145         so that program exit statuses are consistent on failure.
122147         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
122148         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
122149         * lib/argmatch.h: Comment fix to match the above.
122150         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
122151         Now a macro referring to exit_failure, instead of a separate
122152         variable.  Include "exitfail.h" to get it.
122153         * lib/xstrtol.h: Include "exitfail.h".
122154         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
122156         * lib/long-options.c (parse_long_options): Use prototype
122157         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
122158         for clarity.
122160 2004-01-21  Jim Meyering  <jim@meyering.net>
122162         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
122163         so as not to conflict with a different-sized __mktime_internal
122164         function in GNU libc.
122165         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
122166         Problem building statically-linked `ls' reported by Michael Brunnbauer.
122168 2004-01-20  Karl Berry  <karl@gnu.org>
122170         * config/config.guess: update from config.
122172         * config/srclistvars.sh: GNUWWWLICENSES for karl.
122174 2004-01-20  Bruno Haible  <bruno@clisp.org>
122176         Safer stack allocation.
122177         * lib/setenv.c: Include allocsa.h.
122178         (alloca): Remove fallback definition.
122179         (freea): Remove macro.
122180         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
122181         instead of freea.
122183 2004-01-20  Bruno Haible  <bruno@clisp.org>
122185         * m4/eealloc.m4: New file, from GNU gettext.
122187 2004-01-20  Bruno Haible  <bruno@clisp.org>
122189         * m4/allocsa.m4: New file, from GNU gettext.
122191 2004-01-20  Bruno Haible  <bruno@clisp.org>
122193         * lib/xallocsa.h: New file, from GNU gettext.
122194         * lib/xallocsa.c: New file, from GNU gettext.
122196 2004-01-20  Bruno Haible  <bruno@clisp.org>
122198         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
122200 2004-01-20  Bruno Haible  <bruno@clisp.org>
122202         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
122203         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
122204         specially.
122206 2004-01-20  Bruno Haible  <bruno@clisp.org>
122208         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
122209         patch.
122211 2004-01-20  Bruno Haible  <bruno@clisp.org>
122213         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
122215 2004-01-20  Bruno Haible  <bruno@clisp.org>
122217         * lib/eealloc.h: New file.
122219 2004-01-20  Bruno Haible  <bruno@clisp.org>
122221         * lib/binary-io.h: Avoid warnings on Cygwin.
122223 2004-01-20  Bruno Haible  <bruno@clisp.org>
122225         * lib/allocsa.h: New file, from GNU gettext.
122226         * lib/allocsa.c: New file, from GNU gettext.
122228 2004-01-18  Karl Berry  <karl@gnu.org>
122230         * doc/gpl.texi, doc/lgpl.texi: new files.
122232 2004-01-18  Karl Berry  <karl@gnu.org>
122234         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
122235         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
122237 2004-01-15  Paul Eggert  <eggert@twinsun.com>
122239         Merge from coreutils.
122241         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
122242         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
122243         (gl_DEFAULT_POSIX2_VERSION): Move
122244         the documentation from 'configure' into 'config.hin',
122245         so that 'configure --help' isn't burdened by it and
122246         we don't have to worry about its formatting there.
122247         Reword the documentation so that it's more succinct
122248         and can be run together into a single paragraph.
122249         * m4/same.m4 (gl_SAME): Check for pathconf.
122251 2004-01-15  Paul Eggert  <eggert@twinsun.com>
122253         Merge from coreutils.
122255         * lib/posixver.c: Include posixver.h.
122257         * lib/same.c: Include <stdbool.h>, <limits.h>.
122258         (_POSIX_NAME_MAX): Define if not defined.
122259         (MIN): New macro.
122260         (same_name): If file names are silently truncated, report
122261         that the file names are the same if they are the same after
122262         the silent truncation.
122264         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
122265         conversion function.
122266         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
122267         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
122268         longer needed.
122270 2004-01-15  Jim Meyering  <jim@meyering.net>
122272         Merge from coreutils.
122274         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
122275         if no library is required.
122276         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
122277         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
122278         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
122279         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
122280         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
122281         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
122282         value, $ac_cv_search_crypt, if it's "none required".
122283         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
122284         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
122285         not gl_FUNC_GETLOADAVG.
122286         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
122287         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
122289 2004-01-15  Jim Meyering  <jim@meyering.net>
122291         Merge from coreutils.
122293         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
122294         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
122295         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
122297         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
122298         optional configure-time default.
122300         * lib/version-etc.c (version_etc_copyright): Update copyright date.
122302         * lib/xreadlink.c (xreadlink): Correct outdated comment.
122304 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
122306         Merge from coreutils.
122308         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
122309         value, $ac_cv_search_nanosleep, if it's "none required".
122311 2004-01-14  Paul Eggert  <eggert@twinsun.com>
122313         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
122314         with like-named macro in fnmatch.c.
122315         (EXT): Use an internal constant instead.
122317         Merge fnmatch patches from glibc.
122318         * lib/fnmatch.c (mbsinit): Remove define.
122319         Add libc_hidden_ver (__fnmatch, fnmatch).
122320         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
122321         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
122323 2004-01-14  Karl Berry  <karl@gnu.org>
122325         * config/install-sh: update from automake.
122327 2004-01-13  Karl Berry  <karl@gnu.org>
122329         * config/install-sh: update from automake.
122331 2004-01-09  Karl Berry  <karl@gnu.org>
122333         * config/install-sh: update from automake.
122335 2004-01-05  Karl Berry  <karl@gnu.org>
122337         * config/config.{sub,guess}: update from config.
122339 2003-12-31  Karl Berry  <karl@gnu.org>
122341         * config/depcomp: update from automake.
122343 2003-12-14  Karl Berry  <karl@gnu.org>
122345         * lib/config.charset: update from gettext-runtime.
122347 2003-12-03  Paul Eggert  <eggert@twinsun.com>
122349         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
122350         Bug reported by Alfred M. Szmidt.
122352 2003-12-03  Bruno Haible  <bruno@clisp.org>
122354         * m4/gettext.m4: Upgrade from gettext-0.13.
122355         * m4/po.m4: Upgrade from gettext-0.13.
122356         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
122357         * m4/intmax.m4: New file, from gettext-0.13.
122358         * m4/printf-posix.m4: New file, from gettext-0.13.
122360 2003-11-29  Karl Berry  <karl@gnu.org>
122362         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
122364 2003-11-25  Paul Eggert  <eggert@twinsun.com>
122365             Bruno Haible  <bruno@clisp.org>
122367         * lib/printf-parse.h: Don't include sys/types.h.
122368         (ARG_NONE): New macro.
122369         (char_directive): Change type of *arg_index fields to size_t.
122370         * lib/printf-parse.c: Don't include sys/types.h.
122371         (SSIZE_MAX): Remove macro.
122372         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
122373         Remove unnecessary overflow check.
122374         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
122375         fields.
122377 2003-11-25  Bruno Haible  <bruno@clisp.org>
122379         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
122381 2003-11-25  Bruno Haible  <bruno@clisp.org>
122383         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
122384         gt_TYPE_SSIZE_T.
122386 2003-11-24  Paul Eggert  <eggert@twinsun.com>
122388         * modules/alloca: Remove dependency on xalloc.
122390 2003-11-24  Paul Eggert  <eggert@twinsun.com>
122392         * lib/alloca.c: Remove dependency on xalloc module.
122393         (xalloc_die): Remove.
122394         (memory_full) [!defined emacs]: New macro.
122395         [!defined emacs]: Don't include xalloc.h.
122396         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
122397         address arithmetic overflows.  Change datatypes a bit to avoid
122398         unnecessary casts.
122400 2003-11-22  Jim Meyering  <jim@meyering.net>
122402         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
122403         s/size/size_t/.
122405 2003-11-21  Karl Berry  <karl@gnu.org>
122407         * config/config.{sub,guess}: update from config.
122409 2003-11-18  Karl Berry  <karl@gnu.org>
122411         * config/config.{sub,guess}: update from config.
122413         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
122415 2003-11-17  Paul Eggert  <eggert@twinsun.com>
122417         * README: Mention that S+T cannot overflow if S is the size of
122418         an existing object and T is sufficiently small.
122420 2003-11-17  Jim Meyering  <jim@meyering.net>
122422         On systems without utime and without a utimes function capable of
122423         dealing with a NULL struct utimbuf* argument, this utime replacement
122424         could -- in unusual circumstances -- leak a file descriptor.
122425         * lib/utime.c: Include <unistd.h> and <errno.h>.
122426         (utime_null): Be sure to close `fd' and to preserve errno.
122427         Reported by Geoff Collyer via Arnold Robbins.
122429 2003-11-17  Bruno Haible  <bruno@clisp.org>
122431         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
122432         (Depends-on): Add xsize.
122434 2003-11-17  Bruno Haible  <bruno@clisp.org>
122436         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
122438 2003-11-17  Bruno Haible  <bruno@clisp.org>
122440         * lib/vasnprintf.c (alloca): Remove fallback definition.
122441         (freea): Remove definition.
122442         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
122443         Reported by Paul Eggert.
122445 2003-11-16  Paul Eggert  <eggert@twinsun.com>
122446             Bruno Haible  <bruno@clisp.org>
122448         Protect against address arithmetic overflow.
122449         * lib/printf-args.h: Include stddef.h.
122450         (arguments): Change type of field 'count' to size_t.
122451         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
122452         'unsigned int' where appropriate.
122453         * lib/printf-parse.h: Include sys/types.h.
122454         (char_directive): Change type of *arg_index fields to ssize_t.
122455         (char_directives): Change type of fields 'count', max_*_length to
122456         size_t.
122457         * lib/printf-parse.c: Include sys/types.h and xsize.h.
122458         (SSIZE_MAX): Define fallback value.
122459         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
122460         instead of 'int' where appropriate. Check a_allocated, d_allocated
122461         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
122462         * lib/vasnprintf.c: Include xsize.h.
122463         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
122464         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
122465         overflow. Avoid wraparound when converting a width or precision from
122466         decimal to binary.
122468 2003-11-16  Bruno Haible  <bruno@clisp.org>
122470         Update from GNU gettext.
122471         * lib/printf-parse.c: Generalize to it can be compiled for wide
122472         strings.
122473         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
122474         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
122475         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
122476         SNPRINTF): New macros.
122477         Don't include <alloca.h> if the file is used inside libintl.
122478         (local_wcslen): New function, for Solaris 2.5.1.
122479         (VASNPRINTF): Use it instead of wcslen.
122481 2003-11-16  Bruno Haible  <bruno@clisp.org>
122483         * lib/xsize.h (xmax): New function.
122484         (xsum, xsum3, xsum4): Declare as "pure" functions.
122486 2003-11-12  Paul Eggert  <eggert@twinsun.com>
122488         * modules/xalloc (Files): Undo latest change, since xalloc.h
122489         no longer needs SIZE_MAX or PTRDIFF_MAX.
122491 2003-11-12  Paul Eggert  <eggert@twinsun.com>
122493         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
122494         gl_PTRDIFF_MAX.
122496 2003-11-12  Paul Eggert  <eggert@twinsun.com>
122498         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
122499         "return", to pacify some unknown compiler.  Problem reported
122500         by Joerg Schilling.
122502 2003-11-12  Paul Eggert  <eggert@twinsun.com>
122504         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
122505         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
122506         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
122507         heuristic is just as accurate as far as we know, and it removes a
122508         dependency on size_max.m4 and ptrdiff_max.m4.
122510 2003-11-11  Bruno Haible  <bruno@clisp.org>
122512         * modules/xsize (Files): Add m4/size_max.m4.
122513         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
122515 2003-11-11  Bruno Haible  <bruno@clisp.org>
122517         * m4/size_max.m4: New file.
122518         * m4/ptrdiff_max.m4: New file.
122519         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
122520         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
122521         (gl_XALLOC): Invoke it.
122523 2003-11-11  Bruno Haible  <bruno@clisp.org>
122525         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
122526         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
122527         defined.
122529 2003-11-10  Paul Eggert  <eggert@twinsun.com>
122531         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
122532         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
122533         rejected some allocations of exactly SIZE_MAX - 2 bytes.
122534         From Bruno Haible.
122535         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
122536         not (size_t) -1, since it's defined here.
122538 2003-11-09  Karl Berry  <karl@gnu.org>
122540         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
122542 2003-11-06  Paul Eggert  <eggert@twinsun.com>
122544         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
122545         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
122546         Reject sizes of exactly SIZE_MAX bytes.
122547         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
122548         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
122550 2003-11-05  Bruno Haible  <bruno@clisp.org>
122552         * lib/xsize.h: Include limits.h, to avoid a possible collision with
122553         SIZE_MAX defined in <limits.h> on Solaris.
122555 2003-11-04  Jim Meyering  <jim@meyering.net>
122557         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
122558         variable names, rather than @VAR@.
122559         * modules/poll: Likewise.
122561 2003-11-04  Bruno Haible  <bruno@clisp.org>
122563         * modules/xsize: New file.
122564         * modules/linebreak: Depend on xsize.
122565         * MODULES.html.sh (func_all_modules): Add xsize.
122567 2003-11-04  Bruno Haible  <bruno@clisp.org>
122569         * m4/xsize.m4: New file.
122571 2003-11-04  Bruno Haible  <bruno@clisp.org>
122573         * lib/xsize.h: New file.
122574         * lib/linebreak.c: Include xsize.h.
122575         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
122576         argument for overflow.
122577         Suggested by Paul Eggert.
122579 2003-11-03  Karl Berry  <karl@gnu.org>
122581         * config/config.{guess,sub}: update from config.
122583 2003-11-03  Jim Meyering  <jim@meyering.net>
122585         * modules/userspec (lib_SOURCES): Add userspec.h.
122586         (Include): Add "userspec.h".
122587         Improve description.
122589 2003-11-03  Jim Meyering  <jim@meyering.net>
122591         * lib/userspec.c: Include "userspec.h".
122592         * lib/userspec.h: New file.
122594 2003-11-03  Bruno Haible  <bruno@clisp.org>
122596         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
122598 2003-11-03  Bruno Haible  <bruno@clisp.org>
122600         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
122601         available, to avoid (extremely rare) race condition.
122602         Suggested by Paul Eggert.
122604 2003-11-02  Karl Berry  <karl@gnu.org>
122606         * config/srclist.txt (vasprintf.c): sync broken, sigh.
122608 2003-10-31  Paul Eggert  <eggert@twinsun.com>
122610         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
122611         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
122612         (read_filesystem_list): Set and use me_type_malloced.
122613         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
122614         whatever the type happens to be), for brevity and consistency.
122615         Check for size calculation overflow on Alphas running OSF/1.
122617 2003-10-31  Jim Meyering  <jim@meyering.net>
122619         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
122621         * lib/linebuffer.c: Include <string.h> for declaration of memset.
122623 2003-10-30  Paul Eggert  <eggert@twinsun.com>
122624             Bruno Haible  <bruno@clisp.org>
122626         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
122627         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
122629 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
122631         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
122632         netbsd*-gnu*.  Suggested by Robert Millan.
122634 2003-10-29  Paul Eggert  <eggert@twinsun.com>
122636         * modules/group-member: Depend on stdbool.
122638 2003-10-29  Paul Eggert  <eggert@twinsun.com>
122640         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
122642 2003-10-29  Paul Eggert  <eggert@twinsun.com>
122644         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
122645         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
122646         after the 'gnu' in these cases.  This fixes some bugs in the
122647         previous change, and is based on suggestions by Robert Millan.
122649 2003-10-29  Paul Eggert  <eggert@twinsun.com>
122651         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
122652         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
122653         no longer needed.
122654         * lib/quotearg.c (quotearg_n_options): Use it.
122655         * lib/group-member.c: Include <stdbool.h>.
122656         (free_group_info): Arg is now const *; don't free arg.
122657         (get_group_info): Now returns bool and accepts struct group_info *,
122658         rather than returning a malloc'ed struct group_info *.
122659         All uses changed.  Check for overflow in internal size calculation.
122661         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
122662         rather than xmalloc/xrealloc.
122663         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
122664         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
122665         conformance bug: the old code used a pointer after freeing the
122666         storage that it addressed.
122667         * lib/hash.c (hash_initialize): Simplify the code by using
122668         xalloc_oversized rather than doing it by hand.
122669         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
122670         the buffer preserved.  Use free and xmalloc instead.
122671         * lib/quotearg.c (quotearg_n_options): Likewise.
122672         Use a simpler test for size overflow.  Don't use xalloc_oversized
122673         because unsigned int might be wider than size_t (!); this suggests
122674         that we should switch from unsigned int to size_t for slot numbers.
122676 2003-10-28  Paul Eggert  <eggert@twinsun.com>
122678         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
122679         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
122680         NetBSD kernels.  Requested by Richard Stallman.
122682 2003-10-27  Paul Eggert  <eggert@twinsun.com>
122684         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
122685         to allocate the returned structure.  Do not allocate a subarray,
122686         as x2nrealloc will do that.
122687         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
122688         instead of xnrealloc.
122689         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
122691 2003-10-27  Bruno Haible  <bruno@clisp.org>
122693         * lib/stdbool_.h: Better support for BeOS.
122695 2003-10-26  Paul Eggert  <eggert@twinsun.com>
122697         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
122698         now uses inline.
122700 2003-10-26  Paul Eggert  <eggert@twinsun.com>
122702         * lib/xalloc.h (xalloc_oversized): New static inline function, for
122703         callers that want to do their own size-overflow checking.  Include
122704         <stdbool.h>, since xalloc_oversized returns bool.
122705         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
122706         to use xalloc_oversized.
122708         Add two functions x2realloc, x2nrealloc, for programs that grow
122709         arrays dynamically by doubling their sizes.
122710         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
122711         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
122712         New functions.
122714         Port to C99 semantics for 'inline' of external functions.
122715         Bug reported by Bruno Haible.
122716         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
122717         with the old contents of xnmalloc.
122718         (xnmalloc, xmalloc): Use it.
122719         (xnrealloc_inline): New static inline function,
122720         with the old contents of xnrealloc.
122721         (xnrealloc, xrealloc): Use it.
122723         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
122724         that.
122726 2003-10-26  Karl Berry  <karl@gnu.org>
122728         * config/srclist.txt (COPYING.DOC): no longer available from
122729         /gd/gnuorg; don't know where the ultimate source is.
122731 2003-10-25  Paul Eggert  <eggert@twinsun.com>
122733         Fix several address-calculation bugs in the hash modules,
122734         plus some minor code cleanup.
122736         * lib/hash.h: Include <stdbool.h>, for bool.
122737         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
122738         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
122739         hash_get_n_entries, hash_get_max_bucket_length,
122740         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
122741         hash_rehash): Use size_t rather than unsigned.
122742         * lib/hash.c (struct hash_table, hash_get_n_buckets,
122743         hash_get_n_buckets_used, hash_get_n_entries,
122744         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
122745         hash_get_entries, hash_do_for_each, hash_string, is_prime,
122746         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
122747         Likewise.
122748         (SIZE_MAX): Define if not defined.
122749         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
122750         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
122751         hash_print):
122752         Use const * when possible.
122753         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
122754         (check_tuning): Fix bug: if tuning parameters were very close to
122755         0 or 1, rounding errors could have caused subscript violations.
122756         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
122757         (hash_initialize): Add 'fail:' label
122758         to free table and return NULL, and use it to simplify code.
122759         Use calloc rather than clearing the storage ourself.
122760         (hash_initialize, hash_rehash): Check for arithmetic overflow in
122761         buffer size calculations.
122762         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
122763         Include <stddef.h>, for size_t.
122764         * lib/hash-pjw.c (hash_pjw): Likewise.
122765         Switch to method described by Bruno Haible.
122766         Include <limits.h>, for CHAR_BIT.
122767         (SIZE_BITS): New macro.
122769 2003-10-23  Paul Eggert  <eggert@twinsun.com>
122771         * m4/getline.m4 (AM_FUNC_GETLINE):
122772         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
122773         hosts.  Problem reported by Derek Robert Price in
122774         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
122775         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
122776         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
122778 2003-10-21  Paul Eggert  <eggert@twinsun.com>
122780         * lib/getndelim2.c (getndelim2): When size calculation overflows,
122781         ceiling the allocation at NMAX bytes rather than silently
122782         discarding input bytes before NMAX is reached.  This makes
122783         a difference only if NMAX exceeds SIZE_MAX / 2.
122785         * lib/obstack.c: Merge from glibc.
122786         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
122787         Add libc_hidden_def (_obstack_newchunk).
122788         (_obstack_free) [! defined _LIBC]: Remove.
122789         [defined _LIBC]: Make a strong alias from obstack_free, rather than
122790         a clone of the function body.
122791         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
122792         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
122794         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
122795         glibc.
122796         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
122797         arg to memcpy.
122799         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
122800         (obstack_ptr_grow_fast, obstack_int_grow_fast):
122801         Don't use lvalue casts, as GCC plans to remove support for them
122802         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
122803         was also present in the non-GCC version, indicating that this
122804         code had always been buggy and had never been widely used.
122805         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
122806         Use the fast variant of each macro, rather than copying the
122807         definiens of the fast variant; that way, we'll be more likely to
122808         catch future bugs in the fast variants.
122810 2003-10-20  Bruno Haible  <bruno@clisp.org>
122812         * modules/wait-process: New file.
122813         * MODULES.html.sh (func_all_modules): Add wait-process.
122815 2003-10-20  Bruno Haible  <bruno@clisp.org>
122817         * m4/wait-process.m4: New file.
122819 2003-10-20  Bruno Haible  <bruno@clisp.org>
122821         * lib/wait-process.h: New file, from GNU gettext.
122822         * lib/wait-process.c: New file, from GNU gettext.
122824 2003-10-19  Jim Meyering  <jim@meyering.net>
122826         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
122827         HPUX 10.20.
122829 2003-10-18  Karl Berry  <karl@gnu.org>
122831         * config/config.guess: update from config.
122833 2003-10-16  Paul Eggert  <eggert@twinsun.com>
122835         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
122836         (getgroups): First arg is int, not size_t.
122837         Don't let 'free' mangle errno.
122839 2003-10-16  Paul Eggert  <eggert@twinsun.com>
122841         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
122843 2003-10-16  Karl Berry  <karl@gnu.org>
122845         * config/config.{guess,sub}: update from config.
122847 2003-10-16  Jim Meyering  <jim@meyering.net>
122849         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
122850         memcpy.
122852 2003-10-15  Paul Eggert  <eggert@twinsun.com>
122854         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
122855         (SIZE_MAX): Remove.
122856         (new_exclude, add_exclude_file): Initial size no longer needs to
122857         be a power of 2.
122858         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
122859         our own address arithmetic overflow checking.
122861         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
122862         (fnmatch): Do not alloca more than 2000 wide characters;
122863         instead, use malloc for large buffers.
122864         Check for address arithmetic overflow, and return -1
122865         with errno set to ENOMEM in that case.
122866         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
122867         (NEW_PATTERN): Do not alloca more than 8000 bytes;
122868         instead, return -1.  Check for address arithmetic overflow.
122870 2003-10-14  Paul Eggert  <eggert@twinsun.com>
122872         Handle invalid suffixes and overflow independently, so that
122873         callers can treat them independently as needed.  Fix some bugs in
122874         suffix handling, e.g., "100k@" was not diagnosed as an invalid
122875         suffix for a human-readable blocksize.  The major caller-visible
122876         change is the addition of a new
122877         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
122878         that both overflow and suffix chars were found.
122880         * lib/human.c (humblock): Don't check separately for invalid suffix
122881         char; that is xstrtoumax's job (now that its bug is fixed).
122882         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
122883         INTMAX_MAX]: New macros.
122884         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
122885         TYPE_MAXIMUM): New macros.
122886         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
122887         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
122888         if overflow occurs, as it's what __strtol does and it's more useful
122889         in practice.
122890         (__xstrtol): If __strtol reports some error other than ERANGE,
122891         reflect it to the caller as LONGINT_INVALID.  If it reports
122892         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
122893         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
122894         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
122895         value.
122896         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
122897         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
122898         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
122899         [defined UINTMAX_MAX]: New macros.
122901 2003-10-14  Bruno Haible  <bruno@clisp.org>
122903         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
122905 2003-10-14  Bruno Haible  <bruno@clisp.org>
122907         * m4/sig_atomic_t: New file, from GNU gettext.
122908         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
122910 2003-10-14  Bruno Haible  <bruno@clisp.org>
122912         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
122913         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
122914         Also use volatile where needed.
122916 2003-10-12  Paul Eggert  <eggert@twinsun.com>
122918         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
122919         Change maintainer from Bruno Haible to 'all'.
122921 2003-10-12  Paul Eggert  <eggert@twinsun.com>
122923         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
122925 2003-10-12  Paul Eggert  <eggert@twinsun.com>
122927         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
122928         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
122929         and define in terms of the other primitives.
122930         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
122931         (SIZE_MAX): Define if not already defined.
122932         (array_size_overflow): New function.
122933         (xalloc_die): Abort instead of exiting if 'error' returns.
122934         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
122935         (xmalloc, xrealloc): Use them.
122936         (xcalloc): Check for address arithmetic overflow.
122937         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
122938         a bit faster than strcpy.
122940 2003-10-10  Simon Josefsson  <jas@extundo.com>
122942         * modules/argp (Depends-on): Add restrict and strcase.
122944 2003-10-10  Simon Josefsson  <jas@extundo.com>
122946         * m4/argp.m4: Add AC_C_INLINE.
122948 2003-10-08  Paul Eggert  <eggert@twinsun.com>
122950         Merge getpass from libc, plus a few fixes.
122952         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
122953         Include <stdbool.h>.
122954         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
122955         __fsetlocking to empty.
122956         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
122957         do include <bits/libc-lock.h>.
122958         Do not include <fcntl.h>; not needed.
122959         [_LIBC]: Include <wchar.h>.
122960         (NOTCANCEL_MODE): New macro.
122961         (flockfile, funlockfile) [_LIBC]: New macros.
122962         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
122963         [!_LIBC]: New macros.
122964         (call_fclose): New function.
122965         (getpass): Use it.  Save tty stream separately; this simplifies the
122966         code and makes it more reliable if stdin happens to equal stdout.
122967         Invoke __fsetlocking on tty.
122968         Handle thread cancellation if needed.
122969         Namespace cleanup (use __tcgetattr, __getline).
122970         Use bool for Booleans.
122971         [USE_IN_LIBIO]: Handle wide streams.
122972         [!_LIBC]: Unconditionally do the fseek, since we don't know what
122973         stream might go where.
122975         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
122976         doesn't have to include <stdio.h> before us.
122977         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
122978         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
122979         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
122980         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
122981         if not declared, so that we can use getpass.c code from libc without
122982         rewriting it.
122983         (flockfile, ftrylockfile, funlockfile): New macros.
122985 2003-10-08  Paul Eggert  <eggert@twinsun.com>
122987         * modules/getpass: Depend on stdbool.
122989 2003-10-08  Paul Eggert  <eggert@twinsun.com>
122991         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
122993 2003-10-07  Karl Berry  <karl@gnu.org>
122995         * config/config.{guess,sub}: update from config.
122997 2003-10-06  Jim Meyering  <jim@meyering.net>
122998             Bruno Haible  <bruno@clisp.org>
123000         This lets translators provide better translations for the
123001         "Written by ..." part of --version output.
123002         * lib/version-etc.h: Include stdarg.h.
123003         (version_etc_copyright): Declare as readonly.
123004         (version_etc): Make this function variadic with a NULL-terminated list
123005         of author name strings.
123006         (version_etc_va): New declaration.
123007         * lib/version-etc.c: Include stdarg.h, stdlib.h.
123008         (version_etc_copyright): Declare as readonly.
123009         (version_etc_va): New function. Provide a different translatable string
123010         for each possible number of authors < 10. Abbreviate when there are 10
123011         authors or more.
123012         (version_etc): Make this function variadic. Call version_etc_va.
123013         Suggestion from Gary V. Vaughan.
123015         * lib/long-options.h (parse_long_options): Change prototype: the
123016         authors string is moved to the end and becomes variadic.
123017         * lib/long-options.c: Include stdarg.h.
123018         (parse_long_options): Make this function variadic, too.
123019         Call version_etc_va, not version_etc.
123021 2003-10-06  Bruno Haible  <bruno@clisp.org>
123023         * modules/version-etc-2: Remove file.
123024         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
123026 2003-10-06  Bruno Haible  <bruno@clisp.org>
123028         * modules/fatal-signal: New file.
123029         * MODULES.html.sh (func_all_modules): Add fatal-signal.
123031 2003-10-06  Bruno Haible  <bruno@clisp.org>
123033         * m4/fatal-signal.m4: New file.
123034         * m4/signalblocking.m4: New file, from GNU gettext.
123036 2003-10-06  Bruno Haible  <bruno@clisp.org>
123038         * lib/version-etc-2.h: Remove file.
123039         * lib/version-etc-2.c: Remove file.
123041 2003-10-06  Bruno Haible  <bruno@clisp.org>
123043         * lib/fatal-signal.h: New file, from GNU gettext.
123044         * lib/fatal-signal.c: New file, from GNU gettext.
123046 2003-10-05  Paul Eggert  <eggert@twinsun.com>
123048         * README: Rework advice for preventing empty .o files.
123049         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
123050         not <sys/types.h>.
123052 2003-10-04  Karl Berry  <karl@gnu.org>
123054         * lib/argp*: update from libc.
123056 2003-10-04  Karl Berry  <karl@gnu.org>
123058         * config/config.{guess,sub}: update from config.
123060 2003-10-02  Bruno Haible  <bruno@clisp.org>
123062         * modules/lchown (Include): Add lchown.h.
123063         * modules/time_r (Include): Use "..." syntax.
123064         * modules/xgetdomainname (Include): Add xgetdomainname.h.
123066 2003-10-01  Simon Josefsson  <jas@extundo.com>
123068         * MODULES.html.sh (func_all_modules): Move gethostname from section
123069         'based on' to section 'lacking' POSIX:2001.
123071 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
123073         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
123074         to output mode on the same stream.
123076 2003-09-29  Paul Eggert  <eggert@twinsun.com>
123078         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
123079         Fix arg typo in previous patch.
123081 2003-09-28  Jim Meyering  <jim@meyering.net>
123083         * lib/error.c: Correct cpp indentation.
123085 2003-09-27  Paul Eggert  <eggert@twinsun.com>
123087         * modules/free: New file.
123089 2003-09-27  Paul Eggert  <eggert@twinsun.com>
123091         * m4/free.m4: New file.
123093 2003-09-27  Paul Eggert  <eggert@twinsun.com>
123095         * lib/minmax.h (MIN, MAX)
123096         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
123097         Omit the special code that used __typeof__, since we worry that
123098         it could be more trouble than it's worth.  See:
123099         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
123100         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
123102         * lib/free.c: New file.
123104 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
123106         Trivial fixes to Makefile.am parts of module listings.
123107         * modules/strstr: Append strstr.h to lib_SOURCES.
123108         * modules/strcase: Likewise, for strcase.h.
123110 2003-09-27  Karl Berry  <karl@gnu.org>
123112         * config/mkinstalldirs: update from automake.
123114 2003-09-26  Paul Eggert  <eggert@twinsun.com>
123116         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
123117         (error_tail): Do not loop, reallocating temporary buffer, since
123118         the output cannot contain more wide characters than the input
123119         contains bytes, the size must be big enough already.  This avoids
123120         one potential size overflow calculation.  Check for size overflow
123121         when calculating temporary buffer size.  Free temporary buffer
123122         when done, if it was allocated with malloc; this plugs a memory
123123         leak.  Remove casts from void * to pointers, that are no longer
123124         needed now that we're assuming C89 or better.
123126         Merge error changes from glibc.
123128         * lib/error.c, error.h: Update copyright notice header to match glibc.
123129         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
123130         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
123131         Disable cancellation while printing error.
123132         * lib/error.h: Prepend __ to parameter names.
123134 2003-09-26  Jim Meyering  <jim@meyering.net>
123136         * lib/error.c (error_tail): Move some declarations
123137         into inner scope where the local variables are used.
123139 2003-09-26  Bruno Haible  <bruno@clisp.org>
123141         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
123142         stpncpy().
123143         Don't define stpncpy through config.h; it's now done through stpncpy.h.
123145 2003-09-26  Bruno Haible  <bruno@clisp.org>
123147         * lib/stpncpy.h (gnu_stpncpy): New declaration.
123148         (stpncpy): Define as alias for gnu_stpncpy.
123149         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
123151 2003-09-25  Simon Josefsson  <jas@extundo.com>
123153         * lib/xgetdomainname.h: New file.
123154         * lib/xgetdomainname.c: New file.
123156 2003-09-25  Simon Josefsson  <jas@extundo.com>
123157             Bruno Haible  <bruno@clisp.org>
123159         * modules/getdomainname: New file.
123160         * modules/xgetdomainname: New file.
123161         * MODULES.html.sh (func_all_modules): Add getdomainname,
123162         xgetdomainname.
123164 2003-09-25  Simon Josefsson  <jas@extundo.com>
123165             Bruno Haible  <bruno@clisp.org>
123167         * m4/getdomainname.m4: New file.
123169 2003-09-25  Simon Josefsson  <jas@extundo.com>
123170             Bruno Haible  <bruno@clisp.org>
123172         * lib/getdomainname.h: New file.
123173         * lib/getdomainname.c: New file.
123175 2003-09-25  Karl Berry  <karl@gnu.org>
123177         * lib/argp-fmtstream.c, argp-help.c: update from libc.
123179 2003-09-25  Karl Berry  <karl@gnu.org>
123181         * config/install-sh: update from automake.
123183 2003-09-25  Bruno Haible  <bruno@clisp.org>
123185         * modules/version-etc-2: New file, from modules/version-etc with
123186         modifications.
123187         * MODULES.html.sh (func_all_modules): Add version-etc-2.
123189 2003-09-25  Bruno Haible  <bruno@clisp.org>
123191         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
123192         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
123194 2003-09-24  Simon Josefsson  <jas@extundo.com>
123196         * modules/xgethostname: Add xgethostname.h.
123198 2003-09-24  Paul Eggert  <eggert@twinsun.com>
123200         * lib/linebuffer.c (freebuffer): Don't free the argument, just
123201         the buffer associated with the argument.  Bug reported by
123202         Simon Josefsson.
123204 2003-09-24  Paul Eggert  <eggert@twinsun.com>
123206         * README: Document assumptions that 'int' is at least 32 bits
123207         wide, that integer arithmetic is 2's complement without overflow,
123208         that there are no holes in integer values, that adding sizes of
123209         two nonoverlapping objects can't overflow, and that all-bits-zero
123210         yields scalar zero.  Fix spelling and capitalization typos.
123212 2003-09-19  Karl Berry  <karl@gnu.org>
123214         * lib/argp.h: update from libc.
123216 2003-09-17  Paul Eggert  <eggert@twinsun.com>
123218         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
123219         to avoid spurious warnings like "AC_RUN_IFELSE was called before
123220         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
123222 2003-09-17  Paul Eggert  <eggert@twinsun.com>
123224         * gnulib-tool: Use "test -h", not "test -L", for portability
123225         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
123226         (tags_regexp): Remove, since \| doesn't conform to POSIX.
123227         (sed_extract_prog): Issue s commands one-by-one, rather than
123228         using \| in one s command.
123230 2003-09-16  Paul Eggert  <eggert@twinsun.com>
123232         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
123233         input error, instead of returning NULL the next time we are called
123234         (and therefore losing track of errno).
123236 2003-09-16  Bruno Haible  <bruno@clisp.org>
123238         * gnulib-tool (func_create_testdir): Warn about duplicated
123239         dependencies.
123241 2003-09-15  Paul Eggert  <eggert@twinsun.com>
123243         * modules/argmatch, modules/fatal, modules/obstack,
123244         modules/xalloc, modules/xgethostname: Sort dependencies by
123245         importance, not alphabetically.
123247 2003-09-15  Paul Eggert  <eggert@twinsun.com>
123249         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
123250         fails, so that the caller gets the proper errno.
123252         * lib/readutmp.c (read_utmp): Likewise.
123253         Check for fstat error.  Close stream and free storage
123254         when failing.
123256 2003-09-14  Karl Berry  <karl@gnu.org>
123258         * config/srclist.txt (strdup.c): disable for c89 changes.
123260 2003-09-14  Jim Meyering  <jim@meyering.net>
123262         * lib/getloadavg.c: Correct cpp indentation.
123263         * lib/strdup.c: Likewise.
123264         * lib/vasnprintf.c: Likewise.
123266 2003-09-14  Bruno Haible  <bruno@clisp.org>
123268         * modules/fwriteerror: New file.
123269         * MODULES.html.sh (func_all_modules): Add fwriteerror.
123271 2003-09-14  Bruno Haible  <bruno@clisp.org>
123273         * lib/fwriteerror.h: New file.
123274         * lib/fwriteerror.c: New file.
123276 2003-09-12  Paul Eggert  <eggert@twinsun.com>
123278         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
123279         modules/xgethostname, modules/xalloc: Depend on exit.
123281 2003-09-12  Paul Eggert  <eggert@twinsun.com>
123283         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
123285         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
123286         and AC_MINIX, too, so that their extensions are available.
123288         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
123289         This macro has been superseded by gl_BACKUPFILE.
123291         More patches to assume C89 or better.
123293         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
123295         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
123296         unconditionally.
123297         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
123298         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
123299         Include <string.h>, <stdlib.h> unconditionally.
123300         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
123301         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
123302         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
123303         headers or for string.h.
123304         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
123305         or strtoul.
123307         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
123308         headers.
123309         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
123310         * m4/userspec.m4 (gl_USERSPEC): Likewise.
123311         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
123312         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
123313         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
123314         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
123315         memcpy, memset.
123316         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
123317         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
123318         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
123319         strtol.
123320         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
123321         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
123322         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
123323         strtoul.
123325 2003-09-12  Paul Eggert  <eggert@twinsun.com>
123327         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
123328         * lib/obstack.c [!defined _LIBC]: Likewise.
123329         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
123330         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
123331         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
123333         More changes to assume C89 or better.
123335         * lib/error.c (error_tail): Assume vprintf.
123337         * lib/argmatch.c (getenv): Remove decl.
123338         * lib/progreloc.c (get_full_program_name): Define via prototype.
123339         * lib/setenv.c (clearenv): Likewise.
123340         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
123341         needed.
123342         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
123343         (malloc, memcpy): Remove decls.
123344         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
123345         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
123346         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
123347         (memcpy): Remove macro.
123348         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
123349         (__P): Remove.  All uses removed.
123350         (PTR): Remove.  All uses changed to void *.
123351         (CHAR_BIT, NULL): Remove.
123352         (spaces, zeros, memset_space, memset_zero)
123353         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
123354         Remove.
123355         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
123356         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
123357         Define with prototype.
123358         Remove now-unnecessary prototype decl.
123359         (extra_args_spec): Assume ANSI C.  All uses changed.
123360         (extra_args_spec_iso): Remove.
123361         (my_strftime, emacs_strftimeu): Define via prototype.
123362         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
123363         unconditionally.
123364         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
123365         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
123366         (strtoul, strtol): Remove decls.
123367         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
123368         LONG_MAX): Remove.
123369         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
123370         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
123371         (LOCALE_PARAM_PROTO): New macro.
123372         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
123373         (INTERNAL (strtol), strtol): Define with a prototype.
123374         (PARAMS): Remove.  All uses removed.
123375         * lib/tempname.c: Include <string.h> unconditionally.
123376         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
123377         * lib/xgethostname.c (main): Define with a prototype.
123378         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
123379         Include <stdlib.h> unconditionally.
123380         (calloc, malloc, realloc, free): Remove decls.
123381         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
123382         Include <stdlib.h> unconditionally.  Sort include file names.
123383         (strtod): Remove.
123384         (xstrtod): Define with a prototype.
123385         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
123386         (strtol, strtoul): Remove decls.
123388 2003-09-11  Paul Eggert  <eggert@twinsun.com>
123390         More patches to assume C89 or better.
123391         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
123392         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
123393         string.h, memchr, STDC_HEADERS.
123395 2003-09-11  Paul Eggert  <eggert@twinsun.com>
123397         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
123398         Include <stdlib.h>, <string.h> unconditionally.
123399         Remove now-unnecessary cast to char *.
123400         * lib/strnlen.c: Include <string.h> unconditionally.
123401         * lib/yesno.c (yesno): Define with a prototype.
123403 2003-09-11  Bruno Haible  <bruno@clisp.org>
123405         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
123407 2003-09-10  Jim Meyering  <jim@meyering.net>
123409         * lib/error.c: Correct indentation of cpp directives.
123411 2003-09-10  Bruno Haible  <bruno@clisp.org>
123413         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
123414         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
123415         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
123416         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
123417         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
123418         <stdlib.h> and <string.h> checks.
123419         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
123420         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
123422 2003-09-10  Bruno Haible  <bruno@clisp.org>
123424         * lib/strcspn.c: Include <string.h> unconditionally.
123425         * lib/strpbrk.c: Include <string.h> unconditionally.
123426         * lib/strstr.c: Include <string.h> unconditionally.
123427         * lib/unicodeio.c: Include <string.h> unconditionally.
123428         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
123429         * lib/unsetenv.c: Likewise.
123430         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
123431         * lib/yesno.c: Include <stdlib.h> unconditionally.
123432         (rpmatch): Add prototype.
123434 2003-09-09  Paul Eggert  <eggert@twinsun.com>
123436         More patches to assume C89 or better.
123437         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
123438         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
123439         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
123440         or for string.h.
123441         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
123442         stdlib.h.
123443         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
123444         C headers.
123445         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
123446         string.h.
123447         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
123448         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
123449         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
123450         or for string.h.
123451         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
123452         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
123453         C headers.
123454         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
123455         memcpy.
123456         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
123457         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
123458         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
123459         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
123460         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
123461         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
123462         string.h, free.
123463         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
123464         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
123465         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
123466         C headers, or for string.h.
123467         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
123468         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
123469         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
123470         headers, memory.h, stdlib.h, string.h, strings.h.
123471         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
123472         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
123473         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
123474         strchr.
123475         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
123476         headers, memory.h, string.h.
123477         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
123478         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
123479         free.
123480         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
123481         headers.
123482         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
123483         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
123484         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
123485         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
123486         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
123488 2003-09-09  Paul Eggert  <eggert@twinsun.com>
123490         More K&R removal.
123492         * lib/acosl.c (main): Use a prototype.
123493         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
123494         tanl.c: Likewise.
123496         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
123498         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
123499         (getopt, etopt_long, getopt_long_only, _getopt_internal)
123500         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
123501         with a prototype.
123502         * lib/getopt.c (const): Remove macro.
123503         Include <string.h> unconditionally.
123504         (my_index): Remove; all uses changed to strchr.
123505         (strlen): Remove decl.
123506         (exchange): Remove forward decl; no longer needed.
123507         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
123508         Define with prototype.
123509         * lib/getopt1.c (const): Remove macro.
123510         (getopt_long, getopt_long_only, main): Define with prototype.
123512         * lib/getugroups.c: Include <string.h> unconditionally.
123514         * lib/getusershell.c: Include <stdlib.h> unconditionally.
123515         (getusershell, setusershell, endusershell, readname, main):
123516         Define with prototypes.
123518         * lib/group-member.c: Include group-member.h first.
123519         Include <stdlib.h> unconditionally.
123521         * lib/hard-locale.c: Include hard-locale.h first.
123522         Include <stdlib.h>, <string.h> unconditionally.
123524         * lib/hash.c (free, malloc): Remove decls.
123525         Include <stdlib.h> unconditionally.
123527         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
123528         (getenv): Do not declare.
123530         * lib/idcache.c: Include <string.h> unconditionally.
123532         * lib/long-options.c: Include long-options.h first, to test interface.
123533         Include <stdlib.h> unconditionally.
123535         * lib/makepath.c: Include makepath.h first, to test interface.
123536         Include <stdlib.h> and <string.h> unconditionally.
123538         * lib/linebuffer.c: Include <stdlib.h>.
123539         (free): Remove decl.
123541         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
123542         stddef.h. rpl_malloc returns void *, not char *.
123543         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
123544         prototype.
123546         * lib/md5.h: Include <limits.h> unconditionally.
123547         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
123548         (__P): Remove; all uses removed.
123549         * lib/md5.c: Include "md5.h" first.
123550         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
123551         md5_buffer, md5_process_bytes, md5_process_block):
123552         Define with prototypes.
123553         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
123554         * lib/sha.c: Include "sha.h" first.
123555         Include <stdlib.h>, <string.h> unconditionally.
123557         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
123558         * lib/memcmp.c (__ptr_t): Likewise.
123559         * lib/memrchr.c (__ptr_t): Likewise.
123560         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
123561         Include <string.h> unconditionally.
123562         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
123563         * lib/memchr.c: Include <stdlib.h> unconditionally.
123564         * lib/memchr.c (LONG_MAX): Remove.
123565         * lib/memrchr.c (LONG_MAX): Likewise.
123566         * lib/memchr.c (__memchr): Define via a prototype.
123567         * lib/memrchr.c (__memrchr): Likewise.
123568         * lib/memcmp.c (__P): Remove, and remove all uses.
123569         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
123570         Remove forward decls; no longer needed.
123571         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
123572         Use types required by C89 in prototype.
123574         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
123575         * lib/savedir.c: Likewise.
123576         * lib/mkdir.c (free): Remove decl.
123577         * lib/rmdir.c (rmdir): Define with a prototype.
123578         * lib/savedir.c: Include savedir.h first, to test interface.
123580         * lib/mktime.c (STDC_HEADERS): Remove.
123581         Include <stdlib.h>, <string.h> unconditionally.
123583         * lib/modechange.c: Include <stdlib.h> unconditionally.
123584         (malloc): Remove decl.
123586         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
123587         (free): Remove decl.
123589         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
123590         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
123591         (This type really should be intptr_t, but that's a C99ism.)
123592         (_obstack_memcpy): Remove: all uses changed to memcpy.
123593         Include <string.h> unconditionally.
123594         (struct obstack): Assume __STDC__ for types of members
123595         chunkfun, freefun, extra_arg.
123596         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
123597         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
123598         obstack_begin, obstack_specify_allocation,
123599         obstack_specify_allocation_with_arg, obstack_chunkfun,
123600         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
123601         Remove unprototyped decls and the macros that use them.
123602         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
123603         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
123604         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
123605         (defined __STDC__ && __STDC__)]:
123606         Remove nonprototyped code.
123607         Include <stdlib.h> unconditionally.
123608         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
123609         _obstack_allocated_p, _obstack_free, obstack_free,
123610         _obstack_memory_used, print_and_abort):
123611         Define using prototypes.
123612         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
123613         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
123614         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
123615         obstack_next_free, obstack_object_size, obstack_room) [0]:
123616         Remove unused, unprototyped code.
123618         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
123620         * lib/physmem.c (physmem_total, physmem_available, main): Define
123621         with prototypes.
123623         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
123624         (main): Define with a prototype.
123626         * lib/posixver.c (getenv): Remove decl.
123628         * lib/putenv.c (malloc): Returns void *, not char *.
123629         Include <string.h> unconditionally.
123630         (strchr, memcpy, NULL): Do not define.
123632         * lib/readtokens.c: Include readtokens.h first, to test interface.
123633         Include <stdlib.h>, <string.h> unconditionally.
123634         (init_tokenbuffer): Define with a prototype.
123636         * lib/regex.c (PARAMS): Remove.  All uses removed.
123637         All uses of _RE_ARGS removed, too.
123638         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
123639         unconditionally.
123640         (bzero): Assume memset exists.
123641         (memcmp, memcpy, NULL): Remove.
123642         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
123643         char, or assignments to local vars of type signed char.
123644         (init_syntax_once, PREFIX(extract_number_and_incr),
123645         PREFIX(print_partial_compiled_pattern),
123646         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
123647         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
123648         PREFIX(regex_grow_registers), PREFIX(regex_compile),
123649         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
123650         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
123651         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
123652         wcs_compile_range, byte_compile_range, truncate_wchar,
123653         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
123654         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
123655         count_mbs_length, wcs_re_match_2_internal,
123656         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
123657         PREFIX(alt_match_null_string_p),
123658         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
123659         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
123660         regfree, PREFIX(extract_number)): Define with prototype.  Remove
123661         now-unnecessary declaration, if any.
123662         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
123663         regcomp, regexec):
123664         Remove now-unnecessary casts among pointer types.
123665         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
123667         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
123668         (free): Remove decl.
123670         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
123672         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
123673         (free): Remove decl.
123675         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
123676         * lib/xgetcwd.c: Likewise.
123678         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
123679         (free): Remove decl.
123681         * lib/strchrnul.c (strchrnul): Define with a prototype.
123682         Fix bug: c_in was not converted to char before searching.
123684         The following changes are not K&R related:
123686         * lib/group-member.h: Include <sys/types.h>, so that this file is
123687         self-contained.
123688         * lib/makepath.h: Likewise.
123690         * lib/getusershell.c (readname, default_index, line_size, readname):
123691         Use size_t, not int, for sizes.
123692         (readname): If the size overflows, report an error instead of
123693         looping forever.
123695 2003-09-09  Paul Eggert  <eggert@twinsun.com>
123697         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
123698         libc.
123700 2003-09-09  Paul Eggert  <eggert@twinsun.com>
123702         * README: New section: portability guidelines.
123704 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
123706         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
123707         C89 spec.
123709 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
123711         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
123713 2003-09-08  Paul Eggert  <eggert@twinsun.com>
123715         Assume C89 or better; remove K&R cruft.
123716         A few of these changes were first proposed by Derek Robert Price
123717         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
123719         * lib/addext.c: Include <string.h> unconditionally.
123720         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
123721         Don't declare getenv or malloc.
123723         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
123724         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
123725         (NULL): Remove.
123726         (find_stack_direction, alloca): Use prototypes.
123728         * lib/atexit.c (atexit): Define using a prototype.
123730         * lib/basename.c, dirname.c, stripslash.c:
123731         Include <string.h> unconditionally.
123733         * lib/bcopy.c: Include <stddef.h>.
123734         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
123736         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
123738         * lib/error.h (error, error_at_line, error_print_progname)
123739         [! (defined (__STDC__) && __STDC__)]: Remove decls.
123740         * lib/error.c: Include error.h first, to check interface.
123741         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
123742         (VA_START): Remove; all uses changeed to va_start.
123743         (exit, strerror): Remove decls.
123744         (error_print_progname): Prototype uncondionally.
123745         Don't include <errno.h>; no longer needed.
123746         (private_strerror): Remove.
123747         (error_tail): Always define.
123748         (error, error_at_line): Assume C89 or better; always use prototypes.
123749         * lib/fatal.c: Include "fatal.h" first, to test interface.
123750         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
123751         (VA_START): Remove; all uses changed to va_start.
123752         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
123753         this case.
123754         (exit): Remove decl.
123755         (fatal): Prototype unconditionally.  Assume va_start works.
123756         Abort at end, to pacify gcc.
123758         * lib/euidaccess.c (main): Define with a prototype.
123760         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
123762         * lib/exitfail.c: Include <stdlib.h> unconditionally.
123764         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
123765         prototypes.
123766         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
123767         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
123768         (getenv): Remove decl.
123769         (fnmatch): Define using a prototype.
123770         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
123771         (FCT): Define using a prototype.
123773         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
123775         * lib/gethostname.c: Include <stddef.h>.
123776         (gethostname): Define with prototype.  Length is size_t, not int.
123778 2003-09-08  Paul Eggert  <eggert@twinsun.com>
123780         Assume C89 or better; remove K&R cruft.
123781         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
123782         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
123783         string.h, getenv, malloc.
123784         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
123785         headers.
123786         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
123787         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
123788         do not check for strerror.
123789         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
123790         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
123791         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
123792         do not check for doprnt or vprintf.
123793         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
123794         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
123796 2003-09-08  Paul Eggert  <eggert@twinsun.com>
123798         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
123799         getversion.c should have been removed then, but was accidentally
123800         preserved.
123802         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
123803         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
123805 2003-09-08  Karl Berry  <karl@gnu.org>
123807         * config/config.sub, config.guess, srclistvars.sh: update from savannah
123808                 config, forget about prep.
123810         * config/depcomp, missing: update from automake.
123812 2003-09-07  Paul Eggert  <eggert@twinsun.com>
123814         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
123815         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
123817 2003-09-07  Paul Eggert  <eggert@twinsun.com>
123819         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
123820         copy_tm_result.  Bug reported by Simon Josefsson in
123821         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
123823 2003-09-06  Paul Eggert  <eggert@twinsun.com>
123825         * m4/time_r.m4: New file.
123826         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
123827         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
123828         is. Check for timegm declaration.
123829         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
123830         Do not check for gmtime_r.
123831         Replace mktime if __mktime_internal does not exist and if mktime
123832         hasn't been replaced already.
123834 2003-09-06  Paul Eggert  <eggert@twinsun.com>
123836         * lib/time_r.c, lib/time_r.h: New files.
123838         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
123839         __localtime_r.
123840         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
123841         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
123843         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
123844         __gmtime_r.
123845         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
123846         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
123847         Include <time_r.h>.
123849         * lib/timegm.c: Switch to glibc implementation, with the following
123850         changes:
123851         [defined HAVE_CONFIG_H]: Include <config.h>.
123852         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
123853         (__mktime_internal) [!defined _LIBC]: New decl.
123854         (__gmtime_r) [!defined _LIBC]: New macro and function.
123855         (timegm): Use a prototype, since gnulib assumes C89.
123856         Do not bother declaring tmp to be const, as it's not really usefu.
123857         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
123858         (timegm): Declare only if HAVE_DECL_TIMEGM.
123860 2003-09-06  Paul Eggert  <eggert@twinsun.com>
123862         * MODULES.html.sh (func_all_modules): Add time_r.
123863         * modules/time_r: New file.
123864         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
123865         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
123867 2003-09-03  Paul Eggert  <eggert@twinsun.com>
123869         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
123870         Bug reported by Lute Kamstra in
123871         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
123873         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
123874         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
123875         course with correspondingly smaller numbers for tomorrow and
123876         yesterday.  From Tadayoshi Funaba.  Originally installed into
123877         sh-utils on 1999-08-07, but the patch got lost (I guess during the
123878         coreutils merge?).
123880 2003-08-31  Simon Josefsson  <jas@extundo.com>
123882         * modules/timegm: New file.
123883         * MODULES.html.sh (func_all_modules): Add timegm.
123885 2003-08-31  Simon Josefsson  <jas@extundo.com>
123887         * m4/timegm.m4: New file.
123889 2003-08-31  Simon Josefsson  <jas@extundo.com>
123891         * lib/timegm.h: New file.
123892         * lib/timegm.c: New file.  Based on
123893         wget-1.8.2/src/http.c:mktime_from_utc.
123895 2003-08-31  Karl Berry  <karl@gnu.org>
123897         * lib/argp.h: update from libc.
123899 2003-08-28  Bruno Haible  <bruno@clisp.org>
123901         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
123902         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
123903         followed by '#define fnmatch fnmatch_posix' gives an error.
123905 2003-08-28  Bruno Haible  <bruno@clisp.org>
123907         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
123908         warning on QNX, which defines O_BINARY to 000000.
123910 2003-08-27  Jim Meyering  <jim@meyering.net>
123912         * m4/mkstemp.m4: Require that the system mkstemp be able to create
123913         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
123914         would fail after 32.  Reported by Danny Levinson.  Details here:
123915         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
123917 2003-08-24  Bruno Haible  <bruno@clisp.org>
123919         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
123920         MSVC7 <stdio.h> is included later.
123922 2003-08-22  Simon Josefsson  <jas@extundo.com>
123924         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
123926 2003-08-20  Karl Berry  <karl@gnu.org>
123928         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
123930 2003-08-20  Bruno Haible  <bruno@clisp.org>
123932         * modules/progname: New file.
123933         * MODULES.html.sh (func_all_modules): Add progname.
123935 2003-08-20  Bruno Haible  <bruno@clisp.org>
123937         * lib/progname.h: New file, from GNU gettext.
123938         * lib/progname.c: New file, from GNU gettext.
123939         * lib/progreloc.c: New file, from GNU gettext.
123941 2003-08-19  Jim Meyering  <jim@meyering.net>
123943         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
123944         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
123946 2003-08-19  Bruno Haible  <bruno@clisp.org>
123948         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
123949         more.
123951 2003-08-19  Bruno Haible  <bruno@clisp.org>
123953         * lib/xstrdup.c: Assume <string.h> exists.
123955 2003-08-18  Paul Eggert  <eggert@twinsun.com>
123957         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
123958         in makefile rules.
123960 2003-08-18  Jim Meyering  <jim@meyering.net>
123962         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
123963         * m4/lib-ld.m4: Likewise.
123965 2003-08-18  Jim Meyering  <jim@meyering.net>
123967         * lib/setenv.h: Indent nested cpp directive.
123968         * lib/vasnprintf.c: Remove trailing blanks.
123970 2003-08-17  Simon Josefsson  <jas@extundo.com>
123972         * modules/xstrndup: New file.
123973         * MODULES.html.sh (func_all_modules): Add xstrndup.
123975 2003-08-17  Simon Josefsson  <jas@extundo.com>
123977         * modules/argp: Fix autoconf macro name. Add more dependencies.
123979 2003-08-17  Simon Josefsson  <jas@extundo.com>
123981         * m4/xstrndup.m4: New file.
123983 2003-08-17  Simon Josefsson  <jas@extundo.com>
123985         * m4/argp.m4: New file.
123987 2003-08-17  Simon Josefsson  <jas@extundo.com>
123988             Bruno Haible  <bruno@clisp.org>
123990         * lib/xstrndup.h: New file.
123991         * lib/xstrndup.c: New file.
123993 2003-08-17  Bruno Haible  <bruno@clisp.org>
123995         * modules/strndup (Files, Include): Add lib/strndup.h.
123997 2003-08-17  Bruno Haible  <bruno@clisp.org>
123999         * modules/euidaccess (Files): Add lib/euidaccess.h.
124001 2003-08-17  Bruno Haible  <bruno@clisp.org>
124003         * lib/strndup.h: New file.
124005 2003-08-17  Bruno Haible  <bruno@clisp.org>
124007         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
124008         like AC_GNU_SOURCE.
124009         * modules/extensions (configure.ac): Comment out the invocation of
124010         gl_USE_SYSTEM_EXTENSIONS.
124012 2003-08-16  Paul Eggert  <eggert@twinsun.com>
124014         Merges from coreutils, etc.
124015         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
124016         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
124017         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
124018         fixing a typo.
124019         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
124020         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
124022 2003-08-16  Paul Eggert  <eggert@twinsun.com>
124024         Document merge from coreutils.
124025         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
124026         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
124027         * modules/utime: Add m4/utimes-null.m4.
124029 2003-08-16  Paul Eggert  <eggert@twinsun.com>
124031         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
124032         space, undoing this 2003-08-12 change:
124033         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
124035 2003-08-16  Paul Eggert  <eggert@twinsun.com>
124037         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
124038         strtoul.c from libc, undoing this 2003-08-12 change:
124039         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
124041 2003-08-16  Jim Meyering  <jim@meyering.net>
124043         Merges from coreutils.
124044         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
124045         prefix.  Adjust cache variables similarly.  Create 500 rather than
124046         just 300 files, to exercise bug on Darwin6.5, too.
124047         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
124048         $missing_dir.
124049         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
124050         AM_SYS_POSIX_TERMIOS.
124051         Reported by mkc@mathdogs.com.
124052         Also change use of $am_cv_sys_posix_termios
124053         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
124054         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
124055         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
124056         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
124057         in /proc/mounts until it finds one with matching device number.  This
124058         is unnecessary when the FILE argument *is* a mount point.  No stat call
124059         is necessary in that case.  So, disable the statvfs-testing code on
124060         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
124061         as RedHat bug# 84846.
124062         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
124063         to 1MB, so as not to render systems with no stack size limit (e.g.,
124064         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
124065         Include <unistd.h>.  On some systems,
124066         it is required for the definition of _SC_PAGESIZE.
124068 2003-08-16  Jim Meyering  <jim@meyering.net>
124070         Merge from coreutils.
124071         * lib/xstrtoimax.c: #else #if -> #elif.
124072         * lib/xstrtoumax.c: Likewise.
124074 2003-08-16  Jim Meyering  <jim@meyering.net>
124076         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
124077         * m4/utimes.m4: Removed.
124078         * m4/utimes-null.m4: Renamed from utimes.m4.
124080         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
124081         to 1MB, so as not to render systems with no stack size limit (e.g.,
124082         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
124083         Include <unistd.h>.  On some systems,
124084         it is required for the definition of _SC_PAGESIZE.
124086 2003-08-16  Jim Meyering  <jim@meyering.net>
124087         and Paul Eggert  <eggert@cs.ucla.edu>
124089         Merges from coreutils, etc.
124091         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
124092         using the latest version from cvs.  This avoids problems with #line
124093         directives using a vendor (Sun) compiler.
124094         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
124095         Don't set GETGROUPS_LIB here; now it's
124096         done via getgroups.m4's wrapper function.
124097         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
124098         rather than just in sh-util/configure.in, so that the
124099         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
124100         same.
124101         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
124102         AC_FUNC_GETLOADAVG where to find getloadavg.c.
124103         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
124104         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
124105         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
124106         Remove code that is now done by the newly-required macros.
124107         Append $(EXEEXT) to DF_PROG.
124108         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
124109         Do not invoke or require the following here,
124110         since prereq.m4 or some gnulib .m4 now does this for us:
124111         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
124112         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
124113         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
124114         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
124115         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
124116         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
124117         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
124118         AC_FUNC_OBSTACK.
124119         Do not replace the following functions, as this is now the job
124120         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
124121         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
124122         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
124123         atexit getpass, strdup, getpagesize.
124124         Replace 'raise'.
124125         Do not check for the following functions, as this is now the job
124126         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
124127         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
124128         setregid.
124129         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
124130         Check for sys/sysctl.h.
124131         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
124132         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
124133         of checking for ssize_t ourselves.
124135         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
124136         Require every macro that gnulib/modules/* suggests for us.
124137         (jm_PREREQ_ADDEXT): New macro.
124138         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
124139         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
124141         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
124142         (gl_PHYSMEM): Use it.
124143         Also check for `table' function.
124144         Check for new headers and functions.
124145         Add check for sys/sysmp.h.
124146         With suggestions from Kaveh Ghazi.
124147         Ignore headers that are present but cannot be compiled.  This
124148         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
124149         C 5.4.
124151 2003-08-15  Paul Eggert  <eggert@twinsun.com>
124153         Document merge from coreutils.
124154         * modules/userspec: Depend on posixver.
124155         * modules/strftime: Depend on tzset.
124157 2003-08-15  Paul Eggert  <eggert@twinsun.com>
124159         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
124160         rather than tab, after '#' in shell-script copyright notices.
124161         Suggested by Bruno Haible.
124163 2003-08-15  Paul Eggert  <eggert@twinsun.com>
124165         * config/srclist-update: Use three spaces, rather than tab, after '#'
124166         in shell-script copyright notices.  Suggested by Bruno Haible.
124167         Remove unnecessary parenthesization in regular expression.
124169 2003-08-15  Jim Meyering  <jim@meyering.net>
124171         Merge from coreutils.
124172         * lib/xgethostname.c: Include <stdlib.h>.
124173         (xghostname): Don't exit for anything other than memory-related
124174         failure; just return NULL.
124175         * lib/userspec.c: Include "posixver.h".
124176         (parse_user_spec): Accept `.' as a separator only
124177         in pre-POSIX-200112 mode.
124178         * lib/strtoimax.c: Use #elif rather than #else #if.
124179         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
124180         Remove function, now that we can rely on a working tzset function.
124181         [!_LIBC]: Ensure that the required autoconf test has been run.
124182         [!defined _NL_CURRENT && HAVE_STRFTIME]:
124183         Use underlying_strftime for %r.
124184         * lib/sha.c: Merge in some clean-up and optimization changes from
124185         glibc.
124186         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
124187         Ensure that it is a multiple of 64.
124188         Rearrange loop exit tests so as to avoid performing an
124189         additional fread after encountering an error or EOF.
124190         * lib/realloc.c: Update copyright date.
124192 2003-08-15  Jim Meyering  <jim@meyering.net>
124193         and Paul Eggert  <eggert@twinsun.com>
124195         Merge from coreutils.
124196         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
124197         member but strut utmpx does not.  Needed for AIX 4.3.3.
124198         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
124200 2003-08-15  Jim Meyering  <jim@meyering.net>
124201         and Paul Eggert  <eggert@cs.ucla.edu>
124203         Merges from coreutils, etc.
124204         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
124205         Require gl_FUNC_TZSET_CLOBBER.
124206         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
124207         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
124208         members.
124210 2003-08-14  Paul Eggert  <eggert@twinsun.com>
124212         Help the merge from coreutils.
124213         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
124214         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
124215         * m4/tzset.m4: Use it too.
124217 2003-08-14  Paul Eggert  <eggert@twinsun.com>
124219         * modules/tzset: New file.
124221 2003-08-14  Jim Meyering  <jim@meyering.net>
124223         Merges from coreutils.
124224         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
124225         variable names, rather than @FNMATCH_H@.
124226         * modules/alloca: Likewise for $(ALLOCA_H).
124228         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
124229         the three copies of the literal target, `fnmatch.h'.
124230         * modules/alloca (alloca.h): Likewise.
124232 2003-08-14  Jim Meyering  <jim@meyering.net>
124234         Merge from coreutils.
124235         * m4/tzset.m4: New file.
124236         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
124237         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
124238         otherwise, AIX 5.1 systems would end up using the latter.
124239         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
124240         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
124241         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
124242         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
124244 2003-08-14  Jim Meyering  <jim@meyering.net>
124246         Merge from coreutils.
124247         * lib/obstack.h: Whitespace changes.
124248         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
124249         and xcalloc return values.
124250         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
124251         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
124252         hang on OSF/1 5.1 for DIR on both local and remote file systems.
124253         Reported by (and fix confirmed by) Nelson H. F. Beebe.
124254         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
124255         error from mntctl.
124256         Use mntctl's return value to drive the entry-processing loop, since
124257         we can't rely on the value of the vmt_length member in the last
124258         entry.  On some systems doing so could result in exhausting
124259         virtual memory.  Based in part on a patch from Mike Jetzer.
124261 2003-08-14  Jim Meyering  <jim@meyering.net>
124262         and Paul Eggert  <eggert@twinsun.com>
124264         Merges from coreutils, plus other fixes.
124265         * lib/physmem.c: Merge in portability changes from gcc/libiberty
124266         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
124267         for credits and details.  Thanks to Kaveh Ghazi for helping
124268         to keep these files in sync.
124269         (ARRAY_SIZE): Define it.
124270         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
124271         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
124272         (memcasecmp): Don't assume size_t fits in unsigned int.
124273         Remove casts and duplicate code.
124274         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
124275         (memcpy): Remove definition.
124276         Merge in some clean-up and optimization changes from glibc.
124277         [BLOCKSIZE]: Move definition to top of file.
124278         Ensure that it is a multiple of 64.
124279         Rearrange loop exit tests so as to avoid performing an
124280         additional fread after encountering an error or EOF.
124281         * lib/md5.h (md5_uintptr): Define.
124282         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
124283         return to the initial working directory.  Preserve errno
124284         for caller.
124285         * lib/idcache.c: Include "xalloc.h".
124286         (xmalloc, xrealloc): Remove decls.
124287         (getuser): Remove casts no longer required in C89.
124288         * lib/human.c: Include stdio.h, for sprintf.
124289         * lib/group-member.c: Include "xalloc.h".
124290         (xmalloc, xrealloc): Remove decls.
124291         (get_group_info): Remove casts no longer required in C89.
124292         * lib/getusershell.c (readname): Remove casts no longer required in
124293         C89.
124294         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
124295         * lib/getline.c: Whitespace fix, from coreutils.
124297 2003-08-13  Paul Eggert  <eggert@twinsun.com>
124299         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
124300         Check for isascii.
124302         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
124303         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
124304         Undo previous (whitespace-only) change.
124306 2003-08-13  Paul Eggert  <eggert@twinsun.com>
124308         * lib/exclude.c: Include <ctype.h>
124309         (IN_CTYPE_DOMAIN): New macro.
124310         (is_space): New fn.
124311         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
124312         and empty lines.
124314         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
124315         Undo previous (whitespace-only) change.
124317 2003-08-13  Paul Eggert  <eggert@twinsun.com>
124319         * config/srclist-update: Change update back to the old behavior,
124320         leaving whitespace alone.  Use one 'sed' command rather than a
124321         pipeline.
124322         (fixlicense): Now a variable, not a function.
124323         (remove_trailing_blanks): Remove.
124324         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
124325         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
124326         Undo previous (whitespace-only) change.
124328 2003-08-12  Paul Eggert  <eggert@twinsun.com>
124330         Merge from coreutils.
124331         * modules/euidaccess: Add lib_SOURCES, include for new
124332         file euidaccess.h
124334 2003-08-12  Paul Eggert  <eggert@twinsun.com>
124336         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
124337         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
124338         Normalize leading white space and remove trailing white space.
124340         Merge from coreutils
124341         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
124343         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
124344         0.12.1.  These files are now being upgraded automatically by
124345         ../config/srclist-update.
124347 2003-08-12  Paul Eggert  <eggert@twinsun.com>
124349         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
124350         Normalize leading white space and remove trailing white space.
124351         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
124352         notice, as per ../config/srclist-update.
124354         Merge from coreutils.
124355         * lib/euidaccess.h: New file.
124356         * lib/euidaccess.c: Include it.
124357         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
124358         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
124359         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
124361 2003-08-12  Paul Eggert  <eggert@twinsun.com>
124363         * config/srclist-update: Add copyright notice.
124364         (remove_id_lines, remove_trailing_blanks): New constants.
124365         (fixfile): Use them to normalize spacing a bit in copied files.
124366         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
124367         Normalize leading white space and remove trailing white space.
124369         * config/texinfo.tex: Sync with texinfo.
124371         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
124372         strtoul.c from libc, to merge coreutils whitespace changes.
124374         * config/srclist.txt: Get the following m4 files from gettext:
124375         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
124376         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
124377         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
124378         wint_t.m4.
124380 2003-08-12  Karl Berry  <karl@gnu.org>
124382         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
124383         been made.
124385 2003-08-11  Paul Eggert  <eggert@twinsun.com>
124387         * modules/gnu-source, m4/gnu-source.m4:
124388         Remove; we're assuming Autoconf 2.54 or later now.
124389         Suggested by Bruno Haible.
124390         * MODULES.html.sh (func_all_modules): Remove gnu-source.
124392 2003-08-11  Bruno Haible  <bruno@clisp.org>
124394         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
124396 2003-08-11  Bruno Haible  <bruno@clisp.org>
124398         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
124399         (vasnprintf): Use it instead of wcslen.
124401 2003-08-11  Bruno Haible  <bruno@clisp.org>
124403         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
124404         value to ensure that _Bool promotes to int. Use #define for _Bool when
124405         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
124407 2003-08-10  Karl Berry  <karl@gnu.org>
124409         * lib/regex.h: update from libc (whitespace fix).
124411 2003-08-09  Paul Eggert  <eggert@twinsun.com>
124413         Merge some files from coreutils.  These changes were
124414         originally made by Jim Meyering.
124415         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
124416         many older Unixes require this.
124417         * lib/alloca.c (alloca): Remove cast to argument of free;
124418         no longer needed in C89.
124419         * lib/alloca_.h, regex.h: Fix white space to match
124420         what GNU indent does.
124422 2003-08-09  Paul Eggert  <eggert@twinsun.com>
124424         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
124425         apparently Emacs's Unicode mode got confused before my 2003-08-05
124426         checkin.
124428 2003-08-08  Paul Eggert  <eggert@twinsun.com>
124430         * m4/extensions.m4: New file.
124431         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
124432         Require gl_USE_SYSTEM_EXTENSIONS.
124433         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
124434         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
124436 2003-08-08  Paul Eggert  <eggert@twinsun.com>
124438         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
124439         * modules/extensions, modules/gnu-source: New files.
124440         * modules/timespec, modules/unlocked-io: Depend on extensions.
124442 2003-08-07  Paul Eggert  <eggert@twinsun.com>
124444         * modules/restrict: New file.
124445         * MODULES.html.sh (func_all_modules): Add restrict.
124446         * modules/regex: Depend on restrict.
124448 2003-08-07  Paul Eggert  <eggert@twinsun.com>
124450         * m4/restrict.m4: New file.
124451         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
124453 2003-08-07  Bruno Haible  <bruno@clisp.org>
124455         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
124456         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
124458 2003-08-07  Bruno Haible  <bruno@clisp.org>
124460         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
124461         makes the module 'getndelim2' compatible with the module 'getline'.
124463 2003-08-05  Paul Eggert  <eggert@twinsun.com>
124465         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
124466         byte with "\201" to avoid glitches when editing that source file
124467         with multi-gnome-terminal.
124469 2003-08-05  Paul Eggert  <eggert@twinsun.com>
124471         * lib/bumpalloc.h: Remove.
124473 2003-08-05  Paul Eggert  <eggert@twinsun.com>
124475         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
124476         * modules/bumpalloc: Remove.
124478 2003-08-04  Paul Eggert  <eggert@twinsun.com>
124480         * lib/getloadavg.c: Change copyright notice and spacing to conform to
124481         GNU coding style.
124483         Merge from coreutils.
124484         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
124485         1. From glibc.
124486         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
124487         from Karl Berry, implemented by Jim Meyering.
124488         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
124489         from Dmitry V. Levin.
124490         Remove anachronistic cast of xrealloc.
124491         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
124492         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
124493         type. Otherwise, it wouldn't compile with at least /bin/cc on
124494         ymp-cray-unicos9.0.2.X.
124495         Combine two mostly-identical uses of alloca into one.
124496         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
124498 2003-08-04  Dave Love  <d.love@dl.ac.uk>
124500         [From Emacs.]
124502         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
124503         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
124504         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
124505         obsolete NLIST_NAME_UNION.
124506         [__GNU__]: Undef BSD and FSCALE.
124507         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
124509 2003-08-03  Paul Eggert  <eggert@twinsun.com>
124511         * lib/stdbool_.h (_Bool): Make it signed char, instead of
124512         an enum type, so that it's guaranteed to promote to int.  See:
124513         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
124515 2003-08-03  Karl Berry  <karl@gnu.org>
124517         * config/depcomp: update from automake.
124519 2003-07-31  Paul Eggert  <eggert@twinsun.com>
124521         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
124522         (strerror): Don't assume that a printable int fits in 14 bytes.
124524 2003-07-31  Bruno Haible  <bruno@clisp.org>
124526         * modules/getpass-gnu: New file.
124527         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
124529 2003-07-31  Bruno Haible  <bruno@clisp.org>
124531         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
124533 2003-07-24  Karl Berry  <karl@gnu.org>
124535         * config/missing: update from automake.
124537 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
124538             Bruno Haible  <bruno@clisp.org>
124540         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
124541         * lib/getline.c (getline, getdelim): Likewise.
124542         Remove _GNU_SOURCE define; now it's defined in config.h through
124543         m4/getline.m4.
124545 2003-07-23  Karl Berry  <karl@gnu.org>
124547         * config/config.sub: update from prep.
124549 2003-07-22  Paul Eggert  <eggert@twinsun.com>
124551         * modules/xalloc (Depends-on): Add exitfail.
124552         * modules/xmemcoll: Likewise.
124554 2003-07-22  Paul Eggert  <eggert@twinsun.com>
124556         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
124557         over-parenthesization in macros.
124559         Sync with coreutils.
124561         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
124562         required by C99.
124564         Use `exit_failure' for xalloc and xmemcoll instead of their own
124565         private exit-failure variables.
124566         * lib/xalloc.h (xalloc_exit_failure): Remove.
124567         * lib/xmalloc.c: Likewise.  Include exitfail.h.
124568         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
124569         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
124570         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
124571         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
124573 2003-07-20  Jim Meyering  <jim@meyering.net>
124575         * modules/closeout (Depends-on): Add exitfail.
124576         Suggestion from Bruno Haible.
124578 2003-07-19  Karl Berry  <karl@gnu.org>
124580         * config/config.sub: update from prep.
124582 2003-07-18  Paul Eggert  <eggert@twinsun.com>
124584         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
124585         Remove.
124586         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
124587         to test that it can stand by itself.  Include "exitfail.h".
124588         Clients should set exit_failure instead.
124589         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
124591 2003-07-18  Bruno Haible  <bruno@clisp.org>
124593         * modules/getndelim2: New file.
124594         * modules/getline: Share files with module getndelim2.
124595         * modules/getnline: Depend on getndelim2 instead of sharing files with
124596         it. Add getnline.c to lib_SOURCES.
124597         * MODULES.html.sh (func_all_modules): Add getndelim2.
124599 2003-07-18  Bruno Haible  <bruno@clisp.org>
124601         * m4/getndelim2.m4: New file.
124602         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
124603         invoke gl_PREREQ_GETNDELIM2.
124604         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
124605         gl_PREREQ_GETNDELIM2.
124606         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
124607         gl_GETNDELIM2.
124609 2003-07-18  Bruno Haible  <bruno@clisp.org>
124611         * lib/getndelim2.h: New file.
124612         * lib/getndelim2.c: Make into a module of its own. Include config.h,
124613         getndelim2.h.
124614         (getndelim2): Make non-static. Change return type to ssize_t.
124615         * lib/getline.h: Change argument names.
124616         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
124617         * lib/getnline.c: Include getndelim2.h.
124619 2003-07-18  Andreas Schwab  <schwab@suse.de>
124621         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
124623 2003-07-17  Karl Berry  <karl@gnu.org>
124625         * config/config.sub: update from prep.
124627 2003-07-17  Bruno Haible  <bruno@clisp.org>
124629         * modules/getnline: New file.
124630         * modules/getline: Add lib/getndelim2.c to source file list.
124631         * MODULES.html.sh (func_all_modules): Add getnline.
124633 2003-07-17  Bruno Haible  <bruno@clisp.org>
124635         * m4/getnline.m4: New file.
124637 2003-07-17  Bruno Haible  <bruno@clisp.org>
124639         * m4/Makefile.am.in: Remove file.
124640         * m4/Makefile.am: Remove file.
124641         * m4/Makefile.in: Remove file.
124643 2003-07-17  Bruno Haible  <bruno@clisp.org>
124645         * lib/getnline.h: New file.
124646         * lib/getnline.c: New file.
124647         * lib/getndelim2.c: New file, extracted from getline.c.
124648         (getndelim2): Renamed from getdelim2, with added nmax argument.
124649         * lib/getline.c: Include getndelim2.c.
124650         (getdelim2): Moved out to getndelim2.c.
124651         (getline, getdelim): Update.
124653 2003-07-17  Bruno Haible  <bruno@clisp.org>
124655         * lib/Makefile.am: Remove file.
124656         * lib/Makefile.in: Remove file.
124658 2003-07-17  Bruno Haible  <bruno@clisp.org>
124660         * configure.in: Remove file.
124661         * Makefile.in: Remove file.
124663 2003-07-17  Bruno Haible  <bruno@clisp.org>
124665         * MODULES.html.sh: Put the </BODY> right before </HTML>.
124667 2003-07-16  Karl Berry  <karl@gnu.org>
124669         * config/srclist-update: was running fixlicense twice, which caused
124670                 texinfo.tex to be nullified for some reason.  Simplify,
124671                 $gplsrc is no longer needed as far as I can see?
124673 2003-07-16  Jim Meyering  <jim@meyering.net>
124675         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
124677 2003-07-15  Paul Eggert  <eggert@twinsun.com>
124679         * config/srclist.txt: Get the following files from gettext-runtime/intl
124680         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
124681         ref-del.sin.  From Bruno Haible.
124682         * config/srclist-update (fixfile): Change grep pattern again, since the
124683         previous fix didn't work (there was another trailing $).  Use
124684         '[$]' to escape the $s.
124686 2003-07-15  Karl Berry  <karl@gnu.org>
124688         * lib/vasnprintf.c: update from gettext.
124690 2003-07-15  Karl Berry  <karl@gnu.org>
124692         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
124693         gets expanded when surrounded by '$'.
124695 2003-07-15  Jim Meyering  <jim@meyering.net>
124697         * modules/save-cwd: Don't depend on error.  From Derek Price.
124699 2003-07-15  Jim Meyering  <jim@meyering.net>
124701         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
124703 2003-07-14  Simon Josefsson  <jas@extundo.com>
124705         * modules/mempcpy: New file.
124706         * MODULES.html.sh (func_all_modules): Add mempcpy.
124708 2003-07-14  Simon Josefsson  <jas@extundo.com>
124710         * m4/mempcpy.m4: New file.
124712 2003-07-14  Simon Josefsson  <jas@extundo.com>
124714         * lib/mempcpy.h: New file.
124715         * lib/mempcpy.c: New file.
124717 2003-07-14  Paul Eggert  <eggert@twinsun.com>
124719         * modules/getdate, modules/posixtm: Depend on mktime.
124721 2003-07-14  Paul Eggert  <eggert@twinsun.com>
124723         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
124724         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
124725         unicodeio.c, unicodeio.h, unlocked-io.h:
124726         Switch from LGPL to GPL.
124728 2003-07-14  Paul Eggert  <eggert@twinsun.com>
124730         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
124731         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
124732         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
124733         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
124734         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
124735         updated automatically by ../config/srclist-update.  This changes
124736         their license from LPGL to GPL.
124738 2003-07-14  Paul Eggert  <eggert@twinsun.com>
124740         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
124741         assumed to refer to the root of the most recent stable gettext version.
124742         * config/srclistvars.sh: Add defaults for eggert.
124743         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
124744         Match "This program" as well as "The program".  This is needed
124745         for gettext.
124747 2003-07-14  Jim Meyering  <jim@meyering.net>
124749         Don't emit diagnostics.  Let callers do that.
124750         * lib/save-cwd.c: Don't include "error.h".
124751         (save_cwd): Don't call error.  Ensure that errno is valid
124752         when returning nonzero.
124754         * lib/save-cwd.h (restore_cwd): Update prototype.
124755         * lib/save-cwd.c (restore_cwd): Remove two parameters.
124756         Simplify.  Don't call error upon failure.  Let callers do that.
124757         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
124758         when auditing is enabled.  But don't bother updating the #if.
124760 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
124762         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
124763         it breaks C++ compilation.
124764         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
124766 2003-07-10  Simon Josefsson  <jas@extundo.com>
124768         * modules/strchrnul (Makefile.am): Add strchrnul.h.
124770 2003-07-10  Jim Meyering  <jim@meyering.net>
124772         * m4/clock_time.m4: Remove trailing blank.
124773         * m4/intmax_t.m4: Likewise.
124775 2003-07-10  Jim Meyering  <jim@meyering.net>
124777         * lib/vasnprintf.c: Remove trailing blanks.
124778         Make cpp indentation consistent.
124780 2003-07-09  Paul Eggert  <eggert@twinsun.com>
124782         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
124783         posixver.c, strftime.c, strnlen.c, strverscmp.c:
124784         Switch from LGPL to GPL.
124786 2003-07-09  Paul Eggert  <eggert@twinsun.com>
124788         * config/srclist.txt: Sort sublists.  Add
124789         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
124790         that differ from gnulib for one reason or another; we'd like this list
124791         to be smaller but for now let's document what we have.
124793 2003-07-08  Paul Eggert  <eggert@twinsun.com>
124795         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
124796         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
124797         and sweeter "eval x=$x".
124798         * config/srclist.txt: Get lib/argp* from glibc.
124800 2003-07-07  Paul Eggert  <eggert@twinsun.com>
124802         * lib/mktime.c: Fix some boundary cases and remove need for floating
124803         point.
124805         Issue a compile-time diagnostic if time_t is floating point, or if
124806         two's complement arithmetic is not in effect, or if arithmetic
124807         right shift does not propagate the sign.  These assumptions were
124808         all in the original code but they weren't checked.
124810         (TIME_T_MIDPOINT, verify): New macros.
124811         (__isleap): Remove; it has integer overflow problems.
124812         (leapyear): New function, without those problems.
124813         (ydhms_tm_diff): Remove; splitting into two parts.
124814         (ydhms_diff): New function, containing the arithmetic part of
124815         the old ydhms_tm_diff function.  Issue a compile-time
124816         diagnostic if we are not using C99 integer division.
124817         Avoid casts when possible.
124818         (guess_time_tm): New function, containing the checking part of
124819         the old ydhms_tm_diff function.  Return the new value, rather than
124820         the difference between it and the old.  Accept a new argument T
124821         so that *T specifies the old value.  Check for overflow in the result.
124823         (__mktime_internal): Use a time_t offset, not a long int offset.
124824         This undoes the 2003-06-04 change, which is no longer needed now
124825         that we have better overflow checking.
124826         (localtime_offset): Likewise.
124828         (__mktime_internal): Avoid harmful overflow on hosts where time_t
124829         and long are 64-bit but int is only 32-bit.
124830         (ydhms_diff): Use long int to store year1 and yday1.
124831         Issue a compile-time diagnostic if long int is not wide enough.
124833         (__mktime_internal): Use long int to store adjusted year and yday.
124834         Use plain C rather than preprocessor commands, if that doesn't
124835         affect efficiency.
124836         Check for overflow (and try to repair) after each probe
124837         rather than checking only at the very end.  This avoids some bugs
124838         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
124839         does not equal GMT offset at maximum time).
124840         Use integer to check for overflow rather than floating point; this
124841         is more portable to non-IEEE hosts, and is a tad faster.
124842         When we detect that we are oscillating between two values,
124843         don't check whether tm_isdst has the requested value, since
124844         we already know the answer.  When tm_isdst has the wrong value,
124845         use a different heuristic to find the right one, based on the
124846         extreme values actually observed in practice in tz2003a,
124847         rather than the (overly optimistic) "previous 3 calendar quarters".
124849         (not_equal_tm, print_tm, check_result): Use "const T" rather than
124850         "T const" to accommodate glibc style.
124851         (check_result): Use less-confusing report format.  "long" -> "long int.
124852         (main): Likewise.
124853         Don't loop if the iteration overflows time_t.
124854         Allow a negative step in the iteration.
124856 2003-07-06  Karl Berry  <karl@gnu.org>
124858         * config/depcomp: update from automake.
124859         * config/config.sub: update from prep.
124861 2003-07-03  Karl Berry  <karl@gnu.org>
124863         * config/config.guess: update from prep.
124865 2003-07-01  Paul Eggert  <eggert@twinsun.com>
124867         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
124868         xreadlink.c now includes it unconditionally.
124870 2003-07-01  Paul Eggert  <eggert@twinsun.com>
124872         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
124873         having it depend on HAVE_SYS_TYPES_H.
124875 2003-07-01  Bruno Haible  <bruno@clisp.org>
124877         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
124878         <sys/types.h> should be sufficient.
124879         Reported by Paul Eggert.
124881 2003-06-26  Karl Berry  <karl@gnu.org>
124883         * config/depcomp: update from automake.
124885 2003-06-26  Bruno Haible  <bruno@clisp.org>
124887         * modules/human: Depend on module stdbool.
124889 2003-06-25  Bruno Haible  <bruno@clisp.org>
124891         * modules/readlink: New file.
124892         * modules/xreadlink: Depend on it.
124893         * MODULES.html.sh (func_all_modules): Add readlink.
124895 2003-06-25  Bruno Haible  <bruno@clisp.org>
124897         * m4/readlink.m4: New file.
124899 2003-06-25  Bruno Haible  <bruno@clisp.org>
124901         * lib/readlink.c: New file.
124903 2003-06-22  Karl Berry  <karl@gnu.org>
124905         * config/srclist.txt: update mkinstalldirs from automake.
124906         * config/mkinstalldirs: update.
124908 2003-06-22  Bruno Haible  <bruno@clisp.org>
124910         Portability to mingw32.
124911         * m4/ssize_t.m4: New file, from GNU gettext.
124912         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
124913         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
124915 2003-06-22  Bruno Haible  <bruno@clisp.org>
124917         * modules/safe-read: Add m4/ssize_t.m4.
124918         * modules/xreadlink: Add m4/ssize_t.m4.
124920 2003-06-20  Bruno Haible  <bruno@clisp.org>
124922         Assume C89, so PARAMS isn't needed.
124923         * lib/unicodeio.h (PARAMS): Remove.
124924         * lib/unicodeio.c: Don't use PARAMS.
124926 2003-06-18  Karl Berry  <karl@gnu.org>
124928         * config/config.{guess,sub}: update from prep.
124930 2003-06-18  Jim Meyering  <jim@meyering.net>
124932         Merge changes from coreutils.
124933         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
124934         Remove explicit declarations of xmalloc and realloc.
124935         Include xalloc.h.
124936         (read_utmp): Remove anachronistic cast of xmalloc.
124938 2003-06-17  Paul Eggert  <eggert@twinsun.com>
124940         Assume C89, so PARAMS isn't needed.
124941         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
124942         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
124943         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
124944         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
124945         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
124946         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
124947         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
124948         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
124949         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
124950         lib/xstrtod.h, lib/xstrtol.h: Likewise.
124951         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
124952         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
124953         no longer needed. Anyway, config.h should always be included before any
124954         other file.
124956 2003-06-11  Simon Josefsson  <jas@extundo.com>
124958         * modules/sysexits: New file.
124959         * MODULES.html.sh (func_all_modules): Add sysexits.
124961 2003-06-11  Simon Josefsson  <jas@extundo.com>
124963         * lib/sysexit_.h: New file.
124965 2003-06-11  Derek Price  <derek@ximbiot.com>
124967         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
124968         necessary.
124970 2003-06-11  Bruno Haible  <bruno@clisp.org>
124972         * m4/sysexits.m4: New file.
124974 2003-06-10  Simon Josefsson  <jas@extundo.com>
124976         * lib/argp.h: New file, from glibc.
124977         * lib/argp-ba.c: New file, from glibc.
124978         * lib/argp-eexst.c: New file, from glibc.
124979         * lib/argp-fmtstream.c: New file, from glibc.
124980         * lib/argp-fmtstream.h: New file, from glibc.
124981         * lib/argp-fs-xinl.c: New file, from glibc.
124982         * lib/argp-help.c: New file, from glibc.
124983         * lib/argp-namefrob.h: New file, from glibc.
124984         * lib/argp-parse.c: New file, from glibc.
124985         * lib/argp-pv.c: New file, from glibc.
124986         * lib/argp-pvh.c: New file, from glibc.
124987         * lib/argp-xinl.c: New file, from glibc.
124989 2003-06-10  Simon Josefsson  <jas@extundo.com>
124991         * modules/strchrnul: New file.
124993 2003-06-10  Simon Josefsson  <jas@extundo.com>
124995         * modules/argp: New file.
124997 2003-06-10  Simon Josefsson  <jas@extundo.com>
124999         * m4/strchrnul.m4: New file.
125001 2003-06-10  Simon Josefsson  <jas@extundo.com>
125003         * lib/strchrnul.h: New file.
125004         * lib/strchrnul.c: New file.
125006 2003-06-10  Bruno Haible  <bruno@clisp.org>
125008         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
125010 2003-06-07  Karl Berry  <karl@gnu.org>
125012         * config/config.{guess,sub}: update from prep.
125014 2003-06-07  Jim Meyering  <jim@meyering.net>
125016         * modules/strtod: Use $(...) notation, not @...@ for
125017         AC_REPLACE'd variables.
125018         * modules/localcharset: Likewise.
125020 2003-06-07  Jim Meyering  <jim@meyering.net>
125022         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
125023         in place of my name in the copyright comment.
125024         Remove definition and uses of __P.
125026         From coreutils.
125027         * lib/stat.c: Don't declare xmalloc explicitly.
125028         Instead, include "xalloc.h".
125029         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
125030         xrealloc, and xcalloc return values.
125031         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
125032         Improve comment.
125033         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
125035 2003-06-07  Bruno Haible  <bruno@clisp.org>
125037         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
125038         avoid AC_CONFIG_LINKS.
125039         * modules/fnmatch (Makefile.am): Use explicit creation rule for
125040         fnmatch.h, to avoid AC_CONFIG_LINKS.
125041         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
125043 2003-06-07  Bruno Haible  <bruno@clisp.org>
125045         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
125046         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
125047         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
125048         directory.
125049         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
125050         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
125051         directory.
125053 2003-06-06  Jim Meyering  <jim@meyering.net>
125055         Merge from coreutils.
125056         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
125057         Consolidate declarations and initializations of *_base* locals.
125059         Merge from coreutils.
125060         This avoids a core dump on systems without GNU putenv,
125061         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
125062         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
125063         (unsetenv): New static function, from GNU libc.
125064         (rpl_putenv): Use it.
125066         * lib/modechange.c: Remove trailing blanks.
125068         Merge from coreutils.
125069         * lib/fsusage.c: Remove declaration of statfs.
125070         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
125072         * lib/posixtm.c: Include <stdbool.h> unconditionally.
125074 2003-06-06  Jim Meyering  <jim@meyering.net>
125076         * lib/stdbool_.h: Renamed from stdbool.h.in.
125078 2003-06-06  Jim Meyering  <jim@meyering.net>
125079             Bruno Haible  <bruno@clisp.org>
125081         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
125082         Adjust Makefile.am snippet not to redirect directly to target.
125083         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
125085 2003-06-05  Paul Eggert  <eggert@twinsun.com>
125087         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
125088         mismatch, look in future quarters as well as past.  This fixes a
125089         bug when processing fall-backwards gaps immediately after a long
125090         period of daylight-saving time.
125092         * lib/mktime.c: Assume freestanding C89 or better.
125093         (HAVE_LIMITS_H): Remove.  Assume it's 1.
125094         (__P): Remove; not used.
125095         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
125096         (mktime, not_equal_tm, print_tm, check_result,
125097         main): Use prototypes.  Use const * where appropriate.
125098         (main): Fix typo in testing code that uncovered by above changes.
125099         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
125101 2003-06-04  Paul Eggert  <eggert@twinsun.com>
125103         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
125104         locale.h, localeconv.  This merges changes from coreutils.
125106         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
125107         It can be removed after the next Autoconf is released.
125108         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
125109         needed.
125111 2003-06-04  Paul Eggert  <eggert@twinsun.com>
125113         * lib/mktime.c: Fix Debian bug 177940
125114         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
125115         (localtime_offset): Now long int, not time_t, because we want it
125116         to be guaranteed to be signed.  All uses changed.
125117         (__mktime_internal): If overflow would occur when adding offset,
125118         don't add it.
125120         Merge 'human' changes from coreutils.  Rewrite to support
125121         locale-specific notations like thousands separators.
125122         * lib/human.c: Simplify authorship notice.
125123         Include human.h immediately after config.h.
125124         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
125125         <limits.h>: Do not include, since human.h does.
125126         (SIZE_MAX, UINTMAX_MAX): New macros.
125127         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
125128         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
125129         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
125130         (power_letter): Renamed from suffixes.
125131         (generate_suffix_backwards): Remove.
125132         (adjust_value): Now takes int style (because of human.h changes)
125133         and long double value (for greater precision on some platforms).
125134         (group_number): New function.
125135         (human_readable): Use it.  Use integer options, not enum.
125136         Put the options before the sizes in the arg list.
125137         Support all the new options.
125138         The old human_readable function has been removed;
125139         use inttostr.h instead.
125140         (human_readable, default_block_size, humblock):
125141         Use uintmax_t, not int, for block sizes.
125142         (human_readable_inexact, block_size_types): Remove.
125143         (block_size_opts): New constant.
125144         (human_options): Renamed from human_block_size, with new signature
125145         that allows block sizes up to UINTMAX_MAX.  All callers changed.
125146         * lib/human.h: Add copyright and authorship notice.
125147         Include <limits.h> and <stdbool.h> unconditionally.
125148         (PARAMS): Remove.  All uses removed.
125149         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
125150         (enum human_inexact_style): Remove tag; now a nameless enum.
125151         (human_floor, human_ceiling, human_round_to_even): Now have
125152         values 2, 0, 1 rather than -1, 1, 0.
125153         (human_group_digits, human_suppress_point_zero, human_autoscale,
125154         human_base_1024, human_SI, human_B): New constants.
125155         (human_readable_inexact, human_block_size): Remove.
125156         (human_readable): Size args are now uintmax_t, not int.
125157         (human_options): New decl.
125159         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
125160         unnecessary now that we assume C89 or better.  This change
125161         imported from coreutils.
125163         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
125164         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
125165         in the 2003-05-30 sync from glibc.
125167         .h files should stand alone, but we shouldn't include <sys/types.h>
125168         if we can get away with just <stddef.h>.
125170         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
125171         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
125172         rather than <sys/types.h>, as we merely need size_t.
125173         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
125174         to get size_t.
125175         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
125176         Include <stdio.h>, to get FILE.
125177         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
125178         memcasecmp.h has included <stddef.h> and all we need is size_t.
125179         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
125180         our interface, instead of including <sys/types.h>
125182 2003-06-04  Paul Eggert  <eggert@twinsun.com>
125184         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
125185         now, as glibc mktime is buggy on non-glibc systems.
125187 2003-06-03  Karl Berry  <karl@gnu.org>
125189         * config/config.sub: update from prep.
125191 2003-06-02  Paul Eggert  <eggert@twinsun.com>
125193         [from coreutils]
125194         Fix some minor time-related bugs with POSIX time arguments.
125195         Some valid time stamps were being rejected (notably -1, and
125196         time stamps before 1900 on 64-bit hosts).  And some invalid
125197         time stamps were being accepted, e.g. September 31.
125199         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
125200         that we can return (time_t) -1 successfully.
125201         * lib/posixtm.c: Likewise.
125202         [HAVE_STDBOOL_H]: Include <stdbool.h>.
125203         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
125204         (t): Remove static var.
125205         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
125206         of static var.  All uses changed.
125207         (year): Do not reject years before 1900; they can occur with
125208         64-bit time_t.
125209         (posix_time_parse): Do not check for out-of-range components;
125210         that is now the caller's responsibility, since our checks were
125211         only approximations.
125212         (posixtime): Use mktime to check for out-of-range components,
125213         since it knows them exactly.
125214         If mktime returns (time_t) -1, check whether an error actually occurred
125215         by invoking localtime on -1.
125216         (main) [TEST_POSIXTIME]: Check for input data errors, and report
125217         posixtime failures better.
125218         Improve the test data (in comments only).
125220 2003-06-02  Karl Berry  <karl@gnu.org>
125222         * config/mkinstalldirs (version): new variable.
125223         (--version): new option.
125224         (usage): improve message.
125226 2003-05-30  Karl Berry  <karl@gnu.org>
125228         * lib/mktime.c: update from libc.
125230 2003-05-30  Bruno Haible  <bruno@clisp.org>
125232         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
125233         * config/config.rpath: Upgrade to gettext-0.12.1.
125235 2003-05-30  Bruno Haible  <bruno@clisp.org>
125237         * m4/gettext.m4: Upgrade to gettext-0.12.1.
125238         * m4/nls.m4: New file, from gettext-0.12.1.
125239         * m4/po.m4: New file, from gettext-0.12.1.
125240         * m4/progtest.m4: Upgrade to gettext-0.12.1.
125242 2003-05-30  Bruno Haible  <bruno@clisp.org>
125244         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
125245         * lib/localcharset.h: Likewise.
125246         * lib/localcharset.c: Likewise.
125248 2003-05-29  Karl Berry  <karl@gnu.org>
125250         * config/config.rpath: update from gettext.
125252 2003-05-28  Paul Eggert  <eggert@twinsun.com>
125254         Assume the headers required for C89 freestanding compilers.
125255         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
125256         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
125257         * m4/human.m4 (gl_HUMAN): Likewise.
125258         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
125259         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
125260         * m4/userspec.m4 (gl_USERSPEC): Likewise.
125261         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
125262         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
125263         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
125265 2003-05-28  Paul Eggert  <eggert@twinsun.com>
125267         Assume the headers required for C89 freestanding compilers.
125268         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
125269         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
125270         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
125271         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
125272         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
125273         define, since <limits.h> is guaranteed to do that.
125274         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
125275         * lib/exclude.c: Include <stdbool.h> unconditionally.
125276         * lib/tempname.c: Include <stddef.h> unconditionally.
125277         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
125278         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
125279         <stddef.h> does that.
125280         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
125281         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
125282         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
125283         needed.
125284         * lib/xstrtol.c: Likewise.
125285         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
125286         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
125288         * lib/addext.c (addext): Use assignment rather than cast, to avoid
125289         warnings on some platforms.
125291         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
125292         arbitrarily.
125294 2003-05-26  Jim Meyering  <jim@meyering.net>
125296         Merge in a change from coreutils:
125297         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
125298         that is guaranteed to be `no'.  Use `no_such_member' to indicate
125299         that condition, rather than `-1' which is slightly misleading.
125300         Change the name of the cache variable to have the gl_ prefix.
125301         Prompted by a patch from Richard Dawe for DJGPP.
125303 2003-05-24  Karl Berry  <karl@gnu.org>
125305         * config/config.guess: update from prep.
125307 2003-05-22  Karl Berry  <karl@gnu.org>
125309         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
125311 2003-05-20  Karl Berry  <karl@gnu.org>
125313         * config/config.guess: update from prep.
125315 2003-05-18  Karl Berry  <karl@gnu.org>
125317         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
125318         might actually be set by the user.
125320         * config/depcomp, install-sh, mdate-sh: update from automake.
125322 2003-05-17  Bruno Haible  <bruno@clisp.org>
125324         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
125325         invalid expansion for AC_EGREP_CPP.
125326         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
125327         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
125328         Suggested by Akim Demaille <akim@epita.fr> in
125329         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
125331 2003-05-12  Jim Meyering  <jim@meyering.net>
125333         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
125334         the space-padded-by-default conversion specifiers, %e, %k, %l.
125336 2003-05-12  Bruno Haible  <bruno@clisp.org>
125338         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
125339         the string is longer than 4 KB.
125341 2003-05-11  Karl Berry  <karl@gnu.org>
125343         * config/config.{guess,sub}: update from prep.
125345 2003-05-09  Bruno Haible  <bruno@clisp.org>
125347         * modules/error: Add m4/strerror_r.m4 to file list.
125349 2003-05-03  Bruno Haible  <bruno@clisp.org>
125351         Upgrade to Unicode-4.0.
125352         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
125353         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
125354         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
125355         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
125356         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
125357         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
125358         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
125359         Change width of U+E0100..U+E01EF from 1 to 0.
125361 2003-04-25  Jim Meyering  <jim@meyering.net>
125363         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
125364         of type size_t, not int.
125366 2003-04-25  Bruno Haible  <bruno@clisp.org>
125368         * lib/copy-file.c: Include <stddef.h>, for size_t.
125370 2003-04-21  Paul Eggert  <eggert@twinsun.com>
125372         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
125373         code which expansion is under static control.  Patch imported from
125374         Akim Demaille's patch to Bison; see
125375         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
125377 2003-04-14  Bruno Haible  <bruno@clisp.org>
125379         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
125381 2003-04-11  Jim Meyering  <jim@meyering.net>
125383         Merge changes from Coreutils.
125385         2003-03-22  Jim Meyering  <jim@meyering.net>
125387         * lib/strftime.c (widen): Cast alloca return value to proper type.
125389         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
125391         From GNU libc.
125392         * lib/strftime.c (my_strftime): Handle very large width
125393         specifications for numeric values correctly.  Improve checks for
125394         overflow.
125396         2003-01-19  Jim Meyering  <jim@meyering.net>
125398         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
125399         definitions.
125400         (nl_get_alt_digit) [! defined my_strftime]: Define.
125401         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
125402         _nl_get_alt_digit and _nl_get_walt_digit.
125404         * lib/strftime.c (my_strftime): Merge in locale-related changes from
125405         libc. These changes have no effect outside of _LIBC.
125407 2003-04-10  Bruno Haible  <bruno@clisp.org>
125409         * modules/findprog: New file.
125410         * MODULES.html.sh (func_all_modules): Add it.
125412 2003-04-10  Bruno Haible  <bruno@clisp.org>
125414         * m4/findprog.m4: New file.
125415         * m4/eaccess.m4: New file.
125417 2003-04-10  Bruno Haible  <bruno@clisp.org>
125419         * lib/findprog.h: New file, from GNU gettext.
125420         * lib/findprog.c: New file, from GNU gettext.
125422 2003-04-05  Jim Meyering  <jim@meyering.net>
125424         Merge changes from Coreutils.
125426         * lib/exclude.h (PARAMS): Remove definition and uses.
125427         * lib/exclude.c: Remove uses of `PARAMS'.
125429         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
125430         Add test-cases for DOS filenames. Declare program_name.
125431         (main): Set up program_name.  Patch by Rich Dawe.
125433         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
125434         error from mntctl.
125435         Use mntctl's return value to drive the entry-processing loop, since
125436         we can't rely on the value of the vmt_length member in the last
125437         entry.  On some systems doing so could result in exhausting
125438         virtual memory.  Based in part on a patch from Mike Jetzer.
125440 2003-04-04  Bruno Haible  <bruno@clisp.org>
125442         * modules/linebreak: New file.
125443         * MODULES.html.sh (func_all_modules): Add it.
125445 2003-04-04  Bruno Haible  <bruno@clisp.org>
125447         * m4/linebreak.m4: New file.
125449 2003-04-04  Bruno Haible  <bruno@clisp.org>
125451         * lib/linebreak.h: New file, from GNU gettext.
125452         * lib/linebreak.c: New file, from GNU gettext with slight
125453         modifications.
125454         * lib/lbrkprop.h: New file, from GNU gettext.
125456 2003-04-03  Bruno Haible  <bruno@clisp.org>
125458         * modules/utf8-ucs4: New file.
125459         * modules/utf16-ucs4: New file.
125460         * modules/ucs4-utf8: New file.
125461         * modules/ucs4-utf16: New file.
125462         * MODULES.html.sh (func_all_modules): Add them.
125464 2003-04-03  Bruno Haible  <bruno@clisp.org>
125466         * m4/utf-ucs4.m4: New file.
125467         * m4/ucs4-utf.m4: New file.
125469 2003-04-03  Bruno Haible  <bruno@clisp.org>
125471         * lib/utf8-ucs4.h: New file, from GNU gettext.
125472         * lib/utf16-ucs4.h: New file, from GNU gettext.
125473         * lib/ucs4-utf8.h: New file, from GNU gettext.
125474         * lib/ucs4-utf16.h: New file, from GNU gettext.
125476 2003-04-02  Bruno Haible  <bruno@clisp.org>
125478         * modules/binary-io: New file.
125479         * MODULES.html.sh (func_all_modules): Add it.
125481 2003-04-02  Bruno Haible  <bruno@clisp.org>
125483         * lib/binary-io.h: New file, from GNU gettext.
125485 2003-04-01  Bruno Haible  <bruno@clisp.org>
125487         * modules/pathname: New file.
125488         * MODULES.html.sh (func_all_modules): Add it.
125490 2003-04-01  Bruno Haible  <bruno@clisp.org>
125492         * lib/pathname.h: New file, from GNU gettext.
125493         * lib/concatpath.c: New file, from GNU gettext.
125495 2003-03-30  Bruno Haible  <bruno@clisp.org>
125497         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
125499 2003-03-30  Bruno Haible  <bruno@clisp.org>
125501         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
125502         function chown() doesn't exist.
125504 2003-03-28  Bruno Haible  <bruno@clisp.org>
125506         * modules/copy-file: New file.
125507         * MODULES.html.sh (func_all_modules): Add it.
125509 2003-03-28  Bruno Haible  <bruno@clisp.org>
125511         * m4/copy-file.m4: New file.
125513 2003-03-28  Bruno Haible  <bruno@clisp.org>
125515         * lib/copy-file.h: New file, from GNU gettext.
125516         * lib/copy-file.c: New file, from GNU gettext.
125518 2003-03-18  Jim Meyering  <jim@meyering.net>
125520         * lib/quote.c (quote_n): Fix typo in comment.
125522 2003-03-18  Bruno Haible  <bruno@clisp.org>
125524         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
125525         checking.
125526         * m4/onceonly_2_57.m4: Likewise.
125528 2003-03-17  Bruno Haible  <bruno@clisp.org>
125530         * m4/onceonly.m4: Require autoconf 2.54 or newer.
125531         (m4_quote): Remove macro.
125532         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
125534 2003-03-14  Jim Meyering  <jim@meyering.net>
125536         Merge changes from Coreutils.
125537         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
125538         to be const, in order to avoid warnings.
125539         (obstack_room): Likewise.
125540         (obstack_empty_p): Likewise.
125542 2003-03-14  Bruno Haible  <bruno@clisp.org>
125544         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
125545         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
125547 2003-03-13  Paul Eggert  <eggert@twinsun.com>
125549         Merge changes from Bison.
125550         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
125551         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
125552         when compiling Bison 1.875's `bitset bset = obstack_alloc
125553         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
125554         * lib/hash.c: Include <stdbool.h> unconditionally.
125556 2003-03-13  Paul Eggert  <eggert@twinsun.com>
125558         * m4/onceonly.m4 (m4_quote): New macro.
125559         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
125560         Quote AC_FOREACH variable-expansions properly.
125562 2003-03-13  Paul Eggert  <eggert@twinsun.com>
125564         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
125566 2003-03-09  Paul Eggert  <eggert@twinsun.com>
125568         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
125569         Reported by Bruce Becker; see:
125570         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
125572 2003-03-03  Paul Eggert  <eggert@twinsun.com>
125573             Bruno Haible  <bruno@clisp.org>
125575         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
125576         Reported by John Hughes, see
125577         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
125579 2003-02-20  Bruno Haible  <bruno@clisp.org>
125581         * MODULES.html.sh (func_all_modules): Add poll.
125583 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
125585         * modules/poll: New file.
125587 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
125589         * lib/poll_.h: New file.
125590         * lib/poll.c: New file.
125592 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
125594         * m4/poll.m4: New file.
125596 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
125598         * modules/mathl: New file.
125600 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
125602         * lib/mathl.h: New file.
125603         * lib/acosl.c: New file.
125604         * lib/asinl.c: New file.
125605         * lib/atanl.c: New file.
125606         * lib/ceill.c: New file.
125607         * lib/cosl.c: New file.
125608         * lib/expl.c: New file.
125609         * lib/floorl.c: New file.
125610         * lib/frexpl.c: New file.
125611         * lib/ldexpl.c: New file.
125612         * lib/logl.c: New file.
125613         * lib/sincosl.c: New file.
125614         * lib/sinl.c: New file.
125615         * lib/sqrtl.c: New file.
125616         * lib/tanl.c: New file.
125617         * lib/trigl.c: New file.
125618         * lib/trigl.h: New file.
125620 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
125622         * m4/mathl.m4: New file.
125624 2003-02-18  Bruno Haible  <bruno@clisp.org>
125626         * MODULES.html.sh (func_all_modules): Add mathl.
125628 2003-02-17  Bruno Haible  <bruno@clisp.org>
125630         * modules/mkdtemp: New module.
125631         * MODULES.html.sh (func_all_modules): Add it.
125633 2003-02-17  Bruno Haible  <bruno@clisp.org>
125635         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
125637 2003-02-17  Bruno Haible  <bruno@clisp.org>
125639         * lib/mkdtemp.h: New file, from GNU gettext.
125640         * lib/mkdtemp.c: New file, from GNU gettext.
125642 2003-02-02  Jim Meyering  <jim@meyering.net>
125644         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
125645         e.g. glibc-2.2.93.
125647 2003-01-31  Bruno Haible  <bruno@clisp.org>
125649         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
125650         'rpl_rename'.
125651         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
125652         'rpl_strnlen'.
125653         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
125654         'rpl_strtod'.
125655         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
125656         'rpl_utime'.
125658 2003-01-31  Bruno Haible  <bruno@clisp.org>
125660         * lib/rename.c: #undef rename before defining rpl_rename.
125661         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
125663 2003-01-30  Bruno Haible  <bruno@clisp.org>
125665         * modules/vasnprintf, modules/vasprintf: New modules.
125666         * MODULES.html.sh (func_all_modules): Add them.
125668 2003-01-30  Bruno Haible  <bruno@clisp.org>
125670         * m4/signed.m4: New file, from GNU gettext.
125671         * m4/longdouble.m4: New file, from GNU gettext.
125672         * m4/wchar_t.m4: New file, from GNU gettext.
125673         * m4/wint_t.m4: New file, from GNU gettext.
125674         * m4/vasnprintf.m4: New file.
125675         * m4/vasprintf.m4: New file.
125677 2003-01-30  Bruno Haible  <bruno@clisp.org>
125679         * lib/printf-args.h: New file, from GNU gettext.
125680         * lib/printf-args.c: New file, from GNU gettext.
125681         * lib/printf-parse.h: New file, from GNU gettext.
125682         * lib/printf-parse.c: New file, from GNU gettext.
125683         * lib/vasnprintf.h: New file, from GNU gettext.
125684         * lib/vasnprintf.c: New file, from GNU gettext.
125685         * lib/asnprintf.c: New file, from GNU gettext.
125686         * lib/vasprintf.h: New file, from GNU gettext with modifications.
125687         * lib/vasprintf.c: New file, from GNU gettext.
125688         * lib/asprintf.c: New file, from GNU gettext.
125690 2003-01-29  Bruno Haible  <bruno@clisp.org>
125692         * modules/stpncpy: New module.
125693         * MODULES.html.sh (func_all_modules): Add it.
125695 2003-01-29  Bruno Haible  <bruno@clisp.org>
125697         * m4/stpncpy.m4: New file.
125699 2003-01-29  Bruno Haible  <bruno@clisp.org>
125701         * lib/stpncpy.h: New file, from GNU gettext with modifications.
125702         * lib/stpncpy.c: New file, from GNU gettext with modifications.
125704 2003-01-28  Bruno Haible  <bruno@clisp.org>
125706         * modules/c-ctype: New module.
125707         * MODULES.html.sh (func_all_modules): Add it.
125709 2003-01-28  Bruno Haible  <bruno@clisp.org>
125711         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
125712         Paul Eggert.
125713         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
125714         Paul Eggert.
125716 2003-01-27  Bruno Haible  <bruno@clisp.org>
125718         * modules/xsetenv: New module.
125719         * MODULES.html.sh (func_all_modules): Add it.
125721 2003-01-27  Bruno Haible  <bruno@clisp.org>
125723         * lib/xsetenv.h: New file, from GNU gettext.
125724         * lib/xsetenv.c: New file, from GNU gettext.
125726 2003-01-23  Jim Meyering  <jim@meyering.net>
125728         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
125729         from working on systems without dirfd (at least Irix and OSF1/Tru64).
125731 2003-01-23  Bruno Haible  <bruno@clisp.org>
125733         * modules/minmax: New module.
125734         * MODULES.html.sh (func_all_modules): Add it.
125736 2003-01-23  Bruno Haible  <bruno@clisp.org>
125738         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
125739         Eggert.
125741 2003-01-22  Bruno Haible  <bruno@clisp.org>
125743         * modules/exit: New module.
125744         * MODULES.html.sh (func_all_modules): Add it.
125746 2003-01-22  Bruno Haible  <bruno@clisp.org>
125748         * lib/exit.h: New file, from GNU gettext.
125750 2003-01-19  Bruno Haible  <bruno@clisp.org>
125752         * gnulib-tool: Recognize option --extract-maintainer.
125753         (func_get_maintainer): New function.
125754         * modules/*: Add Maintainer entry.
125756 2003-01-16  Jim Meyering  <jim@meyering.net>
125758         * m4/regex.m4: The `regex' struct is both input and output.
125759         Initialize it before each use.  Patch by Tim Waugh.
125761 2003-01-16  Bruno Haible  <bruno@clisp.org>
125763         * MODULES.html.sh: Add a table of contents. Add the module name as
125764         leftmost column. Add hyperlinks.
125766 2003-01-15  Bruno Haible  <bruno@clisp.org>
125768         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
125770 2003-01-15  Bruno Haible  <bruno@clisp.org>
125772         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
125773         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
125774         suffix.
125776 2003-01-15  Bruno Haible  <bruno@clisp.org>
125778         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
125780 2003-01-15  Bruno Haible  <bruno@clisp.org>
125782         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
125783         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
125785 2003-01-14  Jim Meyering  <jim@meyering.net>
125787         * lib/same.c (same_name): Tweak a comment.
125789 2003-01-14  Bruno Haible  <bruno@clisp.org>
125791         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
125792         when a string comparison is sufficient.
125794 2003-01-14  Bruno Haible  <bruno@clisp.org>
125796         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
125797         'unsigned int'.
125799 2003-01-14  Bruno Haible  <bruno@clisp.org>
125801         * lib/hash-pjw.c: Add comment about low quality of this function.
125803 2003-01-13  Bruno Haible  <bruno@clisp.org>
125805         * modules/stpcpy: Distribute lib/stpcpy.h.
125806         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
125808 2003-01-13  Bruno Haible  <bruno@clisp.org>
125810         * modules/*: Add a description.
125811         * modules/strpbrk: Fix Makefile.am snippet.
125812         * modules/strtoimax: Fix dependencies.
125813         * modules/strtoumax: Likewise.
125815 2003-01-13  Bruno Haible  <bruno@clisp.org>
125817         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
125818         * modules/alloca (Makefile.am): All object files depend on alloca.h.
125819         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
125821 2003-01-13  Bruno Haible  <bruno@clisp.org>
125823         * gnulib-tool (func_create_testdir): Store config/* files in the main
125824         directory.
125825         * config.rpath: Move to ...
125826         * config/config.rpath: ... here.
125827         * modules/gettext: Contains config/config.rpath, not config.rpath.
125828         * modules/iconv: Likewise.
125830 2003-01-12  Paul Eggert  <eggert@twinsun.com>
125832         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
125833         to avoid collisions with libcurses and libreadline.
125835         * m4/getstr.m4: Remove.
125836         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
125838 2003-01-12  Paul Eggert  <eggert@twinsun.com>
125840         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
125841         to avoid collisions with libcurses and libreadline.
125843         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
125844         * lib/getstr.h, getstr.c: Remove.
125845         * lib/getline.c: Include "getline.h", to check interface.
125846         Move body of old getstr.c here: this defines MIN_CHUNK and
125847         declares getdelim2, which is renamed from getstr.
125848         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
125850         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
125851         All uses changed.
125852         * lib/linebuffer.h: Likewise.
125853         (readline): Remove backward-compatibility macro.
125855 2003-01-12  Paul Eggert  <eggert@twinsun.com>
125857         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
125858         to avoid collisions with libcurses and libreadline.
125859         * getstr: Remove.
125860         * MODULES.html.sh: Remove getstr.
125861         * modules/getline: Depend on unlocked-io, not getstr.
125863 2003-01-12  Jim Meyering  <jim@meyering.net>
125865         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
125867 2003-01-10  Bruno Haible  <bruno@clisp.org>
125869         * modules/alloca: Change Makefile.am requirements. Simplify Include
125870         requirements. Add lib/alloca_.h to file list.
125872 2003-01-10  Bruno Haible  <bruno@clisp.org>
125874         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
125876 2003-01-10  Bruno Haible  <bruno@clisp.org>
125878         * lib/alloca_.h: New file.
125879         * lib/getdate.y: Unconditionally include alloca.h.
125880         * lib/makepath.c: Likewise.
125881         * lib/setenv.c: Likewise.
125882         * lib/userspec.c: Likewise.
125884 2003-01-09  Karl Berry  <karl@gnu.org>
125886         * MODULES.html.sh: include `dirname $0` in PATH, to find
125887         gnulib-tool.
125889 2003-01-09  Bruno Haible  <bruno@clisp.org>
125891         * modules/stdbool: Change configure.ac, Makefile.am requirements.
125892         Simplify Include requirements. Add lib/stdbool.h.in to file list.
125894 2003-01-09  Bruno Haible  <bruno@clisp.org>
125896         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
125898 2003-01-09  Bruno Haible  <bruno@clisp.org>
125900         * lib/stdbool.h.in: New file.
125902 2003-01-09  Bruno Haible  <bruno@clisp.org>
125904         * gnulib-tool (func_all_modules): Ignore files ending in ~.
125905         * MODULES.html.sh: Likewise.
125907 2003-01-08  Jim Meyering  <jim@meyering.net>
125909         * lib/full-write.c: Undefine and define-away `const' after inclusion
125910         of errno.h, not before.  Suggestion from Bruno Haible.
125912 2003-01-08  Bruno Haible  <bruno@clisp.org>
125914         * modules/full-read: Depend on full-write.
125916 2003-01-08  Bruno Haible  <bruno@clisp.org>
125918         * lib/safe-read.c: Include specification header first, to ensure its
125919         selfcontainedness.
125920         * lib/full-write.c: Likewise.
125922 2003-01-07  Jim Meyering  <jim@meyering.net>
125924         * lib/full-write.c: Rework so that it may serve to define full_read,
125925         too.
125926         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
125928 2003-01-07  Bruno Haible  <bruno@clisp.org>
125930         * lib/strtoimax.c: Include <stdint.h> as an alternative to
125931         <inttypes.h>.
125932         * lib/xstrtol.h: Likewise.
125933         * lib/xstrtoimax.c: Likewise.
125934         * lib/xstrtoumax.c: Likewise.
125935         * lib/human.h: Likewise.
125937         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
125938         on systems that have <inttypes.h> but not <stdint.h>.
125940 2003-01-07  Bruno Haible  <bruno@clisp.org>
125942         * MODULES.html.sh: Add copyright notice.
125943         (missed_files): Omit CVS directory entries.
125944         (func_module): Make it work with sed-3.02.
125945         * MODULES.txt: Remove file.
125947 2003-01-06  Jim Meyering  <jim@meyering.net>
125949         * lib/version-etc.c: Update year in translatable copyright string.
125951 2003-01-03  Karl Berry  <karl@gnu.org>
125953         * config/config.{guess,sub}: update from prep.
125955 2003-01-02  Karl Berry  <karl@gnu.org>
125957         * doc/COPYING.DOC: belatedly updated to 1.2.
125959 2003-01-01  Karl Berry  <karl@gnu.org>
125961         * gnulib-tool (func_verify_module): report module name $module in
125962         error message, not $1.
125963         * gnulib-tool (create-testdir): don't complain if destdir couldn't
125964         be created, only if it doesn't exist.
125965         * gnulib-tool (last_checkin_date): don't expand the $Date here.
125967 2002-12-31  Paul Eggert  <eggert@twinsun.com>
125969         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
125971 2002-12-31  Paul Eggert  <eggert@twinsun.com>
125973         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
125974         memcmp if strcoll doesn't work.
125976 2002-12-31  Bruno Haible  <bruno@clisp.org>
125978         * lib/utime.c (utime_null): No need to call ftruncate if the file was
125979         nonempty.
125981 2002-12-31  Bruno Haible  <bruno@clisp.org>
125983         * lib/memcoll.c (STRCOLL): New macro.
125984         (memcoll): Use it.
125986 2002-12-31  Bruno Haible  <bruno@clisp.org>
125988         * lib/localcharset.h: New file.
125989         * lib/localcharset.c: Include it.
125990         * lib/unicodeio.c: Likewise.
125992 2002-12-31  Bruno Haible  <bruno@clisp.org>
125994         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
125995         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
125997 2002-12-31  Bruno Haible  <bruno@clisp.org>
125999         * lib/getline.h: Include <stddef.h>, for size_t.
126001         * lib/unicodeio.h: Include <stddef.h>, for size_t.
126002         * lib/unicodeio.c: Don't include <stddef.h>.
126004 2002-12-31  Bruno Haible  <bruno@clisp.org>
126006         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
126007         HAVE_TM_ZONE.
126009 2002-12-24  Karl Berry  <karl@gnu.org>
126011         * config/config.guess: update from prep.
126013 2002-12-24  Bruno Haible  <bruno@clisp.org>
126015         General infrasructure.
126016         * m4/README: Rewritten.
126017         * m4/onceonly.m4: New file.
126018         * m4/onceonly_2_57.m4: New file.
126020         Module atexit.
126021         * m4/atexit.m4: New file.
126023         Module strtod.
126024         * m4/strtod.m4: New file.
126026         Module strtol.
126027         * m4/strtol.m4: New file.
126029         Module strtoul.
126030         * m4/strtoul.m4: New file.
126032         Module memchr.
126033         * m4/memchr.m4: New file.
126035         Module memcmp.
126036         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
126037         (jm_FUNC_MEMCMP): Invoke it.
126039         Module memcpy.
126040         * m4/memcpy.m4: New file.
126042         Module memmove.
126043         * m4/memmove.m4: New file.
126045         Module memset.
126046         * m4/memset.m4: New file.
126048         Module strcspn.
126049         * m4/strcspn.m4: New file.
126051         Module strpbrk.
126052         * m4/strpbrk.m4: New file.
126054         Module strstr.
126055         * m4/strstr.m4: New file.
126057         Module strerror.
126058         * m4/strerror.m4: New file.
126060         Module mktime.
126061         * m4/mktime.m4: Renamed from jm-mktime.m4.
126062         (gl_PREREQ_MKTIME): New macro.
126063         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
126065         Module malloc.
126066         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
126067         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
126068         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
126070         Module realloc.
126071         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
126072         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
126073         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
126075         Module strftime.
126076         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
126077         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
126078         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
126079         gl_TM_GMTOFF.
126080         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
126082         Module xalloc.
126083         * m4/xalloc.m4: New file.
126085         Module alloca.
126086         * m4/alloca.m4: New file.
126088         Module putenv.
126089         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
126090         (jm_FUNC_PUTENV): Invoke it.
126092         Module setenv.
126093         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
126094         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
126095         when invoked twice.
126096         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
126097         gt_FUNC_SETENV.
126099         Module memrchr.
126100         * m4/memrchr.m4: New file.
126102         Module stpcpy.
126103         * m4/stpcpy.m4: New file.
126105         Module strcase.
126106         * m4/strcase.m4: New file.
126108         Module strdup.
126109         * m4/strdup.m4: New file.
126111         Module strnlen.
126112         * m4/strnlen.m4: New file.
126114         Module strndup.
126115         * m4/strndup.m4: New file.
126117         Module xstrtod.
126118         * m4/xstrtod.m4: New file.
126120         Module xstrtol.
126121         * m4/xstrtol.m4: New file.
126123         Module getdate.
126124         * m4/getdate.m4: New file.
126126         Module unlocked-io.
126127         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
126128         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
126129         * m4/jm-glibc-io.m4n: Remove file.
126131         Module long-options.
126132         * m4/long-options.m4: New file.
126134         Module md5.
126135         * m4/md5.m4: New file.
126137         Module sha.
126138         * m4/sha.m4: New file.
126140         Module getstr.
126141         * m4/getstr.m4: New file.
126143         Module getline.
126144         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
126145         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
126146         <sys/types.h>, for size_t. Use the function name gnu_getline, not
126147         simply getline. Infoke gl_PREREQ_GETLINE.
126149         Module obstack.
126150         * m4/obstack.m4: New file.
126152         Module hash.
126153         * m4/hash.m4: New file.
126155         Module readtokens.
126156         * m4/readtokens.m4: New file.
126158         Module strverscmp.
126159         * m4/strverscmp.m4: New file.
126161         Module stdbool.
126162         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
126163         OSF/1.
126165         Module strtoll.
126166         * m4/strtoll.m4: New file.
126168         Module strtoull.
126169         * m4/strtoull.m4: New file.
126171         Module strtoimax.
126172         * m4/strtoimax.m4: New file.
126174         Module strtoumax.
126175         * m4/strtoumax.m4: New file.
126177         Module xstrtoimax.
126178         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
126179         jm_AC_PREREQ_XSTRTOIMAX.
126180         Moved the strtol prerequisites to strtol.m4.
126181         Moved the strtoll prerequisites to strtoll.m4.
126182         Moved the strtoimax prerequisites to strtoimax.m4.
126184         Module xstrtoumax.
126185         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
126186         jm_AC_PREREQ_XSTRTOUMAX.
126187         Moved the strtoul prerequisites to strtoul.m4.
126188         Moved the strtoull prerequisites to strtoull.m4.
126189         Moved the strtoumax prerequisites to strtoumax.m4.
126191         Module chown.
126192         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
126193         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
126195         Module dup2.
126196         * m4/dup2.m4: New file.
126198         Module ftruncate.
126199         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
126200         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
126202         Module getgroups.
126203         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
126204         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
126206         Module gettimeofday.
126207         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
126208         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
126209         gl_PREREQ_GETTIMEOFDAY.
126211         Module mkdir.
126212         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
126213         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
126215         Module mkstemp.
126216         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
126217         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
126218         jm_AC_TYPE_UINTMAX_T.
126219         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
126221         Module stat.
126222         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
126223         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
126225         Module lstat.
126226         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
126227         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
126229         Module timespec.
126230         * m4/timespec.m4 (gl_TIMESPEC): New macro.
126231         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
126232         * m4/st_mtim.m4: Indentation.
126234         Module nanosleep.
126235         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
126236         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
126237         gl_PREREQ_NANOSLEEP.
126239         Module regex.
126240         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
126241         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
126242         (gl_REGEX): New macro.
126244         Module rename.
126245         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
126246         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
126248         Module rmdir.
126249         * m4/rmdir.m4: New file.
126251         Module utime.
126252         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
126253         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
126254         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
126256         Module dirname.
126257         * m4/dirname.m4: New file.
126259         Module getopt.
126260         * m4/getopt.m4: New file.
126262         Module unistd-safer.
126263         * m4/unistd-safer.m4: New file.
126265         Module fnmatch.
126266         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
126267         declaration.
126268         (gl_PREREQ_FNMATCH_EXTRA): New macro.
126269         (gl_FUNC_FNMATCH_POSIX): New macro.
126270         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
126271         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
126272         simply fnmatch.
126274         Module exclude.
126275         * m4/exclude.m4: New file.
126277         Module human.
126278         * m4/human.m4: New file.
126280         Module acl.
126281         * m4/acl.m4: Nop.
126283         Module backupfile.
126284         * m4/backupfile.m4: New file.
126285         * m4/d-ino.m4: Indentation.
126287         Module fsusage.
126288         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
126289         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
126290         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
126292         Module dirfd.
126293         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
126294         requirements.
126296         Module euidaccess.
126297         * m4/euidaccess.m4: New file.
126299         Module file-type.
126300         * m4/file-type.m4: New file.
126302         Module fileblocks.
126303         * m4/fileblocks.m4: New file.
126305         Module filemode.
126306         * m4/filemode.m4: New file.
126308         Module isdir.
126309         * m4/isdir.m4: New file.
126311         Module lchown.
126312         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
126313         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
126315         Module makepath.
126316         * m4/makepath.m4: New file.
126318         Module modechange.
126319         * m4/modechange.m4: New file.
126321         Module mountlist.
126322         * m4/mountlist.m4: New file.
126323         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
126324         Indentation.
126326         Module path-concat.
126327         * m4/path-concat.m4: New file.
126329         Module pathmax.
126330         * m4/pathmax.m4: New file.
126332         Module same.
126333         * m4/same.m4: New file.
126335         Module save-cwd.
126336         * m4/save-cwd.m4: New file.
126338         Module savedir.
126339         * m4/savedir.m4: New file.
126341         Module xgetcwd.
126342         * m4/xgetcwd.m4: New file.
126343         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
126345         Module xreadlink.
126346         * m4/xreadlink.m4: New file.
126348         Module safe-read.
126349         * m4/safe-read.m4: New file.
126351         Module safe-write.
126352         * m4/safe-write.m4: New file.
126354         Module closeout.
126355         * m4/closeout.m4: New file.
126357         Module stdio-safer.
126358         * m4/stdio-safer.m4: New file.
126360         Module getpass.
126361         * m4/getpass.m4: New file.
126363         Module getugroups.
126364         * m4/getugroups.m4: New file.
126366         Module group-member.
126367         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
126368         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
126370         Module idcache.
126371         * m4/idcache.m4: New file.
126373         Module userspec.
126374         * m4/userspec.m4: New file.
126376         Module gettime.
126377         * m4/clock_time.m4: New file.
126378         * m4/gettime.m4: New file.
126380         Module settime.
126381         * m4/settime.m4: New file.
126383         Module posixtm.
126384         * m4/posixtm.m4: New file.
126386         Module gethostname.
126387         * m4/gethostname.m4: New file.
126389         Module canon-host.
126390         * m4/canon-host.m4: New file.
126392         Module gettext.
126393         * m4/codeset.m4: New file, from gettext-0.11.5.
126394         * m4/gettext.m4: New file, from gettext-0.11.5.
126395         * m4/glibc21.m4: New file, from gettext-0.11.5.
126396         * m4/iconv.m4: New file, from gettext-0.11.5.
126397         * m4/intdiv0.m4: New file, from gettext-0.11.5.
126398         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
126399         * m4/inttypes.m4: New file, from gettext-0.11.5.
126400         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
126401         * m4/isc-posix.m4: New file, from gettext-0.11.5.
126402         * m4/lcmessage.m4: New file, from gettext-0.11.5.
126403         * m4/lib-ld.m4: New file, from gettext-0.11.5.
126404         * m4/lib-link.m4: New file, from gettext-0.11.5.
126405         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
126406         * m4/progtest.m4: New file, from gettext-0.11.5.
126407         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
126408         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
126409         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
126411         Module localcharset.
126412         * m4/localcharset.m4: New file.
126414         Module hard-locale.
126415         * m4/hard-locale.m4: New file.
126417         Module mbswidth.
126418         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
126419         onceonly macros.
126420         * m4/mbrtowc.m4: Add comment.
126422         Module memcasecmp.
126423         * m4/memcasecmp.m4: New file.
126425         Module memcoll.
126426         * m4/memcoll.m4: New file.
126428         Module unicodeio.
126429         * m4/unicodeio.m4: New file.
126431         Module rpmatch.
126432         * m4/rpmatch.m4: New file.
126434         Module yesno.
126435         * m4/yesno.m4: New file.
126437         Module exitfail.
126438         * m4/exitfail.m4: New file.
126440         Module c-stack.
126441         * m4/c-stack.m4 (gl_C_STACK): New macro.
126442         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
126444         Module error.
126445         * m4/error.m4 (gl_ERROR): New macro.
126446         (jm_PREREQ_ERROR): Use onceonly macros.
126448         Module fatal.
126449         * m4/fatal.m4: New file.
126451         Module getloadavg.
126452         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
126453         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
126455         Module getpagesize.
126456         * m4/getpagesize.m4: New file.
126458         Module getusershell.
126459         * m4/getusershell.m4: New file.
126461         Module physmem.
126462         * m4/physmem.m4: New file.
126464         Module posixver.
126465         * m4/posixver.m4: New file.
126467         Module quotearg.
126468         * m4/quotearg.m4: New file.
126470         Module quote.
126471         * m4/quote.m4: New file.
126473         Module readutmp.
126474         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
126476         Module sig2str.
126477         * m4/sig2str.m4: New file.
126479         Other.
126480         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
126481         ulonglong.m4.
126482         * m4/intmax_t.m4: New file.
126483         * m4/d-type.m4: Indentation.
126484         * m4/jm-macros.m4: Update.
126485         * m4/prereq.m4 (jm_PREREQ): Update.
126486         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
126487         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
126488         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
126489         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
126490         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
126491         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
126492         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
126493         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
126494         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
126495         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
126496         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
126497         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
126498         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
126499         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
126500         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
126501         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
126502         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
126503         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
126504         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
126506 2002-12-24  Bruno Haible  <bruno@clisp.org>
126508         * MODULES.txt: Update according to m4/ changes.
126510         Module gettext.
126511         * config.rpath: New file, from gettext-0.11.5.
126513         * modules/*: New module descriptions.
126514         * gnulib-tool: New file.
126515         * MODULES.html.sh: New file.
126517 2002-12-21  Karl Berry  <karl@gnu.org>
126519         * doc/fdl.texi: update to version 1.2.
126521 2002-12-19  Karl Berry  <karl@gnu.org>
126523         * config/config.guess: update from prep.
126525 2002-12-18  Bruno Haible  <bruno@clisp.org>
126527         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
126528         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
126530 2002-12-17  Bruno Haible  <bruno@clisp.org>
126532         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
126533         stdlib.h, string.h.
126535 2002-12-17  Bruno Haible  <bruno@clisp.org>
126537         * lib/canon-host.c (strdup): Remove unused declaration.
126539         * lib/fsusage.c: Include full_read.h.
126540         (get_fs_usage): Use full_read instead of safe_read.
126542         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
126544 2002-12-12  Karl Berry  <karl@gnu.org>
126546         * config/config.guess: update from prep.
126548 2002-12-11  Bruno Haible  <bruno@clisp.org>
126550         * m4/setenv.m4: New file, from gettext-0.11.5.
126552 2002-12-11  Bruno Haible  <bruno@clisp.org>
126554         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
126555         not unsetenv().
126556         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
126557         modifications:
126559         2002-12-11  Bruno Haible  <bruno@clisp.org>
126561                 * setenv.c (alloca): Fall back to malloc.
126562                 (freea): New macro.
126563                 (setenv): Use freea() to free memory allocated with alloca().
126565         2002-11-13  Bruno Haible  <bruno@clisp.org>
126567                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
126568                 function declarations.
126569                 * unsetenv.c (unsetenv): Likewise.
126571         2002-03-04  Bruno Haible  <bruno@clisp.org>
126573                 Portability to AIX 4.3.3.
126574                 * unsetenv.c: New file, extracted from setenv.c.
126575                 * setenv.c: Move the unsetenv() function to unsetenv.c.
126577         2001-12-20  Bruno Haible  <bruno@clisp.org>
126579                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
126580                 use malloc instead. For SunOS 4.
126582         2001-12-11  Bruno Haible  <bruno@clisp.org>
126584                 * setenv.c: Declare alloca.
126585                 (compar_fn_t): New typedef.
126586                 (KNOWN_VALUE, STORE_VALUE): Use it.
126588         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
126589         setenv.h.
126591 2002-12-10  Paul Eggert  <eggert@twinsun.com>
126593         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
126594         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
126595         Choose values that are less likely to collide with system fnmatch
126596         options.
126597         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
126598         defined (e.g., a pure POSIX system).
126599         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
126600         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
126602 2002-12-06  Paul Eggert  <eggert@twinsun.com>
126604         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
126605         a pain in practice to deal with generated m4 files.  This change
126606         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
126608         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
126609         and jm-glibc-io.m4, as they are no longer a special case.
126610         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
126611         kludge and the auto-generation stuff.  Check only whether the
126612         functions are declared, not whether they exist, since older hosts
126613         that don't declare the functions can't use the optimization anyway.
126615 2002-12-06  Jim Meyering  <jim@meyering.net>
126617         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
126619         Merge in changes from libc's misc/error.c, in preparation
126620         for the merge of gnulib's changes back into libc.
126622         * lib/error.c (_): Define only if not already defined.
126623         Move definition to follow all #include directives.
126624         Include unlocked-io.h only if !_LIBC.
126625         [_LIBC]: Include <libio/libioP.h>.
126626         [USE_IN_LIBIO]: Include <libio/iolibio.h>
126627         (fflush): Tweak definition to use INTUSE.
126628         (putc): Define.
126630 2002-12-05  Paul Eggert  <eggert@twinsun.com>
126632         * lib/alloca.c [defined emacs]: Include "lisp.h".
126633         (xalloc_die) [defined emacs]: New macro.
126634         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
126635         [! defined emacs]: Include <xalloc.h>.
126636         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
126637         (pointer): Typedef to POINTER_TYPE *.
126638         (malloc): Remove decl; we now always use xmalloc.
126639         (alloca): Use old-style definition, since Emacs needs this.
126640         Check for arithmetic overflow when computing combined size.
126642 2002-12-04  Paul Eggert  <eggert@twinsun.com>
126644         Do not generate unlocked-io.h automatically, since it's easier to
126645         maintain it by hand.
126647         * lib/unlocked-io.h: New file, from GNU diffutils,
126648         but with proper copyright notice and attribution.
126649         * lib/gen-uio: Remove.
126650         * lib/Makefile.am: Add copyright notice.
126651         (libfetish_a_SOURCES): Add unlocked-io.h.
126652         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
126653         (DISTCLEANFILES, io_functions): Remove macros.
126654         (EXTRA_DIST): Remove gen_uio.
126655         (unlocked-io.h): Remove rule.
126657 2002-12-04  Jim Meyering  <jim@meyering.net>
126659         Reflect the fact that stat.c and lstat.c are no longer generated.
126660         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
126661         (DISTCLEANFILES): Likewise.
126662         (EXTRA_DIST): Likewise.
126663         (all_local): Don't depend on stat.c or lstat.c.
126664         (stat.c, lstat.c): Remove rules.
126665         (EXTRA_DIST): Remove xstat.in.
126667         * lib/xstat.in: Remove file.  Contents moved into stat.c.
126668         * lib/stat.c: New file.  Contents mostly from xstat.in.
126669         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
126670         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
126672         * lib/safe-read.c: Rework so that it may serve to define safe_write,
126673         too.
126674         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
126676 2002-12-03  Jim Meyering  <jim@meyering.net>
126678         * lib/safe-read.c, safe-write.c: Change variable names and comments,
126679         but not semantics, to minimize the differences between these two files.
126680         (safe_read): Change comment to mention SAFE_READ_ERROR.
126682         * lib/safe-read.c (IS_EINTR): Define.
126683         (safe_read): Use IS_EINTR in place of in-function cpp directives.
126685 2002-12-02  Jim Meyering  <jim@meyering.net>
126687         * lib/safe-read.c (EINTR): Define.
126688         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
126689         (INT_MAX): Provide fallback.
126690         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
126692         * lib/safe-read.h (SAFE_READ_ERROR): Define.
126694 2002-12-02  Bruno Haible  <bruno@clisp.org>
126696         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
126697         Define, taken from safe-read.c.
126698         (INT_MAX): Provide fallback.
126699         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
126700         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
126702         * lib/safe-read.c (EINTR): Remove definition.
126703         (safe_read): Don't use EINTR if it is absent.
126705 2002-12-01  Jim Meyering  <jim@meyering.net>
126707         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
126708         zero.
126709         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
126711 2002-11-27  Paul Eggert  <eggert@twinsun.com>
126713         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
126714         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
126715         with `if (! (value < limit)) abort ();', for readability.
126717 2002-11-26  Karl Berry  <karl@gnu.org>
126719         * lib/strdup.c: copy from libc again, with jim's ok.
126720         * lib/.cppi-disable: re-add strdup.c
126722 2002-11-25  Karl Berry  <karl@gnu.org>
126724         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
126725         instead of "strtol.c".
126727 2002-11-25  Karl Berry  <karl@gnu.org>
126729         * config/install-sh: update from automake for variable quoting, $0 in
126730         error msgs, etc.
126732         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
126733         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
126734         entry.
126736 2002-11-25  Jim Meyering  <jim@meyering.net>
126738         * lib/mktime.c: Sync from libc, now that it has the latest fix.
126740 2002-11-24  Karl Berry  <karl@gnu.org>
126742         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
126743         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
126745 2002-11-24  Jim Meyering  <jim@meyering.net>
126747         Update from coreutils:
126749         * lib/mktime.c: Merge in changes from libc.
126751         Avoid a link-time failure on some Linux systems.
126752         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
126753         (otherwise).
126754         (__mon_yday): Declare with the STATIC attribute.
126755         (__mktime_internal): Likewise.
126756         Based on a report from Greg Schafer.
126758 2002-11-23  Jim Meyering  <jim@meyering.net>
126760         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
126761         Use `unsigned', not `int', as type of index.
126763         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
126765         * lib/fsusage.c: Remove unneeded parentheses around operands of
126766         `defined'.
126768 2002-11-22  Paul Eggert  <eggert@twinsun.com>
126770         * lib/quotearg.h: Allow multiple inclusion by surrounding with
126771         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
126772         so that we can be included first.
126773         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
126774         * lib/quotearg.c: Include quotearg.h immediately after config.h.
126775         No need to include stddef.h or sys/types.h any more.
126776         Surround local include files with "", not "<>".
126777         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
126778         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
126779         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
126780         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
126781         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
126782         (ISPRINT): Remove; no longer needed now that we assume C89.
126784         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
126785         Preserve errno.
126787         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
126788         quotearg_char): Use SIZE_MAX rather than
126789         (size_t) -1 when we are talking about "infinity".
126791         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
126793 2002-11-22  Paul Eggert  <eggert@twinsun.com>
126795         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
126796         hint that one should use `if (! x) abort ();' rather than `assert
126797         (x);', and anyway it's one less thing to worry about configuring.
126798         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
126799         hash_rehash, hash_insert): Use abort rather than assert.
126801 2002-11-22  Bruno Haible  <bruno@clisp.org>
126803         * lib/safe-read.h: Assume C89. Add comments.
126804         (safe_read): Change return type to size_t.
126805         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
126806         byte counts > SSIZE_MAX correctly.
126807         * lib/safe-write.h: New file.
126808         * lib/safe-write.c: New file.
126809         * lib/full-read.h: New file.
126810         * lib/full-read.c: New file.
126811         * lib/full-write.h: Assume C89. Add comments.
126812         * lib/full-write.c: Include safe-write.h.
126813         (full_write): Rewritten to use safe_write.
126814         Suggested by Jim Meyering and Paul Eggert.
126816 2002-11-21  Jim Meyering  <jim@meyering.net>
126818         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
126820         Merge in changes from the coreutils.
126822         2002-09-25  Paul Eggert  <eggert@twinsun.com>
126823         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
126824         <stdint.h>.
126825         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
126826         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
126827         int.  Work more efficiently if X is the same width as uintmax_t.
126828         Do not compare X to -1, to avoid bogus compiler warning.
126829         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
126830         Don't assume that f_frsize and f_bsize are the same type.
126832         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
126833         warning on FreeBSD.
126835         * lib/makepath.c (make_path): Restore umask *before* creating the final
126836         component.
126837         (make_path): Minor reformatting.
126839         * lib/xmalloc.c: Adjust to work with new autoconf macros,
126840         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
126841         HAVE_MALLOC/HAVE_REALLOC.
126843         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
126844         dummy ones.  At least on GNU/Linux systems, `auto' means something
126845         else.
126846         From Michael Stone.
126848 2002-11-21  Bruno Haible  <bruno@clisp.org>
126850         Remove case insensitive option matching.
126851         * lib/argmatch.h (argcasematch): Remove declaration.
126852         (ARGCASEMATCH): Remove macro.
126853         (__xargmatch_internal): Remove case_sensitive argument.
126854         (XARGMATCH): Update.
126855         (XARGCASEMATCH): Remove macro.
126856         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
126857         case_sensitive argument.
126858         (argcasematch): Remove function.
126859         (__xargmatch_internal): Remove case_sensitive argument.
126860         (main): Use XARGMATCH instead of XARGCASEMATCH.
126862         * lib/xmalloc.c: Change compile-time error message. Add comment about
126863         required autoconf version.
126865 2002-11-20  Paul Eggert  <eggert@twinsun.com>
126867         Merge argmatch cleanups from Bison.  Assume C89.
126869         * lib/argmatch.c: Include config.h here, not in argmatch.h.
126870         Include stdlib.h, for EXIT_FAILURE.
126871         Always include <string.h>, since we assume C89.
126872         (EXIT_FAILURE): Remove pre-C89 bug workaround.
126873         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
126874         Include <stddef.h> instead, since it's all we need for size_t.
126875         (PARAMS): Remove.  All uses removed.
126876         (ARRAY_CARDINALITY): Do not bother to #undef.
126877         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
126878         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
126879         Remove unnecessary parentheses.
126880         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
126881         Insert necessary parentheses.
126882         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
126883         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
126885 2002-11-19  Bruno Haible  <bruno@clisp.org>
126887         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
126888         * lib/mbswidth.h: Include <stddef.h>, for size_t.
126890         * lib/mbswidth.h (PARAMS): Remove macro.
126891         (mbswidth, mbsnwidth): Use ANSI C function declarations.
126892         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
126894         * lib/gcd.h (PARAMS): Remove macro.
126895         (gcd): Use ANSI C function declarations.
126896         * lib/gcd.c (gcd): Likewise.
126898 2002-11-15  Bruno Haible  <bruno@clisp.org>
126900         * lib/strcspn.c: Include <stddef.h>.
126901         (strcspn): Use ANSI C function declaration. Change return type to
126902         size_t. Use NULL.
126903         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
126904         (strpbrk): Use NULL.
126905         * lib/strpbrk.h (PARAMS): Remove macro.
126906         (strpbrk): Use ANSI C function declaration.
126907         * lib/strstr.c: Don't include <sys/types.h>.
126908         * lib/strstr.h (PARAMS): Remove macro.
126909         (strstr): Use ANSI C function declarations.
126911 2002-11-14  Karl Berry  <karl@gnu.org>
126913         * config/mkinstalldirs: `do' on separate line, instead of
126914         `for var; do'.
126916 2002-11-06  Bruno Haible  <bruno@clisp.org>
126918         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
126919         * lib/gcd.c (gcd): Likewise.
126921 2002-11-05  Bruno Haible  <bruno@clisp.org>
126923         * lib/gcd.h: New file, from gettext-0.11.5.
126924         * lib/gcd.c: New file, from gettext-0.11.5.
126926 2002-11-05  Bruno Haible  <bruno@clisp.org>
126928         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
126929         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
126930         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
126931         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
126933         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
126934         <libintl.h>.
126935         * lib/makepath.c: Include gettext.h instead of <locale.h> and
126936         <libintl.h>.
126938         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
126939         * lib/human.c: Include gettext.h instead of <libintl.h>.
126940         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
126941         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
126942         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
126943         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
126944         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
126945         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
126946         (textdomain): Remove definition.
126947         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
126949         * lib/long-options.c: Remove include of <libintl.h> and definition of
126950         _.
126951         * lib/same.c: Remove include of <libintl.h> and definition of _.
126953 2002-11-04  Owen Taylor  <otaylor@redhat.com>
126955         * lib/config.charset: A few additions for Solaris.
126957 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
126959         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
126960         * lib/localcharset.c (locale_charset): Declare as extern "C".
126962 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
126964         * lib/config.charset: msdos in uk_UA uses CP1125.
126966 2002-11-04  Bruno Haible  <bruno@clisp.org>
126968         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
126969         * lib/strcase.h: New file, from GNU gettext-0.11.5.
126970         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
126971         * lib/strstr.h: New file, from GNU gettext-0.11.5.
126972         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
126974 2002-11-04  Bruno Haible  <bruno@clisp.org>
126976         * lib/localcharset.c (locale_charset): Don't return an empty string.
126978 2002-11-04  Bruno Haible  <bruno@clisp.org>
126980         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
126981         aliases.
126983 2002-11-04  Bruno Haible  <bruno@clisp.org>
126985         * lib/config.charset: Update for newest glibc. Add canonical names
126986         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
126988 2002-11-04  Bruno Haible  <bruno@clisp.org>
126990         * lib/config.charset: Add support for NetBSD.
126992 2002-11-04  Bruno Haible  <bruno@clisp.org>
126994         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
126996 2002-11-01  Bruno Haible  <bruno@clisp.org>
126998         * configure.in: Add AC_CONFIG_AUX_DIR call.
126999         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
127000         test/Makefile.
127001         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
127003 2002-09-28  Karl Berry  <karl@gnu.org>
127005         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
127006         installed automake until the next release, since changes have been
127007         made.
127009 2002-09-25  Karl Berry  <karl@gnu.org>
127011         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
127012         * lib/getopt*: copy from libc/posix.
127013         * lib/gettext.h: copy from gettext.
127014         * lib/.cppi-disable: add strdup.c, gettext.h.
127016 2002-09-25  Karl Berry  <karl@gnu.org>
127018         * config/srclist.txt: enable gettext.h check.
127019         * config/config.{guess,sub}: update from prep.
127020         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
127021                 from automake 1.6.3.
127022         See srclist*.
127024 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
127026         * regex.c (PATFETCH): Remove the translating fetch.
127027         (PATFETCH_RAW): Rename to PATFETCH.
127028         (set_image_of_range): New fun.
127029         (SET_RANGE_TABLE_WORK_AREA): Use it.
127030         (regex_compile): Don't translate the pattern chars so eagerly.
127031         Only do it when inserting an `exactn' bytecode or when handling
127032         a char-range.
127033         (mutually_exclusive_p): Avoid empty statement.
127035 2002-07-06  Jim Meyering  <meyering@lucent.com>
127037         * m4/README: Don't mention Makefile.am.in.
127038         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
127040 2002-07-01  Jim Meyering  <meyering@lucent.com>
127042         * lib/c-stack.c: Include sys/time.h.
127043         From Volker Borchert.
127045 2002-06-26  Paul Eggert  <eggert@twinsun.com>
127047         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
127049 2002-06-26  Paul Eggert  <eggert@twinsun.com>
127051         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
127052         New macro.  Use it uniformly instead of
127053         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
127054         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
127055         reported by Vin Shelton.
127057 2002-06-22  Paul Eggert  <eggert@twinsun.com>
127059         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
127060         Do not assume SA_SIGINFO behavior.
127061         Bug reported by Jim Meyering on NetBSD 1.5.2.
127063 2002-06-22  Jim Meyering  <meyering@lucent.com>
127065         * m4/c-stack.m4: New file, from diffutils-2.8.2.
127066         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
127068         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
127069         now that configure.ac uses AC_GNU_SOURCE.
127070         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
127071         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
127073         Update to latest tools.  Suggestions from Paul Eggert.
127074         * m4/stdbool.m4: New file, from diffutils-2.8.2.
127075         * m4/gnu-source.m4: Update from diffutils-2.8.2.
127076         * m4/fnmatch.m4: Likewise.
127077         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
127078         to AC_HEADER_STDBOOL
127080 2002-06-22  Jim Meyering  <meyering@lucent.com>
127082         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
127083         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
127085 2002-06-22  Jim Meyering  <meyering@lucent.com>
127087         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
127089         * lib/exitfail.c, exitfail.h: Likewise.
127090         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
127092         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
127093         of fnmatch.h.
127094         (EXTRA_DIST): Add fnmatch_loop.c.
127095         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
127097         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
127098         * lib/fnmatch.c: Update from diffutils-2.8.2.
127099         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
127100         * lib/fnmatch.h: Remove file.
127102 2002-06-21  Jim Meyering  <meyering@lucent.com>
127104         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
127105         * m4/mbrtowc.m4: Likewise.
127107         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
127108         * m4/mbswidth.m4: Reflect name change:
127109         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
127110         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
127112         * m4/lib-link.m4: Update from gettext-0.11.2.
127113         * m4/gettext.m4: Likewise.
127115         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
127116         From Alfred M. Szmidt.
127118 2002-06-18  Paul Eggert  <eggert@twinsun.com>
127120         * lib/file-type.h: Report an error if neither S_ISREG nor
127121         S_IFREG is defined, instead of using a test specific to glibc
127122         2.2.  This should be safe, since POSIX requires S_ISREG and
127123         Unix Version 7 had S_IFREG.  We don't need to check for
127124         <sys/types.h> since we don't use any symbols that it defines.
127126 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
127128         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
127129         $@-t, so that each temporary file name is unique and valid in the first
127130         8 characters, for operation under DOS.
127132 2002-06-15  Paul Eggert  <eggert@twinsun.com>
127134         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
127136 2002-06-15  Jim Meyering  <meyering@lucent.com>
127138         Work even with DJGPP 2.03, which lacks support for symlinks.
127139         From Richard Dawe.
127140         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
127141         is defined.
127142         * lib/lchown.c (S_ISLNK): Likewise.
127144 2002-06-15  Jim Meyering  <meyering@lucent.com>
127146         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
127147         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
127148         have been included before this file.
127150 2002-06-14  Jim Meyering  <meyering@lucent.com>
127152         * lib/file-type.h: Use the version from diffutils-2.8.2.
127153         * lib/file-type.c: Likewise.
127155 2002-06-07  Jim Meyering  <meyering@lucent.com>
127157         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
127158         They're needed at least for NetBSD 1.5.2.
127159         ($statxfs_includes): Include those same headers.
127160         ($statxfs_includes): Include sys/vfs.h if available.
127161         ($statxfs_includes): Likewise for sys/statvfs.h.
127162         Check for the following members in both structs statfs and statvfs:
127163         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
127165 2002-06-01  Jim Meyering  <meyering@lucent.com>
127167         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
127168         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
127170 2002-05-28  Jim Meyering  <meyering@lucent.com>
127172         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
127173         Reported by Volker Borchert.
127175 2002-05-27  Jim Meyering  <meyering@lucent.com>
127177         Fix a problem seen only on nonconforming systems whereby ls.c's
127178         use of localtime, and then of gettimeofday would cause trouble:
127179         the localtime call used to initialize rpl_gettimeofday's save
127180         mechanism would clobber ls's current local time information so
127181         that in any long listing the first file would always be listed
127182         with date 1970-01-01.  Analysis by Volker Borchert.
127184         * lib/gettimeofday.c (localtime): Undefine.
127185         (rpl_localtime): New function.
127187 2002-05-27  Jim Meyering  <meyering@lucent.com>
127189         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
127190         localtime.
127192         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
127193         use the replacement function; it wouldn't resolve at link time.
127194         Reported by Volker Borchert.
127196 2002-05-22  Jim Meyering  <meyering@lucent.com>
127198         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
127199         file-type.h.
127200         * lib/file-type.h: New file.
127201         * lib/file-type.c (file_type): New file/function.  Extracted from
127202         diffutils.
127204 2002-04-30  Jim Meyering  <meyering@lucent.com>
127206         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
127208 2002-04-29  Paul Eggert  <eggert@twinsun.com>
127210         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
127212 2002-04-29  Paul Eggert  <eggert@twinsun.com>
127214         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
127215         Do not check for alloca.h (no longer used) or stdbool.h (was never
127216         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
127218 2002-04-29  Paul Eggert  <eggert@twinsun.com>
127220         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
127222 2002-04-29  Jim Meyering  <meyering@lucent.com>
127224         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
127225         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
127226         Use AC_FUNC_STRNLEN here instead.
127228         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
127229         With autoconf-2.53a, it's part of AC_PROG_CC.
127231 2002-04-28  Paul Eggert  <eggert@twinsun.com>
127233         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
127234         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
127236 2002-04-28  Paul Eggert  <eggert@twinsun.com>
127238         * lib/sig2str.h, lib/sig2str.c: New files.
127239         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
127241 2002-04-28  Paul Eggert  <eggert@twinsun.com>
127243         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
127244         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
127245         of 127, since 64 is the largest conceivable number for ancient
127246         nonstandard hosts.
127247         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
127249 2002-04-28  Jim Meyering  <meyering@lucent.com>
127251         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
127253 2002-04-24  Jim Meyering  <meyering@lucent.com>
127255         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
127256         (jm_PREREQ): Use it.
127258         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
127259         mach/mach.h fcntl.h.
127260         Check for this function: setlocale.
127262 2002-04-24  Jim Meyering  <meyering@lucent.com>
127264         * lib/gettext.h: New file, from Gettext.
127265         * lib/Makefile.am (INCLUDES): Remove -I../intl.
127266         (libfetish_a_SOURCES): Add gettext.h.
127268 2002-04-16  Jim Meyering  <meyering@lucent.com>
127270         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
127271         ut_pid, ut_id, ut_exit.
127273 2002-04-16  Jim Meyering  <meyering@lucent.com>
127275         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
127276         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
127277         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
127279 2002-04-12  Jim Meyering  <meyering@lucent.com>
127281         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
127282         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
127283         existence of the getmntinfo function.  Needed for Darwin 5.3.
127285         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
127286         This is necessary at least on Darwin 5.3.
127288         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
127289         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
127290         strnlen.o in the library, and that makes some versions of ranlib
127291         object.
127293 2002-04-12  Jim Meyering  <meyering@lucent.com>
127295         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
127297 2002-04-09  Jim Meyering  <meyering@lucent.com>
127299         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
127300         to be more precise.  Rather than saying we're checking whether the
127301         function `works', say what we're testing.
127302         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
127303         Reported by Bruno Haible.
127305 2002-03-10  Jim Meyering  <meyering@lucent.com>
127307         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
127308         Suggestion from Santiago Vila.
127310 2002-03-08  Jim Meyering  <meyering@lucent.com>
127312         * lib/rename.c: Mention that this wrapper is needed also on
127313         mips-dec-ultrix4.4 systems.
127315 2002-03-02  Jim Meyering  <meyering@lucent.com>
127317         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
127318         not HAVE_CLOCK_SETTIME.
127320 2002-02-27  Paul Eggert  <eggert@twinsun.com>
127322         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
127323         Check for clock_settime.
127325 2002-02-27  Paul Eggert  <eggert@twinsun.com>
127327         * lib/nanosleep.h: Rename to....
127328         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
127330         * lib/gettime.c: New file.
127331         * lib/settime.c: New file.
127332         * lib/stime.c: Remove.
127334         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
127335         timespec.h.  Remove nanosleep.h.
127337 2002-02-25  Paul Eggert  <eggert@twinsun.com>
127339         * m4/acl.m4: New file.
127340         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
127341         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
127343 2002-02-25  Paul Eggert  <eggert@twinsun.com>
127345         * lib/acl.c, lib/acl.h: New files.
127346         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
127348 2002-02-24  Jim Meyering  <meyering@lucent.com>
127350         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
127351         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
127352         cause trouble.  Reported by Nelson Beebe.
127354 2002-02-23  Paul Eggert  <eggert@twinsun.com>
127356         * lib/path-concat.c (xpath_concat): Reorder code to pacify
127357         compilers that don't know that xalloc_die never returns.
127359 2002-02-20  Jim Meyering  <meyering@lucent.com>
127361         * lib/getdate.c: Regenerate using bison-1.33.
127363 2002-02-17  Jim Meyering  <meyering@lucent.com>
127365         * config/config.guess (main): Don't use `head -1'; it's no longer
127366         portable. Use `sed 1q' instead.
127368 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
127370         * m4/codeset.m4: Upgrade to gettext-0.11.
127371         * m4/gettext.m4: Upgrade to gettext-0.11.
127372         * m4/glibc21.m4: Upgrade to gettext-0.11.
127373         * m4/iconv.m4: Upgrade to gettext-0.11.
127374         * m4/isc-posix.m4: Upgrade to gettext-0.11.
127375         * m4/lcmessage.m4: Upgrade to gettext-0.11.
127376         * m4/lib-ld.m4: New file, from gettext-0.11.
127377         * m4/lib-link.m4: New file, from gettext-0.11.
127378         * m4/lib-prefix.m4: New file, from gettext-0.11.
127379         * m4/progtest.m4: Upgrade to gettext-0.11.
127381 2002-02-15  Paul Eggert  <eggert@twinsun.com>
127383         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
127384         (jm_PREREQ): Use it.
127386 2002-02-15  Paul Eggert  <eggert@twinsun.com>
127388         * lib/posixver.c, lib/posixver.h: New files.
127389         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
127391 2002-02-02  Paul Eggert  <eggert@twinsun.com>
127392             Bruno Haible  <bruno@clisp.org>
127394         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
127395         (fwrite_success_callback): New declaration.
127396         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
127397         print_unicode_char. Call failure callback instead of error.
127398         (fwrite_success_callback): New function.
127399         (exit_failure_callback): New function.
127400         (fallback_failure_callback): New function.
127401         (print_unicode_char): Call unicode_to_mb.
127403 2002-01-26  Jim Meyering  <meyering@lucent.com>
127405         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
127406         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
127408 2002-01-26  Jim Meyering  <meyering@lucent.com>
127410         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
127412 2002-01-22  Paul Eggert  <eggert@twinsun.com>
127414         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
127416 2002-01-22  Jim Meyering  <meyering@lucent.com>
127418         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
127419         Otherwise, some versions of automake would omit the rule that makes
127420         Makefile from Makefile.in.
127422 2002-01-21  Paul Eggert  <eggert@twinsun.com>
127424         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
127425         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
127426         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
127427         (memcoll): Set errno to zero if there is no error.
127429         * lib/quotearg.c (quotearg_buffer_restyled):
127430         Fix bug with quoting buffers containing NUL when backslashing escapes.
127431         This bug was exposed by the other changes in this patch.
127432         (quotearg_n_options): New arg ARGSIZE.
127433         All callers changed.
127434         (quoting_options_from_style): New function.
127435         (quotearg_n_style): Use it.
127436         (quotearg_n_style_mem): New function.
127438         * lib/quotearg.h (quotearg_n_style_mem): New function.
127440 2002-01-19  Jim Meyering  <meyering@lucent.com>
127442         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
127443         Remove useless quotes: DF_PROG="df".
127444         * m4/strnlen.m4: New file.
127446 2002-01-16  Paul Eggert  <eggert@twinsun.com>
127448         * lib/backupfile.c (ISDIGIT): Comment fix.
127449         * lib/getdate.y (ISDIGIT): Likewise.
127450         * lib/posixtm.c (ISDIGIT, year): Likewise.
127451         * lib/strverscmp.c (ISDIGIT): Likewise.
127452         * lib/userspec.c (ISDIGIT): Likewise.
127454 2002-01-16  Jim Meyering  <meyering@lucent.com>
127456         * lib/getdate.y: Add three semicolons, each just before a closing
127457         brace. Bison (as of version 1.31) no longer papers over that mistake.
127459 2002-01-05  Jim Meyering  <meyering@lucent.com>
127461         * lib/version-etc.c (version_etc_copyright): Update copyright year.
127463 2001-12-19  Paul Eggert  <eggert@twinsun.com>
127465         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
127466         not silently exit merely because the output buffer happens to
127467         have nothing pending.
127469 2001-12-18  Paul Eggert  <eggert@twinsun.com>
127471         See the big note in ../ChangeLog.
127472         * lib/human.c (suffixes): Prefer K to k for 1024.
127473         (generate_suffix_backwards): New function.
127474         (human_readable_inexact): Use it.
127475         * lib/xstrtol.c (__xstrtol): If there is no number but there
127476         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
127477         Accept 'K' as well as 'k'.
127479 2001-12-15  Jim Meyering  <meyering@lucent.com>
127481         * lib/regex.h (__restrict_arr): Update from libc.
127483         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
127484         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
127485         (STREQ): Define.
127487 2001-12-14  Jim Meyering  <meyering@lucent.com>
127489         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
127490         Suggestion from Bruno Haible.
127492 2001-12-10  Jim Meyering  <meyering@lucent.com>
127494         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
127495         xrealloc, Instead, include "xalloc.h".
127496         (initbuffer): Don't cast xmalloc return value to char*.
127497         (readline): Reword comment.
127498         Don't cast xrealloc return value to char*
127499         Return NULL, not 0.
127501 2001-12-09  Jim Meyering  <meyering@lucent.com>
127503         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
127504         about `signed and unsigned type in conditional expression'.
127505         * lib/posixtm.c (posix_time_parse): Likewise.
127507         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
127509         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
127510         to avoid a pedantic warning.
127512         * lib/getstr.c: Don't include assert.h.
127513         (getstr): Remove warning-evoking assertions.
127514         Return -1 if offset parameter is out of bounds.
127515         Change the type of a local from int to size_t.
127517         * lib/strftime.c (my_strftime_localtime_r): Include this function
127518         definition in the `#if ! HAVE_TM_GMTOFF' block.
127520         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
127521         Include xalloc.h instead.
127523 2001-12-02  Jim Meyering  <meyering@lucent.com>
127525         * lib/tempname.c: Don't declare getenv, thus reverting the change of
127526         2001-11-18.  It's no longer necessary, now that stdlib.h is always
127527         included.
127529         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
127530         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
127532 2001-11-30  Akim Demaille  <akim@epita.fr>
127534         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
127535         before being defined.
127537 2001-11-27  Paul Eggert  <eggert@twinsun.com>
127539         * lib/quotearg.h (quotearg_n, quotearg_n_style):
127540         First arg is int, not unsigned.
127541         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
127542         (SIZE_MAX, UINT_MAX): New macros.
127543         (quotearg_n_options): Abort if N is negative.
127544         Avoid overflow check on hosts where size_t is 64 bits and int
127545         is 32 bits, as overflow is impossible there.
127546         Fix off-by-one typo that caused unnecessary reallocation.
127548 2001-11-27  Jim Meyering  <meyering@lucent.com>
127550         * lib/tempname.c: Merge with version from libc.
127551         * lib/regex.c: Likewise.
127553         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
127554         systems for which STDC_HEADERS is 0, it was not included, resulting in
127555         a warning about an integer-to-pointer conversion problem with getenv.
127556         Reported by Volker Borchert.
127558 2001-11-26  Jim Meyering  <meyering@lucent.com>
127560         * lib/gtod.h: Remove file.
127561         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
127562         * lib/gettimeofday.c: Don't include gtod.h.
127563         (GTOD_init): Remove function.
127564         (rpl_gettimeofday): Do its job here instead, rather than aborting.
127565         Suggestion from Volker Borchert.
127567 2001-11-23  Jim Meyering  <meyering@lucent.com>
127569         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
127570         it.
127571         * lib/hash.c (struct hash_table): Define it here instead.
127573 2001-11-22  Jim Meyering  <meyering@lucent.com>
127575         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
127577 2001-11-20  Jim Meyering  <meyering@lucent.com>
127579         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
127580         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
127582 2001-11-19  Jim Meyering  <meyering@lucent.com>
127584         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
127585         directory.  Use "conftestXXXXXX" as the template.
127586         Suggestion from Paul Eggert.
127588         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
127589         immediately, so the test doesn't mistakenly hit the max-open-files
127590         limit.
127592 2001-11-18  Paul Eggert  <eggert@twinsun.com>
127594         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
127595         (TEMPORARIES): New macro.
127596         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
127597         removes an artificial limitation (e.g. HP-UX 10.20, where
127598         TMP_MAX is 17576).
127600 2001-11-18  Jim Meyering  <meyering@lucent.com>
127602         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
127604 2001-11-18  Jim Meyering  <meyering@lucent.com>
127606         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
127607         on SunOS 4.
127609         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
127610         files will be created before anything else.
127612 2001-11-17  Paul Eggert  <eggert@twinsun.com>
127614         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
127615         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
127617 2001-11-17  Jim Meyering  <meyering@lucent.com>
127619         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
127620         Prompted by a report from Bob Proulx.
127622         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
127623         Instead, require UTILS_FUNC_MKSTEMP.
127625 2001-11-17  Jim Meyering  <meyering@lucent.com>
127627         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
127628         Now, that's done as part of AC_FUNC_STRTOD.
127630 2001-11-17  Jim Meyering  <meyering@lucent.com>
127632         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
127633         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
127634         rather than group writable.  Patch by Juan F. Codagnone.
127636         * lib/readtokens.c: Remove explicit declarations of xmalloc and
127637         xrealloc, Instead, include "xalloc.h".
127639         * lib/mountlist.c: Include unlocked-io.h after all system headers.
127640         Remove explicit declarations of xmalloc, xrealloc,
127641         and xstrdup.  Instead, include "xalloc.h".
127643         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
127644         unlocked-io.h.
127645         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
127646         Likewise.
127647         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
127649         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
127650         Reported by Padraig Brady.
127652         * lib/mkstemp.c: #undef mkstemp.
127653         Include config.h.
127654         (rpl_mkstemp): Rename from mkstemp.
127655         Protoize.
127657 2001-11-16  Jim Meyering  <meyering@lucent.com>
127659         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
127660         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
127661         determine the amount of total physical memory, use pstat_getstatic.
127662         HPUX-11 doesn't define _SC_PHYS_PAGES.
127663         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
127664         If sysconf couldn't be used to determine the amount of available
127665         physical memory, use both pstat_getstatic and pstat_getdynamic.
127666         Based on a patch from Bob Proulx.
127668 2001-11-10  Jim Meyering  <meyering@lucent.com>
127670         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
127671         (jm_PREREQ): Use it.
127673 2001-11-09  Jim Meyering  <meyering@lucent.com>
127675         * m4/jm-macros.m4: Require autoconf-2.52f.
127676         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
127677         Use these AC_-prefixed names, not the AM_-prefixed ones.
127679         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
127681 2001-11-05  Jim Meyering  <meyering@lucent.com>
127683         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
127685 2001-11-04  Jim Meyering  <meyering@lucent.com>
127687         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
127688         $DEFS.
127690 2001-11-03  Jim Meyering  <meyering@lucent.com>
127692         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
127693         of AC_DEFUN.
127695         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
127696         know the name of the variable in the macro definition.
127698 2001-11-03  Jim Meyering  <meyering@lucent.com>
127700         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
127701         in argmatch_to_argument call.
127703         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
127704         argument.
127706         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
127707         e.g., a fault due to an attempt to free a NULL pointer.
127709 2001-11-01  Jim Meyering  <meyering@lucent.com>
127711         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
127712         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
127714 2001-11-01  Jim Meyering  <meyering@lucent.com>
127716         * lib/dirfd.c, lib/dirfd.h: New files.
127717         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
127719         * lib/hash.c (hash_print) [TESTING]: Clean up.
127721 2001-10-22  Paul Eggert  <eggert@twinsun.com>
127723         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
127724         to avoid a warning if -Wall.
127726 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
127728         * README: New file
127729         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
127730         (per RMS's instructions, this is now the canonical source)
127731         * lgpl/, gpl/: New directories.
127733 2001-10-21  Paul Eggert  <eggert@twinsun.com>
127735         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
127737 2001-10-21  Jim Meyering  <meyering@lucent.com>
127739         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
127740         this code would end up calling gettext even in packages built
127741         with --disable-nls.
127742         * lib/getopt.c (_): Likewise.
127743         * lib/regex.c (_): Likewise.
127745 2001-10-20  Paul Eggert  <eggert@twinsun.com>
127747         * m4/error.m4 (jm_PREREQ_ERROR):
127748         Do not invoke AC_CHECK_FUNCS with strerror_r, as
127749         AC_FUNC_STRERROR_R does that.
127750         Check for strerror declaration.
127752         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
127753         are supposed to have them these days.
127754         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
127755         Merge changes from latest Autoconf CVS.
127756         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
127757         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
127758         POSIX decided to standardize on the int flavor of strerror_r.
127760 2001-10-20  Paul Eggert  <eggert@twinsun.com>
127762         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
127763         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
127764         Use strerror_r that is only a macro, even if it is not a function.
127765         (strerror): Check for HAVE_DECL_STRERROR before declaring.
127766         (private_strerror): Use prototypes, not old-style function definition.
127767         (print_errno_message): New function.
127768         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
127769         char*-flavored one.
127770         (error_tail, error, error_at_line): Use it.
127772 2001-10-11  Jim Meyering  <meyering@lucent.com>
127774         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
127775         and quote_n (1, ... to avoid clobbering a buffer.
127777 2001-10-05  Jim Meyering  <meyering@lucent.com>
127779         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
127780         hash-pjw.h.
127781         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
127782         * lib/hash-pjw.h: New file.
127784 2001-09-30  Jim Meyering  <meyering@lucent.com>
127786         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
127787         `struct fsstat' has the `f_fstypename' member.
127788         Use that to define FS_TYPE, which is now used to make
127789         the getfsstat link test tighter.
127791 2001-09-30  Jim Meyering  <meyering@lucent.com>
127793         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
127794         Include <sys/ucred.h>, for Apple Darwin.
127795         Include sys/mount.h and sys/fs_types.h only if available.
127796         (FS_TYPE): Define.
127797         (read_filesystem_list): Use FS_TYPE.
127799 2001-09-29  Paul Eggert  <eggert@twinsun.com>
127801         * lib/exclude.c (excluded_filename): 0 -> false, since it's
127802         a boolean context.
127804 2001-09-29  Jim Meyering  <meyering@lucent.com>
127806         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
127807         [one-argument getmntent function]): Include stdio.h before mntent.h.
127808         SunOS 4.1.x needs it for the declaration of `FILE'.
127809         Patch by Volker Borchert.
127811         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
127812         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
127813         sys/fs_types.h, and make the link-test for getfsstat guard #include
127814         directives with appropriate #if HAVE_*_H tests so that we can
127815         detect getfsstat on Apple Darwin1.3.7 systems.
127816         Reported by Nelson Beebe.
127817         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
127819 2001-09-28  Paul Eggert  <eggert@twinsun.com>
127821         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
127822         #defines strtoimax.  Also treat the other strto* functions
127823         like strtoimax.
127825         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
127826         Check for strtoul and strtoumax,
127827         as those declarations are made even in the signed case.
127828         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
127829         Likewise, for strtol and strtoimax.
127831 2001-09-28  Paul Eggert  <eggert@twinsun.com>
127833         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
127834         #defines strtoimax.  Also treat the other strto* functions
127835         like strtoimax.
127837         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
127838         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
127839         (strtoimax, strtoumax): Do not declare if already defined as a macro.
127841 2001-09-26  Jim Meyering  <meyering@lucent.com>
127843         Most macros in unlocked-io.h had the wrong number of arguments.
127844         * lib/gen-uio: New script.
127845         (USE_UNLOCKED_IO): Define to 1 if not already defined.
127846         * lib/unlocked-io.hin: Remove file.
127847         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
127848         rather than trying to embed it here.
127849         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
127850         Reported by Padraig Brady.
127852 2001-09-25  Volker Borchert  <bt@teknon.de>
127854         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
127855         `result'.
127857 2001-09-24  Jim Meyering  <meyering@lucent.com>
127859         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
127861 2001-09-23  Jim Meyering  <meyering@lucent.com>
127863         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
127864         instead of the mere test for existence of mntent.h.  The latter
127865         would get a false-positive on AIX 3.4 systems.
127866         In the outer getmntent if-block, don't die if neither of the getmntent
127867         tests succeeds.  Instead, just fall through and continue with the
127868         remaining tests.
127870 2001-09-23  Jim Meyering  <meyering@lucent.com>
127872         * lib/mountlist.c: Remove useless parentheses in #if directives.
127873         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
127874         the deprecated MOUNTED symbol is no longer defined in mntent.h.
127876 2001-09-22  Jim Meyering  <meyering@lucent.com>
127878         * m4/gettext.m4: New file.  From gettext.
127879         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
127880         * m4/progtest.m4: Likewise
127881         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
127882         * m4/glibc21.m4: Likewise.
127884         * m4/libintl.m4: Remove.  No longer used.
127886 2001-09-22  Jim Meyering  <meyering@lucent.com>
127888         * lib/localcharset.c: Update from latest gettext.
127889         * lib/config.charset: Likewise.
127891 2001-09-20  Jim Meyering  <meyering@lucent.com>
127893         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
127894         strtoimax.
127895         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
127896         strtoumax.
127898 2001-09-20  Jim Meyering  <meyering@lucent.com>
127900         * lib/xstrtol.c (strtoimax): Guard declaration with
127901         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
127902         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
127903         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
127904         (strtoumax): Likewise, for completeness (it wasn't necessary).
127906 2001-09-17  Paul Eggert  <eggert@twinsun.com>
127908         * lib/strtoimax.c (HAVE_LONG_LONG):
127909         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
127910         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
127911         to work around bug in IBM C compiler.
127913 2001-09-17  Jim Meyering  <meyering@lucent.com>
127915         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
127916         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
127917         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
127918         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
127919         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
127920         whenever the right hand side need not be expanded by the shell.
127922 2001-09-16  Paul Eggert  <eggert@twinsun.com>
127924         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
127925         library.  It's not correct, as some older glibcs are buggy.
127926         fnmatch wasn't fixed until glibc 2.2.
127928         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
127929         special shell magic here.
127931 2001-09-16  Jim Meyering  <meyering@lucent.com>
127933         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
127934         * m4/jm-macros.m4: Require it.
127936 2001-09-16  Jim Meyering  <meyering@lucent.com>
127938         * lib/mkdir.c: New file.
127940 2001-09-15  Jim Meyering  <meyering@lucent.com>
127942         * m4/jm-macros.m4: Check for help2man.
127944 2001-09-11  Jim Meyering  <meyering@lucent.com>
127946         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
127947         The body, by Paul Eggert, was moved here from configure.in.
127948         * m4/jm-macros.m4: Require UTILS_HOST_OS.
127950 2001-09-04  Paul Eggert  <eggert@twinsun.com>
127952         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
127953         (jm_PREREQ): Use it.
127955 2001-09-04  Paul Eggert  <eggert@twinsun.com>
127957         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
127958         Use ssize_t, not int, to store result of readlink.
127959         Check for ssize_t overflow as well as size_t overflow,
127960         as POSIX says the result of readlink is implementation-defined
127961         when ssize_t overflows.
127962         Remove unnecessary cast to char*.
127963         Use free+malloc instead of realloc, as the storage doesn't need
127964         to be preserved and it's clearer and can be more efficient that way.
127965         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
127966         * lib/xreadlink.h (xreadlink): Update prototype.
127968 2001-09-04  Paul Eggert  <eggert@twinsun.com>
127970         * lib/xgetcwd.c: Revert some of the previous change; intead,
127971         fix the HAVE_GETCWD_NULL code to behave more like the
127972         !HAVE_GETCWD_NULL code used to.
127974         Include "xalloc.h".
127975         (xgetcwd): Do not return NULL when memory is exhausted; instead,
127976         invoke xalloc_die.
127978 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127980         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
127981         sys/param.h, as pathmax.h includes them.
127983 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127985         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
127986         (jm_PREREQ_XGETCWD): New macro.
127988         * m4/getcwd.m4: New file.
127990 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127992         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
127993         like the HAVE_GETCWD_NULL code.
127994         Include pathmax.h if not HAVE_GETCWD.
127995         Do not include xalloc.h.
127996         (INITIAL_BUFFER_SIZE): New symbol.
127997         Do not use xmalloc / xrealloc, since the caller is responsible for
127998         handling errors.  Preserve errno around `free' during failure.
127999         Do not overrun buffer when using getwd.
128001 2001-09-03  Paul Eggert  <eggert@twinsun.com>
128003         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
128004         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
128005         getcwd (NULL, 0).
128007 2001-09-03  Paul Eggert  <eggert@twinsun.com>
128009         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
128010         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
128011         spotted by Jim Meyering.
128013 2001-09-03  Jim Meyering  <meyering@lucent.com>
128015         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
128016         failure.
128018 2001-09-02  Jim Meyering  <meyering@lucent.com>
128020         * lib/error.c: Update from GNU libc.
128022 2001-09-01  Jim Meyering  <meyering@lucent.com>
128024         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
128025         Used by df.
128027 2001-09-01  Jim Meyering  <meyering@lucent.com>
128029         * lib/xreadlink.c: New file.
128030         * lib/xreadlink.h: New file.
128031         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
128032         xreadlink.h.
128034         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
128035         doesn't conflict with sparc Solaris 7's definition in
128036         /usr/include/sys/int_types.h.
128038         * lib/exclude.c: Use `""', not `<>' to #include non-system header
128039         files.
128040         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
128041         and strncasecmp as r-values.  Unixware didn't have declarations.
128043 2001-08-31  Paul Eggert  <eggert@twinsun.com>
128045         * lib/xstrtol.h: Add copyright notice.
128046         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
128047         LONGINT_INVALID_SUFFIX_CHAR.
128049 2001-08-31  Paul Eggert  <eggert@twinsun.com>
128051         * lib/xstrtol.c (strtoimax): New decl.
128053 2001-08-31  Paul Eggert  <eggert@twinsun.com>
128055         * lib/xgetcwd.c: Don't include pathmax.h.
128056         Include stdlib.h and unistd.h if available.
128057         Include xalloc.h.
128058         (xmalloc, xstrdup, free): Remove decls.
128059         (xgetcwd): Don't assume sizes fit in unsigned.
128060         Check for overflow when computing sizes.
128061         Simplify reallocation code.
128063 2001-08-31  Paul Eggert  <eggert@twinsun.com>
128065         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
128066         a directory's st_size can have an arbitrary value, so the old
128067         usage could waste an arbitrary amount of memory.  All uses
128068         changed.
128069         * lib/savedir.h: Update prototype.
128071 2001-08-31  Paul Eggert  <eggert@twinsun.com>
128073         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
128075         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
128076         old strtoimax.c.
128078         Also, make the following further changes to make this file's
128079         configuration more similar to that of strtol.c:
128080         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
128081         (strtoumax, uintmax_t, strtoull, strtol): Remove.
128082         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
128083         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
128084         changed to signed values.
128086         And make the following changes as well:
128087         Fix copyright notice, as 1999 was missing.
128088         (verify): New macro.
128089         (strtoimax): Check sizes at compile-time, not run-time.
128090         Prefer strtol to strtoll if both work.
128091         (main): Remove; it was not that useful and was a pain to maintain.
128093         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
128095 2001-08-31  Jim Meyering  <meyering@lucent.com>
128097         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
128098         Use an initial, malloc'd, buffer of length 128 rather than
128099         a statically allocated one of length 1024.
128101 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128103         Simplify code, partly by assuming autoconf 2.52 semantics.
128105         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
128107         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
128108         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
128109         All uses removed.
128110         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
128111         Move AC_REQUIRE to next-to-top level, to avoid confusion.
128112         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
128113         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
128114         jm_AC_HEADER_INTTYPES_H.
128115         * m4/jm-macros.m4 (jm_MACROS): Likewise.
128117         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
128119         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
128120         Quote first arg of AC_DEFUN.
128121         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
128122         since they are needed to parse the include file even if we need
128123         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
128124         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
128125         but with opposite signedness.
128127 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128129         Merge 'exclude' changes from tar 1.13.22.
128130         This fixes one or two unlikely storage allocation overflow bugs,
128131         but doesn't change user-visible behavior otherwise.
128133 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128135         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
128136         (jm_PREREQ_EXCLUDE): New macro.
128138 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128140         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
128141         tm to be declared.
128143 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128145         * lib/hash.c: Remove '2001' from copyright notice.
128147 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128149         * lib/full-write.h: New file.
128150         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
128151         * lib/full-write.c: Correct credits, as cccp.c no longer
128152         exists and anyway it was so heavily changed from the old cccp
128153         code as to be unrecognizable.  Include full-write.h.
128154         (full_write): Return size_t, with short writes meaning failure.
128155         All callers changed.  This fixes a bug with large buffers
128156         on 64-bit hosts.
128157         * lib/utime.c: Include full-write.h.
128159 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128161         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
128162         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
128163         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
128164         Include if available.
128165         (<xalloc.h>): Include
128166         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
128167         (verify): New macro.  Use it to verify that EXCLUDE macros do not
128168         collide with FNM macros.
128169         (struct patopts): New struct.
128170         (struct exclude): Use it, as exclude patterns now come with options.
128171         (new_exclude): Support above changes.
128172         (new_exclude, add_exclude_file):
128173         Initial size must now be a power of two to simplify overflow checking.
128174         (free_exclude, fnmatch_no_wildcards): New function.
128175         (excluded_filename): No longer requires options arg, as the options
128176         are determined by add_exclude.  Now returns bool, not int.
128177         (excluded_filename, add_exclude):
128178         Add support for the fancy new exclusion options.
128179         (add_exclude, add_exclude_file): Now takes int options arg.
128180         Check for arithmetic overflow when computing sizes.
128181         (add_exclude_file): xrealloc might modify errno, so don't
128182         realloc until after errno might be used.
128184         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
128185         New macros.
128186         (free_exclude): New decl.
128187         (add_exclude, add_exclude_file): Now takes int options arg.
128188         (excluded_filename): No longer requires options arg, as the options
128189         are determined by add_exclude.  Now returns bool, not int.
128191 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128193         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
128195 2001-08-27  Jim Meyering  <meyering@lucent.com>
128197         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
128199         * lib/version-etc.c (N_): Remove definition.
128200         Revert most of last change.
128201         Instead, simply don't mark the `Copyright...' string for translation.
128202         Based on advice from Paul Eggert.
128204         * lib/strtoxmax.c: Tweak comment.
128206 2001-08-26  Jim Meyering  <meyering@lucent.com>
128208         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
128210         * m4/xstrtoimax.m4: New file.
128211         * m4/xstrtoumax.m4: Add comments explaining why we
128212         AC_REPLACE_FUNCS(strtol).
128214 2001-08-26  Jim Meyering  <meyering@lucent.com>
128216         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
128217         of copyright with `%s' so translators don't get an untranslated
128218         message in 2002.
128219         (COPYRIGHT_YEAR): Define.
128220         (version_etc): Use fprintf rather than fputs.
128221         Suggestion from Ulrich Drepper.
128223         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
128225         * lib/strtoll.c: New file, from GNU libc.
128226         * lib/xstrtoimax.c: New file.
128228         * lib/xstrtol.h: Add xstrtoimax.
128229         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
128230         * lib/strtoimax.c: New file.  Likewise, but first define
128231         STRTOUXMAX_SIGNED.
128233         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
128234         ...
128235         * lib/strtoxmax.c: ... then renamed to this.
128237 2001-08-18  Paul Eggert  <eggert@twinsun.com>
128239         * m4/inttypes.m4: Add AC_PREREQ(2.13).
128240         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
128241         (jm_AC_TYPE_INTMAX_T): New macro.
128242         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
128244         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
128246         * m4/longlong.m4: Renamed from ulonglong.m4.
128247         * m4/inttypes.m4: Renamed from inttypes_h.m4.
128248         * m4/uintmax_t.m4: Removed.
128250 2001-08-13  Paul Eggert  <eggert@twinsun.com>
128252         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
128253         Port to Solaris 8, where 'sed' requires a space after the 'r'
128254         command, and where sh dislikes "$/".  Clean up the spacing a bit.
128255         Redirect output to $tmp just once.
128257 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
128259         * lib/addext.c (<errno.h>): Include.
128260         (errno): Declare if not defined.
128261         (addext): Work correctly when pathconf returns -1 and leaves
128262         errno alone because there is no limit.  Also, work even if
128263         pathconf returns a value greater than SIZE_MAX.
128265 2001-08-12  Jim Meyering  <meyering@lucent.com>
128267         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
128268         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
128269         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
128270         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
128271         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
128272         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
128273         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
128274         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
128275         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
128276         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
128277         utime.m4, utimes.m4, xstrtoumax.m4:
128278         Quote the first argument in each use of AC_DEFUN.
128280 2001-08-12  Jim Meyering  <meyering@lucent.com>
128282         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
128283         Simply `return getcwd (NULL, 0);'.
128284         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
128285         Use 1300 as initial value for length, not PATH_MAX.
128287         * lib/pathmax.h: Clean up cpp syntax.
128289 2001-08-12  Jim Meyering  <meyering@lucent.com>
128291         * lib/gettimeofday.c: New file.
128292         * lib/gtod.h: New file.
128293         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
128295 2001-08-05  Jim Meyering  <meyering@lucent.com>
128297         * m4/jm-macros.m4: Require autoconf-2.52.
128299 2001-08-04  Jim Meyering  <meyering@lucent.com>
128301         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
128302         stmt, to get in sync with glibc.
128304 2001-08-03  Paul Eggert  <eggert@twinsun.com>
128306         The following changes are from gettext 0.10.39 as maintained by
128307         Bruno Haible.
128309         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
128310         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
128311         with inverted sense.  All uses changed.
128313         * lib/mbswidth.c: Don't include <limits.h>.
128314         Include <stdlib.h> and <string.h> unconditionally.
128315         (iswcntrl, mbsinit, ISCNTRL): New macros.
128316         (mbsnwidth): Use K&R style function declarations.
128317         Don't bother checking for MB_LEN_MAX == 1, since the compiler
128318         can optimize it when MB_CUR_MAX == 1.
128319         The width of control characters is zero, not 1.
128321 2001-08-03  Paul Eggert  <eggert@twinsun.com>
128323         The following changes are from gettext 0.10.39 as maintained by
128324         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
128326         * m4/codeset.m4: Upgrade to serial AM1.
128327         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
128328         all uses changed.  Quote first arg of AC_DEFUN.
128329         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
128331         * m4/iconv.m4: Upgrade to serial AM2.
128332         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
128333         Add --with-libconv-prefix.
128334         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
128335         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
128336         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
128337         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
128338         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
128340         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
128341         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
128342         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
128343         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
128344         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
128345         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
128346         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
128347         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
128348         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
128350         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
128351         string.h any more.
128353         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
128354         not the default value.
128356         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
128357         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
128358         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
128359         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
128360         Also check for iswcntrl, used for wcwidth fallback.
128361         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
128362         to Autoconf 2.13.
128364 2001-08-03  Jim Meyering  <meyering@lucent.com>
128366         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
128367         as it was in the original.  Reported by Paul Eggert.
128369 2001-07-16  Jim Meyering  <meyering@lucent.com>
128371         * m4/gettimeofday.m4: New file.
128372         Prompted by a report from Bernhard Baehr.
128374 2001-07-15  Jim Meyering  <meyering@lucent.com>
128376         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
128377         stuff. Now it's in ../Makefile.cfg.
128379 2001-07-15  Jim Meyering  <meyering@lucent.com>
128381         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
128382         (BUILT_SOURCES): Add unlocked-io.h.
128383         (io_functions): Define.
128384         (unlocked-io.h): New rule.
128385         (DISTCLEANFILES): Add unlocked-io.h.
128386         (all-local): Depend on unlocked-io.h, to ensure it is created.
128388         * lib/unlocked-io.hin: New file
128390         * lib/regex.c: Update from glibc.
128392 2001-07-05  Jim Meyering  <meyering@lucent.com>
128394         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
128395         recommendation.
128396         (libfetish_a_SOURCES): Put all .h files here instead.
128397         Remove a thus-exposed (better checks in automake) duplicate and
128398         two unnecessary .h files.
128400 2001-07-04  Jim Meyering  <meyering@lucent.com>
128402         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
128403         that generates jm-glibc-io.m4 so that it doesn't trigger any make
128404         distcheck failure.
128406 2001-07-02  Jim Meyering  <meyering@lucent.com>
128408         The following changes were prompted by suggestions from Bruno Haible.
128410         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
128411         is now generated.
128412         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
128413         definition of EXTRA_DIST.
128414         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
128415         ensure that the generated file is created/updated whenever the list
128416         of $(unlocked_functions) is changed.
128417         (jm-glibc-io.m4): New rule.
128418         (unlocked-io.h): New rule -- currently unused.
128420 2001-06-24  Jim Meyering  <meyering@lucent.com>
128422         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
128423         unmatched right bracket, rather than kludging it with an extra,
128424         falsely-matching quote in a comment.  Patch by Akim Demaille.
128426 2001-06-11  Jim Meyering  <meyering@lucent.com>
128428         * lib/regex.c: Update from GNU libc.
128430 2001-05-27  Jim Meyering  <meyering@lucent.com>
128432         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
128433         Check for ut_type in struct utmp.
128435 2001-05-27  Jim Meyering  <meyering@lucent.com>
128437         * lib/readutmp.h (UT_TYPE): Define.
128439 2001-05-24  Jim Meyering  <meyering@lucent.com>
128441         * lib/argmatch.c: Include "quote.h".
128442         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
128443         quote function.  Reported by Göran Uddeborg.
128445 2001-05-22  Jim Meyering  <meyering@lucent.com>
128447         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
128448         now that we use the package-supplied version unconditionally.
128449         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
128451 2001-05-21  Jim Meyering  <meyering@lucent.com>
128453         * m4/regex.m4: Change a couple backticks to single quotes to avoid
128454         shell syntax errors.
128456 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
128458         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
128460 2001-05-20  Paul Eggert  <eggert@twinsun.com>
128462         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
128463         Don't bother to check library strftime, since
128464         we'll be using our own my_strftime function anyway.
128465         Define my_strftime instead of strftime.
128467 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
128469         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
128470         which is not yet declared.
128472 2001-05-15  Jim Meyering  <meyering@lucent.com>
128474         * m4/regex.m4: Use proper quoting so brackets appear in the test
128475         program.
128476         Reported by, and with help from, Bruno Haible.
128478 2001-05-13  Jim Meyering  <meyering@lucent.com>
128480         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
128481         undefined.
128483 2001-05-11  Paul Eggert  <eggert@twinsun.com>
128485         dirname code cleanup.  base_name now behaves more compatibly
128486         with POSIX basename when given file names that have trailing
128487         slashes, and similarly for dir_name.  Add new primitives
128488         base_len and dir_len.  Put the directory-name-related decls
128489         into dirname.h.
128491         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
128492         * lib/backupfile.c (base_name): Likewise.
128493         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
128494         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
128495         * lib/makepath.c (strip_trailing_slashes): Likewise.
128496         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
128497         ISSLASH): Likewise.
128498         * lib/rename.c (strip_trailing_slashes): Likewise.
128499         * lib/same.c (base_name): Likewise.
128500         * lib/stripslash.c (ISSLASH): Likewise.
128502         * lib/addext.c: Include <dirname.h> after size_t is defined.
128503         * lib/backupfile.c: Likewise.
128505         * lib/addext.c (addext): Use base_len to trim redundant
128506         trailing slashes instead of doing it ourselves.
128507         But do not trim the last slash if it is not redundant.
128509         * lib/backupfile.c (find_backup_file_name,
128510         max_backup_version): Use base_len instead of rolling it ourselves.
128511         Handle the case of "" and (on DOS) "C:" correctly.
128513         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
128514         needed. Include <string.h>, <dirname.h>.
128515         (base_name): Allow file names ending in slashes, other than names
128516         that are all slashes.  In this case, return the basename followed
128517         by the slashes.  This is more general, and can be used in places
128518         where the original base_name purposely had an assertion failure.
128519         (base_len): New function.
128521         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
128522         Do not include <assert.h>; no longer needed.
128523         Include xalloc.h.
128524         (memrchr): Remove decl.
128525         (dir_name_r): Remove.
128526         (dir_len): Renamed from dirlen.  All callers changed.
128527         Rewrite in terms of base_name, for simplicity and consistency.
128528         (dir_name): Never return NULL.  All callers changed.
128529         Do not include <stdlib.h> in test program; no longer needed.
128530         return 0; is fine for test program.
128532         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
128533         New macros.
128534         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
128536         * lib/path-concat.c (path_concat): Use base_len to compute
128537         base length, not strlen; this means we cannot rely on memcpy
128538         to null-terminate.
128540         * lib/same.c (STREQ): Remove.
128541         (same_name): Handle the case where the basename ends in trailing '/'.
128543         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
128544         a slash was stripped.  Do not strip the last slash after a
128545         file system prefix.
128547 2001-05-11  Paul Eggert  <eggert@twinsun.com>
128549         * lib/Makefile.am (libfetish_a_SOURCES):
128550         Add strftime.c, since we now compile it on all hosts.
128552         * lib/strftime.c (my_strftime):
128553         Define to nstrftime if emacs, but only if my_strftime is not defined.
128554         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
128555         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
128556         Add one more extra argument: a nanoseconds value.
128557         All uses changed.
128558         (ns): New macro.
128559         (my_strftime function): Add %N format.
128560         (emacs_strftimeu): Renamed from emacs_strftime,
128561         with extra ut argument.
128563 2001-05-09  Paul Eggert  <eggert@twinsun.com>
128565         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
128567 2001-04-21  Jim Meyering  <meyering@lucent.com>
128569         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
128570         doesn't interfere.
128572 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
128574         * m4/ftruncate.m4: Check for chsize.
128575         Link with ftruncate.o unconditionally if ftruncate is missing.
128576         This was required when cross-compiling to i586-mingw32msvc.
128578 2001-04-08  Jim Meyering  <meyering@lucent.com>
128580         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
128581         recomputed; that's necessary when the offset spans a DST transition.
128582         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
128584 2001-04-02  Jim Meyering  <meyering@lucent.com>
128586         * lib/regex.h, regex.c: Update from GNU libc.
128588 2001-03-24  Jim Meyering  <meyering@lucent.com>
128590         * m4/jm-macros.m4: Require autoconf-2.49d.
128592 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
128594         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
128596 2001-03-19  Paul Eggert  <eggert@twinsun.com>
128598         * lib/version-etc.c (version_etc_copyright): Update to 2001.
128600 2001-03-17  Jim Meyering  <meyering@lucent.com>
128602         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
128603         now that the version in autoconf is equivalent.
128604         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
128606         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
128607         Suggestion from Akim Demaille.
128609         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
128610         (jm_PREREQ_TEMPNAME): New function.
128612 2001-03-16  Paul Eggert  <eggert@twinsun.com>
128614         * lib/tempname.c (uint64_t): Define to uintmax_t if
128615         not defined, and if UINT64_MAX is not defined.
128616         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
128617         Reported by John David Anglin.
128619 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
128621         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
128622         resolve alias if codeset is empty.
128623         * lib/config.charset (BeOS): Use wildcard syntax.
128625 2001-03-13  Jim Meyering  <meyering@lucent.com>
128627         * lib/path-concat.c (path_concat)
128628         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
128629         concatenating e.g., `C:' and `foo'.
128630         From Bruno Haible.
128632 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
128634         * lib/localcharset.c (locale_charset): Don't use
128635         setlocale(LC_CTYPE,NULL). Don't return NULL.
128636         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
128638 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
128640         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
128641         support for DOS/DJGPP.
128643 2001-03-01  Paul Eggert  <eggert@twinsun.com>
128645         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
128646         lacks mkstemp.  Compile our own tempname.c if we compile our own
128647         mkstemp.c, as mkstemp relies on tempname.
128649 2001-03-01  Jim Meyering  <meyering@lucent.com>
128651         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
128652         AH_VERBATIM really does output its argument verbatim.
128654 2001-02-28  Paul Eggert  <eggert@twinsun.com>
128656         * lib/Makefile.am (libfetish_a_SOURCES):
128657         Add dup-safer.c, fopen-safer.c.
128658         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
128660         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
128661         * lib/unistd-safer.h: New files.
128663 2001-02-25  Paul Eggert  <eggert@twinsun.com>
128665         The mkstemp replacement is taken from glibc 2.2.2, with some
128666         portability fixes for use outside glibc, as follows:
128668         * lib/tempname.c (struct_stat64): New macro.
128669         (direxists, __gen_tempname): Use it.
128670         This avoids a portability problem with Solaris 8.
128672         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
128673         (<stddef.h>, <stdint.h>, <string.h>):
128674         Include only if STDC_HEADERS || _LIBC.
128675         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
128676         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
128677         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
128678         (__set_errno): Define this macro if <errno.h> doesn't.
128679         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
128680         Define these macros if <stdio.h> doesn't.
128681         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
128682         Define these macros if <sys/stat.h>
128683         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
128684         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
128685         __xstat64): Define if not _LIBC.
128686         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
128687         (__gen_tempname): Invoke gettimeofday only if
128688         HAVE_GETTIMEOFDAY || _LIBC;
128689         otherwise, fall back on plain "time".
128690         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
128692         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
128694         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
128696 2001-02-18  Paul Eggert  <eggert@twinsun.com>
128698         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
128700 2001-02-17  Paul Eggert  <eggert@twinsun.com>
128702         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
128703         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
128704         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
128705         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
128707 2001-02-17  Paul Eggert  <eggert@twinsun.com>
128709         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
128710         Remove workaround macros for hosts that have mbrtowc but not
128711         mbstate_t, as we now insist on proper declarations for both
128712         before using mbrtowc.
128714 2001-02-17  Jim Meyering  <meyering@lucent.com>
128716         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
128717         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
128718         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
128719         UnixWare 7.1.1.
128721         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
128722         rather than AC_CACHE_VAL.
128724 2001-02-17  Jim Meyering  <meyering@lucent.com>
128726         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
128727         around included file name.
128729         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
128731         * lib/strftime.c: Update from GNU libc (the only changes were to
128732         comments).
128734 2001-02-17  Jim Meyering  <meyering@lucent.com>
128736         * lib/regex.c: Update from libc.
128738 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
128740         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
128741         clash.
128743 2001-02-16  Paul Eggert  <eggert@twinsun.com>
128745         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
128746         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
128747         Reported by Mark Hounschell via Paul Eggert.
128749 2001-02-07  Jim Meyering  <meyering@lucent.com>
128751         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
128753 2001-02-05  Jim Meyering  <meyering@lucent.com>
128755         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
128756         it includes the patch required for `large file' support with at least
128757         HP-UX's 10.20 /bin/cc.
128759 2001-02-03  Jim Meyering  <meyering@lucent.com>
128761         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
128762         AS_IF, now that it works once again (mysteriously).
128763         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
128765 2001-01-30  Jim Meyering  <meyering@lucent.com>
128767         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
128768         * m4/chown.m4: Rename conftestchown to conftest.chown.
128769         * m4/rename.m4: s/conftestdir/conftest.d1/ and
128770         s/conftestdir2/conftest.d2/.
128771         * m4/utimes.m4: s/conftestdata/conftest.data/
128772         Inspired by Pavel Roskin's change in autoconf.
128774 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
128776         * lib/config.charset: Update for FreeBSD 4.2.
128778 2001-01-27  Jim Meyering  <meyering@lucent.com>
128780         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
128781         a use of AS_IF.
128782         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
128784 2001-01-26  Jim Meyering  <meyering@lucent.com>
128786         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
128787         quotearg.c includes it.
128789 2001-01-26  Jim Meyering  <meyering@lucent.com>
128791         * lib/quotearg.c: Include stddef.h.
128792         * lib/quote.c: Include stddef.h.
128793         Reported by Axel Kittenberger.
128795         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
128796         line in double quotes so that it evokes a better diagnostic.
128797         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
128798         Reported by Axel Kittenberger.
128800 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
128802         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
128803         as if it was a `charset'.
128805 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
128807         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
128808         has const.
128810 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
128812         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
128813         to avoid a warning.  Add back 'const' to inptr.
128815 2001-01-20  Jim Meyering  <meyering@lucent.com>
128817         Be sure that headers are checked before used in code compiled
128818         for the type checks.
128819         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
128820         In place of that, invoke jm_CHECK_ALL_TYPES.
128821         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
128822         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
128823         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
128824         The check for ssize_t was mistakenly run before the test for unistd.h.
128826         The configure-time check for stdbool.h was missing.
128827         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
128828         (jm_PREREQ_HASH): New function.
128830 2001-01-17  Jim Meyering  <meyering@lucent.com>
128832         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
128833         for autoconf-2.49c.
128834         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
128836 2001-01-16  Jim Meyering  <meyering@lucent.com>
128838         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
128839         From Bruno Haible.
128841 2001-01-14  Jim Meyering  <meyering@lucent.com>
128843         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
128844         foo and bar.  Create conftestdir/ in the script, not in the C code.
128845         Remove directories in the script, not in the C code.
128846         Remove conftestdir{,2} before trying to create the directory.
128847         Make the entire configure script fail if the mkdir fails.
128849 2001-01-14  Jim Meyering  <meyering@lucent.com>
128851         * lib/rename.c: New file.  From Volker Borchert.
128852         Include stdlib.h, string.h or strings.h, and xalloc.h.
128853         Use strip_trailing_slashes rather than open-coding it.
128855 2001-01-03  Paul Eggert  <eggert@twinsun.com>
128857         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
128859 2001-01-03  Jim Meyering  <meyering@lucent.com>
128861         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
128862         of local `inptr' to avoid warning with some system declarations of
128863         iconv.
128865 2001-01-02  Volker Borchert  <bt@teknon.de>
128867         * m4/rename.m4: New file.
128868         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
128870 2001-01-01  Jim Meyering  <meyering@lucent.com>
128872         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
128873         even on systems with utmpx.h.  It's necessary for the declaration of
128874         utmp's ut_user member.  Reported by Andreas Jaeger.
128876         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
128877         available. They are required for the declarations of getgrgid and
128878         getpwuid resp.
128879         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
128880         Reported by Andreas Jaeger.
128882 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
128884         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
128885         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
128886         so `make install' also works in VPATH builds.
128888 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
128890         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
128891         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
128892         can be used in subdirectories.
128894 2000-12-29  Paul Eggert  <eggert@twinsun.com>
128896         * lib/modechange.c: Do not assume that mode_t uses the
128897         traditional octal encoding.  E.g. "chmod 1 FOO" should set
128898         the other-execute bit of FOO even if S_IXOTH != 1.
128900         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
128901         WOTH, XOTH, ALLM): New macros.
128902         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
128903          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
128904         Use them.
128905         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
128906         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
128907         (mode_compile):
128908         No need to use uintmax_t; unsigned long is long enough.
128909         Don't bother to get suffix since we don't use it.
128911 2000-12-26  Jim Meyering  <meyering@lucent.com>
128913         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
128914         better with autoheader.
128916 2000-12-24  Jim Meyering  <meyering@lucent.com>
128918         * lib/hash.c (is_prime): Return explicit boolean values.
128919         (hash_get_first): Return NULL to appease Irix5.6's 89.
128920         Reported by Nelson Beebe.
128922 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
128924         * lib/localcharset.c (locale_charset): Add support for Win32.
128926 2000-12-18  Paul Eggert  <eggert@twinsun.com>
128928         * lib/physmem.h, lib/physmem.c: New files.
128930         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
128931         (noinst_HEADERS): Add physmem.h.
128933         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
128934         't' for compatibility with Solaris 8 sort.
128936 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
128938         * lib/config.charset: Add support for BeOS.
128940 2000-12-17  Jim Meyering  <meyering@lucent.com>
128942         * m4/dos.m4 (jm_AC_DOS): New file and macro.
128943         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
128945 2000-12-16  Jim Meyering  <meyering@lucent.com>
128947         This bug had a serious impact on chown: `chown N:M FILE' (for integer
128948         N and M) would have treated it like `chown N:N FILE'.
128950         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
128952 2000-12-16  Jim Meyering  <meyering@lucent.com>
128954         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
128955         SHELLS_FILE to a file name that's useful on djgpp systems.
128956         Include stdlib.h.
128957         (ADDITIONAL_DEFAULT_SHELLS): Define.
128958         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
128959         Based mostly on a patch from Prashant TR.
128961 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
128963         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
128964         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
128965         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
128967 2000-12-08  Andreas Schwab  <schwab@suse.de>
128969         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
128970         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
128972 2000-12-07  Jim Meyering  <meyering@lucent.com>
128974         * lib/stripslash.c (ISSLASH): Define.
128975         (strip_trailing_slashes): Use ISSLASH rather than comparing against
128976         `/'.
128977         From Prashant TR.
128979         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
128980         (dir_name_r): Declare this function as static.
128981         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
128982         manifest itself on a name containing a mix of slashes and
128983         backslashes.
128984         Make this function work with names starting with a DOS-style
128985         drive letter and colon prefix.
128986         (dir_name): Append `.' if necessary.
128987         Based mostly on patches from Prashant TR and Eli Zaretskii.
128989         * lib/dirname.h (dir_name_r): Remove prototype.
128991 2000-12-06  Paul Eggert  <eggert@twinsun.com>
128993         * m4/off_t-format.m4: Remove this file.
128994         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
128996 2000-12-06  Jim Meyering  <meyering@lucent.com>
128998         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
128999         replacement strtoull, we may well need the replacement strtoul, too.
129000         Check for declarations of strtoul and strtoull.
129001         Check for strtol.  Mainly as a cue to cause automake to include
129002         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
129003         Check for limits.h -- strtol.c needs it.
129005 2000-12-05  Jim Meyering  <meyering@lucent.com>
129007         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
129009 2000-12-04  Jim Meyering  <meyering@lucent.com>
129011         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
129012         Also include memory.h, stdlib.h, unistd.h if appropriate.
129013         Reported by Andreas Jaeger (conflicting declaration of malloc).
129015 2000-12-02  Jim Meyering  <meyering@lucent.com>
129017         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
129018         * m4/jm-macros.m4 (jm_MACROS): require it.
129020 2000-12-02  Jim Meyering  <meyering@lucent.com>
129022         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
129024 2000-12-01  Paul Eggert  <eggert@twinsun.com>
129026         * lib/memrchr.c: Include <config.h> before any system include file.
129028 2000-11-30  Jim Meyering  <meyering@lucent.com>
129030         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
129032 2000-11-30  Jim Meyering  <meyering@lucent.com>
129034         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
129036 2000-11-29  Paul Eggert  <eggert@twinsun.com>
129038         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
129040 2000-11-26  Jim Meyering  <meyering@lucent.com>
129042         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
129044 2000-11-22  Paul Eggert  <eggert@twinsun.com>
129046         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
129047         size of (size_t) -1; it's not portable.
129049 2000-11-17  Jim Meyering  <meyering@lucent.com>
129051         * lib/strstr.c: Update from GNU libc.
129053 2000-11-17  Akim Demaille  <akim@epita.fr>
129055         * lib/obstack.h: Formatting changes.
129056         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
129057         prevent type checking.
129058         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
129059         cast the value to (void *): assigning a `foo *' to a `void *'
129060         variable is valid.
129061         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
129063 2000-11-16  Jim Meyering  <meyering@lucent.com>
129065         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
129067 2000-11-11  Jim Meyering  <meyering@lucent.com>
129069         * lib/error.c: Add a couple #includes, merging from GNU libc version.
129071 2000-11-10  Jim Meyering  <meyering@lucent.com>
129073         * lib/obstack.h: Update from GNU libc.
129074         * lib/obstack.c: Likewise.
129076 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
129078         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
129080 2000-11-06  Paul Eggert  <eggert@twinsun.com>
129082         * lib/getusershell.c (setusershell): Use rewind rather than
129083         fseek/fseeko, to avoid configuration hassles with fseeko.
129084         Don't bother opening SHELLS_FILE if shellstream is NULL;
129085         it's not necessary.
129087 2000-11-05  Jim Meyering  <meyering@lucent.com>
129089         * lib/makepath.h (make_dir): Declare.
129090         * lib/makepath.c (make_dir): Remove `static' attribute.
129091         Tweak a comment.
129093 2000-11-04  Jim Meyering  <meyering@lucent.com>
129095         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
129097 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
129099         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
129100         last one in a bucket, advance to the next bucket.
129102 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
129104         * lib/fnmatch.c: Do not comment out all the code if we are using
129105         the GNU C library, because in some cases we are replacing buggy
129106         code in the GNU C library itself.
129108 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
129110         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
129111         (regex_compile): Catch bogus \(\1\).
129113 2000-10-30  Paul Eggert  <eggert@twinsun.com>
129115         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
129116         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
129117         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
129119 2000-10-30  Paul Eggert  <eggert@twinsun.com>
129121         * lib/error.h, getline.h, modechange.h:
129122         Remove "2000" from Copyright line, as the file hasn't been
129123         changed this year other than in the copyright notice.
129125         * lib/xalloc.h: Add "2000" to Copyright line, as this file
129126         was changed this year.
129128 2000-10-29  Jim Meyering  <meyering@lucent.com>
129130         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
129131         renaming.
129132         * m4/ls-mntd-fs.m4: Likewise
129134 2000-10-29  Jim Meyering  <meyering@lucent.com>
129136         * lib/xstat.in: Fix grammar in comment.
129138 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
129140         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
129141         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
129142         doesn't define __restrict_arr.
129144 2000-10-28  Jim Meyering  <meyering@lucent.com>
129146         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
129147         (jm_PREREQ_MEMCHR): New function.
129149 2000-10-28  Jim Meyering  <meyering@lucent.com>
129151         * lib/memchr.c: Update from libc.
129152         Adjust for portability:
129153         [HAVE_STDLIB_H]: Include stdlib.h.
129154         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
129155         Undef __memchr, too.
129156         [!weak_alias]: Define __memchr to memchr.
129158         * lib/regex.c: Update from libc.
129159         * lib/regex.h: Likewise.
129160         * lib/getopt1.c: Likewise.
129161         * lib/memcmp.c: Likewise.
129163         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
129164         Avoid using fseek, when possible -- it's broken by design.
129165         Patch by Ulrich Drepper.
129167 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
129169         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
129170         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
129171         Giving in to popular pressure to shut up the compiler with casts.
129173 2000-10-26  Jim Meyering  <meyering@lucent.com>
129175         * lib/strftime.c: Update from libc.
129177 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
129179         * regex.c: More `unsigned char' -> `re_char' changes.
129180         Also change several `int' into `re_wchar_t'.
129181         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
129182         (PUSH_FAILURE_POINTER): Don't cast any more.
129183         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
129184         We want GCC to complain, since this piece of code makes
129185         re_match non-reentrant, which *should* be fixed.
129186         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
129187         (EXTEND_BUFFER): Use RETALLOC.
129188         (SET_LIST_BIT): Don't cast.
129189         (re_wchar_t): New type.
129190         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
129191         that those two functions will always properly return.
129192         (IMMEDIATE_QUIT_CHECK): Cast to void.
129193         (analyse_first): Use recursion rather than an explicit stack.
129194         (re_compile_fastmap): Can't fail anymore.
129195         (re_search_2): Don't check re_compile_fastmap for failure.
129196         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
129197         Now also sets the new value (passed in a new argument).
129198         (re_match_2_internal): Use it.
129199         Also, use a new var `reg' of type size_t when looping through regs
129200         rather than reuse the inappropriate `mcnt'.
129202 2000-10-25  Jim Meyering  <meyering@lucent.com>
129204         * lib/obstack.c: Update from libc.
129206 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
129208         * regex.c (regex_compile): Change the way of handling a range from
129209         a char less than 256 to a char not less than 256.
129211 2000-10-24  Andrew Innes  <andrewi@gnu.org>
129213         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
129214         NT-Emacs only.
129215         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
129216         so that re_search functions only quit when callers expect them to.
129218 2000-10-23  Jim Meyering  <meyering@lucent.com>
129220         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
129221         wrong.  That set_locale call must not have any side effects.
129222         From Paul Eggert.
129224 2000-10-22  Jim Meyering  <meyering@lucent.com>
129226         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
129227         [CYCLIC]: Remove now-unused definition.
129229         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
129230         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
129231         Suggestion from Ulrich Drepper.
129233 2000-10-21  Jim Meyering  <meyering@lucent.com>
129235         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
129236         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
129237         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
129239 2000-10-21  Jim Meyering  <meyering@lucent.com>
129241         * lib/dirname.c (memrchr): Declare if necessary.
129242         (dir_name): Remove the restriction that there be no
129243         trailing slashes.  Now, this code skips past them, effectively
129244         ignoring them.
129245         [TEST_DIRNAME] (main): New unit tests.
129247         * lib/memrchr.c: New file from GNU libc.
129248         Undef __memrchr, too.
129249         [!weak_alias]: Define __memrchr to memrchr.
129250         Guard weak_alias use with `#ifdef weak_alias'.
129252 2000-10-21  Jim Meyering  <meyering@lucent.com>
129254         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
129255         (dir_name): Use dir_name_r.
129256         * lib/dirname.h (dir_name_r): Declare it.
129258 2000-10-17  Jim Meyering  <meyering@lucent.com>
129260         * lib/quote.h (PARAMS): Define and use.
129261         Reported by Akim Demaille.
129263         * lib/getopt.c: Update from libc.
129265 2000-10-16  Jim Meyering  <meyering@lucent.com>
129267         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
129268         setlocale.
129269         From Jan Fedak.
129271 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
129273         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
129275 2000-09-25  Jim Meyering  <meyering@lucent.com>
129277         * lib/md5.h (rol): Define (from GnuPG).
129279         * lib/sha.c: Give credit (GnuPG) where due.
129280         (M): Use rol rather than open-coding it.
129281         Add a FIXME comment.
129283 2000-09-21  Jim Meyering  <meyering@lucent.com>
129285         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
129286         Reported by Michael Stone.
129288 2000-09-20  Jim Meyering  <meyering@lucent.com>
129290         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
129291         (noinst_HEADERS): Add sha.h.
129292         Based on code from Scott G. Miller and from GnuPG.
129294 2000-09-18  Jim Meyering  <meyering@lucent.com>
129296         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
129297         LIBS. Otherwise, everyone ends up linking with -lelf for some
129298         configurations.
129299         Reported by Mike Stone.
129301 2000-09-15  Jim Meyering  <meyering@lucent.com>
129303         * lib/regex.c: Update from libc.
129305 2000-09-10  Jim Meyering  <meyering@lucent.com>
129307         * lib/getopt.c (_getopt_internal): Update from glibc.
129309 2000-09-09  Jim Meyering  <meyering@lucent.com>
129311         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
129312         think it should be used as a general replacement for isascii.
129313         * lib/fnmatch.c: Likewise.
129314         * lib/mbswidth.c: Likewise
129315         * lib/regex.c: Likewise.
129317         Don't use atoi.
129318         * lib/userspec.c: Include sys/param.h and limits.h.
129319         Include xstrtol.h.
129320         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
129321         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
129322         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
129323         UID, GID.  Check range.
129325 2000-09-06  Jim Meyering  <meyering@lucent.com>
129327         * lib/getopt.c (_getopt_internal): Update from glibc.
129329 2000-08-30  Jim Meyering  <meyering@lucent.com>
129331         * lib/strftime.c: Merge in changes from GNU libc.
129333 2000-08-26  Jim Meyering  <meyering@lucent.com>
129335         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
129336         * m4/fpending.m4: New file.
129338 2000-08-26  Jim Meyering  <meyering@lucent.com>
129340         * lib/closeout.c: Include "__fpending.h".
129341         (close_stdout_status): Return right away if there's nothing to flush.
129343         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
129344         * lib/__fpending.c: New file.
129345         * lib/__fpending.h: New file.
129347 2000-08-20  Jim Meyering  <meyering@lucent.com>
129349         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
129350         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
129351         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
129353 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
129355         Improve fileutils installation on systems where running
129356         programs (like install) can't be unlinked.
129357         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
129358         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
129360 2000-08-07  Paul Eggert  <eggert@twinsun.com>
129362         Standardize on "memory exhausted" instead of "Memory exhausted"
129363         or "virtual memory exhausted".
129364         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
129365         "virtual memory exhausted".
129366         * lib/same.c (same_name): Invoke xalloc_die instead of printing
129367         our own message.
129368         * lib/userspec.c (parse_user_spec): Likewise.
129369         * lib/bumpalloc.h: comment fix
129370         * lib/same.c, userspec.c: Include xalloc.h.
129372         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
129373         not char *const and pointing to a constant array.
129374         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
129375         (xrealloc): Comment fix.
129377         * lib/userspec.c (parse_user_spec):
129378         Don't translate a message until just before returning,
129379         to avoid unnecessary translation.
129381 2000-08-07  Jim Meyering  <meyering@lucent.com>
129383         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
129384         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
129385         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
129386         getgroups.c, gethostname.c, getopt.h, group-member.c,
129387         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
129388         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
129389         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
129390         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
129391         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
129392         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
129393         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
129394         yesno.c: Back out Copyright date changes for each file with no change
129395         this year.  This eases coordination with other programs using the same
129396         source code modules.  From Paul Eggert.
129398 2000-08-06  Paul Eggert  <eggert@twinsun.com>
129400         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
129401         not char, for compatibility with glibc 2.1.3 strftime.c.
129403 2000-08-03  Greg McGary  <greg@mcgary.org>
129405         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
129406         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
129407         (EXTEND_BUFFER): Use them.
129409 2000-08-01  Jim Meyering  <meyering@lucent.com>
129411         * lib/dirname.c (ISSLASH): Define.
129412         (BACKSLASH_IS_PATH_SEPARATOR): Define.
129413         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
129414         both `\' and `/' may be use as path separators.
129415         Based on a patch from Prashant TR.
129417 2000-07-31  Paul Eggert  <eggert@twinsun.com>
129419         * lib/quotearg.c (quotearg_n_options): Don't make the initial
129420         slot vector a constant, since it might get modified.
129422 2000-07-31  Jim Meyering  <meyering@lucent.com>
129424         * lib/xmalloc.c: Use `virtual memory exhausted', not
129425         `Memory exhausted'.
129426         * lib/obstack.c (print_and_abort): Likewise.
129428 2000-07-30  Paul Eggert  <eggert@twinsun.com>
129430         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
129431         buffer, so that the caller can always quote one small
129432         component of a "memory exhausted" message in slot 0.
129433         From a suggestion by Jim Meyering.
129435 2000-07-30  Jim Meyering  <meyering@lucent.com>
129437         * lib/makepath.c (make_path): Quote the other instance, too.
129439         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
129440         (STATIC_BUF_SIZE): Define.
129441         (quotearg_n_options): Use only statically allocated storage when
129442         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
129443         than STATIC_BUF_SIZE.
129445 2000-07-29  Jim Meyering  <meyering@lucent.com>
129447         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
129448         * lib/dirname.c (dir_name): Likewise.
129450         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
129451         `/'.
129453         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
129454         (dir_name): Assert that there are no trailing slashes.
129456 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
129458         * lib/mbswidth.h (mbswidth): Add a flags argument.
129459         (mbswidth): New declaration.
129460         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
129461         * lib/mbswidth.c (mbswidth): Add a flags argument.
129462         (mbsnwidth): New function.
129464 2000-07-24  Jim Meyering  <meyering@lucent.com>
129466         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
129468 2000-07-23  Paul Eggert  <eggert@twinsun.com>
129470         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
129472 2000-07-23  Paul Eggert  <eggert@twinsun.com>
129474         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
129475         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
129476         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
129477         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
129478         invoke multibyte primitives.
129480 2000-07-23  Paul Eggert  <eggert@twinsun.com>
129482         * lib/quotearg.c:
129483         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
129484         so that mbstate_t is always defined.
129486         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
129487         be 1 in at least one GCC installation, and this configuration
129488         error is likely to be common.  Ignoring MB_LEN_MAX hurts
129489         performance on hosts that have mbrtowc but have only unibyte
129490         locales, but I assume these hosts are rare.
129492 2000-07-23  Paul Eggert  <eggert@twinsun.com>
129494         * lib/mbswidth.c (_XOPEN_SOURCE):
129495         Don't define; this causes problems on Solaris 7.
129496         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
129498 2000-07-23  Jim Meyering  <meyering@lucent.com>
129500         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
129501         too: getgrgid, getpwuid, getuid.
129503 2000-07-23  Jim Meyering  <meyering@lucent.com>
129505         * lib/basename.c (base_name): Add an assertion.
129507 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
129509         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
129510         shadow its mbsinit function.
129512 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
129514         * lib/mbswidth.h: New file.
129515         * lib/mbswidth.c: New file.
129516         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
129517         (noinst_HEADERS): Add mbswidth.h.
129519 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
129521         * lib/config.charset: Add support for FreeBSD. Improve support for
129522         HP-UX and IRIX 6.
129524 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
129526         * m4/mbswidth.m4: New file.
129527         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
129529 2000-07-15  Jim Meyering  <meyering@lucent.com>
129531         * lib/makepath.c: Include quote.h.
129532         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
129533         corresponding argument in a `quote (...)' call.
129534         Give better diagnostics.
129536         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
129537         (noinst_HEADERS): Add quote.h.
129539         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
129540         from tar's src/misc.c.
129541         * lib/quote.h: New file.  Prototypes for same.
129543 2000-07-14  Paul Eggert  <eggert@twinsun.com>
129545         From a suggestion by Bruno Haible.
129546         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
129547         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
129548         to decide whether to define the BeOS workaround macro;
129549         this adjusts to the change to AC_MBSTATE_T.
129551 2000-07-14  Jim Meyering  <meyering@lucent.com>
129553         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
129554         jm_AC_TYPE_UINTMAX_T.
129556 2000-07-13  Paul Eggert  <eggert@twinsun.com>
129558         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
129560         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
129561         quotearg_buffer_restyled): Add support for
129562         clocale_quoting_style.  Undo previous change to
129563         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
129564         and "{RIGHT QUOTATION MARK}" msgids.
129566 2000-07-10  Paul Eggert  <eggert@twinsun.com>
129568         From a suggestion by Bruno Haible.
129569         * m4/mbstate_t.m4 (AC_MBSTATE_T):
129570         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
129571         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
129572         and mbstate_t, to a single-part test that simply defines mbstate_t.
129573         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
129574         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
129576 2000-07-10  Jim Meyering  <meyering@lucent.com>
129578         * m4/strerror_r.m4: Mirror the correction made in autoconf.
129580         * m4/gnu-source.m4: Output to confdefs.h directly.
129581         Suggestion from Akim Demaille.
129583 2000-07-09  Paul Eggert  <eggert@twinsun.com>
129585         The old behavior of quoting `like this' doesn't look good with
129586         newer, ISO-style fonts.  See:
129587         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
129589         Instead, quote "like this" by default.  Let the translator
129590         tailor the locale-specific quoting behavior by providing
129591         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
129593         * lib/quotearg.c (N_): New macro.
129594         (gettext_default): New function.
129595         (quotearg_buffer_restyled): Use
129596         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
129597         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
129599 2000-07-09  Jim Meyering  <meyering@lucent.com>
129601         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
129602         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
129604         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
129605         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
129607 2000-07-09  Jim Meyering  <meyering@lucent.com>
129609         * lib/Most files: Update copyright dates to include 2000.
129611 2000-07-08  Jim Meyering  <meyering@lucent.com>
129613         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
129614         if not defined.
129615         (xgethostname): Remove now-unnecessary #ifdef.
129616         Move declaration of `err' into loop where it's used.
129618 2000-07-05  Paul Eggert  <eggert@twinsun.com>
129619         and Bruno Haible  <haible@clisp.cons.org>
129621         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
129622         only if the test for an object-type mbstate_t fails.  This
129623         prevents us from mistakenly reporting that mbstate_t is a
129624         system object type after we "#define mbstate_t int" to work
129625         around its lack.
129627 2000-07-05  Paul Eggert  <eggert@twinsun.com>
129628         and Bruno Haible  <haible@clisp.cons.org>
129630         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
129632 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
129634         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
129635         to strerror_r.
129636         Include <ctype.h> for use of isalpha.
129638 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
129640         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
129641         by allocating a larger buffer. Test the gethostname return value for
129642         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
129643         returns an error and ENAMETOOLONG isn't defined.
129645 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
129647         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
129648         dimension.
129650 2000-07-04  Jim Meyering  <meyering@lucent.com>
129652         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
129653         of the deprecated AC_CHECKING.
129655 2000-07-04  Jim Meyering  <meyering@lucent.com>
129657         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
129658         Reported by Bruno Haible.
129660 2000-07-04  Jim Meyering  <meyering@lucent.com>
129662         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
129663         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
129664         lacks mbrtowc.
129666 2000-07-03  Paul Eggert  <eggert@twinsun.com>
129668         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
129669         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
129671 2000-07-03  Paul Eggert  <eggert@twinsun.com>
129672         and Bruno Haible  <haible@clisp.cons.org>
129674         * lib/quotearg.c (mbrtowc):
129675         Assign to *pwc, and return 1 only if result is nonzero.
129676         (iswprint): Use ISPRINT when substituting our own mbrtowc.
129678 2000-07-03  Jim Meyering  <meyering@lucent.com>
129680         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
129682 2000-07-03  Jim Meyering  <meyering@lucent.com>
129684         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
129685         This is necessary to get a definition of e.g., UTMP_FILE on
129686         HP-UX 10.20.
129687         From Bob Proulx.
129689 2000-07-02  Jim Meyering  <meyering@lucent.com>
129691         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
129693         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
129694         AC_LIBOBJ(function_name).
129695         * m4/chown.m4: Likewise.
129696         * m4/fnmatch.m4: Likewise.
129697         * m4/ftruncate.m4: Likewise.
129698         * m4/getgroups.m4: Likewise.
129699         * m4/getline.m4: Likewise.
129700         * m4/group-member.m4: Likewise.
129701         * m4/jm-macros.m4: Likewise.
129702         * m4/lstat.m4: Likewise.
129703         * m4/malloc.m4: Likewise.
129704         * m4/memcmp.m4: Likewise.
129705         * m4/nanosleep.m4: Likewise.
129706         * m4/putenv.m4: Likewise.
129707         * m4/realloc.m4: Likewise.
129708         * m4/regex.m4: Likewise.
129709         * m4/stat.m4: Likewise.
129710         * m4/strftime.m4: Likewise.
129712 2000-07-02  Jim Meyering  <meyering@lucent.com>
129714         * lib/quotearg.c (mbstate_t): Don't define here.
129716 2000-07-02  Jim Meyering  <meyering@lucent.com>
129718         * lib/nanosleep.c (SIGCONT): Define if not already defined.
129720 2000-07-01  Jim Meyering  <meyering@lucent.com>
129722         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
129724 2000-07-01  Jim Meyering  <meyering@lucent.com>
129726         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
129727         problem.
129729 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
129731         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
129732         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
129734 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
129736         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
129737         per change in ../m4/ls-mntd-fs.m4.
129738         (read_filesystem_list): Ignore symbolic links.
129740 2000-06-29  Jim Meyering  <meyering@lucent.com>
129742         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
129743         for declaration of strcmp.
129745         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
129747         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
129748         Avoid warning by casting result to `char *' to remove `const'.
129750 2000-06-28  Jim Meyering  <meyering@lucent.com>
129752         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
129753         included by quotearg.c, for which we perform this test.  From
129754         Bruno Haible.
129756 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
129758         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
129759         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
129760         <utmpx.h> exists, put readutmp.o into LIBOBJS.
129762 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
129764         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
129766 2000-06-26  Paul Eggert  <eggert@twinsun.com>
129768         savedir now sets errno on failure and invokes xmalloc to get memory.
129769         Fix a couple of other minor bugs while we're at it.
129771         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
129772         (NAMLEN): Remove macro.
129773         (malloc, realloc): Remove decls.
129774         (stpcpy): Likewise.
129775         ("xalloc.h"): Include.
129776         (NAME_SIZE_DEFAULT): New macro.
129777         (savedir): Use xmalloc / xrealloc to allocate memory.
129778         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
129779         Skip "" directory entries.
129780         Use strlen to calculate directory entry length, since the old method
129781         is rarely used these days and isn't worth supporting.
129782         Don't use a pointer after freeing it.
129783         Check for integer overflow when calculating allocation size.
129784         Use memcpy to copy entries, instead of stpcpy.
129785         Set errno properly when returning NULL.
129786         Check for readdir error.
129788 2000-06-26  Jim Meyering  <meyering@lucent.com>
129790         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
129792 2000-06-25  Jim Meyering  <meyering@lucent.com>
129794         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
129795         Linux header bug when _XOPEN_SOURCE is defined to 500.
129797 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
129799         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
129800         deficiency.
129802 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
129804         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
129805         Include xalloc.h.
129806         Don't include <stdlib.h>.  Don't declare malloc, realloc.
129808 2000-06-24  Jim Meyering  <meyering@lucent.com>
129810         * m4/strerror_r.m4: Revive this file -- to try out an experimental
129811         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
129812         for which strerror does return char*, but which lacks a conveniently
129813         accessible declaration of the function.  If the compile-test says
129814         strerror_r doesn't work, then resort to a `run'-test that works on
129815         BeOS and segfaults on DEC Unix.
129817 2000-06-24  Jim Meyering  <meyering@lucent.com>
129819         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
129821 2000-06-23  Paul Eggert  <eggert@twinsun.com>
129823         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
129824         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
129826 2000-06-23  Paul Eggert  <eggert@twinsun.com>
129828         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
129829         (mbrtowc, mbstate_t): Define substitutes if
129830         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
129831         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
129832         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
129834 2000-06-23  Jim Meyering  <meyering@lucent.com>
129836         * m4/afs.m4: Add missing AC_MSG_RESULT.
129837         Reported by Bruno Haible.
129839         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
129840         Suggestion from Bruno Haible.
129842 2000-06-23  Jim Meyering  <meyering@lucent.com>
129844         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
129846 2000-06-21  Jim Meyering  <meyering@lucent.com>
129848         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
129850 2000-06-21  Jim Meyering  <meyering@lucent.com>
129852         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
129853         (noinst_HEADERS): Add getstr.h.
129855         * lib/getline.c (getstr): Move into a separate file.
129856         * lib/getstr.c (getstr): New file, extracted from getline.c, with
129857         the following changes: new parameter, delim2; both delim[12]
129858         parameters have type `int', not `char'.  The latter would lose
129859         with 8-bit delimiters.
129860         * lib/getstr.h: New file.
129862 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
129864         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
129865         than 1024, return a memory chunk of least possible size, instead
129866         of size PATH_MAX + 2. In the loop, increment the size proportionally.
129867         Use free/xmalloc instead of xrealloc to avoid copying for very long
129868         paths.
129870 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
129872         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
129873         the empty string.
129875 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
129877         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
129878         address, not strdup.  Include <stdlib.h> and don't declare free().
129880 2000-06-19  Jim Meyering  <meyering@lucent.com>
129882         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
129884 2000-06-18  Jim Meyering  <meyering@lucent.com>
129886         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
129888         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
129889         `checking whether...' message to be consistent with that of the
129890         lstat test.
129892 2000-06-18  Jim Meyering  <meyering@lucent.com>
129894         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
129895         Besides, these days every porting target provides a mkdir function.
129897         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
129898         needed. (this snippet comes from src/system.h).
129900 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
129902         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
129904 2000-06-15  Paul Eggert  <eggert@twinsun.com>
129906         * lib/human.c (adjust_value): New function.
129907         (human_readable_inexact): Apply rounding style even when
129908         printing approximate values.
129910 2000-06-14  Paul Eggert  <eggert@twinsun.com>
129912         * lib/human.c (human_readable_inexact): Allow an input block
129913         size that is not a multiple of the output block size, and vice versa.
129914         Reported by Piergiorgio Sartor.
129916 2000-06-14  Paul Eggert  <eggert@twinsun.com>
129918         * lib/getdate.y (get_date): Apply relative times after time
129919         zone indicator, not before.  Reported by Todd A. Jacobs.
129921 2000-06-13  Jim Meyering  <meyering@lucent.com>
129923         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
129925         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
129927 2000-06-12  Paul Eggert  <eggert@twinsun.com>
129929         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
129931 2000-06-12  Jim Meyering  <meyering@lucent.com>
129933         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
129934         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
129935         optional argument.
129936         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
129937         the optional argument, `lib'.
129939 2000-06-08  Jim Meyering  <meyering@lucent.com>
129941         * m4/largefile.m4: Remove file (now that it's part of autoconf).
129943 2000-06-04  Paul Eggert  <eggert@twinsun.com>
129945         Rewrite largefile configuration so that we don't need to run
129946         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
129947         AC_CANONICAL_HOST in configure.in -- jmm]
129949         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
129950         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
129951         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
129952         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
129953         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
129954         All uses changed.
129955         Instead of inspecting the output of getconf, try to compile the
129956         test program without and with the macro definition.
129957         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
129958         for getconf.  Instead, check for the needed flags by compiling
129959         test programs.
129961 2000-06-04  Paul Eggert  <eggert@twinsun.com>
129963         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
129965 2000-06-04  Jim Meyering  <meyering@lucent.com>
129967         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
129968         SunOS 4.1.4 for which gid_t is an unsigned type.
129970 2000-06-03  Jim Meyering  <meyering@lucent.com>
129972         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
129973         now that autoconf requires that.
129975         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
129976         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
129977         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
129979 2000-06-03  Jim Meyering  <meyering@lucent.com>
129981         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
129983 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
129985         * m4/glibc21.m4: New file.
129986         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
129988 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
129990         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
129991         newer, don't install charset.alias.
129992         * lib/config.charset: Change the Linux/glibc rules so they become empty
129993         on glibc-2.1 or newer.
129995 2000-06-02  Jim Meyering  <meyering@lucent.com>
129997         * lib/mountlist.c: Back out last change.  Instead, do this...
129998         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
129999         me_dummy member using the same `ignore'-testing code.
130000         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
130001         fs_type strings.
130002         From Mark D. Roth.
130004 2000-05-29  Jim Meyering  <meyering@lucent.com>
130006         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
130007         mounts with the `ignore' attribute.  Based on a patch from
130008         Mark D. Roth.
130010 2000-05-28  Jim Meyering  <meyering@lucent.com>
130012         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
130013         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
130014         * m4/stat.m4: Likewise.
130015         * m4/lstat.m4: Likewise.
130016         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
130018         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
130019         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
130021 2000-05-26  Jim Meyering  <meyering@lucent.com>
130023         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
130025 2000-05-24  Jim Meyering  <meyering@lucent.com>
130027         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
130028         autoconf requires that.
130029         * m4/lib-check.m4: Likewise.
130030         * m4/jm-macros.m4: Likewise.
130031         * m4/strftime.m4: Likewise.
130033         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
130034         AC_CHECK_DECLS, now that autoconf requires that.
130036 2000-05-22  Jim Meyering  <meyering@lucent.com>
130038         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
130039         * m4/lstat.m4: Likewise.
130041 2000-05-22  Jim Meyering  <meyering@lucent.com>
130043         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
130045 2000-05-20  Jim Meyering  <meyering@lucent.com>
130047         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
130048         (jm_PREREQ): Use it.
130050 2000-05-18  Jim Meyering  <meyering@lucent.com>
130052         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
130053         back, too, since it may have been modified by allocate_entry.
130054         (hash_delete): Rewrite to use neither the assignment operator
130055         nor the comma operator in an if-expression.
130057 2000-05-15  Paul Eggert  <eggert@twinsun.com>
130059         * lib/closeout.c:
130060         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
130061         Remove; no longer needed.
130062         "quotearg.h": Add include.
130063         (file_name): Do not bother to explicitly initialize to NULL; it's less
130064         efficient on some hosts.
130065         (close_stdout_status): Remove test as to whether stdout was already
130066         closed; it breaks for the case "echo x | sort >&-".
130067         Quote file name colons.
130068         Do not assume that _("write error") lacks format strings.
130070 2000-05-15  Jim Meyering  <meyering@lucent.com>
130072         * lib/version-etc.c (version_etc_copyright): Update the copyright
130073         string used in all --version output.
130075 2000-05-14  Jim Meyering  <meyering@lucent.com>
130077         * lib/closeout.c (close_stdout_set_file_name): New function.
130078         (close_stdout_status): Use new file-scoped global.
130079         Return right away if fstat says the stdout file descriptor is invalid.
130080         * lib/closeout.h (close_stdout_set_file_name): Declare.
130082 2000-05-10  Jim Meyering  <meyering@lucent.com>
130084         * lib/closeout.c [default_exit_status]: New file-scoped variable.
130085         (close_stdout_set_status): New function.
130086         * lib/closeout.h (close_stdout_set_status): Declare.
130088 2000-05-09  Jim Meyering  <meyering@lucent.com>
130090         * m4/gettext.m4: Rename this...
130091         * m4/libintl.m4: ...to this.
130093 2000-05-08  Jim Meyering  <meyering@lucent.com>
130095         * lib/long-options.c: Don't include closeout.h.
130096         (parse_long_options): Don't call close_stdout for --version.
130098 2000-05-06  Paul Eggert  <eggert@twinsun.com>
130100         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
130101         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
130102         2.1.3 bug.  This avoids a clash when files like regex.c define
130103         _GNU_SOURCE.
130105 2000-05-06  Jim Meyering  <meyering@lucent.com>
130107         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
130108         (AC_REPLACE_FUNCS): Add strnlen.
130110         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
130111         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
130113         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
130114         AC_SEARCH_LIBS call for nanosleep.
130115         (LIB_NANOSLEEP): Set and AC_SUBST.
130117 2000-05-06  Jim Meyering  <meyering@lucent.com>
130119         * lib/strnlen.c: Undefine __strnlen and strnlen.
130120         [!weak_alias]: Define __strnlen to strnlen.
130122         * lib/atexit.c: New file, from libiberty.
130124 2000-05-06  Jim Meyering  <meyering@lucent.com>
130126         * lib/closeout.c (close_stdout_status): Also check for errors on the
130127         stderr stream.
130129 2000-05-05  Jim Meyering  <meyering@lucent.com>
130131         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
130132         AC_SEARCH_LIBS call for clock_gettime.
130133         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
130135         * m4/search-libs.m4: Update from autoconf.
130137         su doesn't work on Solaris 2.6.
130138         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
130139         <shadow.h>.  Reported by Dragos Harabor.
130141 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
130143         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
130144         memcpy instead of xmalloc, xrealloc, path_concat.
130145         (locale_charset): Treat empty environment variables as absent.
130146         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
130148 2000-05-04  Jim Meyering  <meyering@lucent.com>
130150         * lib/getopt.c: Update from glibc.
130151         * lib/obstack.c: Likewise.
130152         * lib/obstack.h: Likewise.
130153         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
130154         file
130156         * lib/regex.h: Likewise.
130157         * lib/strndup.c: Likewise.
130158         * lib/strnlen.c: New file, from glibc.
130160 2000-05-03  Jim Meyering  <meyering@lucent.com>
130162         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
130164 2000-05-02  Paul Eggert  <eggert@twinsun.com>
130166         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
130167         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
130168         compile-time test, rather than inspecting host and OS, to
130169         decide whether to define _LARGEFILE_SOURCE.
130171 2000-05-01  Jim Meyering  <meyering@lucent.com>
130173         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
130175         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
130176         Based on a patch from Bruno Haible.
130178 2000-05-01  Jim Meyering  <meyering@lucent.com>
130180         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
130182 2000-04-29  Jim Meyering  <meyering@lucent.com>
130184         * lib/path-concat.c: Declare strdup only if it's not defined.
130185         * lib/canon-host.c: Likewise.
130187 2000-04-28  Jim Meyering  <meyering@lucent.com>
130189         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
130190         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
130191         is included first, then limits.h is included by locale.h by libintl.h.
130192         From John David Anglin.
130194 2000-04-25  Jim Meyering  <meyering@lucent.com>
130196         * lib/makepath.c (S_IRWXUGO): Define.
130197         (make_path): Always perform explicit chmod if MODE specifies any
130198         of the `special' permission bits.  Prompted by a bug report against
130199         install from Mate Wierdl and Joost van Baal.
130201 2000-04-18  Jim Meyering  <meyering@lucent.com>
130203         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
130204         (jm_PREREQ): Use it.
130206 2000-04-18  Jim Meyering  <meyering@lucent.com>
130208         * lib/README: New file.
130210         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
130211         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
130213 2000-04-17  Jim Meyering  <meyering@lucent.com>
130215         Get it right :-)
130216         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
130217         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
130218         Suggestion from Akim Demaille.
130220 2000-04-17  Jim Meyering  <meyering@lucent.com>
130222         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
130223         the definition of it to rpl_strftime also defined-away the system's
130224         declaration.
130226 2000-04-15  Jim Meyering  <meyering@lucent.com>
130228         Use `C' to denote so-called `contiguous' files, the same way
130229         that tar does.
130230         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
130231         (ftypelet): Use S_ISCTG.
130232         From Michael Deutschmann.
130234 2000-04-14  Jim Meyering  <meyering@lucent.com>
130236         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
130237         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
130238         clobbered.
130240 2000-04-14  Jim Meyering  <meyering@lucent.com>
130242         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
130244 2000-04-13  Jim Meyering  <meyering@lucent.com>
130246         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
130247         AH_VERBATIM to insert required #ifndef into config.h.in.
130248         Suggestion from Akim Demaille.
130250 2000-04-12  Jim Meyering  <meyering@lucent.com>
130252         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
130253         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
130254         Christian Krackowizer.
130256         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
130257         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
130258         (AC_SYS_LARGEFILE): Require.
130259         (AM_C_PROTOTYPES): Require.
130261 2000-04-08  Jim Meyering  <meyering@lucent.com>
130263         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
130264         names don't conflict.  Reported by Eli Zaretskii.
130266 2000-04-07  Jim Meyering  <meyering@lucent.com>
130268         * lib/putenv.c: Move inclusion of errno.h so it follows that of
130269         sys/types.h, to work around system header problems on AIX 3.2.5.
130270         From Bruno Haible.
130272 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
130274         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
130275         bug.  Deal with the different error behavior of Irix iconv.
130277 2000-04-05  Paul Eggert  <eggert@twinsun.com>
130279         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
130280         IRIX if the installer said otherwise.
130282 2000-04-05  Jim Meyering  <meyering@lucent.com>
130284         Portability tweaks required for ultrix4.3.
130285         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
130286         (jm_CHECK_DECLS): Add getutent to the list of functions.
130287         (_jm_DECL_HEADERS): Add utmpx.h.
130288         From John David Anglin.
130290         * m4/strftime.m4: Back out the 2000-04-02 change.
130291         Instead of that change, simply undefine putenv in the test program.
130293 2000-04-05  Jim Meyering  <meyering@lucent.com>
130295         Portability tweaks required for ultrix4.3.
130296         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
130297         getutent.
130298         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
130299         * lib/canon-host.c: Declare strdup.
130300         * lib/path-concat.c: Likewise.
130301         From John David Anglin.
130303 2000-04-04  Jim Meyering  <meyering@lucent.com>
130305         Be more DOS 8.3-friendly.
130306         * lib/ref-add.sin: Renamed from ref-add.sed.in.
130307         * lib/ref-del.sin: Renamed from ref-del.sed.in.
130308         * lib/Makefile.am: Reflect renaming.
130309         Reported by Eli Zaretskii.
130311         Use a temporary file name that won't clash with `charset.alias'
130312         in the DOS 8.3 name space.
130313         * lib/Makefile.am (charset_tmp): Define.
130314         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
130315         (uninstall-local): Likewise.
130316         Reported by Eli Zaretskii.
130318 2000-04-03  Jim Meyering  <meyering@lucent.com>
130320         * m4/gettext.m4: Fix typo in comment.
130322         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
130323         textutils/configure.in).  Suggestion from Paul Eggert.
130324         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
130326 2000-04-02  Paul Eggert  <eggert@twinsun.com>
130328         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
130329         variable in the shell rather than using putenv, which isn't
130330         portable.  This avoids the configure-time inter-test dependency
130331         on the potentially-renamed putenv function.
130333 2000-03-30  Paul Eggert  <eggert@twinsun.com>
130335         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
130336         before checking struct stat.st_blksize, so that
130337         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
130339 2000-03-29  Paul Eggert  <eggert@twinsun.com>
130341         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
130342         since strftime.c uses HAVE_STRFTIME to decide whether to use
130343         the underlying strftime.
130345 2000-03-29  Paul Eggert  <eggert@twinsun.com>
130347         * lib/time/strftime.c (my_strftime): Make sure we call the system
130348         strftime, not ourselves, when invoking the underlying strftime.
130350 2000-03-24  Jim Meyering  <meyering@lucent.com>
130352         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
130353         (charset_alias): Define.
130354         (install-exec-local): Factor out common code.
130355         (uninstall-local): Split lines longer than 80.
130356         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
130357         (SUFFIXES): Define.
130358         (.sed.in.sed): New rule.  Don't redirect directly to $@.
130359         (CLEANFILES): Add ref-add.sed and ref-del.sed.
130361 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
130363         * lib/config.charset: Output a line containing "Packages using this
130364         file".
130365         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
130366         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
130367         ref-del.sed): New rules.
130369 2000-03-17  Jim Meyering  <meyering@lucent.com>
130371         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
130372         Otherwise, include <strings.h>
130374 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
130376         * lib/unicodeio.c (utf8_wctomb): New function.
130377         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
130378         format instead of in UCS-4 with platform dependent endianness.
130380 2000-03-10  Jim Meyering  <meyering@lucent.com>
130382         * m4/lib-check.m4: Look for getspnam in -lgen, too.
130383         From Marco Franzen.
130385 2000-03-07  Paul Eggert  <eggert@twinsun.com>
130387         * lib/savedir.c (savedir): Work even if directory size is
130388         negative; this can happen with some screwy NFS configurations.
130390 2000-03-06  Jim Meyering  <meyering@lucent.com>
130392         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
130393         if it's NULL (because we ran out of memory).  From Bruno Haible.
130395 2000-03-05  Jim Meyering  <meyering@lucent.com>
130397         * lib/localcharset.c ("path-concat.h"): Include.
130398         (get_charset_aliases): Use path_concat instead of ANSI string
130399         concatenation.
130401         * lib/unicodeio.h (PARAMS): Define.
130402         Use it to guard prototype.
130404 2000-03-04  Jim Meyering  <meyering@lucent.com>
130406         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
130407         for lib/localcharset.c.
130409 2000-03-04  Jim Meyering  <meyering@lucent.com>
130411         * lib/Makefile.am (install-exec-local): Create $(libdir) before
130412         installing into it.
130413         (uninstall-local): Uncomment this rule so `make distcheck' works
130414         once again.
130416         * lib/unicodeio.c (<errno.h>): Include it.
130417         (errno): Declare if not defined.
130419         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
130421         * lib/config.charset: New version, incorporating remarks from a linux
130422         i18n mailing list.  From Bruno Haible.
130424 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
130426         * m4/codeset.m4: New file.
130427         * m4/iconv.m4: New file.
130428         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
130430 2000-03-03  Jim Meyering  <meyering@lucent.com>
130432         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
130434 2000-03-02  Jim Meyering  <meyering@lucent.com>
130436         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
130437         the messages come out on separate lines.
130439         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
130440         rather than jm_CHECK_DECLARATIONS.
130441         * m4/decl.m4: Remove now-unused file.
130443         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
130444         geteuid.
130446 2000-03-02  Jim Meyering  <meyering@lucent.com>
130448         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
130450 2000-03-01  Jim Meyering  <meyering@lucent.com>
130452         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
130453         * lib/unicodeio.c: Likewise.
130455 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
130457         * lib/config.charset: New file.
130458         * lib/localcharset.c: New file.
130459         * lib/unicodeio.h, lib/unicodeio.c: New files.
130460         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
130461         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
130462         (noinst_HEADERS): Add unicodeio.h.
130463         (all-local, install-exec-local, charset.alias): New targets.
130465 2000-02-28  Paul Eggert  <eggert@twinsun.com>
130467         * lib/quotearg.c (ALERT_CHAR): New macro.
130468         (quotearg_buffer_restyled): Use it.
130470 2000-02-27  Jim Meyering  <meyering@lucent.com>
130472         * m4/check-decl.m4: Add getenv to the list.
130474 2000-02-27  Jim Meyering  <meyering@lucent.com>
130476         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
130477         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
130479         * lib/backupfile.c: Guard inclusion of stdlib.h with
130480         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
130481         Declare malloc if needed.
130483         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
130484         `#ifndef HAVE_DECL..'
130485         now that autoconf always defines the HAVE_DECL_ symbols.
130486         * lib/human.c: Likewise.
130487         * lib/same.c: Likewise.
130488         * lib/strtoumax.c: Likewise.
130490         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
130491         declaration check was not run.
130492         * lib/hash.c: Likewise.
130493         * lib/human.c: Likewise.
130494         * lib/same.c: Likewise.
130495         * lib/strtoumax.c: Likewise.
130497         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
130498         `.', then first look up the entire `.'-containing string as a login
130499         name.
130501 2000-02-23  Jim Meyering  <meyering@lucent.com>
130503         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
130504         in place of my hack.
130506 2000-02-18  Paul Eggert  <eggert@twinsun.com>
130508         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
130509         (textint): New typedef.
130510         (parser_control): Member year changed from int to textint.
130511         All uses changed.
130512         (YYSTYPE): Removed; replaced by %union with int and textint members.
130513         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
130514         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
130515         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
130516         (tSNUMBER, tUNUMBER): Now of type <textintval>.
130517         (date, number, to_year): Use width of number in digits, not its value,
130518         to determine whether it's a 2-digit year, or a 2-digit time.
130519         (yylex): Store number of digits of numeric tokens.
130520         Reported by John Kendall.
130522         (parser_control): Changed from struct parser_control to typedef (for
130523         consistency).  All uses changed.
130525         (tID): Removed; not used.
130526         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
130528 2000-02-14  Paul Eggert  <eggert@twinsun.com>
130530         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
130531         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
130533 2000-02-12  Jim Meyering  <meyering@lucent.com>
130535         * lib/userspec.c (ISDIGIT): Define it.
130536         (isdigit): Remove definition.
130537         (is_number): Use ISDIGIT, not isdigit.
130538         <libintl.h>: Include.
130539         (_ and N_): Define.
130540         (parse_user_spec): Mark translatable strings.
130542 2000-02-10  Jim Meyering  <meyering@lucent.com>
130544         With these changes, nanosleep.[ch] are finally enough like the other
130545         lib/* replacement files to compile on a few more losing systems.
130547         * lib/nanosleep.h: Don't include config.h.
130548         Remove prototype from declaration of nanosleep.
130549         (PARAMS): Remove now-unneeded definition.
130550         * lib/nanosleep.c: #undef nanosleep.
130551         (rpl_nanosleep): Rename from nanosleep.
130553 2000-02-10  Jim Meyering  <meyering@lucent.com>
130555         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
130556         gnu_nanosleep to rpl_nanosleep.
130558 2000-02-09  Jim Meyering  <meyering@lucent.com>
130560         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
130561         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
130563 2000-02-08  Akim Demaille  <akim@epita.fr>
130565         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
130566         `[' and `]' and remove uses of `changequote'.
130567         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
130568         (AC_SYS_LARGEFILE): Likewise.
130569         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
130570         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
130571         of changequote.
130572         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
130573         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
130574         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
130575         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
130577 2000-02-05  Jim Meyering  <meyering@lucent.com>
130579         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
130580         Remove explicit use of AC_HEADER_TIME.  It is required by
130581         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
130582         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
130583         in autoconf whereby the expansion of the latter ended up preceding
130584         the expansion of its prerequisite, AC_HEADER_TIME.
130585         Reported by Volker Borchert.
130587 2000-02-03  Jim Meyering  <meyering@lucent.com>
130589         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
130591 2000-02-03  Jim Meyering  <meyering@lucent.com>
130593         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
130594         rather than with `#if HAVE_UTMPNAME'.
130596 2000-02-02  Jim Meyering  <meyering@lucent.com>
130598         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
130599         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
130600         Reported by Eli Zaretskii.
130602 2000-02-01  Jim Meyering  <meyering@lucent.com>
130604         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
130606 2000-01-31  Jim Meyering  <meyering@lucent.com>
130608         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
130609         functions.  Add the time.h and sys/time.h headers along with the
130610         AC_REQUIRE'ment of AC_HEADER_TIME.
130612 2000-01-31  Jim Meyering  <meyering@lucent.com>
130614         * lib/nanosleep.h (nanosleep): Guard declaration with
130615         `#if ! HAVE_DECL_NANOSLEEP'.
130616         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
130617         the declaration in that vendor's sys/timers.h.
130618         Reported by Christian Krackowizer.
130620         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
130621         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
130622         (ISPRINT): Likewise.
130623         Reported by Tom Tromey.
130625 2000-01-30  Jim Meyering  <meyering@lucent.com>
130627         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
130629         * m4/prereq.m4 (utmp_includes): Define.
130630         Check for ut_user and ut_name members in both struct utmpx
130631         and struct utmp.
130633 2000-01-30  Jim Meyering  <meyering@lucent.com>
130635         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
130636         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
130637         header files where only utmpx.ut_user is declared.
130639         * lib/readutmp.h (UT_USER): Define.
130641 2000-01-29  Jim Meyering  <meyering@lucent.com>
130643         * m4/lib-check.m4: New file containing library-related checks from
130644         fileutils and sh-utils (textutils had none).
130646 2000-01-28  Jim Meyering  <meyering@lucent.com>
130648         * m4/perl.m4: Change format of warning message to look more like that
130649         from the missing script.  Suggestion from François Pinard.
130651 2000-01-25  Jim Meyering  <meyering@lucent.com>
130653         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
130654         well as time.h in the compile check.
130655         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
130656         Fix typo in cross-compiling case: s/yes/no/.
130658 2000-01-23  Jim Meyering  <meyering@lucent.com>
130660         * m4/jm-macros.m4: Move df-related tests here from
130661         fileutils/configure.in
130663         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
130664         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
130666         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
130667         s/space/ac_fsusage_space/.
130668         (jm_FILE_SYSTEM_USAGE): Take two parameters.
130670         * m4/ftruncate.m4: New file (derived from part of
130671         fileutils/configure.in).
130672         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
130673         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
130675         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
130676         AC_SUBST these here, rather than just in sh-util/configure.in, so
130677         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
130678         all the same.
130679         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
130680         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
130681         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
130682         (AC_SUBST(POW_LIBM)): Likewise.
130683         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
130685 2000-01-23  Jim Meyering  <meyering@lucent.com>
130687         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
130688         obstack.c.
130690 2000-01-22  Jim Meyering  <meyering@lucent.com>
130692         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
130694         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
130696         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
130697         configure.in
130698         (AC_CHECK_HEADERS): Likewise for sh-utils.
130699         (AC_CHECK_HEADERS): Likewise for textutils.
130700         Merge the three lists of headers.
130702         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
130703         from fileutils' configure.in.
130705         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
130706         code. Moved tests into their own function (_jm_DECL_HEADERS) in
130707         check-decl.m4.
130709         * m4/check-decl.m4: Use #if rather than #ifdef.
130710         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
130711         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
130712         (_jm_DECL_HEADERS): Define new function.
130713         (jm_CHECK_DECLARATIONS): Require it.
130715 2000-01-22  Jim Meyering  <meyering@lucent.com>
130717         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
130718         [! HAVE_DECL_STRTOULL]: Declare strtoull.
130719         Required for some AIX systems.  Reported by Christian Krackowizer.
130720         [TESTING] (main): New function.
130722         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
130723         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
130724         letters.
130726         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
130727         iswprint.
130729         * lib/strverscmp.c (ISDIGIT): Define.
130730         (strverscmp): Use ISDIGIT, not isdigit.
130732 2000-01-19  Jim Meyering  <meyering@lucent.com>
130734         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
130735         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
130736         defines `struct timespec' in <sys/time.h>
130738         * m4/c-bs-a.m4: Remove uses of changequote altogether.
130739         Thanks to Akim for explaining.
130741 2000-01-17  Paul Eggert  <eggert@twinsun.com>
130743         * lib/nanosleep.c (nanosleep):
130744         Don't use SA_INTERRUPT to decide whether to call sigaction, as
130745         POSIX.1 doesn't require SA_INTERRUPT and some systems
130746         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
130747         it's been part of POSIX.1 since day 1 (in 1988).
130749 2000-01-17  Jim Meyering  <meyering@lucent.com>
130751         * lib/interlock: Remove unused file.  Reported by François Pinard.
130753 2000-01-16  Paul Eggert  <eggert@twinsun.com>
130755         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
130756         alert, backslash, formfeed, and vertical tab unnecessarily in
130757         shell quoting style.
130759 2000-01-16  Jim Meyering  <meyering@lucent.com>
130761         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
130762         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
130763         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
130764         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
130766 2000-01-16  Jim Meyering  <meyering@lucent.com>
130768         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
130769         because the latter didn't work.
130771 2000-01-15  Jim Meyering  <meyering@lucent.com>
130773         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
130774         (AC_REPLACE_FUNCS): Add memcpy and memset.
130775         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
130776         Add strpbrk.
130777         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
130779 2000-01-12  Jim Meyering  <meyering@lucent.com>
130781         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
130782         (jm_PREREQ): Use it.
130783         (jm_PREREQ_READUTMP): New macro.
130784         (jm_PREREQ): Use it.
130786 2000-01-11  Paul Eggert  <eggert@twinsun.com>
130788         Quote multibyte characters correctly.
130789         * m4/c-bs-a.m4: New file.
130790         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
130791         (jm_PREREQ): Use it.
130793 2000-01-11  Paul Eggert  <eggert@twinsun.com>
130795         * m4/uintmax_t.m4: Port to autoconf 2.13.
130797 2000-01-08  Jim Meyering  <meyering@ascend.com>
130799         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
130800         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
130802 2000-01-04  Jim Meyering  <meyering@ascend.com>
130804         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
130805         jm_STRUCT_DIRENT_D_TYPE.
130806         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
130807         jm_STRUCT_DIRENT_D_INO.
130808         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
130809         jm_STRUCT_UTIMBUF.
130810         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
130811         renamings.
130812         * m4/utime.m4: Likewise.
130814         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
130815         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
130817 2000-01-03  Paul Eggert  <eggert@twinsun.com>
130819         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
130820         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
130822 2000-01-02  Jim Meyering  <meyering@ascend.com>
130824         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
130825         remember if this is necessary.
130827 1999-12-26  Jim Meyering  <meyering@ascend.com>
130829         * m4/jm-macros.m4: Use it here.
130830         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
130832 1999-12-23  Jim Meyering  <meyering@ascend.com>
130834         * m4/jm-macros.m4: Check for clock_gettime (moved from
130835         fileutils/configure.in)
130836         Check for gettimeofday.
130838 1999-12-20  Jim Meyering  <meyering@ascend.com>
130840         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
130841         autoconf-2.14a-1999-12-20.
130843 1999-12-19  Jim Meyering  <meyering@ascend.com>
130845         * m4/lstat-slash.m4: New file.
130846         * m4/jm-macros.m4: Use the new macro:
130847         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
130849 1999-12-07  Jim Meyering  <meyering@ascend.com>
130851         * m4/perl.m4: Require that File::Compare be available, too.
130852         Too many systems seem to lack it.
130854         * m4/strftime.m4: Add checks for most of the cpp macros tested in
130855         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
130857 1999-11-18  Paul Eggert  <eggert@twinsun.com>
130859         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
130860         problem with the QNX 4.25 shell, which doesn't propagate exit
130861         status of failed commands inside shell assignments.
130863 1999-11-17  Jim Meyering  <meyering@ascend.com>
130865         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
130867 1999-11-07  Jim Meyering  <meyering@ascend.com>
130869         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
130871 1999-11-06  Jim Meyering  <meyering@ascend.com>
130873         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
130874         * m4/jm-macros.m4 (jm_MACROS): Use it here.
130876 1999-11-05  Jim Meyering  <meyering@ascend.com>
130878         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
130879         configure.in of textutils, fileutils, and sh-utils into this one
130880         (shared between those packages) file.
130881         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
130882         AC_STRUCT_ST_BLKSIZE.
130884 1999-11-03  Jim Meyering  <meyering@ascend.com>
130886         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
130887         of AC_CHECK_TYPE checks includes unistd.h.
130888         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
130889         Suggestion from Akim Demaille.
130891 1999-10-30  Jim Meyering  <meyering@ascend.com>
130893         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
130894         m4-quoted string.
130895         * m4/ls-mntd-fs.m4: Likewise.
130896         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
130897         * m4/jm-winsz1.m4: Likewise.
130899         * m4/const.m4: Remove file, since the fix made it into the experimental
130900         version of autoconf.
130901         * m4/mktime.m4: Likewise.
130903         * m4/check-type.m4: Remove file, now that the latest version of
130904         AC_CHECK_TYPE takes a third arg to specify additional #includes.
130906         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
130907         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
130908         AC_CHECK_TYPE.
130910 1999-10-04  Jim Meyering  <meyering@ascend.com>
130912         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
130914 1999-09-22  Paul Eggert  <eggert@twinsun.com>
130916         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
130917         2.95.1 bug with HP-UX 10.20.
130919 1999-09-17  Jim Meyering  <meyering@ascend.com>
130921         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
130922         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
130923         due to missing strdup (against sh-utils-2.0).
130925 1999-08-29  Jim Meyering  <meyering@ascend.com>
130927         * m4/jm-macros.m4: Require jm_BISON.
130928         * m4/bison.m4: New file.
130930 1999-08-17  Paul Eggert  <eggert@twinsun.com>
130932         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
130933         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
130935 1999-08-05  Jim Meyering  <meyering@ascend.com>
130937         * m4/getline.m4: Rename test file from conftestdata to conftest.data
130938         to avoid conflicts with `conftest' on 8+3 filesystems.
130939         Suggestion from Eli Zaretskii.
130941 1999-08-04  Jim Meyering  <meyering@ascend.com>
130943         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
130944         fileutils and sh-utils (textutils's getline test was inadequate).
130945         (AM_FUNC_GETLINE): Run this test.
130946         (AC_CHECK_FUNCS): Check for getdelim.
130947         Reported by Bob Proulx.
130949 1999-08-02  Jim Meyering  <meyering@ascend.com>
130951         * m4/jm-macros.m4: Add a comment.
130953 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130955         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
130956         <inttypes.h> defines strtoumax as a macro (and not as a
130957         function).
130959 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130961         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
130962         that we can shift, multiply and divide unsigned long long
130963         values; Ultrix cc can't do it.
130965 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130967         * m4/mktime.m4: New file, which is a preview of what should appear
130968         in the next public autoconf release.
130970 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130972         * m4/lfs.m4: Remove this file.
130973         * m4/largefile.m4: New file.  It contains the old contents of
130974         lfs.m4, except that all names with prefix AC_LFS have been
130975         changed to use the prefix AC_SYS_LARGEFILE instead, to be
130976         compatible with future autoconf versions.  Also, some minor m4
130977         quoting problems have been fixed.
130979 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130981         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
130982         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
130983         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
130984         and simplify the shell code.
130986 1999-08-01  Jim Meyering  <meyering@ascend.com>
130988         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
130989         m4.
130991 1999-07-20  Jim Meyering  <meyering@ascend.com>
130993         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
130995 1999-07-15  Jim Meyering  <meyering@ascend.com>
130997         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
130999 1999-05-22  Jim Meyering  <meyering@ascend.com>
131001         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
131003 1999-05-20  Jim Meyering  <meyering@ascend.com>
131005         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
131006         Add a colon after each `then' in case $4 is empty.
131008 1999-05-16  Jim Meyering  <meyering@ascend.com>
131010         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
131012 1999-05-10  Jim Meyering  <meyering@ascend.com>
131014         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
131016         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
131017         AC_FUNC_MKTIME.
131019 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
131021         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
131023 1999-05-04  Paul Eggert  <eggert@twinsun.com>
131025         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
131026         not CPPFLAGS, so that linking works correctly in IRIX.
131028 1999-04-30  Paul Eggert  <eggert@twinsun.com>
131030         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
131032 1999-04-20  Paul Eggert  <eggert@twinsun.com>
131034         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
131035         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
131036         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
131037         jm_AC_TYPE_UNSIGNED_LONG_LONG.
131038         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
131040         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
131042 1999-04-20  Jim Meyering  <meyering@ascend.com>
131044         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
131045         AC_REPLACE xstroull if necessary.  From Paul Eggert.
131046         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
131048 1999-04-18  Jim Meyering  <meyering@ascend.com>
131050         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
131051         * m4/jm-macros.m4: Use it.
131053 1999-04-06  Jim Meyering  <meyering@ascend.com>
131055         * m4/strftime.m4: Remove test for %f.
131057 1999-03-29  Jim Meyering  <meyering@ascend.com>
131059         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
131060         superset of the AC_TYPE_* checks in the textutils, fileutils,
131061         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
131062         AC_TYPE_PID_T.
131064 1999-03-28  Jim Meyering  <meyering@ascend.com>
131066         * m4/jm-macros.m4: Define GNU_PACKAGE here.
131067         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
131068         replaced e.g., in the *.sh files of the sh-utils.
131070 1999-03-20  Jim Meyering  <meyering@ascend.com>
131072         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
131073         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
131074         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
131076 1999-03-19  Jim Meyering  <meyering@ascend.com>
131078         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
131080 1999-03-12  Jim Meyering  <meyering@ascend.com>
131082         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
131084 1999-03-07  Jim Meyering  <meyering@ascend.com>
131086         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
131087         declared.
131089 1999-02-17  Jim Meyering  <meyering@ascend.com>
131091         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
131092         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
131094 1999-02-07  Jim Meyering  <meyering@ascend.com>
131096         * m4/group-member.m4: New file -- extracted from sh-utils'
131097         configure.in.
131099         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
131100         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
131102 1999-02-06  Jim Meyering  <meyering@ascend.com>
131104         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
131105         * m4/fnmatch.m4: Likewise.
131106         * m4/getgroups.m4: Likewise.
131107         * m4/lstat.m4: Likewise.
131108         * m4/malloc.m4: Likewise.
131109         * m4/putenv.m4: Likewise.
131110         * m4/realloc.m4: Likewise.
131111         * m4/regex.m4: Likewise.
131112         * m4/stat.m4: Likewise.
131113         * m4/strftime.m4: Likewise.
131114         Suggestion from Alain Magloire.
131116         * m4/chown.m4: Use `.$ac_objext', not `.o'.
131117         * m4/fnmatch.m4: Likewise.
131118         * m4/getgroups.m4: Likewise.
131119         * m4/getline.m4: Likewise.
131120         * m4/lstat.m4: Likewise.
131121         * m4/malloc.m4: Likewise.
131122         * m4/memcmp.m4: Likewise.
131123         * m4/putenv.m4: Likewise.
131124         * m4/realloc.m4: Likewise.
131125         * m4/regex.m4: Likewise.
131126         * m4/stat.m4: Likewise.
131127         * m4/strftime.m4: Likewise.
131128         Suggestion from Alain Magloire.
131130         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
131131         an argument.
131133         * m4/regex.m4: Add a run-time Test for proper operation of
131134         re_compile_pattern.
131136 1999-01-31  Jim Meyering  <meyering@ascend.com>
131138         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
131140 1999-01-30  Jim Meyering  <meyering@ascend.com>
131142         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
131144         * m4/jm-mktime.m4: Make this a wrapper around the official
131145         AM_FUNC_MKTIME rather than my private copy, now that the official one
131146         is up to date.
131147         * m4/mktime.m4: Remove file.
131149         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
131150         * m4/uptime.m4: Likewise.
131151         * m4/uintmax_t.m4: Likewise.
131153 1999-01-28  Jim Meyering  <meyering@ascend.com>
131155         * m4/jm-macros.m4: Use jm_AFS.
131156         * m4/afs.m4: New file (from fileutils' configure.in).
131158         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
131159         * m4/chown.m4: Likewise.
131160         * m4/d-ino.m4: Likewise.
131161         * m4/d-type.m4: Likewise.
131162         * m4/fnmatch.m4: Likewise.
131163         * m4/getgroups.m4: Likewise.
131164         * m4/gettext.m4: Likewise.
131165         * m4/jm-mktime.m4: Likewise.
131166         * m4/jm-winsz2.m4: Likewise.
131167         * m4/lcmessage.m4: Likewise.
131168         * m4/ls-mntd-fs.m4: Likewise.
131169         * m4/malloc.m4: Likewise.
131170         * m4/memcmp.m4: Likewise.
131171         * m4/putenv.m4: Likewise.
131172         * m4/realloc.m4: Likewise.
131173         * m4/st_mtim.m4: Likewise.
131174         * m4/strftime.m4: Likewise.
131176 1999-01-16  Jim Meyering  <meyering@ascend.com>
131178         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
131179         (ARGMATCH_DIE_DECL): Define.
131181 1999-01-12  Jim Meyering  <meyering@ascend.com>
131183         * m4/Makefile.am.in: Rewrite to avoid using fmt.
131184         Reported by Lars Hecking.
131186 1999-01-10  Jim Meyering  <meyering@ascend.com>
131188         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
131189         gross kludge.
131190         * m4/inttypes_h.m4: Likewise.
131191         * m4/lstat.m4: Likewise.
131192         * m4/malloc.m4: Likewise.
131193         * m4/readdir.m4: Likewise.
131194         * m4/realloc.m4: Likewise.
131195         * m4/st_dm_mode.m4: Likewise.
131196         * m4/stat.m4: Likewise.
131197         * m4/utimbuf.m4: Likewise.
131198         * m4/utimes.m4: Likewise.
131200         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
131201         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
131202         comments in config.h.in are meaningful.
131204         * m4/jm-macros.m4: Require autoconf-2.13 here.
131206         * m4/regex.m4: By default, don't use the included regex.c on systems
131207         with glibc 2.  Suggestion from Uli Drepper.
131209 1999-01-02  Jim Meyering  <meyering@ascend.com>
131211         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
131213 1998-12-18  Jim Meyering  <meyering@ascend.com>
131215         * m4/Makefile.am.in (Makefile.am): Simplify rule.
131216         Based on a suggestion from Lars Hecking.
131218 1998-11-16  Paul Eggert  <eggert@twinsun.com>
131220         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
131222 1998-11-16  Jim Meyering  <meyering@ascend.com>
131224         * m4/lfs.m4: Double-quote the `uname...` expression.
131226 1998-11-14  Jim Meyering  <meyering@ascend.com>
131228         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
131229         * m4/stat.m4: Likewise.
131231 1998-11-03  Jim Meyering  <meyering@ascend.com>
131233         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
131234         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
131236 1998-10-18  Jim Meyering  <meyering@ascend.com>
131238         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
131240 1998-10-17  Jim Meyering  <meyering@ascend.com>
131242         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
131243         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
131244         calls for those previously hard-coded headers.  Instead, take a new
131245         parameter.
131246         (jm_CHECK_DECLARATIONS): Reflect interface change.
131247         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
131248         (jm_CHECK_DECL_LOCALTIME_R): New macro.
131250         * m4/mktime.m4: Test for spring-forward gap before long-running test.
131252 1998-10-14  Jim Meyering  <meyering@ascend.com>
131254         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
131255         instead of "TZ=America/Vancouver".  From Paul Eggert.
131257 1998-10-11  Jim Meyering  <meyering@ascend.com>
131259         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
131260         This adds a test for a recently added compatibility fix for mktime.c.
131261         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
131263 1998-09-27  Jim Meyering  <meyering@ascend.com>
131265         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
131267         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
131268         ../configure.in, including a change from Gordon Matzigkeit to allow
131269         cross-compiling for the Hurd.
131271         * m4/glibc.m4: New file/macro to test for the GNU C Library
131272         versions 1 and 2.  From Gordon Matzigkeit.
131273         Indent.
131275 1998-09-21  Jim Meyering  <meyering@ascend.com>
131277         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
131279 1998-08-18  Paul Eggert  <eggert@twinsun.com>
131281         Port nanosecond-resolution times to UnixWare 2.1.2 and
131282         pedantic Solaris 2.6.
131284         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
131285         AC_STRUCT_ST_MTIM.
131286         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
131287         Generate name of ns member, instead of just 1 or undef.
131288         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
131290 1998-08-15  Jim Meyering  <meyering@ascend.com>
131292         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
131293         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
131294         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
131295         instead of jm_TYPE_SSIZE_T.
131297 1998-08-12  Jim Meyering  <meyering@ascend.com>
131299         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
131301 1998-08-02  Jim Meyering  <meyering@ascend.com>
131303         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
131304         in acconfig.h manually.
131306 1998-07-31  Paul Eggert  <eggert@twinsun.com>
131308         * m4/st_mtim.m4: New file.
131310 1998-07-28  Jim Meyering  <meyering@ascend.com>
131312         * m4/utimes.m4: Undef stat.
131314 1998-07-25  Jim Meyering  <meyering@ascend.com>
131316         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
131317         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
131319 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
131321         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
131322         uid and gid actually remain unchanged.
131324 1998-07-07  Jim Meyering  <meyering@ascend.com>
131326         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
131328 1998-07-04  Jim Meyering  <meyering@ascend.com>
131330         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
131331         to prove that this macro can be used in packages without regex.c.
131333 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
131335         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
131336         is to be used.
131338 1998-07-03  Jim Meyering  <meyering@ascend.com>
131340         * m4/gettext.m4: Add -lintl if it's found to be necessary.
131342         * m4/gettext.m4: New file -- from gettext-0.10.35.
131343         * m4/lcmessage.m4: Likewise.
131344         * m4/progtest.m4: Likewise.
131346         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
131347         * m4/jm-macros.m4: Require the new macro.
131349 1998-06-29  Jim Meyering  <meyering@ascend.com>
131351         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
131352         for the definition of NGROUPS (used in a system header included
131353         by sys/mount.h).
131355 1998-06-28  Jim Meyering  <meyering@ascend.com>
131357         * m4/ls-mntd-fs.m4: New file.
131358         * m4/fstypename.m4: New file.
131360         * m4/jm-macros.m4: Require the new macro.
131361         * m4/jm-glibc-io.m4: New file.
131363 1998-05-19  Jim Meyering  <meyering@ascend.com>
131365         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
131366         * m4/lchown.m4: New file.
131368         * m4/Makefile.am.in: New file.
131369         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
131371 1998-05-14  Jim Meyering  <meyering@ascend.com>
131373         * m4/Makefile.am (EXTRA_DIST): Add them.
131374         * m4/jm-macros.m4: New file.
131375         * m4/utimbuf.m4: New file.
131377 1998-05-12  Jim Meyering  <meyering@ascend.com>
131379         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
131381 1998-05-11  Jim Meyering  <meyering@ascend.com>
131383         * m4/isc-posix.m4: New file.
131385 1998-05-10  Jim Meyering  <meyering@ascend.com>
131387         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
131389 1998-05-09  Jim Meyering  <meyering@ascend.com>
131391         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
131392         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
131393         with automake.
131395         * m4/ssize_t.m4: New file.
131396         * m4/mktime.m4: Remove file -- the new automake has this now.
131398 1998-04-26  Jim Meyering  <meyering@ascend.com>
131400         * m4/assert.m4: New file.
131401         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
131403 1998-04-05  Jim Meyering  <meyering@ascend.com>
131405         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
131406         (jm_PREREQ): Use it here.
131408 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
131410         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
131411         in acconfig.h.
131413 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
131415         * m4/prereq.m4: New file.
131416         * m4/error.m4: New file.
131417         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
131419 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
131421         * m4/getline.m4: Don't set am_cv_func_working_getline before the
131422         cache-check for the same variable -- that defeated the purpose of
131423         the test; the test program was never run.  This was a problem only
131424         on systems with losing getline functions -- HP-UX 10.20 is one.
131425         Reported by Bjorn Helgaas.
131427 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
131429         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
131431 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
131433         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
131435         * m4/const.m4: New file.  Use an initializer in this declaration
131436         typedef int charset[2]; const charset x;
131437         Reported by Bob Glickstein.
131439 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
131441         * m4/chown.m4: Fix reversed types on -1 args to chown.
131442         From Kaveh Ghazi.
131444 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
131446         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
131447         Add lseek and memchr.
131449         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
131450         T.E.Dickey <dickey@clark.net> said that some older preprocessors
131451         have a 20-character limit on names.
131453 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
131455         * m4/inttypes_h.m4: New file.
131456         * m4/uintmax_t.m4: New file.
131457         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
131460         -----
131462         Local Variables:
131463         coding: utf-8
131464         End:
131466         Copyright (C) 1997-2020 Free Software Foundation, Inc.
131468         Copying and distribution of this file, with or without
131469         modification, are permitted provided the copyright notice
131470         and this notice are preserved.